conjoin 0.0.18 → 0.0.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cc0d0a83c0d27db16e3f86a206e475be6ca121a
4
- data.tar.gz: 8b07d5de0b60e050dc50a6cc309dc3a833f9bbe4
3
+ metadata.gz: fdddf77340beb4f24a208132eaa58cdafae4c6f6
4
+ data.tar.gz: 52b6fa8267f22c02ac5c01fb513612feb9af8789
5
5
  SHA512:
6
- metadata.gz: 4366ee9f8bdc0996862e7a2a85c14cd548a7ebe2323a62f23d5f8bc80b977bfa282e437492bcdb40484372c63f06b4896f9588f6552622639ab62ccfdd8f8182
7
- data.tar.gz: 89fd0081fed32841af612c46c539cae374ffc0706075c4428014557d645a09136322de7e5e9a1a0be93e8e76712155e720727ee41fe2f33bec32cb9f199975f4
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['REQUEST_PATH'][link.path]
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
 
@@ -1,3 +1,3 @@
1
1
  module Conjoin
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
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.18
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-22 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba