simple_navigation_bootstrap 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -2
- data/CHANGELOG.md +10 -0
- data/lib/simple_navigation_bootstrap.rb +2 -0
- data/lib/simple_navigation_bootstrap/bootstrap4.rb +28 -0
- data/lib/simple_navigation_bootstrap/version.rb +2 -2
- data/simple_navigation_bootstrap.gemspec +3 -7
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0006ec72c31300c28c3aa3c10417edb44234c99e1816ea68c4085282af648079
|
4
|
+
data.tar.gz: 0a6a0f4be22120382a4f332e2b65a0ef424c37a8ed3c4b6e0feb2079848e5252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 505f73fb61b28bb84889be932d6fcb245757618a4840ea0d3b4a169076ae529c2e8c2dce0fb67fa56ff4fed42627fb93a30b5867a1e9f831535097eb8ac86ccf
|
7
|
+
data.tar.gz: 966bbd4fab96f4fb4530aad234c979e827e224feefbd477d404e1018bd5d53693cdbecf2232a6d460b46c8fe944b179523193b6f4633b1ed424c183a47342cad
|
data/.travis.yml
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
-
dist: trusty
|
2
1
|
language: ruby
|
3
2
|
cache: bundler
|
4
3
|
sudo: false
|
5
4
|
rvm:
|
5
|
+
- 2.6.1
|
6
6
|
- 2.5.3
|
7
7
|
- 2.4.5
|
8
8
|
- 2.3.8
|
9
|
-
-
|
9
|
+
- ruby-head
|
10
|
+
- jruby-9.2.5.0
|
11
|
+
before_install:
|
12
|
+
- gem update --system
|
13
|
+
- gem install bundler --no-document
|
10
14
|
after_success:
|
11
15
|
- bundle exec codeclimate-test-reporter
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
## CHANGELOG
|
2
2
|
|
3
|
+
### 1.2.0 - 2019-02-09
|
4
|
+
|
5
|
+
* Add Bootstrap4 renderer
|
6
|
+
|
7
|
+
|
8
|
+
### 1.1.1 - 2018-10-31
|
9
|
+
|
10
|
+
* Use Hash#fetch instead of #delete to not change menu options
|
11
|
+
|
12
|
+
|
3
13
|
### 1.1.0 - 2018-08-27
|
4
14
|
|
5
15
|
* Add magic comment # frozen_string_literal: true
|
@@ -9,8 +9,10 @@ module SimpleNavigationBootstrap
|
|
9
9
|
require 'simple_navigation_bootstrap/bootstrap_base'
|
10
10
|
require 'simple_navigation_bootstrap/bootstrap2'
|
11
11
|
require 'simple_navigation_bootstrap/bootstrap3'
|
12
|
+
require 'simple_navigation_bootstrap/bootstrap4'
|
12
13
|
require 'simple_navigation_bootstrap/engine' if defined? Rails::Engine
|
13
14
|
end
|
14
15
|
|
15
16
|
SimpleNavigation.register_renderer(bootstrap2: SimpleNavigationBootstrap::Bootstrap2)
|
16
17
|
SimpleNavigation.register_renderer(bootstrap3: SimpleNavigationBootstrap::Bootstrap3)
|
18
|
+
SimpleNavigation.register_renderer(bootstrap4: SimpleNavigationBootstrap::Bootstrap4)
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SimpleNavigationBootstrap
|
4
|
+
class Bootstrap4 < SimpleNavigation::Renderer::Base
|
5
|
+
|
6
|
+
include BootstrapBase
|
7
|
+
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
|
12
|
+
def bootstrap_version
|
13
|
+
4
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
def navigation_class
|
18
|
+
'navbar-nav'
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
def container_class(_level)
|
23
|
+
remove_navigation_class = options.fetch(:remove_navigation_class) { false }
|
24
|
+
remove_navigation_class ? '' : ['nav', navigation_class].compact
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
require 'simple_navigation_bootstrap/version'
|
3
|
+
require_relative 'lib/simple_navigation_bootstrap/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
6
|
s.name = 'simple_navigation_bootstrap'
|
@@ -14,6 +13,8 @@ Gem::Specification.new do |s|
|
|
14
13
|
s.description = 'This gem adds Bootstrap2 and Bootstrap3 renderers for SimpleNavigation'
|
15
14
|
s.license = 'MIT'
|
16
15
|
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
|
17
18
|
s.add_runtime_dependency 'simple-navigation', '~> 4.0'
|
18
19
|
|
19
20
|
s.add_development_dependency 'actionpack'
|
@@ -21,9 +22,4 @@ Gem::Specification.new do |s|
|
|
21
22
|
s.add_development_dependency 'rake'
|
22
23
|
s.add_development_dependency 'rspec'
|
23
24
|
s.add_development_dependency 'simplecov'
|
24
|
-
|
25
|
-
s.files = `git ls-files`.split("\n")
|
26
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
27
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
28
|
-
s.require_paths = ['lib']
|
29
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_navigation_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Shpak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simple-navigation
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- lib/simple_navigation_bootstrap.rb
|
118
118
|
- lib/simple_navigation_bootstrap/bootstrap2.rb
|
119
119
|
- lib/simple_navigation_bootstrap/bootstrap3.rb
|
120
|
+
- lib/simple_navigation_bootstrap/bootstrap4.rb
|
120
121
|
- lib/simple_navigation_bootstrap/bootstrap_base.rb
|
121
122
|
- lib/simple_navigation_bootstrap/engine.rb
|
122
123
|
- lib/simple_navigation_bootstrap/errors.rb
|
@@ -152,15 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
- !ruby/object:Gem::Version
|
153
154
|
version: '0'
|
154
155
|
requirements: []
|
155
|
-
|
156
|
-
rubygems_version: 2.7.7
|
156
|
+
rubygems_version: 3.0.2
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: A Ruby gem that adds Bootstrap renderers for SimpleNavigation
|
160
|
-
test_files:
|
161
|
-
- spec/lib/simple_navigation_bootstrap/bootstrap2_spec.rb
|
162
|
-
- spec/lib/simple_navigation_bootstrap/bootstrap3_spec.rb
|
163
|
-
- spec/lib/simple_navigation_bootstrap/exceptions_spec.rb
|
164
|
-
- spec/lib/simple_navigation_renderers_spec.rb
|
165
|
-
- spec/spec_helper.rb
|
166
|
-
- spec/support/test_helper.rb
|
160
|
+
test_files: []
|