flipper-mongo.gemspec in flipper-mongo-0.6.0 vs flipper-mongo.gemspec in flipper-mongo-0.7.0.beta4
- old
+ new
@@ -1,20 +1,24 @@
# -*- encoding: utf-8 -*-
-require File.expand_path('../lib/flipper/adapters/mongo/version', __FILE__)
+require File.expand_path('../lib/flipper/version', __FILE__)
+flipper_mongo_files = lambda { |file|
+ file =~ /mongo/
+}
+
Gem::Specification.new do |gem|
- gem.name = "flipper-mongo"
- gem.version = Flipper::Adapters::Mongo::VERSION
gem.authors = ["John Nunemaker"]
gem.email = ["nunemaker@gmail.com"]
- gem.description = %q{Mongo adapter for Flipper}
- gem.summary = %q{Mongo adapter for Flipper}
- gem.homepage = "http://jnunemaker.github.com/flipper-mongo"
+ gem.summary = "Mongo adapter for Flipper"
+ gem.description = "Mongo adapter for Flipper"
+ gem.license = "MIT"
+ gem.homepage = "https://github.com/jnunemaker/flipper"
+
+ gem.files = `git ls-files`.split("\n").select(&flipper_mongo_files) + ["lib/flipper/version.rb"]
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_mongo_files)
+ gem.name = "flipper-mongo"
gem.require_paths = ["lib"]
+ gem.version = Flipper::VERSION
- gem.files = `git ls-files`.split($/)
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
-
- gem.add_dependency 'flipper', '~> 0.6.0'
- gem.add_dependency 'mongo', '~> 1.8'
+ gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
+ gem.add_dependency 'mongo', '~> 2.0'
end