Don't include compiled extension in gem; configure extconf.rb to compile and install into the correct location. Fixes #4.
This commit is contained in:
		
							parent
							
								
									5aba20cdf7
								
							
						
					
					
						commit
						a93775fe24
					
				
							
								
								
									
										2
									
								
								Rakefile
								
								
								
								
							
							
						
						
									
										2
									
								
								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 | ||||
|  |  | |||
|  | @ -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') | ||||
|  |  | |||
|  | @ -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') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue