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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcb2fdf9664c85d68f235a08ca9f18b850742677
4
- data.tar.gz: 38f57caf4709886f32522f40657c4c784ab282e3
3
+ metadata.gz: f12f6ea880129fb00c40433fa950f8f046197f4b
4
+ data.tar.gz: 3eece4189ca77ee4d878249deec52026f7f54a98
5
5
  SHA512:
6
- metadata.gz: cc3ead232c6e715d932b8a4a22afaa3f82c68cf2d40b1bdd8301ea92179998858e537313edf98df78fc29f331699ed3d06ec3d4f09668872c92633da84ff5165
7
- data.tar.gz: c1e82dc1f7c664d1a9c43319ce4ef27de74d8923a08ea23b8f17d11d1d14a3b731a5d2a06bfcaf94f62325c2ed7ea1ddde725c8e515aaa00c01d9fce181110f8
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(' ')
@@ -1,3 +1,3 @@
1
1
  module RailsThemeHelper
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
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
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-05-13 00:00:00.000000000 Z
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.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: