Skip to content

Commit

Permalink
Sorting out dependency generation in gemspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJoy committed Mar 1, 2012
1 parent a1a475b commit 7c4c85c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Gemfile
@@ -1,5 +1,8 @@
source :rubygems

gem 'jeweler'
gem 'rspec'
group :development do
gem 'jeweler'
gem 'rspec'
end

gem 'active_support'
2 changes: 0 additions & 2 deletions Rakefile
Expand Up @@ -15,8 +15,6 @@ Jeweler::Tasks.new do |gem|

gem.rubyforge_project = "annotate"

gem.add_development_dependency "rspec"

gem.test_files = `git ls-files -- {spec,features}/*`.split("\n")
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.require_path = 'lib'
Expand Down
4 changes: 4 additions & 0 deletions annotate.gemspec
Expand Up @@ -17,6 +17,7 @@ Gem::Specification.new do |s|
"README.rdoc"
]
s.files = [
".rvmrc",
"Gemfile",
"Gemfile.lock",
"History.txt",
Expand Down Expand Up @@ -52,13 +53,16 @@ Gem::Specification.new do |s|

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<active_support>, [">= 0"])
s.add_development_dependency(%q<jeweler>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 0"])
else
s.add_dependency(%q<active_support>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
end
else
s.add_dependency(%q<active_support>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 0"])
end
end
Expand Down

0 comments on commit 7c4c85c

Please sign in to comment.