simpler_navigation 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6f6f19aa6714540a0ac3161f958b90d8fa963a3ec9113828be5e764b3b2d3e6
4
- data.tar.gz: 9af30ae6fcc8dc3f5c98d31abc99b77e7cfccaf5a2b58b05d8faca641248ed39
3
+ metadata.gz: 626e64edbed0821098ffb7e9f41ea482af4c902d6cfd1390d57c307906aaced8
4
+ data.tar.gz: 4c3ee2f62d975d7cc1c4d6c1de00650479e2acf0bad15f492b92f19e5f2e66df
5
5
  SHA512:
6
- metadata.gz: 073f6c31cc9cf79eead24605f666a9ef26cc8e8a843eec6c39deaa2dc88b3af66c038940cd2a6965250849a2da8697bf7fdb24560bf122afbc83b918a7d3f381
7
- data.tar.gz: 19f11f240651c770338b8e1fde1a3ef5da11b0923256761b1512c99b3fb87dace237950679bbec056e406a9fe1223a6a618113a3dcb85475d027f5fa45847911
6
+ metadata.gz: bd5187bbfa35c31aff30a0440b4f61edc3fe579cd98e791baacfada451802ed412eb781f063e8582e74686fe24155cd6dae1a59706c1361c3af6cec8244ca84c
7
+ data.tar.gz: 158cdb352ec4541741babcc8684106115a5915a33693af17dcf8670e65ad096adcec4f98fe329183e536cc32c97413f48c3398652c1edce997acaa8fc3496e1f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simpler_navigation (0.1.2)
4
+ simpler_navigation (0.1.3)
5
5
  actionview
6
6
  railties
7
7
 
@@ -147,23 +147,9 @@ module SimplerNavigation
147
147
 
148
148
  show = true
149
149
  if !item.options[:if].nil?
150
- show = case item.options[:if]
151
- when false
152
- false
153
- when true
154
- true
155
- else
156
- item.options[:if].call
157
- end
150
+ show = item.options[:if].call
158
151
  elsif !item.options[:unless].nil?
159
- show = case item.options[:unless]
160
- when false
161
- true
162
- when true
163
- false
164
- else
165
- !item.options[:unless].call
166
- end
152
+ show = !item.options[:unless].call
167
153
  end
168
154
 
169
155
  @show[item] = show
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimplerNavigation
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpler_navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Muerdter