conjoin 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjoin/nav.rb +3 -1
- data/lib/conjoin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdddf77340beb4f24a208132eaa58cdafae4c6f6
|
4
|
+
data.tar.gz: 52b6fa8267f22c02ac5c01fb513612feb9af8789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f932eeeb17c07991e7ebd77cbdd8091156e2d6c032c28e362a33fcc33a43920be25f361c5c6eab572c4b08c78970a4e7dc230eea41e09dfdb1d8cb9a2f46d5
|
7
|
+
data.tar.gz: e64485dbd7400d924e84182196d44546a3810f56f5ecd792ab321364005bfc552f9d829a0fd23dd64b26e9d630c80d704749262ffffb11e9d03027673c897ab7
|
data/lib/conjoin/nav.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'uri'
|
2
|
+
|
1
3
|
module Conjoin
|
2
4
|
module Nav
|
3
5
|
def self.setup app
|
@@ -49,7 +51,7 @@ module Conjoin
|
|
49
51
|
|
50
52
|
if !link.if or app.instance_exec(&link.if)
|
51
53
|
link.icon = config.icon_class + '-' + link.icon if link.icon
|
52
|
-
link.active = app.req.env['
|
54
|
+
link.active = URI.decode(app.req.env['REQUEST_URI'])[link.path]
|
53
55
|
link.active_class = link.active ? config.active_class : false
|
54
56
|
link.id = "nav-#{link.text.underscore}"
|
55
57
|
|
data/lib/conjoin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|