rocket_navigation 0.1.2 → 0.1.3

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: 35b772639af522efe6ee9f6c0434418bd161da5c2c375ea68c2eed7066f7df4f
4
- data.tar.gz: 7bd5d52df5e0dd3323d3f8463ead1494773e1f747576a1845676b97913d3a3a0
3
+ metadata.gz: b655c6a0dbb6ce63dcb632e0c33e3246ea244a47f971b5346ebb9932403143f5
4
+ data.tar.gz: 74b8609b86f56eb04b00e41f321bc1387d744406f3152fd50f4808620b113b35
5
5
  SHA512:
6
- metadata.gz: 8b216aab6702634de797cfc6eb0e550c343aeaaf2b5770a650f78367b07b8b88769303b44c1c670147b7ca193240adc96cf44f71a209ec03f255b6d05b26a662
7
- data.tar.gz: a9fe3b7aa4d4dbe4d91cc2270f940ef11ab1382be7b3b16a7ddbcd7c3a3d9da53ef34dd56c3ec6986e39914c84bc635ed8c78c46a627a59553764825f66b96fe
6
+ metadata.gz: 3f6508e1b90e1d51aa28bb89d84faa96d8470159d085e9ebef8d83876bcd87856c77be6178d3b36baa6f05f4007c9f6c3c6c3236301470ae46d2be2e637b3de0
7
+ data.tar.gz: f8554c570158217805b53da94b09536166bbbc6ce5b7f54ee31d632be37d74780dd2afd839935b2987c0438b48889fad9a54c19d873e67d711471e0426d19368
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_navigation (0.1.1)
4
+ rocket_navigation (0.1.3)
5
5
  actionpack (>= 5.0)
6
6
  actionview (>= 5.0)
7
7
  activesupport (>= 5.0)
@@ -9,59 +9,63 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (5.1.5)
13
- actionpack (= 5.1.5)
12
+ actioncable (5.2.0)
13
+ actionpack (= 5.2.0)
14
14
  nio4r (~> 2.0)
15
- websocket-driver (~> 0.6.1)
16
- actionmailer (5.1.5)
17
- actionpack (= 5.1.5)
18
- actionview (= 5.1.5)
19
- activejob (= 5.1.5)
15
+ websocket-driver (>= 0.6.1)
16
+ actionmailer (5.2.0)
17
+ actionpack (= 5.2.0)
18
+ actionview (= 5.2.0)
19
+ activejob (= 5.2.0)
20
20
  mail (~> 2.5, >= 2.5.4)
21
21
  rails-dom-testing (~> 2.0)
22
- actionpack (5.1.5)
23
- actionview (= 5.1.5)
24
- activesupport (= 5.1.5)
22
+ actionpack (5.2.0)
23
+ actionview (= 5.2.0)
24
+ activesupport (= 5.2.0)
25
25
  rack (~> 2.0)
26
26
  rack-test (>= 0.6.3)
27
27
  rails-dom-testing (~> 2.0)
28
28
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.1.5)
30
- activesupport (= 5.1.5)
29
+ actionview (5.2.0)
30
+ activesupport (= 5.2.0)
31
31
  builder (~> 3.1)
32
32
  erubi (~> 1.4)
33
33
  rails-dom-testing (~> 2.0)
34
34
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.1.5)
36
- activesupport (= 5.1.5)
35
+ activejob (5.2.0)
36
+ activesupport (= 5.2.0)
37
37
  globalid (>= 0.3.6)
38
- activemodel (5.1.5)
39
- activesupport (= 5.1.5)
40
- activerecord (5.1.5)
41
- activemodel (= 5.1.5)
42
- activesupport (= 5.1.5)
43
- arel (~> 8.0)
44
- activesupport (5.1.5)
38
+ activemodel (5.2.0)
39
+ activesupport (= 5.2.0)
40
+ activerecord (5.2.0)
41
+ activemodel (= 5.2.0)
42
+ activesupport (= 5.2.0)
43
+ arel (>= 9.0)
44
+ activestorage (5.2.0)
45
+ actionpack (= 5.2.0)
46
+ activerecord (= 5.2.0)
47
+ marcel (~> 0.3.1)
48
+ activesupport (5.2.0)
45
49
  concurrent-ruby (~> 1.0, >= 1.0.2)
