rails-bootstrap-helpers 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/README.md +336 -14
  2. data/lib/rails-bootstrap-helpers.rb +14 -3
  3. data/lib/rails-bootstrap-helpers/helpers/accordion_helper.rb +8 -0
  4. data/lib/rails-bootstrap-helpers/helpers/alert_helper.rb +24 -14
  5. data/lib/rails-bootstrap-helpers/helpers/base_helper.rb +25 -13
  6. data/lib/rails-bootstrap-helpers/helpers/button_helper.rb +85 -13
  7. data/lib/rails-bootstrap-helpers/helpers/form_tag_helper.rb +42 -10
  8. data/lib/rails-bootstrap-helpers/helpers/navigation_helper.rb +17 -0
  9. data/lib/rails-bootstrap-helpers/helpers/options_helper.rb +24 -3
  10. data/lib/rails-bootstrap-helpers/helpers/tag_helper.rb +26 -0
  11. data/lib/rails-bootstrap-helpers/helpers/url_helper.rb +17 -0
  12. data/lib/rails-bootstrap-helpers/rails/engine.rb +4 -2
  13. data/lib/rails-bootstrap-helpers/renderers/{abstract_button_renderer.rb → abstract_link_renderer.rb} +23 -7
  14. data/lib/rails-bootstrap-helpers/renderers/accordion_renderer.rb +94 -0
  15. data/lib/rails-bootstrap-helpers/renderers/action_link_renderer.rb +19 -0
  16. data/lib/rails-bootstrap-helpers/renderers/button_renderer.rb +6 -4
  17. data/lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb +67 -0
  18. data/lib/rails-bootstrap-helpers/renderers/dropdown_button_renderer.rb +87 -0
  19. data/lib/rails-bootstrap-helpers/renderers/iconic_icon_renderer.rb +75 -0
  20. data/lib/rails-bootstrap-helpers/renderers/row_link_renderer.rb +12 -0
  21. data/lib/rails-bootstrap-helpers/renderers/tabbable_renderer.rb +186 -0
  22. data/lib/rails-bootstrap-helpers/version.rb +1 -1
  23. data/spec/dummy/log/test.log +296 -0
  24. data/spec/helpers/accordion_helper_spec.rb +35 -0
  25. data/spec/helpers/alert_helper_spec.rb +11 -7
  26. data/spec/helpers/base_helper_spec.rb +44 -0
  27. data/spec/helpers/button_helper_spec.rb +214 -9
  28. data/spec/helpers/form_tag_helper_spec.rb +27 -0
  29. data/spec/helpers/navigation_helper_spec.rb +228 -0
  30. data/spec/helpers/options_helper_spec.rb +50 -0
  31. data/spec/helpers/tag_helper_spec.rb +26 -0
  32. data/spec/helpers/url_helper_spec.rb +33 -0
  33. data/spec/spec_helper.rb +2 -0
  34. data/spec/support/html.rb +9 -0
  35. data/spec/support/matchers/helpers/alert_helper/render_bs_alert.rb +19 -10
  36. data/spec/support/matchers/helpers/base_helper/render_icon.rb +18 -1
  37. data/spec/support/matchers/helpers/base_helper/render_iconic_icon.rb +191 -0
  38. data/spec/support/matchers/helpers/button_helper/render_bs_button_to.rb +44 -3
  39. data/spec/support/matchers/helpers/button_helper/render_inline_button_to.rb +1 -1
  40. data/spec/support/matchers/helpers/form_tag_helper/render_bs_button_tag.rb +39 -1
  41. data/spec/support/matchers/helpers/form_tag_helper/render_bs_submit_tag.rb +96 -0
  42. data/spec/support/matchers/helpers/url_helper/render_action_link_to.rb +123 -0
  43. data/spec/support/matchers/helpers/url_helper/render_row_link_to.rb +97 -0
  44. metadata +59 -8
  45. checksums.yaml +0 -15
@@ -4,7 +4,7 @@ RSpec::Matchers.define :render_inline_button_to do |url, icon|
4
4
  end
