rails_bootstrap_navbar 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -4
- data/README.md +23 -3
- data/lib/rails-bootstrap-navbar/version.rb +1 -1
- data/rails_bootstrap_navbar.gemspec +6 -6
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6309ba882139ed1c22f9ec99021c24ec3275eb70
|
4
|
+
data.tar.gz: 15f090354dba098c0f843f824e39830d557a87b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e91df2fd64e3ff3d90d3c75282738a3ebab114f63c5a28fdce291dbb9149bb2b3c5882bca5a89204b97db1b4f7acecc6dea6eb72125e86f43cba05d3fc4a89aa
|
7
|
+
data.tar.gz: 79d02cbedc9c12334334b8409ab20cf4108b3befff2a56efddd633182804cb0864d30f9fb0e071a2eb76f8d3feef623d595e28f90892b0a35f095734b29cd47e
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.lock
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[![Dependency Status](https://gemnasium.com/bootstrap-ruby/rails-bootstrap-navbar.png)](https://gemnasium.com/bootstrap-ruby/rails-bootstrap-navbar)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/bootstrap-ruby/rails-bootstrap-navbar.png)](https://codeclimate.com/github/bootstrap-ruby/rails-bootstrap-navbar)
|
7
7
|
|
8
|
-
Easily generate a [
|
8
|
+
Easily generate a [Bootstrap](https://getbootstrap.com/) navbar in your Rails app
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
@@ -29,11 +29,31 @@ At least the CSS files for the navbar are required, and the JS files for dropdow
|
|
29
29
|
|
30
30
|
## Usage
|
31
31
|
|
32
|
+
### Set Bootstrap version
|
33
|
+
|
34
|
+
This gem needs to know which Bootstrap version you are using, because the navbar HTML looks different in different Bootstrap versions.
|
35
|
+
|
36
|
+
If you're using either the [`bootstrap-sass`](https://github.com/twbs/bootstrap-sass) or [`bootstrap`](https://github.com/twbs/bootstrap-rubygem) gem, you're all set because the Boostrap version will be sniffed automatically from those gems' versions. Make sure to include the `bootstrap-sass` or `bootstrap` gem before `rails_bootstrap_navbar` in your Gemfile though.
|
37
|
+
|
38
|
+
If you include the Bootstrap CSS and JS some other way, you need to set the Bootstrap version explicitly in an initializer:
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
# config/initializers/rails-bootstrap-navbar.rb
|
42
|
+
|
43
|
+
BootstrapNavbar.configure do |config|
|
44
|
+
config.bootstrap_version = '4.0.0'
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Output HTML
|
49
|
+
|
32
50
|
The gem [bootstrap-navbar](https://github.com/bootstrap-ruby/bootstrap-navbar) is used to generate the HTML. Please refer to the gem's [README](https://github.com/bootstrap-ruby/bootstrap-navbar/blob/master/README.md) and the following Wiki entries for detailed instructions on how to generate the navbar:
|
33
51
|
|
34
|
-
[Usage with Bootstrap 2
|
52
|
+
[Usage with Bootstrap 2](https://github.com/bootstrap-ruby/bootstrap-navbar/wiki/Usage-with-Bootstrap-2)
|
53
|
+
|
54
|
+
[Usage with Bootstrap 3](https://github.com/bootstrap-ruby/bootstrap-navbar/wiki/Usage-with-Bootstrap-3)
|
35
55
|
|
36
|
-
[Usage with Bootstrap
|
56
|
+
[Usage with Bootstrap 4](https://github.com/bootstrap-ruby/bootstrap-navbar/wiki/Usage-with-Bootstrap-4)
|
37
57
|
|
38
58
|
## Acknowledgements
|
39
59
|
|
@@ -9,11 +9,11 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.name = 'rails_bootstrap_navbar'
|
10
10
|
gem.version = RailsBootstrapNavbar::VERSION
|
11
11
|
gem.platform = Gem::Platform::RUBY
|
12
|
-
gem.
|
12
|
+
gem.author = 'Manuel Meurer'
|
13
13
|
gem.email = 'manuel@krautcomputing.com'
|
14
|
-
gem.description = 'Easily generate a
|
15
|
-
gem.summary = 'Easily generate a
|
16
|
-
gem.homepage = '
|
14
|
+
gem.description = 'Easily generate a Bootstrap navbar in your Rails app'
|
15
|
+
gem.summary = 'Easily generate a Bootstrap navbar in your Rails app'
|
16
|
+
gem.homepage = 'http://bootstrap-ruby.github.io/rails-bootstrap-navbar'
|
17
17
|
gem.license = 'MIT'
|
18
18
|
|
19
19
|
gem.files = `git ls-files`.split($/)
|
@@ -21,10 +21,10 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.test_files = gem.files.grep(%r(^(test|spec|features)/))
|
22
22
|
gem.require_paths = ['lib']
|
23
23
|
|
24
|
-
gem.add_development_dependency 'rake', '
|
24
|
+
gem.add_development_dependency 'rake', '< 11.0'
|
25
25
|
gem.add_development_dependency 'rspec', '~> 2.13'
|
26
26
|
gem.add_development_dependency 'guard-rspec', '~> 3.0'
|
27
27
|
|
28
|
-
gem.add_runtime_dependency 'bootstrap-navbar', '~>
|
28
|
+
gem.add_runtime_dependency 'bootstrap-navbar', '~> 3.0'
|
29
29
|
gem.add_runtime_dependency 'rails', '>= 3.0.0'
|
30
30
|
end
|
metadata
CHANGED
@@ -1,93 +1,94 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_bootstrap_navbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.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:
|
11
|
+
date: 2017-10-22 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
|
-
version:
|
19
|
+
version: '11.0'
|
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
|
-
version:
|
26
|
+
version: '11.0'
|
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: '2.13'
|
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: '2.13'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: guard-rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.0'
|
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: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bootstrap-navbar
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.0.0
|
76
76
|
type: :runtime
|
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: 3.0.0
|
83
|
-
description: Easily generate a
|
83
|
+
description: Easily generate a Bootstrap navbar in your Rails app
|
84
84
|
email: manuel@krautcomputing.com
|
85
85
|
executables: []
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
|
-
- .
|
90
|
-
- .
|
89
|
+
- ".gitignore"
|
90
|
+
- ".rspec"
|
91
|
+
- ".travis.yml"
|
91
92
|
- CHANGELOG.md
|
92
93
|
- Gemfile
|
93
94
|
- Guardfile
|
@@ -100,7 +101,7 @@ files:
|
|
100
101
|
- lib/rails_bootstrap_navbar.rb
|
101
102
|
- rails_bootstrap_navbar.gemspec
|
102
103
|
- spec/spec_helper.rb
|
103
|
-
homepage:
|
104
|
+
homepage: http://bootstrap-ruby.github.io/rails-bootstrap-navbar
|
104
105
|
licenses:
|
105
106
|
- MIT
|
106
107
|
metadata: {}
|
@@ -110,20 +111,19 @@ require_paths:
|
|
110
111
|
- lib
|
111
112
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
113
|
requirements:
|
113
|
-
- -
|
114
|
+
- - ">="
|
114
115
|
- !ruby/object:Gem::Version
|
115
116
|
version: '0'
|
116
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
118
|
requirements:
|
118
|
-
- -
|
119
|
+
- - ">="
|
119
120
|
- !ruby/object:Gem::Version
|
120
121
|
version: '0'
|
121
122
|
requirements: []
|
122
123
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.6.13
|
124
125
|
signing_key:
|
125
126
|
specification_version: 4
|
126
|
-
summary: Easily generate a
|
127
|
+
summary: Easily generate a Bootstrap navbar in your Rails app
|
127
128
|
test_files:
|
128
129
|
- spec/spec_helper.rb
|
129
|
-
has_rdoc:
|