46
- i18n (~> 0.7)
50
+ i18n (>= 0.7, < 2)
47
51
  minitest (~> 5.1)
48
52
  tzinfo (~> 1.1)
49
53
  addressable (2.5.2)
50
54
  public_suffix (>= 2.0.2, < 4.0)
51
- arel (8.0.0)
55
+ arel (9.0.0)
52
56
  builder (3.2.3)
53
- capybara (2.18.0)
57
+ capybara (3.1.0)
54
58
  addressable
55
59
  mini_mime (>= 0.1.3)
56
- nokogiri (>= 1.3.3)
57
- rack (>= 1.0.0)
58
- rack-test (>= 0.5.4)
59
- xpath (>= 2.0, < 4.0)
60
+ nokogiri (~> 1.8)
61
+ rack (>= 1.6.0)
62
+ rack-test (>= 0.6.3)
63
+ xpath (~> 3.0)
60
64
  coderay (1.1.2)
61
65
  concurrent-ruby (1.0.5)
62
- crass (1.0.3)
66
+ crass (1.0.4)
63
67
  diff-lcs (1.3)
64
- docile (1.1.5)
68
+ docile (1.3.0)
65
69
  erubi (1.7.1)
66
70
  ffi (1.9.23)
67
71
  formatador (0.2.5)
@@ -81,25 +85,28 @@ GEM
81
85
  guard (~> 2.1)
82
86
  guard-compat (~> 1.1)
83
87
  rspec (>= 2.99.0, < 4.0)
84
- i18n (0.9.5)
88
+ i18n (1.0.1)
85
89
  concurrent-ruby (~> 1.0)
86
90
  json (2.1.0)
87
91
  listen (3.1.5)
88
92
  rb-fsevent (~> 0.9, >= 0.9.4)
89
93
  rb-inotify (~> 0.9, >= 0.9.7)
90
94
  ruby_dep (~> 1.2)
91
- loofah (2.2.0)
95
+ loofah (2.2.2)
92
96
  crass (~> 1.0.2)
93
97
  nokogiri (>= 1.5.9)
94
- lumberjack (1.0.12)
98
+ lumberjack (1.0.13)
95
99
  mail (2.7.0)
96
100
  mini_mime (>= 0.1.1)
101
+ marcel (0.3.2)
102
+ mimemagic (~> 0.3.2)
97
103
  method_source (0.9.0)
104
+ mimemagic (0.3.2)
98
105
  mini_mime (1.0.0)
99
106
  mini_portile2 (2.3.0)
100
107
  minitest (5.11.3)
101
108
  nenv (0.3.0)
102
- nio4r (2.2.0)
109
+ nio4r (2.3.1)
103
110
  nokogiri (1.8.2)
104
111
  mini_portile2 (~> 2.3.0)
105
112
  notiffany (0.1.1)
@@ -109,37 +116,38 @@ GEM
109
116
  coderay (~> 1.1.0)
110
117
  method_source (~> 0.9.0)
111
118
  public_suffix (3.0.2)
112
- rack (2.0.4)
113
- rack-test (0.8.3)
119
+ rack (2.0.5)
120
+ rack-test (1.0.0)
114
121
  rack (>= 1.0, < 3)
115
- rails (5.1.5)
116
- actioncable (= 5.1.5)
117
- actionmailer (= 5.1.5)
118
- actionpack (= 5.1.5)
119
- actionview (= 5.1.5)
120
- activejob (= 5.1.5)
121
- activemodel (= 5.1.5)
122
- activerecord (= 5.1.5)
123
- activesupport (= 5.1.5)
122
+ rails (5.2.0)
123
+ actioncable (= 5.2.0)
124
+ actionmailer (= 5.2.0)
125
+ actionpack (= 5.2.0)
126
+ actionview (= 5.2.0)
127
+ activejob (= 5.2.0)
128
+ activemodel (= 5.2.0)
129
+ activerecord (= 5.2.0)
130
+ activestorage (= 5.2.0)
131
+ activesupport (= 5.2.0)
124
132
  bundler (>= 1.3.0)