5
5
 
6
6
  def cls
7
- @cls ||= "btn btn-#{options[:size]}"
7
+ @cls ||= "inline btn btn-#{options[:size]}"
8
8
  end
9
9
 
10
10
  def text_with_icon
@@ -35,8 +35,28 @@ RSpec::Matchers.define :render_bs_button_tag do |text, type|
35
35
  end
36
36
  end
37
37
 
38
+ def html_attributes
39
+ attrs = { class: cls }
40
+
41
+ if tooltip?
42
+ if tooltip_position?
43
+ attrs[:"data-placement"] = options[:tooltip_position]
44
+ end
45
+
46
+ attrs[:"data-toggle"] = "tooltip"
47
+ end
48
+
49
+ attrs[:name] = "button"
50
+
51
+ if tooltip?
52
+ attrs[:title] = options[:tooltip]
53
+ end
54
+
55
+ attrs.map { |k, v| "#{k}=\"#{v}\"" }.join(" ")
56
+ end
57
+
38
58
  def expected
39
- @render_button_expected ||= "<button class=\"#{cls}\" name=\"button\" type=\"#{type}\">#{text_with_icon}</button>"
59
+ @render_button_expected ||= "<button #{html_attributes} type=\"#{type}\">#{text_with_icon}</button>"
40
60
  end
41
61
 
42
62
  def got
@@ -76,6 +96,14 @@ RSpec::Matchers.define :render_bs_button_tag do |text, type|
76
96
  @icon_position_set
77
97
  end
78
98
 
99
+ def tooltip?
100
+ options.key?(:tooltip)
101
+ end
102
+
103
+ def tooltip_position?
104
+ options.key?(:tooltip_position)
105
+ end
106
+
79
107
  chain :to do |url|
80
108
  @url = url
81
109
  end
@@ -105,6 +133,14 @@ RSpec::Matchers.define :render_bs_button_tag do |text, type|
105
133
  @icon_position_Set = true
106
134
  end
107
135
 
136
+ chain :with_tooltip do |tooltip|
137
+ options[:tooltip] = tooltip
138
+ end
139
+
140
+ chain :with_tooltip_position do |tooltip_position|
141
+ options[:tooltip_position] = tooltip_position
142
+ end
143
+
108
144
  match do
109
145
  @text = text
110
146
  @type = type
@@ -129,6 +165,8 @@ RSpec::Matchers.define :render_bs_button_tag do |text, type|
129
165
 
130
166
  descs << "with the #{ext}icon: #{options[:icon]}" if icon?
131
167
  descs << "with the icon_position: #{options[:icon_position]}" if icon_position?
168
+ descs << "with the '#{options[:tooltip]}' tooltip" if tooltip?
169
+ descs << "with the '#{options[:tooltip_position]}' tooltip position" if tooltip_position?
132
170
 
133
171
  desc << " " if descs.any?
134
172
  desc << descs.to_sentence(two_words_connector: " and ", last_word_connector: " and ")
