tabulous 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.0.2 (April 19, 2011)
2
+ * Fixed bug where the tabs generator would crash if there were index routes that were not named.
3
+
1
4
  == 1.0.1 (March 9, 2011)
2
5
  * No longer requires Rubygems version > 1.4.0; requires > 1.3.7 instead.
3
6
 
@@ -66,9 +66,14 @@ Tabulous.setup do |config|
66
66
  <% index_routes = Rails.application.routes.routes.select{|r| r.requirements[:action] == 'index'}
67
67
  tab_data = index_routes.map do |route|
68
68
  name = route.requirements[:controller].gsub('/', '_')
69
+ if route.name.nil?
70
+ path = "url_for(:controller => '#{route.requirements[:controller]}', :action => 'index')"
71
+ else
72
+ path = route.name + '_path'
73
+ end
69
74
  { :text => name.titleize,
70
75
  :name => name,
71
- :path_helper => route.name + '_path' }
76
+ :path_helper => path }
72
77
  end
73
78
  -%>
74
79
  <%= s = []
@@ -1,3 +1,3 @@
1
1
  module Tabulous
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabulous
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wyatt Greene
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-09 00:00:00 -05:00
18
+ date: 2011-04-19 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -458,7 +458,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
458
458
  requirements: []
459
459
 
460
460
  rubyforge_project: tabulous
461
- rubygems_version: 1.3.7
461
+ rubygems_version: 1.6.2
462
462
  signing_key:
463
463
  specification_version: 3
464
464
  summary: Easy tabbed navigation for Rails.