diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-01 10:36:17 -0600 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-01 10:36:17 -0600 |
commit | 533ecf277f273d20ea1864b5c30880ba0f937da9 (patch) | |
tree | 4c1348695a48edaba5bdb36004b5db6136c8f749 /ffi-yajl-universal-java.gemspec | |
parent | 835956ca69369993388195949c03613e0759e6d1 (diff) | |
download | ffi-yajl-533ecf277f273d20ea1864b5c30880ba0f937da9.tar.gz |
remove duplication between gemspecs
Diffstat (limited to 'ffi-yajl-universal-java.gemspec')
-rw-r--r-- | ffi-yajl-universal-java.gemspec | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/ffi-yajl-universal-java.gemspec b/ffi-yajl-universal-java.gemspec index 724d61c..5720034 100644 --- a/ffi-yajl-universal-java.gemspec +++ b/ffi-yajl-universal-java.gemspec @@ -1,29 +1,10 @@ $:.unshift(File.dirname(__FILE__) + '/lib') require 'ffi_yajl/version' -Gem::Specification.new do |s| - s.name = 'ffi-yajl' - s.version = FFI_Yajl::VERSION - s.platform = "universal-java" - s.extra_rdoc_files = ["README.md", "LICENSE" ] - s.license = "Apache-2.0" - s.summary = "Ruby FFI wrapper around YAJL 2.x" - s.description = s.summary - s.author = "Lamont Granquist" - s.email = "lamont@scriptkiddie.org" - s.homepage = "http://github.com/lamont-granquist/ffi-yajl" +gemspec = eval(IO.read(File.expand_path(File.join(File.dirname(__FILE__), "ffi-yajl-shared.gemspec")))) - s.extensions = %w{ ext/libyajl2/extconf.rb } +gemspec.platform = "universal-java" +gemspec.extensions = %w{ ext/libyajl2/extconf.rb } - s.add_development_dependency "rake", "~> 10.1" - s.add_development_dependency "rspec", "~> 2.14" - s.add_development_dependency "pry", "~> 0.9" - s.add_development_dependency "rake-compiler", "~> 0.9" - s.add_dependency "ffi", "~> 1.9" +gemspec - s.bindir = "bin" - s.executables = %w{ ffi-yajl-bench } - s.require_path = 'lib' - s.files = %w{ Rakefile LICENSE README.md } + - Dir.glob( "{lib,spec}/**/*", File::FNM_DOTMATCH ).reject { |f| File.directory?(f) } -end |