simple_navigation_bootstrap 1.1.1 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 779f3163dcc11ceeba437ddf6dc76cd545e28759587cbd85b5165b85fcbe1391
4
- data.tar.gz: 56224bf0a3fbbcf232fb5c03c1c2b463bac12a8867b4e06c1c42b8a59d9e0dd6
3
+ metadata.gz: 0006ec72c31300c28c3aa3c10417edb44234c99e1816ea68c4085282af648079
4
+ data.tar.gz: 0a6a0f4be22120382a4f332e2b65a0ef424c37a8ed3c4b6e0feb2079848e5252
5
5
  SHA512:
6
- metadata.gz: 824cad6eeffc0658507ec15903fff99fccb32af1850f61d892f3c2233286fff45af3aec9e5339a4747b1ce81eba96e9659b5aafbdb3e6e7716c89deb52a38778
7
- data.tar.gz: 85cf790ac9112336583f72efca3181e3b160898486c619860dcc0eb0072c8e27f4ec4c66589205f0c7584e7a8dfd99faff6ef2e84f1d5e75cc980de1e9bb6845
6
+ metadata.gz: 505f73fb61b28bb84889be932d6fcb245757618a4840ea0d3b4a169076ae529c2e8c2dce0fb67fa56ff4fed42627fb93a30b5867a1e9f831535097eb8ac86ccf
7
+ data.tar.gz: 966bbd4fab96f4fb4530aad234c979e827e224feefbd477d404e1018bd5d53693cdbecf2232a6d460b46c8fe944b179523193b6f4633b1ed424c183a47342cad
@@ -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
- - jruby-9.2.0.0
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
@@ -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
@@ -8,8 +8,8 @@ module SimpleNavigationBootstrap
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 1
11
- MINOR = 1
12
- TINY = 1
11
+ MINOR = 2
12
+ TINY = 0
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- $LOAD_PATH.push File.expand_path('lib', __dir__)
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.1.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: 2018-10-31 00:00:00.000000000 Z
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
- rubyforge_project:
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: []