125
- railties (= 5.1.5)
133
+ railties (= 5.2.0)
126
134
  sprockets-rails (>= 2.0.0)
127
135
  rails-dom-testing (2.0.3)
128
136
  activesupport (>= 4.2.0)
129
137
  nokogiri (>= 1.6)
130
- rails-html-sanitizer (1.0.3)
131
- loofah (~> 2.0)
132
- railties (5.1.5)
133
- actionpack (= 5.1.5)
134
- activesupport (= 5.1.5)
138
+ rails-html-sanitizer (1.0.4)
139
+ loofah (~> 2.2, >= 2.2.2)
140
+ railties (5.2.0)
141
+ actionpack (= 5.2.0)
142
+ activesupport (= 5.2.0)
135
143
  method_source
136
144
  rake (>= 0.8.7)
137
145
  thor (>= 0.18.1, < 2.0)
138
- rake (12.3.0)
146
+ rake (12.3.1)
139
147
  rb-fsevent (0.10.3)
140
148
  rb-inotify (0.9.10)
141
149
  ffi (>= 0.5.0, < 2)
142
- rdoc (6.0.1)
150
+ rdoc (6.0.4)
143
151
  rspec (3.7.0)
144
152
  rspec-core (~> 3.7.0)
145
153
  rspec-expectations (~> 3.7.0)
@@ -163,8 +171,8 @@ GEM
163
171
  rspec-support (3.7.1)
164
172
  ruby_dep (1.5.0)
165
173
  shellany (0.0.1)
166
- simplecov (0.15.1)
167
- docile (~> 1.1.0)
174
+ simplecov (0.16.1)
175
+ docile (~> 1.1)
168
176
  json (>= 1.8, < 3)
169
177
  simplecov-html (~> 0.10.0)
170
178
  simplecov-html (0.10.2)
@@ -179,7 +187,7 @@ GEM
179
187
  thread_safe (0.3.6)
180
188
  tzinfo (1.2.5)
181
189
  thread_safe (~> 0.1)
182
- websocket-driver (0.6.5)
190
+ websocket-driver (0.7.0)
183
191
  websocket-extensions (>= 0.1.0)
184
192
  websocket-extensions (0.1.3)
185
193
  xpath (3.0.0)
@@ -79,6 +79,16 @@ module RocketNavigation
79
79
  url == '/'
80
80
  end
81
81
 
82
+ def inspect
83
+ "#<RocketNavigation::Item:#{object_id}
84
+ @key=#{@key}
85
+ @name=#{@name}
86
+ @sub_navigation=#{@sub_navigation.inspect}
87
+ @url=#{@url.inspect}
88
+ @options=#{@options.inspect}
89
+ >"
90
+ end
91
+
82
92
  private
83
93
 
84
94
  attr_accessor :container,
@@ -122,7 +122,6 @@ module RocketNavigation
122
122
 
123
123
  def renderer_instance(options)
124
124
  return renderer.new(self, options) unless options[:renderer]
125
-
126
125
  if options[:renderer].is_a?(Symbol)
127
126
  registered_renderer = RocketNavigation.registered_renderers[options[:renderer]]
128
127
  registered_renderer.new(self, options)
@@ -16,7 +16,7 @@ module RocketNavigation
16
16
  def render(item_container)
17
17
  item_container.items.each do |item|
18
18
  next unless item.selected?
19
- add_breadcrumb(item.name, item.url, item_html(item))
19
+ view_context.add_breadcrumb(item.name, item.url, item_html(item))
20
20
  if include_sub_navigation?(item)
21
21
  render(item.sub_navigation)
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module RocketNavigation
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  requirements: []
250
250
  rubyforge_project:
251
- rubygems_version: 2.7.6
251
+ rubygems_version: 2.7.7
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: rocket_navigation is a gem for creating navigation / menu (for Rails).