@@ -0,0 +1,96 @@
1
+ RSpec::Matchers.define :render_bs_submit_tag do |text, type|
2
+ def options
3
+ @options ||= { }
4
+ end
5
+
6
+ def append_style (style)
7
+ " btn-#{style}"
8
+ end
9
+
10
+ def cls
11
+ @cls ||= begin
12
+ cls = "btn"
13
+ cls << " btn-#{options[:style]}" if style?
14
+ cls << " btn-#{options[:size]}" if size?
15
+ cls
16
+ end
17
+ end
18
+
19
+ def text_with_icon
20
+ if icon?
21
+ cls = "icon-#{options[:icon]}"
22
+ cls << " icon-white" if inverted?
23
+ icon = "<i class=\"#{cls}\"></i>"
24
+ default = icon + " " + text
25
+
26
+ if icon_position?
27
+ if options[:icon_position].to_s == "right"
28
+ return text + " " + icon
29
+ end
30
+ end
31
+
32
+ default
33
+ else
34
+ text
35
+ end
36
+ end
37
+
38
+ def expected
39
+ @render_button_expected ||= "<input class=\"#{cls}\" name=\"commit\" type=\"submit\" value=\"#{text}\" />"
40
+ end
41
+
42
+ def got
43
+ @got ||= helper.bs_submit_tag(text, options)
44
+ end
45
+
46
+ def failure_message (is_not)
47
+ ex = is_not ? "expected not" : "expected"
48
+ "#{ex}: #{expected}\n got: #{got}"
49
+ end
50
+
51
+ def text
52
+ @text
53
+ end
54
+
55
+ def style?
56
+ @style_set
57
+ end
58
+
59
+ def size?
60
+ @size_set
61
+ end
62
+
63
+ chain :with_style do |style|
64
+ options[:style] = style
65
+ @style_set = true
66
+ end
67
+
68
+ chain :with_size do |size|
69
+ options[:size] = size
70
+ @size_set = true
71
+ end
72
+
73
+ match do
74
+ @text = text
75
+ @type = type
76
+ expected == got
77
+ end
78
+
79
+ failure_message_for_should do
80
+ failure_message(false)
81
+ end
82
+
83
+ failure_message_for_should_not do
84
+ failure_message(true)
85
+ end
86
+
87
+ description do
88
+ desc = "render a button with type '#{type}'"
89
+ descs = []
90
+ descs << "with the style: #{options[:style]}" if style?
91
+ descs << "with the size: #{options[:size]}" if size?
92
+
93
+ desc << " " if descs.any?
94
+ desc << descs.to_sentence(two_words_connector: " and ", last_word_connector: " and ")
95
+ end
96
+ end
@@ -0,0 +1,123 @@
1
+ RSpec::Matchers.define :render_action_link_to do |text|
2
+ def options
3
+ @options ||= { }
4
+ end
5
+
6
+ def append_style (style)
7
+ " act-#{style}"
8
+ end
9
+
10
+ def cls
11
+ @cls ||= begin
12
+ cls = extra_class.present? ? "#{extra_class} act" : "act"
13
+
14
+ if style?
15
+ style = options[:style]
16
+
17
+ unless style.to_s == "default"
18
+ cls << " act-#{options[:style]}"
19
+ end
20
+ end
21
+
22
+ cls
23
+ end
24
+ end
25
+
26
+ def html_attributes
27
+ attrs = { href: url, class: cls }
28
+
29
+ if tooltip?
30
+ if tooltip_position?
31
+ attrs[:"data-placement"] = options[:tooltip_position]
32
+ end
33
+
34
+ attrs[:"data-toggle"] = "tooltip"
35
+ attrs[:title] = options[:tooltip]
36
+ end
37
+
38
+ attrs.map { |k, v| "#{k}=\"#{v}\"" }.join(" ")
39
+ end
40
+
41
+ def expected
42
+ @render_button_expected ||= "<a #{html_attributes}>#{text}</a>"
43
+ end
44
+
45
+ def got
46
+ @got ||= helper.action_link_to(text, url, options)
47
+ end
48
+
49
+ def failure_message (is_not)
50
+ ex = is_not ? "expected not" : "expected"
51
+ "#{ex}: #{expected}\n got: #{got}"
52
+ end
53
+
54
+ def text
55
+ @text
56
+ end
57
+
58
+ def url
59
+ @url || "default_url"
60
+ end
61
+
62
+ def style?
63
+ @style_set
64
+ end
65
+
66
+ def tooltip?
67
+ options.key?(:tooltip)
68
+ end
69
+
70
+ def tooltip_position?
71
+ options.key?(:tooltip_position)
72
+ end
73
+
74
+ def extra_class
75
+ options[:class]
76
+ end
77
+
78
+ chain :to do |url|
79
+ @url = url
80
+ end
81
+
82
+ chain :with_style do |style|
83
+ options[:style] = style
84
+ @style_set = true
85
+ end
86
+
87
+ chain :with_class do |cls|
88
+ options[:class] = cls
89
+ end
90
+
91
+ chain :with_tooltip do |tooltip|
92
+ options[:tooltip] = tooltip
93
+ end
94
+
95
+ chain :with_tooltip_position do |tooltip_position|
96
+ options[:tooltip_position] = tooltip_position
97
+ end
98
+
99
+ match do
100
+ @text = text
101
+ expected == got
102
+ end
103
+
104
+ failure_message_for_should do
105
+ failure_message(false)
106
+ end
107
+
108
+ failure_message_for_should_not do
109
+ failure_message(true)
110
+ end
111
+
112
+ description do
113
+ desc = "render a action link to '#{url}'"
114
+ descs = []
115
+ descs << "with the style: #{options[:style]}" if style?
116
+
117
+ descs << "with the '#{options[:tooltip]}' tooltip" if tooltip?
118
+ descs << "with the '#{options[:tooltip_position]}' tooltip position" if tooltip_position?
119
+
120
+ desc << " " if descs.any?
121
+ desc << descs.to_sentence
122
+ end
123
+ end
@@ -0,0 +1,97 @@
1
+ RSpec::Matchers.define :render_row_link_to do |text|
2
+ def options
3
+ @options ||= { }
4
+ end
5
+
6
+ def cls
7
+ @cls ||= extra_class.present? ? "#{extra_class} rowlink" : "rowlink"
8
+ end
9
+
10
+ def html_attributes
11
+ attrs = { href: url, class: cls }
12
+
13
+ if tooltip?
14
+ if tooltip_position?
15
+ attrs[:"data-placement"] = options[:tooltip_position]
16
+ end
17
+
18
+ attrs[:"data-toggle"] = "tooltip"
19
+ attrs[:title] = options[:tooltip]
20
+ end
21
+
22
+ attrs.map { |k, v| "#{k}=\"#{v}\"" }.join(" ")
23
+ end
24
+
25
+ def expected
26
+ @render_button_expected ||= "<a #{html_attributes}>#{text}</a>"
27
+ end
28
+
29
+ def got
30
+ @got ||= helper.row_link_to(text, url, options)
31
+ end
32
+
33
+ def failure_message (is_not)
34
+ ex = is_not ? "expected not" : "expected"
35
+ "#{ex}: #{expected}\n got: #{got}"
36
+ end
37
+
38
+ def text
39
+ @text
40
+ end
41
+
42
+ def url
43
+ @url || "default_url"
44
+ end
45
+
46
+ def tooltip?
47
+ options.key?(:tooltip)
48
+ end
49
+
50
+ def tooltip_position?
51
+ options.key?(:tooltip_position)
52
+ end
53
+
54
+ def extra_class
55
+ options[:class]
56
+ end
57
+
58
+ chain :to do |url|
59
+ @url = url
60
+ end
61
+
62
+ chain :with_class do |cls|
63
+ options[:class] = cls
64
+ end
65
+
66
+ chain :with_tooltip do |tooltip|
67
+ options[:tooltip] = tooltip
68
+ end
69
+
70
+ chain :with_tooltip_position do |tooltip_position|
71
+ options[:tooltip_position] = tooltip_position
72
+ end
73
+
74
+ match do
75
+ @text = text
76
+ expected == got
77
+ end
78
+
79
+ failure_message_for_should do
80
+ failure_message(false)
81
+ end
82
+
83
+ failure_message_for_should_not do
84
+ failure_message(true)
85
+ end
86
+
87
+ description do
88
+ desc = "render a action link to '#{url}'"
89
+ descs = []
90
+
91
+ descs << "with the '#{options[:tooltip]}' tooltip" if tooltip?
92
+ descs << "with the '#{options[:tooltip_position]}' tooltip position" if tooltip_position?
93
+
94
+ desc << " " if descs.any?
95
+ desc << descs.to_sentence
96
+ end
97
+ end
metadata CHANGED
@@ -1,32 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-bootstrap-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jacob Carlborg
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-04-19 00:00:00.000000000 Z
12
+ date: 2013-09-30 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ~>
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 3.2.11
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ~>
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 3.2.11
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: guard-rspec
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: guard-spork
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ! '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: pry-doc
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: pry-exception_explorer
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ! '>='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ! '>='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: pry-rails
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ! '>='
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ! '>='
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: pry-stack_explorer
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ! '>='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ! '>='
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: rspec-rails
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ! '>='
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ! '>='
123
140
  - !ruby/object:Gem::Version
