twitter-bootstrap-markup-rails 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTORS.md +5 -4
- data/Gemfile +11 -0
- data/README.md +148 -116
- data/lib/twitter-bootstrap-markup-rails/components/button.rb +11 -11
- data/lib/twitter-bootstrap-markup-rails/components/button_dropdown.rb +20 -3
- data/lib/twitter-bootstrap-markup-rails/helpers/button_helpers.rb +14 -6
- data/lib/twitter-bootstrap-markup-rails/plugins/simple_navigation/renderer/bootstrap_topbar_list.rb +6 -3
- data/lib/twitter-bootstrap-markup-rails/version.rb +1 -1
- data/spec/helpers/button_helpers_spec.rb +48 -0
- data/twitter-bootstrap-markup-rails.gemspec +0 -10
- metadata +3 -147
data/CONTRIBUTORS.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Contributors
|
2
2
|
|
3
|
-
Daniel Jabbour,
|
4
|
-
Carlos Vilhena,
|
5
|
-
Cristian Bica,
|
6
|
-
Ryan Feng,
|
3
|
+
Daniel Jabbour, https://github.com/djabbour
|
4
|
+
Carlos Vilhena, https://github.com/carvil
|
5
|
+
Cristian Bica, https://github.com/cristianbica
|
6
|
+
Ryan Feng, https://github.com/rfeng
|
7
|
+
Kai Schlichting, https://github.com/lacco
|
data/Gemfile
CHANGED
@@ -2,3 +2,14 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in bootstrap-rails.gemspec
|
4
4
|
gemspec
|
5
|
+
|
6
|
+
group :development do
|
7
|
+
gem "rails"
|
8
|
+
gem "rspec-rails"
|
9
|
+
gem "rspec_tag_matchers"
|
10
|
+
gem "rake"
|
11
|
+
gem "yard"
|
12
|
+
gem "redcarpet"
|
13
|
+
gem "yard-tomdoc"
|
14
|
+
gem "simple-navigation"
|
15
|
+
end
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<table>
|
4
4
|
<tr>
|
5
5
|
<th>Version</th>
|
6
|
-
<td>v0.3.
|
6
|
+
<td>v0.3.2</td>
|
7
7
|
</tr>
|
8
8
|
<tr>
|
9
9
|
<th>Build Status</th>
|
@@ -26,7 +26,9 @@ This gem focuses on making it easier to use Twitter's Bootstrap 2.0. It's a coll
|
|
26
26
|
|
27
27
|
Add to your `Gemfile`:
|
28
28
|
|
29
|
-
|
29
|
+
```ruby
|
30
|
+
gem 'twitter-bootstrap-markup-rails', '0.3.2'
|
31
|
+
```
|
30
32
|
|
31
33
|
## Currently Supported
|
32
34
|
|
@@ -45,141 +47,163 @@ Documentation is available on [RubyDoc](http://rubydoc.info/github/pusewicz/twit
|
|
45
47
|
Examples
|
46
48
|
---
|
47
49
|
|
48
|
-
|
50
|
+
### Rendering Alert
|
49
51
|
|
50
|
-
|
51
|
-
|
52
|
+
```ruby
|
53
|
+
bootstrap_alert_tag("Hello!")
|
54
|
+
# => '<div class="alert"><a class="close">×</a>Hello!</div>'
|
55
|
+
```
|
52
56
|
|
53
|
-
|
57
|
+
### Rendering Info Block Alert
|
54
58
|
|
55
|
-
|
56
|
-
|
59
|
+
```ruby
|
60
|
+
bootstrap_alert_info_block_tag("Hello!")
|
61
|
+
# => '<div class="alert alert-block alert-info"><a class="close">×</a>Hello!</div>'
|
62
|
+
```
|
57
63
|
|
58
64
|
Same with basic helper:
|
59
65
|
|
60
|
-
|
61
|
-
|
66
|
+
```ruby
|
67
|
+
bootstrap_alert_tag("Hello!", :block => true, :type => "info")
|
68
|
+
# => '<div class="alert alert-block alert-info"><a class="close">×</a>Hello!</div>'
|
69
|
+
```
|
62
70
|
|
63
71
|
Add Alert heading:
|
64
72
|
|
65
|
-
|
66
|
-
|
73
|
+
```ruby
|
74
|
+
bootstrap_alert_tag("Hello!", :heading => "Hola!")
|
75
|
+
# => '<div class="alert"><a class="close">×</a><strong>Hola!</strong>Hello!</div>'
|
76
|
+
```
|
67
77
|
|
68
|
-
Notice Inline Label
|
78
|
+
### Notice Inline Label
|
69
79
|
|
70
|
-
|
71
|
-
|
80
|
+
```ruby
|
81
|
+
bootstrap_inline_label_notice_tag("Info")
|
82
|
+
# => '<span class="label notice">Info</span>'
|
83
|
+
```
|
72
84
|
|
73
|
-
Buttons
|
85
|
+
### Buttons
|
74
86
|
|
75
|
-
|
76
|
-
|
87
|
+
```ruby
|
88
|
+
bootstrap_button("Button Text", "#")
|
89
|
+
# => '<a class="btn" href="#">Button Text</a>'
|
90
|
+
```
|
77
91
|
|
78
|
-
Dropdown Buttons
|
92
|
+
### Dropdown Buttons
|
79
93
|
|
80
|
-
```
|
94
|
+
```ruby
|
81
95
|
bootstrap_button_dropdown do |b|
|
82
96
|
b.bootstrap_button "Button Title", "#"
|
83
97
|
b.link_to "First Dropdown Item", @item
|
84
98
|
b.link_to "Second Dropdown Item", @item2
|
85
99
|
end
|
86
|
-
#
|
87
|
-
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
88
|
-
|
89
|
-
|
90
|
-
</a>
|
91
|
-
<ul class="dropdown-menu">
|
92
|
-
|
93
|
-
</ul>
|
94
|
-
</div>'
|
100
|
+
# => '<div class="btn-group">
|
101
|
+
# <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
102
|
+
# Button Title
|
103
|
+
# <span class="caret"></span>
|
104
|
+
# </a>
|
105
|
+
# <ul class="dropdown-menu">
|
106
|
+
# <!-- dropdown menu links -->
|
107
|
+
# </ul>
|
108
|
+
# </div>'
|
95
109
|
```
|
96
110
|
|
97
|
-
Navigation lists
|
98
|
-
|
99
|
-
Basic tabs example
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
</
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
111
|
+
### Navigation lists
|
112
|
+
|
113
|
+
### Basic tabs example
|
114
|
+
|
115
|
+
```ruby
|
116
|
+
bootstrap_navigation do |nav|
|
117
|
+
nav.link_to "Nav1", "/link1", :active_nav => true
|
118
|
+
nav.link_to "Nav2", "/link2"
|
119
|
+
end
|
120
|
+
# => '<ul class="nav nav-tabs">
|
121
|
+
# <li class="active">
|
122
|
+
# <a href="/link1">Nav1</a>
|
123
|
+
# </li>
|
124
|
+
# <li>
|
125
|
+
# <a href="/link2">Nav2</a>
|
126
|
+
# </li>
|
127
|
+
# </ul>'
|
128
|
+
```
|
129
|
+
|
130
|
+
### Basic pills example
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
bootstrap_navigation(:type => "pills") do |nav|
|
134
|
+
nav.link_to "Nav1", "/link1"
|
135
|
+
nav.link_to "Nav2", "/link2", :active_nav => true
|
136
|
+
end
|
137
|
+
# => '<ul class="nav nav-pills">
|
138
|
+
# <li>
|
139
|
+
# <a href="/link1">Nav1</a>
|
140
|
+
# </li>
|
141
|
+
# <li class="active">
|
142
|
+
# <a href="/link2">Nav2</a>
|
143
|
+
# </li>
|
144
|
+
# </ul>'
|
145
|
+
```
|
146
|
+
|
147
|
+
### Stacked tabs example
|
148
|
+
|
149
|
+
```ruby
|
150
|
+
bootstrap_navigation(:type => "tabs", :stacked => true) do |nav|
|
151
|
+
nav.link_to "Nav1", "/link1", :active_nav => true
|
152
|
+
nav.link_to "Nav2", "/link2"
|
153
|
+
end
|
154
|
+
# => '<ul class="nav nav-tabs nav-stacked">
|
155
|
+
# <li class="active">
|
156
|
+
# <a href="/link1">Nav1</a>
|
157
|
+
# </li>
|
158
|
+
# <li>
|
159
|
+
# <a href="/link2">Nav2</a>
|
160
|
+
# </li>
|
161
|
+
# </ul>'
|
162
|
+
```
|
163
|
+
|
164
|
+
### Stacked pills example
|
165
|
+
|
166
|
+
```ruby
|
167
|
+
bootstrap_navigation(:type => "pills", :stacked => true) do |nav|
|
168
|
+
nav.link_to "Nav1", "/link1"
|
169
|
+
nav.link_to "Nav2", "/link2", :active_nav => true
|
170
|
+
end
|
171
|
+
# => '<ul class="nav nav-pills nav-stacked">
|
172
|
+
# <li>
|
173
|
+
# <a href="/link1">Nav1</a>
|
174
|
+
# </li>
|
175
|
+
# <li class="active">
|
176
|
+
# <a href="/link2">Nav2</a>
|
177
|
+
# </li>
|
178
|
+
# </ul>'
|
179
|
+
```
|
180
|
+
|
181
|
+
### Modal popup example
|
182
|
+
|
183
|
+
```ruby
|
184
|
+
bootstrap_modal(dom_id: 'a_dom_id', fade: true, header_title: "I'm a bootstrap modal popup") do |modal|
|
185
|
+
modal.body do |c|
|
186
|
+
c.content_tag :div, "the body"
|
187
|
+
end
|
188
|
+
modal.footer do |f|
|
189
|
+
f.bootstrap_button "Save", "/link1", :type => 'btn-primary'
|
190
|
+
f.bootstrap_button "Cancel", "/link2"
|
191
|
+
end
|
192
|
+
end
|
193
|
+
# => '<div class="modal fade" id="a_dom_id">
|
194
|
+
# <div class="modal-header">
|
195
|
+
# <a class="close" data-dismiss="modal">×</a>
|
196
|
+
# <h3>I'm a bootstrap modal popup</h3>
|
197
|
+
# </div>
|
198
|
+
# <div class="modal-body">
|
199
|
+
# <div>the body</div>
|
200
|
+
# </div>
|
201
|
+
# <div class="modal-footer">
|
202
|
+
# <a class="btn btn-primary" href="/link1">Save</a>
|
203
|
+
# <a class="btn" href="/link2">Cancel</a></div>
|
204
|
+
# </div>
|
205
|
+
# </div>'
|
206
|
+
```
|
183
207
|
|
184
208
|
Plugins
|
185
209
|
---
|
@@ -188,7 +212,15 @@ Plugins
|
|
188
212
|
|
189
213
|
If you are using `simple-navigation` gem you can use the navigation renderer like this:
|
190
214
|
|
191
|
-
|
215
|
+
In your initializer:
|
216
|
+
|
217
|
+
```ruby
|
218
|
+
SimpleNavigation.register_renderer :bootstrap_topbar_list => SimpleNavigation::Renderer::BootstrapTopbarList
|
219
|
+
```
|
220
|
+
|
221
|
+
```ruby
|
222
|
+
render_navigation(level: 1..2, renderer: :bootstrap_topbar_list, expand_all: true)
|
223
|
+
```
|
192
224
|
|
193
225
|
Contributing
|
194
226
|
---
|
@@ -1,17 +1,11 @@
|
|
1
1
|
module Twitter::Bootstrap::Markup::Rails::Components
|
2
2
|
class Button < Base
|
3
|
-
|
4
|
-
|
5
|
-
def initialize(text, link, options = {})
|
6
|
-
super
|
7
|
-
@text = text
|
8
|
-
@link = link
|
9
|
-
end
|
3
|
+
include ActionView::Helpers::UrlHelper
|
10
4
|
|
11
5
|
def to_s
|
12
6
|
html_text = ""
|
13
7
|
html_text << build_icon.html_safe << ' ' if options[:icon]
|
14
|
-
html_text << text
|
8
|
+
html_text << (options[:text].respond_to?(:call) ? options[:text].call : options[:text]).to_s
|
15
9
|
html_text << ' ' << build_caret.html_safe if options[:dropdown]
|
16
10
|
|
17
11
|
output_buffer << content_tag(:a, html_text.html_safe, build_tag_options).html_safe
|
@@ -21,6 +15,8 @@ module Twitter::Bootstrap::Markup::Rails::Components
|
|
21
15
|
private
|
22
16
|
def default_options
|
23
17
|
{
|
18
|
+
:text => nil,
|
19
|
+
:link => "#",
|
24
20
|
:class => "btn",
|
25
21
|
:type => [],
|
26
22
|
:disabled => false,
|
@@ -35,7 +31,7 @@ module Twitter::Bootstrap::Markup::Rails::Components
|
|
35
31
|
classes = [options[:class]]
|
36
32
|
|
37
33
|
if options[:type].is_a?(Array)
|
38
|
-
classes = classes | options[:type].map{|c| c.to_s}
|
34
|
+
classes = classes | options[:type].map { |c| c.to_s }
|
39
35
|
else
|
40
36
|
classes << options[:type]
|
41
37
|
end
|
@@ -57,10 +53,14 @@ module Twitter::Bootstrap::Markup::Rails::Components
|
|
57
53
|
end
|
58
54
|
|
59
55
|
def build_tag_options
|
60
|
-
ops = {:href =>
|
56
|
+
ops = { :href => build_link, :class => build_class }
|
61
57
|
ops[:"data-toggle"] = 'dropdown' if options[:dropdown]
|
62
58
|
ops[:id] = options[:id] if options[:id]
|
63
59
|
ops.reverse_merge(options[:html_options])
|
64
60
|
end
|
61
|
+
|
62
|
+
def build_link
|
63
|
+
url_for(options[:link]) if options[:link].present?
|
64
|
+
end
|
65
65
|
end
|
66
|
-
end
|
66
|
+
end
|
@@ -13,7 +13,7 @@ module Twitter::Bootstrap::Markup::Rails::Components
|
|
13
13
|
html=''
|
14
14
|
html << build_dropdown
|
15
15
|
|
16
|
-
html << content_tag(:ul,
|
16
|
+
html << content_tag(:ul, build_menu_html_options) do
|
17
17
|
menu = ''
|
18
18
|
@elements.each do |e|
|
19
19
|
menu << content_tag(:li, e.to_s)
|
@@ -29,7 +29,10 @@ module Twitter::Bootstrap::Markup::Rails::Components
|
|
29
29
|
private
|
30
30
|
def default_options
|
31
31
|
{
|
32
|
-
:html_options => {}
|
32
|
+
:html_options => {},
|
33
|
+
:split => false,
|
34
|
+
:button_options => {},
|
35
|
+
:menu_html_options => {}
|
33
36
|
}
|
34
37
|
end
|
35
38
|
|
@@ -39,13 +42,27 @@ module Twitter::Bootstrap::Markup::Rails::Components
|
|
39
42
|
classes.join(" ")
|
40
43
|
end
|
41
44
|
|
45
|
+
def build_menu_html_options
|
46
|
+
classes = %w(dropdown-menu)
|
47
|
+
classes << options[:menu_html_options][:class] if options[:menu_html_options][:class]
|
48
|
+
|
49
|
+
options[:menu_html_options].merge(:class => classes.join(" "))
|
50
|
+
end
|
51
|
+
|
42
52
|
def build_dropdown
|
43
53
|
html = ''
|
44
54
|
|
45
55
|
if @elements.size > 0
|
46
56
|
dropdown = @elements.shift
|
47
|
-
dropdown.options[:
|
57
|
+
dropdown.options.merge!(options[:button_options])
|
58
|
+
dropdown.options[:dropdown] = !options[:split]
|
59
|
+
|
48
60
|
html << dropdown.to_s
|
61
|
+
|
62
|
+
if options[:split]
|
63
|
+
caret = Button.new({:dropdown => true}.merge(options[:button_options]))
|
64
|
+
html << caret.to_s
|
65
|
+
end
|
49
66
|
end
|
50
67
|
|
51
68
|
html
|
@@ -20,12 +20,20 @@ module Twitter::Bootstrap::Markup::Rails::Helpers
|
|
20
20
|
#
|
21
21
|
# bootstrap_button 'Search', '#', :type => 'btn-primary', :icon => 'icon-search'
|
22
22
|
#
|
23
|
-
def bootstrap_button(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
options
|
28
|
-
|
23
|
+
def bootstrap_button(*args, &block)
|
24
|
+
options = args.extract_options!
|
25
|
+
|
26
|
+
if block_given?
|
27
|
+
options[:text] = block
|
28
|
+
elsif args.present?
|
29
|
+
options[:text] = args.shift
|
30
|
+
end
|
31
|
+
|
32
|
+
if args.present?
|
33
|
+
options[:link] = args.shift
|
34
|
+
end
|
35
|
+
|
36
|
+
Twitter::Bootstrap::Markup::Rails::Components::Button.new(options).to_s
|
29
37
|
end
|
30
38
|
|
31
39
|
# Render a dropdown button
|
data/lib/twitter-bootstrap-markup-rails/plugins/simple_navigation/renderer/bootstrap_topbar_list.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Renders an ItemContainer as a <ul> element and its containing items as <li> elements.
|
2
2
|
# Prepared to use inside the topbar of Twitter Bootstrap http://twitter.github.com/bootstrap/#navigation
|
3
3
|
#
|
4
|
-
# Source: https://gist.github.com/1550309
|
5
|
-
#
|
6
4
|
# Examples
|
7
5
|
#
|
8
6
|
# render_navigation(level: 1..2, renderer: :bootstrap_topbar_list, expand_all: true)
|
@@ -43,7 +41,9 @@ class SimpleNavigation::Renderer::BootstrapTopbarList < SimpleNavigation::Render
|
|
43
41
|
if item.url.nil?
|
44
42
|
content_tag('span', item.name, link_options_for(item).except(:method))
|
45
43
|
else
|
46
|
-
|
44
|
+
name = item.name
|
45
|
+
name += ' <span class="caret"></span>' if include_sub_navigation?(item)
|
46
|
+
link_to(name, item.url, link_options_for(item))
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -54,6 +54,9 @@ class SimpleNavigation::Renderer::BootstrapTopbarList < SimpleNavigation::Render
|
|
54
54
|
link_options = item.html_options[:link] || {}
|
55
55
|
opts = special_options.merge(link_options)
|
56
56
|
opts[:class] = [link_options[:class], item.selected_class, dropdown_link_class(item)].flatten.compact.join(' ')
|
57
|
+
if include_sub_navigation?(item) && !options[:is_subnavigation]
|
58
|
+
opts['data-toggle'] = 'dropdown'
|
59
|
+
end
|
57
60
|
opts.delete(:class) if opts[:class].nil? || opts[:class] == ''
|
58
61
|
opts
|
59
62
|
end
|
@@ -61,6 +61,16 @@ describe Twitter::Bootstrap::Markup::Rails::Helpers::ButtonHelpers do
|
|
61
61
|
concat bootstrap_button("Text", "#", :html_options => {:target => "_top"})
|
62
62
|
output_buffer.should have_tag("a[target='_top']")
|
63
63
|
end
|
64
|
+
|
65
|
+
it "should accept a block instead of text" do
|
66
|
+
concat bootstrap_button("#"){"<span class='content'>Text</span>"}
|
67
|
+
output_buffer.should have_tag("a span.content")
|
68
|
+
end
|
69
|
+
|
70
|
+
it "should set href to '#' if link is not given" do
|
71
|
+
concat bootstrap_button
|
72
|
+
output_buffer.should have_tag("a[href='#']")
|
73
|
+
end
|
64
74
|
end
|
65
75
|
|
66
76
|
|
@@ -98,5 +108,43 @@ describe Twitter::Bootstrap::Markup::Rails::Helpers::ButtonHelpers do
|
|
98
108
|
|
99
109
|
output_buffer.should have_tag('div.btn-group.foo')
|
100
110
|
end
|
111
|
+
|
112
|
+
it "should build a split dropdown if split=true" do
|
113
|
+
build_bootstrap_button_dropdown(:split => true) do |d|
|
114
|
+
d.bootstrap_button "Button Text", "#", :class => "foo"
|
115
|
+
d.link_to "This", "#"
|
116
|
+
end
|
117
|
+
|
118
|
+
output_buffer.should have_tag('div.btn-group') do |div|
|
119
|
+
div.should have_tag('a.foo')
|
120
|
+
div.should have_tag('a.dropdown-toggle')
|
121
|
+
# Ensure that a.foo and a.dropdown-toggle are two different links
|
122
|
+
div.should_not have_tag('a.foo.dropdown-toggle')
|
123
|
+
div.should have_tag('ul.dropdown-menu a')
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
it "should pass button_options to its buttons" do
|
128
|
+
build_bootstrap_button_dropdown(:split => true, :button_options => {:type => "btn-success"}) do |d|
|
129
|
+
d.bootstrap_button "Button Text", "#", :class => "foo"
|
130
|
+
d.link_to "This", "#"
|
131
|
+
end
|
132
|
+
|
133
|
+
output_buffer.should have_tag('div.btn-group') do |div|
|
134
|
+
div.should have_tag('a.foo.btn-success')
|
135
|
+
div.should have_tag('a.dropdown-toggle.btn-success')
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
it "should properly merge menu_html_options" do
|
140
|
+
build_bootstrap_button_dropdown(:menu_html_options => {:class => "pull-right"}) do |d|
|
141
|
+
d.bootstrap_button "Button Text", "#", :class => "foo"
|
142
|
+
d.link_to "This", "#"
|
143
|
+
end
|
144
|
+
|
145
|
+
output_buffer.should have_tag('div.btn-group') do |div|
|
146
|
+
div.should have_tag('ul.dropdown-menu.pull-right')
|
147
|
+
end
|
148
|
+
end
|
101
149
|
end
|
102
150
|
end
|
@@ -17,14 +17,4 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.platform = Gem::Platform::RUBY
|
18
18
|
|
19
19
|
gem.add_dependency "railties", "~> 3.0"
|
20
|
-
gem.add_development_dependency "rails", "~> 3.0"
|
21
|
-
gem.add_development_dependency "rspec-rails", "~> 2.10"
|
22
|
-
gem.add_development_dependency "rspec_tag_matchers", ">= 1.0"
|
23
|
-
gem.add_development_dependency "rake"
|
24
|
-
gem.add_development_dependency 'yard'
|
25
|
-
gem.add_development_dependency 'redcarpet'
|
26
|
-
gem.add_development_dependency 'yard-tomdoc'
|
27
|
-
gem.add_development_dependency 'simple-navigation'
|
28
|
-
gem.add_development_dependency RUBY_VERSION =~ /^1\.9/ ? "simplecov" : "rcov"
|
29
20
|
end
|
30
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter-bootstrap-markup-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -27,150 +27,6 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rails
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '3.0'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
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: rspec-rails
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '2.10'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.10'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rspec_tag_matchers
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '1.0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '1.0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: rake
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
86
|
-
type: :development
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: yard
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: redcarpet
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
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: yard-tomdoc
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ! '>='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: '0'
|
134
|
-
type: :development
|
135
|
-
prerelease: false
|
136
|
-
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: simple-navigation
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - ! '>='
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
158
|
-
- !ruby/object:Gem::Dependency
|
159
|
-
name: simplecov
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ! '>='
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
30
|
description: Ruby on Rails helpers for Bootstrap 2.0 - HTML, CSS, and JS toolkit from
|
175
31
|
Twitter
|
176
32
|
email:
|
@@ -253,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
109
|
version: '0'
|
254
110
|
requirements: []
|
255
111
|
rubyforge_project:
|
256
|
-
rubygems_version: 1.8.
|
112
|
+
rubygems_version: 1.8.23
|
257
113
|
signing_key:
|
258
114
|
specification_version: 3
|
259
115
|
summary: Ruby on Rails helpers for Bootstrap 2.0 - HTML, CSS, and JS toolkit from
|