Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improving bundler usage with groups - we don't rely on rspec, rake or…

… rdoc to be used, nor do we rely on actionpack (that's a simple-navigiation w/ rails only requirement)
  • Loading branch information...
commit 2415aacd8dd7c3b32d9b6c0b213d42a78f5f913f 1 parent f79a90a
@mjtko mjtko authored
Showing with 21 additions and 19 deletions.
  1. +14 −4 Gemfile
  2. +0 −2  Rakefile
  3. +7 −13 simple-navigation.gemspec
View
18 Gemfile
@@ -1,5 +1,15 @@
source :rubygems
-gem 'actionpack'
-gem 'rspec'
-gem 'rake'
-gem 'rdoc'
+
+gem 'activesupport', '>= 2.3.2'
+
+# 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
View
2  Rakefile
@@ -36,8 +36,6 @@ begin
gemspec.email = "andreas.schacke@gmail.com"
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.add_development_dependency('rspec', '>= 2.0.1')
- gemspec.add_dependency('activesupport', '>= 2.3.2')
gemspec.authors = ["Andi Schacke", "Mark J. Titorenko"]
gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
gemspec.files = FileList["[A-Z]*", "{lib,spec,rails,generators}/**/*"] - FileList["**/*.log", "Gemfile.lock"]
View
20 simple-navigation.gemspec
@@ -77,27 +77,21 @@ 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<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_development_dependency(%q<rspec>, [">= 2.0.1"])
+ s.add_development_dependency(%q<rake>, [">= 0"])
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
else
- s.add_dependency(%q<actionpack>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<activesupport>, [">= 2.3.2"])
+ s.add_dependency(%q<rspec>, [">= 2.0.1"])
s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<rdoc>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 2.0.1"])
- s.add_dependency(%q<activesupport>, [">= 2.3.2"])
end
else
- s.add_dependency(%q<actionpack>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<activesupport>, [">= 2.3.2"])
+ s.add_dependency(%q<rspec>, [">= 2.0.1"])
s.add_dependency(%q<rake>, [">= 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
Please sign in to comment.
Something went wrong with that request. Please try again.