rails_nav 2.4.0 → 2.5.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 +7 -2
  2. data/rails_nav.gemspec +3 -1
  3. metadata +18 -3
data/lib/rails_nav.rb CHANGED
@@ -1,18 +1,20 @@
1
1
  # encoding: utf-8
2
2
  #
3
3
  require 'erb'
4
+ require 'map'
4
5
 
5
6
  class Nav < ::Array
6
7
  ##
7
8
  #
8
9
  def Nav.version()
9
- '2.4.0'
10
+ '2.5.0'
10
11
  end
11
12
 
12
13
  def Nav.dependencies
13
14
  {
14
15
  'rails_current' => [ 'rails_current' , ' >= 1.6' ],
15
- 'rails_helper' => [ 'rails_helper' , ' >= 1.2' ]
16
+ 'rails_helper' => [ 'rails_helper' , ' >= 1.2' ],
17
+ 'map' => [ 'map' , ' >= 6.5' ],
16
18
  }
17
19
  end
18
20
 
@@ -238,6 +240,7 @@
238
240
  attr_accessor(:default)
239
241
  attr_accessor(:weight)
240
242
  attr_accessor(:slug)
243
+ attr_accessor(:config)
241
244
 
242
245
  def initialize(nav, *args, &block)
243
246
  @nav = nav
@@ -260,6 +263,8 @@
260
263
  @slug = Slug.for(@content, :join => '-')
261
264
  @already_computed_active = nil
262
265
  @active = nil
266
+
267
+ @config = Map.new
263
268
  end
264
269
 
265
270
  def compute_active!
data/rails_nav.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_nav"
6
- spec.version = "2.4.0"
6
+ spec.version = "2.5.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_nav"
9
9
  spec.description = "description: rails_nav kicks the ass"
@@ -22,6 +22,8 @@ Gem::Specification::new do |spec|
22
22
 
23
23
  spec.add_dependency(*["rails_helper", " >= 1.2"])
24
24
 
25
+ spec.add_dependency(*["map", " >= 6.5"])
26
+
25
27
 
26
28
  spec.extensions.push(*[])
27
29
 
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.0
4
+ version: 2.5.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: 2013-04-12 00:00:00.000000000 Z
12
+ date: 2013-06-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails_current
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.2'
46
+ - !ruby/object:Gem::Dependency
47
+ name: map
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '6.5'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '6.5'
46
62
  description: ! 'description: rails_nav kicks the ass'
47
63
  email: ara.t.howard@gmail.com
48
64
  executables: []
@@ -78,4 +94,3 @@ signing_key:
78
94
  specification_version: 3
79
95
  summary: rails_nav
80
96
  test_files: []
81
- has_rdoc: