rails_nav 2.5.3 → 2.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/rails_nav.rb +2 -2
  3. data/rails_nav.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjRlOTE0OTRjYTEzNjA1NjRhZDBkNmYwNTQ3NGMwZTQzNzNiMWMzYQ==
4
+ MGQ5NmI4NmZlNDUwMzc1MjIzNGUwNDkxMjhjMGE4MmFjNTU2ODIwMg==
5
5
  data.tar.gz: !binary |-
6
- YTQyNmU3MjY1ZWIxZmFlZjhmY2E4OWYyYWZjZGUyZDU4OGQyMjc3OA==
6
+ MTU1ODJhZGZiZWZkYmFmYzhjOWRhYWRjOWZlNTY2YTdhMGEyYWI0Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmQ5ODFiYzk0NTA1ZDE3YjEwYWRjZTQ2NzY3NzRiZTY2M2VhMGMzYzM2MGVl
10
- MzBiZTJmMWNhNjM1YWIyOTFlOWFmNzA2ODI3ZGNlYTc0NjMyYzFhNWRkMTEw
11
- NGFhODYzZjgxYjFmZWNjZGFjMzc4MzFmOWFkNmYxYWIyNTU2MGQ=
9
+ YTZjMzk1OTE5ZjkyMmRlNDYzZWNiZTg5NmY2NDhhYTg0NGRmYjQ1Y2JlYjQ3
10
+ M2MyZTlmMTZjMmZmYjE4ZDM4ZTNlOGU5MTg3MDEzY2FkNWRmYTRhZGFkYmIy
11
+ ODQ5YTdjZjlkYzQ4M2RhYWUxMWI4NjdjNmZjOTU5MzhlY2ZmM2Q=
12
12
  data.tar.gz: !binary |-
13
- MzViOGU2ZjkxOTQzNWFlYmQ4MjYzZmZhMTE1YWYxMDNkNWY4N2JjMzlmZjlm
14
- MDY1MmIzMmY1MWNlNDlhMmIwMWI5MjdmNjU4YTNhZDc1YmY2NjkyZGQxYWY1
15
- NTJhNjczMmM3Mzc1MjI4Y2Q0ZjY4ZWMxYWFiMjZmYWZlNWRhNTM=
13
+ MzI4Y2U5MWQyNGNiYjMyYzlkMDgxMTZjN2RmMTBmZTIyNzI4MDkyYjRjMzVh
14
+ MmViYjQ5YzFiODE4MmU3MTk2OTdhMDg2MTdhYzI2YjhjOTYwZGRlYTIwMmQw
15
+ MGRhNzI2MjMxMzdmZmU3YjNiZTgzNDAyNzU5NGVjYThkOGYxZGI=
data/lib/rails_nav.rb CHANGED
@@ -7,7 +7,7 @@
7
7
  ##
8
8
  #
9
9
  def Nav.version()
10
- '2.5.3'
10
+ '2.5.4'
11
11
  end
12
12
 
13
13
  def Nav.dependencies
@@ -272,7 +272,7 @@
272
272
  end
273
273
 
274
274
  def compute_active!
275
- @active = @nav.evaluate(@compute_active, link = self)
275
+ @active = (@compute_active.respond_to?(:call) ? @nav.evaluate(@compute_active, link = self) : !!@compute_active)
276
276
  ensure
277
277
  @already_computed_active = true
278
278
  end
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.5.3"
6
+ spec.version = "2.5.4"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_nav"
9
9
  spec.description = "declarative navigation for rails applications"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.3
4
+ version: 2.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-22 00:00:00.000000000 Z
11
+ date: 2014-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails_current