@@ -125,6 +142,7 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: spork
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ! '>='
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ! '>='
137
156
  - !ruby/object:Gem::Version
@@ -139,6 +158,7 @@ dependencies:
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: sqlite3
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - ! '>='
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - ! '>='
151
172
  - !ruby/object:Gem::Version
@@ -158,16 +179,27 @@ extensions: []
158
179
  extra_rdoc_files: []
159
180
  files:
160
181
  - lib/rails-bootstrap-helpers/core_ext/abstract.rb
182
+ - lib/rails-bootstrap-helpers/helpers/accordion_helper.rb
161
183
  - lib/rails-bootstrap-helpers/helpers/alert_helper.rb
162
184
  - lib/rails-bootstrap-helpers/helpers/base_helper.rb
163
185
  - lib/rails-bootstrap-helpers/helpers/button_helper.rb
164
186
  - lib/rails-bootstrap-helpers/helpers/form_tag_helper.rb
165
187
  - lib/rails-bootstrap-helpers/helpers/label_helper.rb
188
+ - lib/rails-bootstrap-helpers/helpers/navigation_helper.rb
166
189
  - lib/rails-bootstrap-helpers/helpers/options_helper.rb
190
+ - lib/rails-bootstrap-helpers/helpers/tag_helper.rb
191
+ - lib/rails-bootstrap-helpers/helpers/url_helper.rb
167
192
  - lib/rails-bootstrap-helpers/rails/engine.rb
