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.
- data/lib/rails_nav.rb +8 -6
- data/rails_nav.gemspec +1 -1
- metadata +2 -2
data/lib/rails_nav.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
##
|
7
7
|
#
|
8
8
|
def Nav.version()
|
9
|
-
'2.
|
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
|
253
|
-
@url = options
|
254
|
-
@pattern = options
|
255
|
-
@compute_active = options
|
256
|
-
@default = options
|
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
|
data/rails_nav.gemspec
CHANGED
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.
|
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-
|
12
|
+
date: 2012-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails_current
|