Skip to content

Commit

Permalink
changes gemfile to read gemspec for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Glover committed Nov 2, 2010
1 parent fb0d564 commit 707214d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
10 changes: 1 addition & 9 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
source :gemcutter

gem "rake", "0.8.7"
gem "curb", "0.6.7"
gem "nokogiri"
gem "jeweler"
gem "yard"

group :test do
gem "rspec"
end
gemspec
21 changes: 4 additions & 17 deletions calais.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,10 @@ Gem::Specification.new do |s|
"spec/helper.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.add_dependency("nokogiri", ">= 1.3.3")
s.add_dependency("json", ">= 1.1.3")
s.add_dependency("curb", ">= 0.1.4")

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<nokogiri>, [">= 1.3.3"])
s.add_runtime_dependency(%q<json>, [">= 1.1.3"])
s.add_runtime_dependency(%q<curb>, [">= 0.1.4"])
else
s.add_dependency(%q<nokogiri>, [">= 1.3.3"])
s.add_dependency(%q<json>, [">= 1.1.3"])
s.add_dependency(%q<curb>, [">= 0.1.4"])
end
else
s.add_dependency(%q<nokogiri>, [">= 1.3.3"])
s.add_dependency(%q<json>, [">= 1.1.3"])
s.add_dependency(%q<curb>, [">= 0.1.4"])
end
s.add_development_dependency("rspec", ">= 2.0.0")
end

0 comments on commit 707214d

Please sign in to comment.