168
- - lib/rails-bootstrap-helpers/renderers/abstract_button_renderer.rb
193
+ - lib/rails-bootstrap-helpers/renderers/abstract_link_renderer.rb
194
+ - lib/rails-bootstrap-helpers/renderers/accordion_renderer.rb
195
+ - lib/rails-bootstrap-helpers/renderers/action_link_renderer.rb
169
196
  - lib/rails-bootstrap-helpers/renderers/button_renderer.rb
197
+ - lib/rails-bootstrap-helpers/renderers/content_tag_renderer.rb
198
+ - lib/rails-bootstrap-helpers/renderers/dropdown_button_renderer.rb
199
+ - lib/rails-bootstrap-helpers/renderers/iconic_icon_renderer.rb
170
200
  - lib/rails-bootstrap-helpers/renderers/renderer.rb
201
+ - lib/rails-bootstrap-helpers/renderers/row_link_renderer.rb
202
+ - lib/rails-bootstrap-helpers/renderers/tabbable_renderer.rb
171
203
  - lib/rails-bootstrap-helpers/version.rb
172
204
  - lib/rails-bootstrap-helpers.rb
173
205
  - lib/tasks/bootstrap-rails-helpers_tasks.rake
@@ -204,41 +236,51 @@ files:
204
236
  - spec/dummy/Rakefile
205
237
  - spec/dummy/README.rdoc
206
238
  - spec/dummy/script/rails
239
+ - spec/helpers/accordion_helper_spec.rb
207
240
  - spec/helpers/alert_helper_spec.rb
208
241
  - spec/helpers/base_helper_spec.rb
209
242
  - spec/helpers/button_helper_spec.rb
210
243
  - spec/helpers/form_tag_helper_spec.rb
211
244
  - spec/helpers/label_helper_spec.rb
245
+ - spec/helpers/navigation_helper_spec.rb
212
246
  - spec/helpers/options_helper_spec.rb
