rails_nav 2.2.0 → 2.3.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 +9 -1
  2. data/rails_nav.gemspec +1 -1
  3. metadata +1 -1
data/lib/rails_nav.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  ##
7
7
  #
8
8
  def Nav.version()
9
- '2.2.0'
9
+ '2.3.0'
10
10
  end
11
11
 
12
12
  def Nav.dependencies
@@ -302,6 +302,14 @@
302
302
  super
303
303
  end
304
304
 
305
+ def last?
306
+ nav.last == self
307
+ end
308
+
309
+ def first?
310
+ nav.first == self
311
+ end
312
+
305
313
  def Link.default_active_pattern_for(content)
306
314
  path_info = Slug.for(content, :join => '_')
307
315
  %r/\b#{ path_info }\b/i
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.2.0"
6
+ spec.version = "2.3.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.2.0
4
+ version: 2.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: