simple-navigation 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/gemfiles/rails-3-2-stable.gemfile +1 -0
- data/gemfiles/rails-4-1-stable.gemfile +1 -0
- data/gemfiles/rails-4-2-stable.gemfile +1 -1
- data/lib/simple_navigation/item.rb +1 -0
- data/lib/simple_navigation/version.rb +1 -1
- data/spec/simple_navigation/item_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 517a3078bcdee06d396acd50e301c2d595316ebb
|
4
|
+
data.tar.gz: b4da0b90ffa1a1996a6ce0ad5af542ae586f3936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a976b0a7c53937f03c25cad0fb84cc004a09e1d5f0f71a23e298cf5c03ed3ffb74600132c46d8eb78de5c1b4266f81f16f83e0b517278aa330cd2db7f64028fd
|
7
|
+
data.tar.gz: 7a2e60a09ae9126e6a97349e3fe6118744b316acf5d797bb7432ebed49f02b3d326048e788db962988d7dafb8f162d548388c41f25f56e2203d3d2f0f943e38d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[](https://codeclimate.com/github/codeplant/simple-navigation)
|
6
6
|
[](https://coveralls.io/r/codeplant/simple-navigation)
|
7
7
|
|
8
|
-
Simple Navigation is a ruby library for creating navigations (with multiple levels) for your Rails
|
8
|
+
Simple Navigation is a ruby library for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. It runs with all ruby versions (including ruby 2.x).
|
9
9
|
|
10
10
|
## Documentation
|
11
11
|
|
data/Rakefile
CHANGED
@@ -246,6 +246,14 @@ module SimpleNavigation
|
|
246
246
|
double(:config, auto_highlight: true, highlight_on_subpath: true, ignore_query_params_on_auto_highlight: true, ignore_anchors_on_auto_highlight: true)
|
247
247
|
end
|
248
248
|
|
249
|
+
context "but item has no url" do
|
250
|
+
let(:url) { nil }
|
251
|
+
|
252
|
+
it 'returns false' do
|
253
|
+
expect(item.selected?).to be false
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
249
257
|
context "and the current url is a sub path of the item's url" do
|
250
258
|
before do
|
251
259
|
allow(adapter).to \
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-navigation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andi Schacke
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-03-
|
13
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
257
|
version: '0'
|
258
258
|
requirements: []
|
259
259
|
rubyforge_project:
|
260
|
-
rubygems_version: 2.
|
260
|
+
rubygems_version: 2.2.2
|
261
261
|
signing_key:
|
262
262
|
specification_version: 4
|
263
263
|
summary: simple-navigation is a ruby library for creating navigations (with multiple
|