Permalink
Browse files

Declaring dependencies in the Gemfile saves us from all sort of dupli…

…cation and circular reference goofiness in the gemspec
  • Loading branch information...
1 parent e80077b commit 241e403d0c21fbcb1b41256f1c0b31be9f80d77c @Empact Empact committed Apr 11, 2012
Showing with 9 additions and 22 deletions.
  1. +9 −1 Gemfile
  2. +0 −6 Rakefile
  3. +0 −15 sunspot_mongoid.gemspec
View
10 Gemfile
@@ -1,2 +1,10 @@
source 'http://rubygems.org'
-gemspec
+
+gem "mongoid", ">= 0"
+gem "sunspot", ">= 1.1.0"
+gem "sunspot_rails", ">= 1.1.0"
+
+group :development, :test do
+ gem "shoulda", ">= 0"
+ gem "rr", ">= 0"
+end
View
@@ -10,12 +10,6 @@ begin
gem.email = "jugyo.org@gmail.com aq1018@gmail.com"
gem.homepage = "http://github.com/aq1018/sunspot_mongoid"
gem.authors = ["jugyo", "aq1018"]
- gem.add_runtime_dependency "mongoid", ">= 0"
- gem.add_runtime_dependency "sunspot", ">= 1.1.0"
- gem.add_runtime_dependency "sunspot_rails", ">= 1.1.0"
- gem.add_development_dependency "shoulda", ">= 0"
- gem.add_development_dependency "rr", ">= 0"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
View
@@ -43,34 +43,19 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<sunspot_mongoid>, [">= 0"])
- s.add_development_dependency(%q<shoulda>, [">= 0"])
- s.add_development_dependency(%q<rake>, [">= 0"])
- s.add_development_dependency(%q<rr>, [">= 0"])
- s.add_development_dependency(%q<jeweler>, [">= 0"])
s.add_runtime_dependency(%q<mongoid>, [">= 0"])
s.add_runtime_dependency(%q<sunspot>, [">= 1.1.0"])
s.add_runtime_dependency(%q<sunspot_rails>, [">= 1.1.0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<rr>, [">= 0"])
else
- s.add_dependency(%q<sunspot_mongoid>, [">= 0"])
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<rr>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<mongoid>, [">= 0"])
s.add_dependency(%q<sunspot>, [">= 1.1.0"])
s.add_dependency(%q<sunspot_rails>, [">= 1.1.0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<rr>, [">= 0"])
end
else
- s.add_dependency(%q<sunspot_mongoid>, [">= 0"])
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<rr>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<mongoid>, [">= 0"])
s.add_dependency(%q<sunspot>, [">= 1.1.0"])
s.add_dependency(%q<sunspot_rails>, [">= 1.1.0"])

0 comments on commit 241e403

Please sign in to comment.