247
+ - spec/helpers/tag_helper_spec.rb
248
+ - spec/helpers/url_helper_spec.rb
213
249
  - spec/spec_helper.rb
250
+ - spec/support/html.rb
214
251
  - spec/support/matchers/helpers/alert_helper/render_bs_alert.rb
215
252
  - spec/support/matchers/helpers/base_helper/render_icon.rb
253
+ - spec/support/matchers/helpers/base_helper/render_iconic_icon.rb
216
254
  - spec/support/matchers/helpers/button_helper/render_bs_button_to.rb
217
255
  - spec/support/matchers/helpers/button_helper/render_inline_button_to.rb
218
256
  - spec/support/matchers/helpers/form_tag_helper/render_bs_button_tag.rb
257
+ - spec/support/matchers/helpers/form_tag_helper/render_bs_submit_tag.rb
219
258
  - spec/support/matchers/helpers/label_helper/render_bs_label.rb
259
+ - spec/support/matchers/helpers/url_helper/render_action_link_to.rb
260
+ - spec/support/matchers/helpers/url_helper/render_row_link_to.rb
220
261
  homepage: https://github.com/Tretti/rails-bootstrap-helpers
221
262
  licenses: []
222
- metadata: {}
223
263
  post_install_message:
224
264
  rdoc_options: []
225
265
  require_paths:
226
266
  - lib
227
267
  required_ruby_version: !ruby/object:Gem::Requirement
268
+ none: false
228
269
  requirements:
229
270
  - - ! '>='
230
271
  - !ruby/object:Gem::Version
231
272
  version: '0'
232
273
  required_rubygems_version: !ruby/object:Gem::Requirement
274
+ none: false
233
275
  requirements:
234
276
  - - ! '>='
235
277
  - !ruby/object:Gem::Version
236
278
  version: '0'
237
279
  requirements: []
238
280
  rubyforge_project:
239
- rubygems_version: 2.0.3
281
+ rubygems_version: 1.8.24
240
282
  signing_key:
241
- specification_version: 4
283
+ specification_version: 3
242
284
  summary: A Rails plugin that contains helpers for Bootstrap
243
285
  test_files:
244
286
  - spec/dummy/app/assets/javascripts/application.js
@@ -271,17 +313,26 @@ test_files:
271
313
  - spec/dummy/Rakefile
272
314
  - spec/dummy/README.rdoc
273
315
  - spec/dummy/script/rails
316
+ - spec/helpers/accordion_helper_spec.rb
274
317
  - spec/helpers/alert_helper_spec.rb
275
318
  - spec/helpers/base_helper_spec.rb
276
319
  - spec/helpers/button_helper_spec.rb
277
320
  - spec/helpers/form_tag_helper_spec.rb
278
321
  - spec/helpers/label_helper_spec.rb
322
+ - spec/helpers/navigation_helper_spec.rb
279
323
  - spec/helpers/options_helper_spec.rb
324
+ - spec/helpers/tag_helper_spec.rb
325
+ - spec/helpers/url_helper_spec.rb
280
326
  - spec/spec_helper.rb
327
+ - spec/support/html.rb
281
328
  - spec/support/matchers/helpers/alert_helper/render_bs_alert.rb
282
329
  - spec/support/matchers/helpers/base_helper/render_icon.rb
330
+ - spec/support/matchers/helpers/base_helper/render_iconic_icon.rb
283
331
  - spec/support/matchers/helpers/button_helper/render_bs_button_to.rb
284
332
  - spec/support/matchers/helpers/button_helper/render_inline_button_to.rb
285
333
  - spec/support/matchers/helpers/form_tag_helper/render_bs_button_tag.rb
334
+ - spec/support/matchers/helpers/form_tag_helper/render_bs_submit_tag.rb
286
335
  - spec/support/matchers/helpers/label_helper/render_bs_label.rb
336
+ - spec/support/matchers/helpers/url_helper/render_action_link_to.rb
337
+ - spec/support/matchers/helpers/url_helper/render_row_link_to.rb
287
338
  has_rdoc: