rails_nav 2.0.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rails_nav.rb +8 -6
  2. data/rails_nav.gemspec +1 -1
  3. metadata +2 -2
@@ -6,7 +6,7 @@
6
6
  ##
7
7
  #
8
8
  def Nav.version()
9
- '2.0.0'
9
+ '2.2.0'
10
10
  end
11
11
 
12
12
  def Nav.dependencies
@@ -249,11 +249,13 @@
249
249
  {}
250
250
  end
251
251
 
252
- @content = options[:content] || args.shift || 'Slash'
253
- @url = options[:url] || args.shift || {}
254
- @pattern = options[:pattern] || args.shift || Link.default_active_pattern_for(@content)
255
- @compute_active = options[:active] || block || Link.default_active_block_for(@pattern)
256
- @default = options[:default]
252
+ @content = options.delete(:content) || args.shift || 'Slash'
253
+ @url = options.delete(:url) || args.shift || {}
254
+ @pattern = options.delete(:pattern) || args.shift || Link.default_active_pattern_for(@content)
255
+ @compute_active = options.delete(:active) || block || Link.default_active_block_for(@pattern)
256
+ @default = options.delete(:default)
257
+
258
+ @options = options
257
259
 
258
260
  @slug = Slug.for(@content, :join => '-')
259
261
  @already_computed_active = nil
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_nav"
6
- spec.version = "2.0.0"
6
+ spec.version = "2.2.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_nav"
9
9
  spec.description = "description: rails_nav kicks the ass"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-22 00:00:00.000000000 Z
12
+ date: 2012-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails_current