rails-theme-helper 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 +4 -4
- data/app/helpers/rails_theme/layout_helper.rb +1 -1
- data/lib/rails-theme-helper/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f12f6ea880129fb00c40433fa950f8f046197f4b
|
4
|
+
data.tar.gz: 3eece4189ca77ee4d878249deec52026f7f54a98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aff60216bb8e05fdf29a4cd67683303a934f6348e0e71d2543355a896eadda0049e737dd3e4c8b4701815db2322bbb4d6dfb6419b505351bb4d2ab37278b6dd4
|
7
|
+
data.tar.gz: 1cec0d8df8caae5f1c873d5aeaadb2b7ac20231967dc0b80a2c29e8587c29fc7cc385efc2aa83de9f968cdb2c248f258327b9a05adb88679ab8059e4c7b8697c
|
@@ -17,7 +17,7 @@ module RailsTheme
|
|
17
17
|
item_class << 'first' if index == 0
|
18
18
|
item_class << 'last' if index == (list.length - 1)
|
19
19
|
link = item_content.match(/href=(["'])(.*?)(\1)/)[2] rescue nil
|
20
|
-
item_class << 'current active' if link and current_page?(link)
|
20
|
+
item_class << 'current active' if link and (current_page?(link) rescue false)
|
21
21
|
item_class << item_options.delete(:class) if item_options[:class]
|
22
22
|
|
23
23
|
li_class = item_class.empty? ? nil : item_class.join(' ')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-theme-helper
|
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
|
- Tse-Ching Ho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -104,8 +104,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.0.
|
107
|
+
rubygems_version: 2.0.6
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: helps you build themes for rails
|
111
111
|
test_files: []
|
112
|
+
has_rdoc:
|