bootstrap-navbar 2.1.4 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c9f93f5a5300001b57747d47ced1923f28ddd01
4
- data.tar.gz: 8d733218317b42eb780f67b6c3503bc87c1f99a2
3
+ metadata.gz: 8bd7a1a0771440f33d4f8a92df577311e1e41e3a
4
+ data.tar.gz: a475056e2f8fdd0daf22bcae9c465f60341ee7f5
5
5
  SHA512:
6
- metadata.gz: cd8b71ffaae818d27d5668eefe73b8e7e478f3e3863fa7b4bf3e1364a2efcb3215cb4938cf633ed86e393f816d5fb63df5c5027414741efc59fe91f6361ebffe
7
- data.tar.gz: 34e4dea3089899cdc6fbe1c4ebf61df509f4690e5680247feccc6991365f33b43c1c21f549c92418c3ef9f21f872a6fbe477a97b45d0df8ac7b90b8e570456e6
6
+ metadata.gz: dc8dc984e867fca712edbb1220f9b61ea81dba16fbf5bdede9da59d9709a5a25783c6d6595187d5f07af56aac966f318f1e184b581dd331f7556ab2b2f1e900d
7
+ data.tar.gz: c0cefceeb5f3afc26aeb1c5daf3a8979bdeb1afb0210902fbc1e4adf04b7e3c1ba4fbd2583581013ec7c05d700f70fac51c26ac382ad019e07f14218c86afed2
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.email = 'manuel@krautcomputing.com'
14
14
  gem.summary = 'Helpers to generate a Twitter Bootstrap style navbar'
15
15
  gem.description = 'Helpers to generate a Twitter Bootstrap style navbar'
16
- gem.homepage = 'https://github.com/bootstrap-ruby/bootstrap-navbar'
16
+ gem.homepage = 'http://krautcomputing.github.io/bootstrap-navbar'
17
17
  gem.license = 'MIT'
18
18
 
19
19
  gem.files = `git ls-files`.split($/)
@@ -83,7 +83,7 @@ HTML
83
83
  HTML
84
84
  end
85
85
 
86
- def navbar_form(options = {}, &block)
86
+ def navbar_form(url, options = {}, &block)
87
87
  options = options.dup
88
88
  css_classes = %w(navbar-form).tap do |css_classes|
89
89
  css_classes << "navbar-#{options.delete(:align)}" if options.has_key?(:align)
@@ -92,7 +92,7 @@ HTML
92
92
  role = options.delete(:role) || 'form'
93
93
  attributes = attributes_for_tag(options.reverse_merge(class: css_classes.join(' '), role: role))
94
94
  prepare_html <<-HTML.chomp!
95
- <form#{attributes}>
95
+ <form action="#{url}" #{attributes}>
96
96
  #{capture(&block) if block_given?}
97
97
  </form>
98
98
  HTML
@@ -1,3 +1,3 @@
1
1
  module BootstrapNavbar
2
- VERSION = '2.1.4'
2
+ VERSION = '2.2.0'
3
3
  end
@@ -154,15 +154,17 @@ describe BootstrapNavbar::Helpers::Bootstrap3 do
154
154
  end
155
155
 
156
156
  describe '#navbar_form' do
157
- context 'without parameters' do
157
+ let(:url) { '/foo' }
158
+
159
+ context 'without additional parameters' do
158
160
  it 'generates the correct HTML' do
159
- expect(renderer.navbar_form { 'foo' }).to have_tag(:form, with: { class: 'navbar-form', role: 'form' }, text: /foo/)
161
+ expect(renderer.navbar_form(url) { 'foo' }).to have_tag(:form, with: { action: url, class: 'navbar-form', role: 'form' }, text: /foo/)
160
162
  end
161
163
  end
162
164
 
163
165
  context 'with "align" parameter' do
164
166
  it 'generates the correct HTML' do
165
- expect(renderer.navbar_form(align: 'left') { 'foo' }).to have_tag(:form, with: { class: 'navbar-form navbar-left', role: 'form' }, text: /foo/)
167
+ expect(renderer.navbar_form(url, align: 'left') { 'foo' }).to have_tag(:form, with: { action: url, class: 'navbar-form navbar-left', role: 'form' }, text: /foo/)
166
168
  end
167
169
  end
168
170
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-navbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-13 00:00:00.000000000 Z
11
+ date: 2014-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-html-matchers
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.6'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: guard-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '4.2'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '4.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: padrino-helpers
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.12'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.12'
83
83
  - !ruby/object:Gem::Dependency
@@ -98,14 +98,14 @@ dependencies:
98
98
  name: gem_config
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.3'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.3'
111
111
  description: Helpers to generate a Twitter Bootstrap style navbar
@@ -114,7 +114,7 @@ executables: []
114
114
  extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
- - .travis.yml
117
+ - ".travis.yml"
118
118
  - CHANGELOG.md
119
119
  - Gemfile
120
120
  - Guardfile
@@ -132,7 +132,7 @@ files:
132
132
  - spec/bootstrap-navbar/helpers_spec.rb
133
133
  - spec/spec_helper.rb
134
134
  - spec/support/helpers.rb
135
- homepage: https://github.com/bootstrap-ruby/bootstrap-navbar
135
+ homepage: http://krautcomputing.github.io/bootstrap-navbar
136
136
  licenses:
137
137
  - MIT
138
138
  metadata: {}
@@ -142,17 +142,17 @@ require_paths:
142
142
  - lib
143
143
  required_ruby_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - '>='
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.2.2
155
+ rubygems_version: 2.4.1
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Helpers to generate a Twitter Bootstrap style navbar