sinatra-tag-helpers 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sinatra/tag-helpers/version.rb +1 -1
- data/lib/sinatra/tag-helpers.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
|
+
OWZjNjNlMzZlYTZkZGRmMmFiNjRlMjkyNzg0NDk3NTBjZmVkZWM1Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmI1YTk5NzNjZTlhMGMwYmQzNjU0NDYzZGNjODE2NTZhYTQ5ZjVjMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Zjc3OTFiMWQ1NjAxNDNiNDY3MjBiNThkMGU2NGNlNzkwN2Q4NWMyMmYxODVm
|
10
|
+
YTVjNmE0MzNhNzE0Njk5NWJlYjc4Y2JiNDU4ZjRhZjBmNTNkN2MxYmUzY2E5
|
11
|
+
NWFiOGYyNTlhMDczYTM0ZmQ1M2MxMmVjODUyZTE0ODQ2OWJkODc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjhkMGZmNDkxYjMyMWMyYjYzMjQ3MzE1MmEyMWFiZTg0NzI2ZDVlMzI3OWUw
|
14
|
+
ODk4NjNiNzVkMDZiOGY0NzFjNDc0MGE2YzQ1YmJjNzBkZTFiMGE2YWUxYWQw
|
15
|
+
ZGVlODk1NGEwNmMyYWJmZDhlMmJlNmMwODMwMzU1NmRlYTlhODA=
|
data/lib/sinatra/tag-helpers.rb
CHANGED
@@ -39,7 +39,7 @@ module Sinatra
|
|
39
39
|
# <a href='/account/overview' class='current'>Overview</a>
|
40
40
|
#
|
41
41
|
def link_to(text, link, attributes = {})
|
42
|
-
if link == request.path_info
|
42
|
+
if URI.parse(link).path == request.path_info
|
43
43
|
attributes[:class] = "#{ attributes[:class] } current"
|
44
44
|
end
|
45
45
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-tag-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Lecklider
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|