Commit 7c4c85ca by Jon Frisby

Sorting out dependency generation in gemspec.

parent a1a475b9
source :rubygems
gem 'jeweler'
gem 'rspec'
group :development do
gem 'jeweler'
gem 'rspec'
end
gem 'active_support'
......@@ -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'
......
......@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
"README.rdoc"
]
s.files = [
".rvmrc",
"Gemfile",
"Gemfile.lock",
"History.txt",
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment