Skip to content

Commit

Permalink
improving bundler usage with groups - we don't rely on rspec, rake or…
Browse files Browse the repository at this point in the history
… rdoc to be used, nor do we rely on actionpack (that's a simple-navigiation w/ rails only requirement)
  • Loading branch information
mjtko committed Aug 14, 2011
1 parent f79a90a commit 2415aac
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
18 changes: 14 additions & 4 deletions Gemfile
@@ -1,5 +1,15 @@
source :rubygems source :rubygems
gem 'actionpack'
gem 'rspec' gem 'activesupport', '>= 2.3.2'
gem 'rake'
gem 'rdoc' # install the rails group if you want to ensure rails compatibility -
# but you've already got rails installed anyway, right? :-)
group :rails do
gem 'actionpack', '>= 2.3.2'
end

group :development do
gem 'rspec', '>= 2.0.1'
gem 'rake'
gem 'rdoc'
end
2 changes: 0 additions & 2 deletions Rakefile
Expand Up @@ -36,8 +36,6 @@ begin
gemspec.email = "andreas.schacke@gmail.com" gemspec.email = "andreas.schacke@gmail.com"
gemspec.homepage = "http://github.com/andi/simple-navigation" gemspec.homepage = "http://github.com/andi/simple-navigation"
gemspec.description = "With the simple-navigation gem installed you can easily create multilevel navigations for your Rails, Sinatra or Padrino applications. The navigation is defined in a single configuration file. It supports automatic as well as explicit highlighting of the currently active navigation through regular expressions." gemspec.description = "With the simple-navigation gem installed you can easily create multilevel navigations for your Rails, Sinatra or Padrino applications. The navigation is defined in a single configuration file. It supports automatic as well as explicit highlighting of the currently active navigation through regular expressions."
gemspec.add_development_dependency('rspec', '>= 2.0.1')
gemspec.add_dependency('activesupport', '>= 2.3.2')
gemspec.authors = ["Andi Schacke", "Mark J. Titorenko"] gemspec.authors = ["Andi Schacke", "Mark J. Titorenko"]
gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"] gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
gemspec.files = FileList["[A-Z]*", "{lib,spec,rails,generators}/**/*"] - FileList["**/*.log", "Gemfile.lock"] gemspec.files = FileList["[A-Z]*", "{lib,spec,rails,generators}/**/*"] - FileList["**/*.log", "Gemfile.lock"]
Expand Down
20 changes: 7 additions & 13 deletions simple-navigation.gemspec
Expand Up @@ -77,27 +77,21 @@ Gem::Specification.new do |s|
s.specification_version = 3 s.specification_version = 3


if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<actionpack>, [">= 0"])
s.add_runtime_dependency(%q<rspec>, [">= 0"])
s.add_runtime_dependency(%q<rake>, [">= 0"])
s.add_runtime_dependency(%q<rdoc>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 2.0.1"])
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2"]) s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2"])
s.add_development_dependency(%q<rspec>, [">= 2.0.1"])
s.add_development_dependency(%q<rake>, [">= 0"])
s.add_development_dependency(%q<rdoc>, [">= 0"])
else else
s.add_dependency(%q<actionpack>, [">= 0"]) s.add_dependency(%q<activesupport>, [">= 2.3.2"])
s.add_dependency(%q<rspec>, [">= 0"]) s.add_dependency(%q<rspec>, [">= 2.0.1"])
s.add_dependency(%q<rake>, [">= 0"]) s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<rdoc>, [">= 0"]) s.add_dependency(%q<rdoc>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 2.0.1"])
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
end end
else else
s.add_dependency(%q<actionpack>, [">= 0"]) s.add_dependency(%q<activesupport>, [">= 2.3.2"])
s.add_dependency(%q<rspec>, [">= 0"]) s.add_dependency(%q<rspec>, [">= 2.0.1"])
s.add_dependency(%q<rake>, [">= 0"]) s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<rdoc>, [">= 0"]) s.add_dependency(%q<rdoc>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 2.0.1"])
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
end end
end end


0 comments on commit 2415aac

Please sign in to comment.