navigatrix 0.1.0 → 0.1.1
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 +8 -8
- data/README.md +1 -1
- data/lib/navigatrix/configuration.rb +1 -0
- data/lib/navigatrix/item.rb +1 -1
- data/lib/navigatrix/rendering/strategies/html_attributes.rb +1 -0
- data/lib/navigatrix/version.rb +1 -1
- data/spec/item_spec.rb +6 -0
- data/spec/support/list_rendering_strategy.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTc1NTM4NmRhODFlNmNjYzA1NjBjNDVkNTgzZTc5YTZmYWQ3MzA1MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmEwZmZhYTA4MWM0Njg3NzQzZjMyZGMxMWMyZThkY2EzNzY2OGJlYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDkwYWJhM2RmNTQyMmZkOGU4OTE2ZDRhMDAxYmUwODViNWViMjcyNjZiMWZi
|
10
|
+
NWU3YmYzZDMwODFkOThmMmM4YmNkYWYzODMzZDEyOGY5MGJhM2ZjNGQyMmUx
|
11
|
+
ODNkYzI2YTg5OTZhMTdlMDdkNzQ0MGU2NGMwMzExZDRjZmY1ODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWFkODc1MjYyODFmODNiODA5MjEyMWQ4ZmM5ODI3NjhmMzE3OTkzNzhjZjZl
|
14
|
+
YjcyYmNjOWFhM2NiZjQyODhiN2I1ZDM5MzVmMWQxMzI2ZGYzMmZmMmFiNDU3
|
15
|
+
ZmUzM2FiZjZiMDExNDVkODc5MWExZWYxNmJkZDU4MjM4MTRhNzM=
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
Navigation generation for Rails and Sinatra.
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
Add `gem "navigatrix"
|
8
|
+
Add `gem "navigatrix"` to your Gemfile and run `bundle install`.
|
9
9
|
|
10
10
|
### The Simplest Possible Navigation
|
11
11
|
```ERB
|
data/lib/navigatrix/item.rb
CHANGED
data/lib/navigatrix/version.rb
CHANGED
data/spec/item_spec.rb
CHANGED
@@ -138,6 +138,12 @@ module Navigatrix
|
|
138
138
|
item.should be_unlinked
|
139
139
|
end
|
140
140
|
|
141
|
+
it "ignores anchors on the item path" do
|
142
|
+
item = new_item({})
|
143
|
+
item.stub(:path => "/path_1#anchor")
|
144
|
+
item.should be_unlinked
|
145
|
+
end
|
146
|
+
|
141
147
|
it "is false when the current_path is not the same the item path" do
|
142
148
|
item = new_item({})
|
143
149
|
item.stub(:path => "/path_2")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: navigatrix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eddy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|