twitter-bootstrap-markup-rails 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/.rspec +1 -0
- data/.travis.yml +2 -2
- data/README.md +11 -4
- data/Rakefile +0 -6
- data/lib/twitter-bootstrap-markup-rails.rb +1 -0
- data/lib/twitter-bootstrap-markup-rails/plugins.rb +12 -0
- data/lib/twitter-bootstrap-markup-rails/plugins/simple_navigation/renderer/bootstrap_topbar_list.rb +67 -0
- data/lib/twitter-bootstrap-markup-rails/version.rb +1 -1
- data/spec/helpers/alert_helpers_spec.rb +47 -0
- data/spec/plugins/bootstrap_topbar_list_spec.rb +11 -0
- data/spec/spec_helper.rb +0 -68
- data/spec/support/bootstrap_spec_helper.rb +67 -0
- data/twitter-bootstrap-markup-rails.gemspec +8 -7
- metadata +45 -25
data/.gitignore
CHANGED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--order rand
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -9,8 +9,8 @@ Installation
|
|
9
9
|
|
10
10
|
Add to your `Gemfile`:
|
11
11
|
|
12
|
-
gem "twitter-bootstrap-markup-rails",
|
13
|
-
|
12
|
+
gem "twitter-bootstrap-markup-rails", "0.1.0"
|
13
|
+
|
14
14
|
Currently Supported
|
15
15
|
---
|
16
16
|
|
@@ -50,6 +50,15 @@ Notice Inline Label:
|
|
50
50
|
bootstrap_inline_label_notice_tag("Info")
|
51
51
|
# => '<span class="label notice">Info</span>'
|
52
52
|
|
53
|
+
Plugins
|
54
|
+
---
|
55
|
+
|
56
|
+
### For [SimpleNavigation](https://github.com/andi/simple-navigation)
|
57
|
+
|
58
|
+
If you are using `simple-navigation` gem you can use the navigation renderer like this:
|
59
|
+
|
60
|
+
render_navigation(level: 1..2, renderer: :bootstrap_topbar_list, expand_all: true)
|
61
|
+
|
53
62
|
Contributing
|
54
63
|
---
|
55
64
|
|
@@ -93,6 +102,4 @@ This library aims to support and is [tested against](http://travis-ci.org/pusewi
|
|
93
102
|
* Ruby 1.8.7
|
94
103
|
* Ruby 1.9.2
|
95
104
|
* Ruby 1.9.3
|
96
|
-
* Ruby Enterprise Edition
|
97
105
|
* Rubinius
|
98
|
-
* JRuby
|
data/Rakefile
CHANGED
@@ -7,12 +7,6 @@ require 'yard/rake/yardoc_task'
|
|
7
7
|
|
8
8
|
task :default => :spec
|
9
9
|
|
10
|
-
Rake::TestTask.new do |t|
|
11
|
-
t.libs << "test"
|
12
|
-
t.test_files = FileList['test/*_test.rb']
|
13
|
-
t.verbose = true
|
14
|
-
end
|
15
|
-
|
16
10
|
desc 'Test the plugin.'
|
17
11
|
RSpec::Core::RakeTask.new('spec') do |t|
|
18
12
|
t.pattern = FileList['spec/**/*_spec.rb']
|
data/lib/twitter-bootstrap-markup-rails/plugins/simple_navigation/renderer/bootstrap_topbar_list.rb
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Renders an ItemContainer as a <ul> element and its containing items as <li> elements.
|
2
|
+
# Prepared to use inside the topbar of Twitter Bootstrap http://twitter.github.com/bootstrap/#navigation
|
3
|
+
#
|
4
|
+
# Examples
|
5
|
+
#
|
6
|
+
# render_navigation(level: 1..2, renderer: :bootstrap_topbar_list, expand_all: true)
|
7
|
+
class SimpleNavigation::Renderer::BootstrapTopbarList < SimpleNavigation::Renderer::Base
|
8
|
+
|
9
|
+
def render(item_container)
|
10
|
+
if options[:is_subnavigation]
|
11
|
+
ul_class = "dropdown-menu"
|
12
|
+
else
|
13
|
+
ul_class = "nav"
|
14
|
+
end
|
15
|
+
|
16
|
+
list_content = item_container.items.inject([]) do |list, item|
|
17
|
+
li_options = item.html_options.reject {|k, v| k == :link}
|
18
|
+
if include_sub_navigation?(item)
|
19
|
+
li_options[:class] = [li_options[:class], "dropdown"].flatten.compact.join(' ')
|
20
|
+
end
|
21
|
+
li_content = tag_for(item)
|
22
|
+
if include_sub_navigation?(item)
|
23
|
+
li_content << render_sub_navigation_for(item)
|
24
|
+
end
|
25
|
+
list << content_tag(:li, li_content, li_options)
|
26
|
+
end.join
|
27
|
+
if skip_if_empty? && item_container.empty?
|
28
|
+
''
|
29
|
+
else
|
30
|
+
content_tag(:ul, list_content, { :id => item_container.dom_id, :class => [item_container.dom_class, ul_class].flatten.compact.join(' ') })
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def render_sub_navigation_for(item)
|
35
|
+
item.sub_navigation.render(self.options.merge(:is_subnavigation => true))
|
36
|
+
end
|
37
|
+
|
38
|
+
protected
|
39
|
+
|
40
|
+
def tag_for(item)
|
41
|
+
if item.url.nil?
|
42
|
+
content_tag('span', item.name, link_options_for(item).except(:method))
|
43
|
+
else
|
44
|
+
link_to(item.name, item.url, link_options_for(item))
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Extracts the options relevant for the generated link
|
49
|
+
#
|
50
|
+
def link_options_for(item)
|
51
|
+
special_options = {:method => item.method}.reject {|k, v| v.nil? }
|
52
|
+
link_options = item.html_options[:link] || {}
|
53
|
+
opts = special_options.merge(link_options)
|
54
|
+
opts[:class] = [link_options[:class], item.selected_class, dropdown_link_class(item)].flatten.compact.join(' ')
|
55
|
+
opts.delete(:class) if opts[:class].nil? || opts[:class] == ''
|
56
|
+
opts
|
57
|
+
end
|
58
|
+
|
59
|
+
def dropdown_link_class(item)
|
60
|
+
if include_sub_navigation?(item) && !options[:is_subnavigation]
|
61
|
+
"dropdown-toggle"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
SimpleNavigation.register_renderer :bootstrap_topbar_list => SimpleNavigation::Renderer::BootstrapTopbarList
|
67
|
+
|
@@ -4,6 +4,53 @@ require 'spec_helper'
|
|
4
4
|
describe Twitter::Bootstrap::Markup::Rails::Helpers::AlertHelpers do
|
5
5
|
include BootstrapSpecHelper
|
6
6
|
|
7
|
+
describe "#bootstrap_alert_tag" do
|
8
|
+
before do
|
9
|
+
@output_buffer = ''
|
10
|
+
end
|
11
|
+
|
12
|
+
it "has no heading by default" do
|
13
|
+
concat bootstrap_alert_tag("Message", :heading => nil)
|
14
|
+
output_buffer.should_not have_tag('div strong')
|
15
|
+
output_buffer.should_not have_tag('div h4.alert-heading')
|
16
|
+
end
|
17
|
+
|
18
|
+
it "has alert class" do
|
19
|
+
concat bootstrap_alert_tag("Message")
|
20
|
+
output_buffer.should have_tag("div.alert")
|
21
|
+
end
|
22
|
+
|
23
|
+
it "has a message" do
|
24
|
+
concat bootstrap_alert_tag("Message")
|
25
|
+
output_buffer.should have_tag('div', /Message/)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "has a close button when :close is true" do
|
29
|
+
concat bootstrap_alert_tag("Message", :close => true)
|
30
|
+
output_buffer.should have_tag('div a.close', /×/)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "has no close button when :close is false" do
|
34
|
+
concat bootstrap_alert_tag("Message", :close => false)
|
35
|
+
output_buffer.should_not have_tag('div a.close')
|
36
|
+
end
|
37
|
+
|
38
|
+
it "has a dismiss tag" do
|
39
|
+
concat bootstrap_alert_tag("Message")
|
40
|
+
output_buffer.should have_tag('div a[data-dismiss="alert"]')
|
41
|
+
end
|
42
|
+
|
43
|
+
it "has a h4 heading when :block is true" do
|
44
|
+
concat bootstrap_alert_tag("message", :heading => "heading1", :block => true)
|
45
|
+
output_buffer.should have_tag('div h4.alert-heading', /heading1/)
|
46
|
+
end
|
47
|
+
|
48
|
+
it "has a strong heading when :block is false" do
|
49
|
+
concat bootstrap_alert_tag("Message", :heading => "Heading1", :block => false)
|
50
|
+
output_buffer.should have_tag('div strong', /Heading1/)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
7
54
|
%w(error success info).each do |type|
|
8
55
|
describe "#bootstrap_alert_#{type}_block_tag" do
|
9
56
|
before do
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'simple_navigation'
|
3
|
+
require "twitter-bootstrap-markup-rails/plugins/simple_navigation/renderer/bootstrap_topbar_list"
|
4
|
+
|
5
|
+
describe SimpleNavigation::Renderer::BootstrapTopbarList do
|
6
|
+
it "registers the renderer" do
|
7
|
+
SimpleNavigation.registered_renderers.should include({
|
8
|
+
:bootstrap_topbar_list => SimpleNavigation::Renderer::BootstrapTopbarList
|
9
|
+
})
|
10
|
+
end
|
11
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -5,71 +5,3 @@ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/twitter-boots
|
|
5
5
|
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/twitter-bootstrap-markup-rails/engine'))
|
6
6
|
|
7
7
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f}
|
8
|
-
|
9
|
-
require 'active_support'
|
10
|
-
require 'action_pack'
|
11
|
-
require 'action_view'
|
12
|
-
require 'action_controller'
|
13
|
-
require 'action_dispatch'
|
14
|
-
|
15
|
-
module FakeHelpersModule
|
16
|
-
end
|
17
|
-
|
18
|
-
module BootstrapSpecHelper
|
19
|
-
include ActionPack
|
20
|
-
include ActionView::Context if defined?(ActionView::Context)
|
21
|
-
include ActionController::RecordIdentifier
|
22
|
-
include ActionView::Helpers::FormHelper
|
23
|
-
include ActionView::Helpers::FormTagHelper
|
24
|
-
include ActionView::Helpers::FormOptionsHelper
|
25
|
-
include ActionView::Helpers::UrlHelper
|
26
|
-
include ActionView::Helpers::TagHelper
|
27
|
-
include ActionView::Helpers::TextHelper
|
28
|
-
include ActionView::Helpers::ActiveRecordHelper if defined?(ActionView::Helpers::ActiveRecordHelper)
|
29
|
-
include ActionView::Helpers::ActiveModelHelper if defined?(ActionView::Helpers::ActiveModelHelper)
|
30
|
-
include ActionView::Helpers::DateHelper
|
31
|
-
include ActionView::Helpers::CaptureHelper
|
32
|
-
include ActionView::Helpers::AssetTagHelper
|
33
|
-
include ActiveSupport
|
34
|
-
include ActionController::PolymorphicRoutes if defined?(ActionController::PolymorphicRoutes)
|
35
|
-
|
36
|
-
def _routes
|
37
|
-
url_helpers = mock('url_helpers')
|
38
|
-
url_helpers.stub!(:hash_for_posts_path).and_return({})
|
39
|
-
url_helpers.stub!(:hash_for_post_path).and_return({})
|
40
|
-
url_helpers.stub!(:hash_for_post_models_path).and_return({})
|
41
|
-
url_helpers.stub!(:hash_for_authors_path).and_return({})
|
42
|
-
|
43
|
-
mock('_routes',
|
44
|
-
:url_helpers => url_helpers,
|
45
|
-
:url_for => "/mock/path"
|
46
|
-
)
|
47
|
-
end
|
48
|
-
|
49
|
-
def controller
|
50
|
-
env = mock('env', :[] => nil)
|
51
|
-
request = mock('request', :env => env)
|
52
|
-
mock('controller', :controller_path= => '', :params => {}, :request => request)
|
53
|
-
end
|
54
|
-
|
55
|
-
def default_url_options
|
56
|
-
{}
|
57
|
-
end
|
58
|
-
|
59
|
-
def self.included(base)
|
60
|
-
base.class_eval do
|
61
|
-
|
62
|
-
attr_accessor :output_buffer
|
63
|
-
|
64
|
-
def protect_against_forgery?
|
65
|
-
false
|
66
|
-
end
|
67
|
-
|
68
|
-
def _helpers
|
69
|
-
FakeHelpersModule
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'active_support'
|
2
|
+
require 'action_pack'
|
3
|
+
require 'action_view'
|
4
|
+
require 'action_controller'
|
5
|
+
require 'action_dispatch'
|
6
|
+
|
7
|
+
module FakeHelpersModule
|
8
|
+
end
|
9
|
+
|
10
|
+
module BootstrapSpecHelper
|
11
|
+
include ActionPack
|
12
|
+
include ActionView::Context if defined?(ActionView::Context)
|
13
|
+
include ActionController::RecordIdentifier
|
14
|
+
include ActionView::Helpers::FormHelper
|
15
|
+
include ActionView::Helpers::FormTagHelper
|
16
|
+
include ActionView::Helpers::FormOptionsHelper
|
17
|
+
include ActionView::Helpers::UrlHelper
|
18
|
+
include ActionView::Helpers::TagHelper
|
19
|
+
include ActionView::Helpers::TextHelper
|
20
|
+
include ActionView::Helpers::ActiveRecordHelper if defined?(ActionView::Helpers::ActiveRecordHelper)
|
21
|
+
include ActionView::Helpers::ActiveModelHelper if defined?(ActionView::Helpers::ActiveModelHelper)
|
22
|
+
include ActionView::Helpers::DateHelper
|
23
|
+
include ActionView::Helpers::CaptureHelper
|
24
|
+
include ActionView::Helpers::AssetTagHelper
|
25
|
+
include ActiveSupport
|
26
|
+
include ActionController::PolymorphicRoutes if defined?(ActionController::PolymorphicRoutes)
|
27
|
+
|
28
|
+
def _routes
|
29
|
+
url_helpers = mock('url_helpers')
|
30
|
+
url_helpers.stub!(:hash_for_posts_path).and_return({})
|
31
|
+
url_helpers.stub!(:hash_for_post_path).and_return({})
|
32
|
+
url_helpers.stub!(:hash_for_post_models_path).and_return({})
|
33
|
+
url_helpers.stub!(:hash_for_authors_path).and_return({})
|
34
|
+
|
35
|
+
mock('_routes',
|
36
|
+
:url_helpers => url_helpers,
|
37
|
+
:url_for => "/mock/path"
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
def controller
|
42
|
+
env = mock('env', :[] => nil)
|
43
|
+
request = mock('request', :env => env)
|
44
|
+
mock('controller', :controller_path= => '', :params => {}, :request => request)
|
45
|
+
end
|
46
|
+
|
47
|
+
def default_url_options
|
48
|
+
{}
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.included(base)
|
52
|
+
base.class_eval do
|
53
|
+
|
54
|
+
attr_accessor :output_buffer
|
55
|
+
|
56
|
+
def protect_against_forgery?
|
57
|
+
false
|
58
|
+
end
|
59
|
+
|
60
|
+
def _helpers
|
61
|
+
FakeHelpersModule
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
@@ -4,8 +4,8 @@ require File.expand_path('../lib/twitter-bootstrap-markup-rails/version', __FILE
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Piotr Usewicz"]
|
6
6
|
gem.email = ["piotr@layer22.com"]
|
7
|
-
gem.description = %q{Ruby on Rails helpers for HTML, CSS, and JS toolkit from Twitter}
|
8
|
-
gem.summary = %q{Ruby on Rails helpers for HTML, CSS, and JS toolkit from Twitter}
|
7
|
+
gem.description = %q{Ruby on Rails helpers for Bootstrap 2.0 - HTML, CSS, and JS toolkit from Twitter}
|
8
|
+
gem.summary = %q{Ruby on Rails helpers for Bootstrap 2.0 - HTML, CSS, and JS toolkit from Twitter}
|
9
9
|
gem.homepage = "https://github.com/pusewicz/twitter-bootstrap-markup-rails"
|
10
10
|
|
11
11
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
@@ -17,13 +17,14 @@ 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",
|
21
|
-
gem.add_development_dependency "rspec-rails",
|
22
|
-
gem.add_development_dependency "guard",
|
23
|
-
gem.add_development_dependency "guard-rspec",
|
24
|
-
gem.add_development_dependency "rspec_tag_matchers", ">= 1.0
|
20
|
+
gem.add_development_dependency "rails", "~> 3.0"
|
21
|
+
gem.add_development_dependency "rspec-rails", "~> 2.8"
|
22
|
+
gem.add_development_dependency "guard", "~> 1.0"
|
23
|
+
gem.add_development_dependency "guard-rspec", "~> 0.6"
|
24
|
+
gem.add_development_dependency "rspec_tag_matchers", ">= 1.0"
|
25
25
|
gem.add_development_dependency "rake"
|
26
26
|
gem.add_development_dependency 'yard'
|
27
27
|
gem.add_development_dependency 'yard-tomdoc'
|
28
|
+
gem.add_development_dependency 'simple-navigation'
|
28
29
|
end
|
29
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.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &70220979225840 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70220979225840
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70220979225220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '3.0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70220979225220
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec-rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &70220979224720 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,21 +43,21 @@ dependencies:
|
|
43
43
|
version: '2.8'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70220979224720
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: guard
|
49
|
-
requirement: &
|
49
|
+
requirement: &70220979224240 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
54
|
+
version: '1.0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70220979224240
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: guard-rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70220979223640 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,21 +65,21 @@ dependencies:
|
|
65
65
|
version: '0.6'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70220979223640
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec_tag_matchers
|
71
|
-
requirement: &
|
71
|
+
requirement: &70220979223000 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 1.0
|
76
|
+
version: '1.0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70220979223000
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rake
|
82
|
-
requirement: &
|
82
|
+
requirement: &70220979222280 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70220979222280
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: yard
|
93
|
-
requirement: &
|
93
|
+
requirement: &70220979221040 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70220979221040
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: yard-tomdoc
|
104
|
-
requirement: &
|
104
|
+
requirement: &70220979220400 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,8 +109,20 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
113
|
-
|
112
|
+
version_requirements: *70220979220400
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: simple-navigation
|
115
|
+
requirement: &70220979219880 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *70220979219880
|
124
|
+
description: Ruby on Rails helpers for Bootstrap 2.0 - HTML, CSS, and JS toolkit from
|
125
|
+
Twitter
|
114
126
|
email:
|
115
127
|
- piotr@layer22.com
|
116
128
|
executables: []
|
@@ -118,6 +130,7 @@ extensions: []
|
|
118
130
|
extra_rdoc_files: []
|
119
131
|
files:
|
120
132
|
- .gitignore
|
133
|
+
- .rspec
|
121
134
|
- .travis.yml
|
122
135
|
- Gemfile
|
123
136
|
- Guardfile
|
@@ -132,12 +145,16 @@ files:
|
|
132
145
|
- lib/twitter-bootstrap-markup-rails/helpers.rb
|
133
146
|
- lib/twitter-bootstrap-markup-rails/helpers/alert_helpers.rb
|
134
147
|
- lib/twitter-bootstrap-markup-rails/helpers/inline_label_helpers.rb
|
148
|
+
- lib/twitter-bootstrap-markup-rails/plugins.rb
|
149
|
+
- lib/twitter-bootstrap-markup-rails/plugins/simple_navigation/renderer/bootstrap_topbar_list.rb
|
135
150
|
- lib/twitter-bootstrap-markup-rails/version.rb
|
136
151
|
- log/development.log
|
137
152
|
- spec/helpers/alert_helpers_spec.rb
|
138
153
|
- spec/helpers/inline_label_helpers_spec.rb
|
139
154
|
- spec/integration/action_view_spec.rb
|
155
|
+
- spec/plugins/bootstrap_topbar_list_spec.rb
|
140
156
|
- spec/spec_helper.rb
|
157
|
+
- spec/support/bootstrap_spec_helper.rb
|
141
158
|
- spec/support/test_environment.rb
|
142
159
|
- twitter-bootstrap-markup-rails.gemspec
|
143
160
|
homepage: https://github.com/pusewicz/twitter-bootstrap-markup-rails
|
@@ -160,14 +177,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
177
|
version: '0'
|
161
178
|
requirements: []
|
162
179
|
rubyforge_project:
|
163
|
-
rubygems_version: 1.8.
|
180
|
+
rubygems_version: 1.8.15
|
164
181
|
signing_key:
|
165
182
|
specification_version: 3
|
166
|
-
summary: Ruby on Rails helpers for HTML, CSS, and JS toolkit from
|
183
|
+
summary: Ruby on Rails helpers for Bootstrap 2.0 - HTML, CSS, and JS toolkit from
|
184
|
+
Twitter
|
167
185
|
test_files:
|
168
186
|
- spec/helpers/alert_helpers_spec.rb
|
169
187
|
- spec/helpers/inline_label_helpers_spec.rb
|
170
188
|
- spec/integration/action_view_spec.rb
|
189
|
+
- spec/plugins/bootstrap_topbar_list_spec.rb
|
171
190
|
- spec/spec_helper.rb
|
191
|
+
- spec/support/bootstrap_spec_helper.rb
|
172
192
|
- spec/support/test_environment.rb
|
173
193
|
has_rdoc:
|