From a93775fe24aeed20ca4621cc5d31eeb4f0d6a685 Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Tue, 19 Feb 2013 13:56:53 -0600 Subject: [PATCH] Don't include compiled extension in gem; configure extconf.rb to compile and install into the correct location. Fixes #4. --- Rakefile | 2 -- ext/helper/extconf.rb | 2 +- process_shared.gemspec | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 87ece38..2563a00 100644 --- a/Rakefile +++ b/Rakefile @@ -33,8 +33,6 @@ pkg = Gem::PackageTask.new(gemspec) do |p| p.gem_spec = gemspec end -task :gem => :compile - Rake::VersionTask.new do |t| t.with_git_tag = true end diff --git a/ext/helper/extconf.rb b/ext/helper/extconf.rb index 7b78fa0..756e9f7 100644 --- a/ext/helper/extconf.rb +++ b/ext/helper/extconf.rb @@ -11,4 +11,4 @@ have_header('pthread.h') have_type('pthread_mutex_t', 'pthread.h') have_type('pthread_mutexattr_t', 'pthread.h') -create_makefile('helper') +create_makefile('process_shared/posix/helper') diff --git a/process_shared.gemspec b/process_shared.gemspec index a5872ee..0a3b520 100644 --- a/process_shared.gemspec +++ b/process_shared.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |s| s.author = 'Patrick Mahoney' s.email = 'pat@polycrystal.org' s.homepage = 'https://github.com/pmahoney/process_shared' - s.files = Dir['lib/**/*.rb', 'lib/**/libpsem*', 'ext/**/*.{c,h,rb}', 'spec/**/*.rb'] + s.files = Dir['lib/**/*.rb', 'ext/**/*.{c,h,rb}', 'spec/**/*.rb'] s.extensions = Dir['ext/**/extconf.rb'] s.add_dependency('ffi', '~> 1.0')