simple_navigation_bootstrap 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: c20dbbef3fb7a6727b4f246c058bf166c5ea98a82d5483b38b38a4cd653b7326
4
- data.tar.gz: f5f1e6934d5cd294939c6b1c48d5ccf2ba465b8542791508e2cb0c3a66b7144c
3
+ metadata.gz: 779f3163dcc11ceeba437ddf6dc76cd545e28759587cbd85b5165b85fcbe1391
4
+ data.tar.gz: 56224bf0a3fbbcf232fb5c03c1c2b463bac12a8867b4e06c1c42b8a59d9e0dd6
5
5
  SHA512:
6
- metadata.gz: 6c496c502ac7085a633e18c4fe9493012f5a99da12f0a28bcc7a9d555ae1377433b85049b35c7122d57c11666f19243317363219fe136137da123d5382ae8ec5
7
- data.tar.gz: 89b581b1ed5d5dfc3bffa48a4756e0550a3dc424d9331d11c7c404e0d17c23b475fcddaa0377f305d16471e65f8fa0d6e1531a00cf1bb9ba84bb6e95c9117e8e
6
+ metadata.gz: 824cad6eeffc0658507ec15903fff99fccb32af1850f61d892f3c2233286fff45af3aec9e5339a4747b1ce81eba96e9659b5aafbdb3e6e7716c89deb52a38778
7
+ data.tar.gz: 85cf790ac9112336583f72efca3181e3b160898486c619860dcc0eb0072c8e27f4ec4c66589205f0c7584e7a8dfd99faff6ef2e84f1d5e75cc980de1e9bb6845
@@ -3,9 +3,9 @@ language: ruby
3
3
  cache: bundler
4
4
  sudo: false
5
5
  rvm:
6
- - 2.5.1
7
- - 2.4.4
8
- - 2.3.7
6
+ - 2.5.3
7
+ - 2.4.5
8
+ - 2.3.8
9
9
  - jruby-9.2.0.0
10
10
  after_success:
11
11
  - bundle exec codeclimate-test-reporter
data/README.md CHANGED
@@ -11,7 +11,8 @@
11
11
  This gem adds Bootstrap renderers for [Simple Navigation](https://github.com/codeplant/simple-navigation). For now, it is include renderers for:
12
12
 
13
13
  * [Bootstrap 2 navigation](http://getbootstrap.com/2.3.2/components.html#navbar)
14
- * [Bootstrap 3 navigation](http://getbootstrap.com/components/#navbar)
14
+ * [Bootstrap 3 navigation](https://getbootstrap.com/docs/3.3/components/#navbar)
15
+ * [Bootstrap 4 navigation](https://getbootstrap.com/docs/4.0/components/navbar/)
15
16
 
16
17
  With these renderers you will be able create **any Bootstrap navigation elements**, such as: **submenu**, **navbar-text**, **divider**, **header**.
17
18
  As well as add **icons** to menu elements, such as: Glyphicons, Font Awesome icons, even custom icons. Also you have **split** option for main menu containing submenu.
@@ -34,7 +34,7 @@ module SimpleNavigationBootstrap
34
34
 
35
35
 
36
36
  def container_class(level)
37
- remove_navigation_class = options.delete(:remove_navigation_class) { false }
37
+ remove_navigation_class = options.fetch(:remove_navigation_class) { false }
38
38
  if level == 1
39
39
  remove_navigation_class ? '' : ['nav', navigation_class].compact
40
40
  else
@@ -14,11 +14,11 @@ module SimpleNavigationBootstrap
14
14
  @bootstrap_version = bootstrap_version
15
15
 
16
16
  @options = item.html_options
17
- @navbar_text = options.delete(:navbar_text)
18
- @divider = options.delete(:divider) { false }
19
- @header = options.delete(:header) { false }
20
- @split = options.delete(:split) { false }
21
- @skip_caret = options.delete(:skip_caret) { false }
17
+ @navbar_text = options.fetch(:navbar_text) { nil }
18
+ @divider = options.fetch(:divider) { false }
19
+ @header = options.fetch(:header) { false }
20
+ @split = options.fetch(:split) { false }
21
+ @skip_caret = options.fetch(:skip_caret) { false }
22
22
  @link_options = @item.link_html_options || {}
23
23
  end
24
24
 
@@ -9,7 +9,7 @@ module SimpleNavigationBootstrap
9
9
  module VERSION
10
10
  MAJOR = 1
11
11
  MINOR = 1
12
- TINY = 0
12
+ TINY = 1
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.0
4
+ version: 1.1.1
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-08-27 00:00:00.000000000 Z
12
+ date: 2018-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simple-navigation