tabulous 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/README.rdoc +1 -1
- data/lib/generators/tabs/templates/tabulous.rb +4 -0
- data/lib/tabulous/options.rb +3 -0
- data/lib/tabulous/tabulous.rb +10 -2
- data/lib/tabulous/version.rb +1 -1
- data/tabulous.gemspec +1 -1
- metadata +126 -89
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -6,7 +6,7 @@ Tabulous provides an easy way to add tabs to your Rails application.
|
|
6
6
|
|
7
7
|
== Requirements
|
8
8
|
|
9
|
-
Tabulous works with Rails 3.0, 3.1 and 3.2. It has been tested on Ruby 1.8.7 and 1.9.
|
9
|
+
Tabulous works with Rails 3.0, 3.1 and 3.2. It has been tested on Ruby 1.8.7, 1.9.2 and 1.9.3.
|
10
10
|
|
11
11
|
== Usage
|
12
12
|
|
@@ -153,6 +153,10 @@ Tabulous.setup do |config|
|
|
153
153
|
# Bootstrap.
|
154
154
|
# config.tabs_ul_class = "nav nav-pills"
|
155
155
|
|
156
|
+
# This gives you control over what class the <ul> element that wraps the subtabs
|
157
|
+
# will have. Good for interfacing with third-party code.
|
158
|
+
# config.subtabs_ul_class = "nav"
|
159
|
+
|
156
160
|
# Set this to true to have subtabs rendered in markup that Twitter Bootstrap
|
157
161
|
# understands. If this is set to true, you don't need to call subtabs in
|
158
162
|
# your layout, just tabs.
|
data/lib/tabulous/options.rb
CHANGED
data/lib/tabulous/tabulous.rb
CHANGED
@@ -63,7 +63,11 @@ module Tabulous
|
|
63
63
|
tab = active_tab(view)
|
64
64
|
html = ''
|
65
65
|
html << (@@html5 ? '<nav id="subtabs">' : '<div id="subtabs">')
|
66
|
-
|
66
|
+
if @@subtabs_ul_class
|
67
|
+
html << %Q{<ul class="#{@@subtabs_ul_class}">}
|
68
|
+
else
|
69
|
+
html << '<ul>'
|
70
|
+
end
|
67
71
|
if tab.nil?
|
68
72
|
subtabs = []
|
69
73
|
else
|
@@ -110,7 +114,11 @@ module Tabulous
|
|
110
114
|
html << %Q{ href="#">}
|
111
115
|
html << %Q{#{options[:text]}<b class="caret"></b></a>}
|
112
116
|
end
|
113
|
-
|
117
|
+
if @@subtabs_ul_class
|
118
|
+
html << %Q{<ul class="dropdown-menu #{@@subtabs_ul_class}">}
|
119
|
+
else
|
120
|
+
html << '<ul class="dropdown-menu">'
|
121
|
+
end
|
114
122
|
for subtab in options[:subtabs]
|
115
123
|
if subtab.enabled?(view)
|
116
124
|
html << '<li class="enabled">'
|
data/lib/tabulous/version.rb
CHANGED
data/tabulous.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_dependency "colored", "~> 1.2.0"
|
18
18
|
s.add_dependency "rails", "~> 3.0"
|
19
|
-
s.add_development_dependency "bundler", "~> 1.
|
19
|
+
s.add_development_dependency "bundler", "~> 1.1.1"
|
20
20
|
s.add_development_dependency "capybara", "~> 1.1.2"
|
21
21
|
s.add_development_dependency "rake", "=0.8.7"
|
22
22
|
if RUBY_VERSION < "1.9"
|
metadata
CHANGED
@@ -1,126 +1,167 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulous
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.0
|
4
5
|
prerelease:
|
5
|
-
version: 1.2.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Wyatt Greene
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-03-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: colored
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.2.0
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rails
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.2.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
30
33
|
none: false
|
31
|
-
requirements:
|
34
|
+
requirements:
|
32
35
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.0'
|
35
38
|
type: :runtime
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: bundler
|
39
39
|
prerelease: false
|
40
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bundler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
41
49
|
none: false
|
42
|
-
requirements:
|
50
|
+
requirements:
|
43
51
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.1.1
|
46
54
|
type: :development
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: capybara
|
50
55
|
prerelease: false
|
51
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
57
|
none: false
|
53
|
-
requirements:
|
58
|
+
requirements:
|
54
59
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.1.1
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: capybara
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
56
69
|
version: 1.1.2
|
57
70
|
type: :development
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: rake
|
61
71
|
prerelease: false
|
62
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.1.2
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rake
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
63
81
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
82
|
+
requirements:
|
83
|
+
- - '='
|
84
|
+
- !ruby/object:Gem::Version
|
67
85
|
version: 0.8.7
|
68
86
|
type: :development
|
69
|
-
version_requirements: *id005
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: launchy
|
72
87
|
prerelease: false
|
73
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
89
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
90
|
+
requirements:
|
91
|
+
- - '='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.8.7
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: launchy
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
79
102
|
type: :development
|
80
|
-
version_requirements: *id006
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: diffy
|
83
103
|
prerelease: false
|
84
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
105
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version:
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: diffy
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
90
118
|
type: :development
|
91
|
-
version_requirements: *id007
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: sqlite3-ruby
|
94
119
|
prerelease: false
|
95
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sqlite3-ruby
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
96
129
|
none: false
|
97
|
-
requirements:
|
130
|
+
requirements:
|
98
131
|
- - ~>
|
99
|
-
- !ruby/object:Gem::Version
|
132
|
+
- !ruby/object:Gem::Version
|
100
133
|
version: 1.3.3
|
101
134
|
type: :development
|
102
|
-
version_requirements: *id008
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: sqlite3
|
105
135
|
prerelease: false
|
106
|
-
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
137
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.3.3
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: sqlite3
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - '='
|
148
|
+
- !ruby/object:Gem::Version
|
111
149
|
version: 1.3.4
|
112
150
|
type: :development
|
113
|
-
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - '='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 1.3.4
|
114
158
|
description: Tabulous provides an easy way to add tabs to your Rails application.
|
115
|
-
email:
|
159
|
+
email:
|
116
160
|
- techiferous@gmail.com
|
117
161
|
executables: []
|
118
|
-
|
119
162
|
extensions: []
|
120
|
-
|
121
163
|
extra_rdoc_files: []
|
122
|
-
|
123
|
-
files:
|
164
|
+
files:
|
124
165
|
- .gitignore
|
125
166
|
- CHANGELOG.rdoc
|
126
167
|
- Gemfile
|
@@ -704,30 +745,26 @@ files:
|
|
704
745
|
- test/units/tabulous_formatter_test.rb
|
705
746
|
homepage: https://github.com/techiferous/tabulous
|
706
747
|
licenses: []
|
707
|
-
|
708
748
|
post_install_message:
|
709
749
|
rdoc_options: []
|
710
|
-
|
711
|
-
require_paths:
|
750
|
+
require_paths:
|
712
751
|
- lib
|
713
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
752
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
714
753
|
none: false
|
715
|
-
requirements:
|
716
|
-
- -
|
717
|
-
- !ruby/object:Gem::Version
|
718
|
-
version:
|
719
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
754
|
+
requirements:
|
755
|
+
- - ! '>='
|
756
|
+
- !ruby/object:Gem::Version
|
757
|
+
version: '0'
|
758
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
720
759
|
none: false
|
721
|
-
requirements:
|
722
|
-
- -
|
723
|
-
- !ruby/object:Gem::Version
|
760
|
+
requirements:
|
761
|
+
- - ! '>='
|
762
|
+
- !ruby/object:Gem::Version
|
724
763
|
version: 1.3.7
|
725
764
|
requirements: []
|
726
|
-
|
727
765
|
rubyforge_project: tabulous
|
728
|
-
rubygems_version: 1.8.
|
766
|
+
rubygems_version: 1.8.19
|
729
767
|
signing_key:
|
730
768
|
specification_version: 3
|
731
769
|
summary: Easy tabbed navigation for Rails.
|
732
770
|
test_files: []
|
733
|
-
|