optics_view_components 0.1.9 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile +7 -2
- data/Gemfile.lock +266 -136
- data/app/components/optics/sidebar/component.rb +7 -5
- data/demo/.ruby-version +1 -1
- data/demo/Gemfile +1 -1
- data/demo/Gemfile.lock +9 -9
- data/demo/public/assets/.sprockets-manifest-9054defc6f9a603f4d0efa7eef36e3a7.json +1 -0
- data/demo/public/assets/actioncable-5433453f9b6619a9de91aaab2d7fc7ff183e5260c0107cbc9a1aa0c838d9a74e.js +489 -0
- data/demo/public/assets/actioncable-5433453f9b6619a9de91aaab2d7fc7ff183e5260c0107cbc9a1aa0c838d9a74e.js.gz +0 -0
- data/demo/public/assets/actioncable.esm-e01089c3ec4fe7817fa9abcad06cab6bdc387f95f0ca6aab4bf7ba7537f70690.js +491 -0
- data/demo/public/assets/actioncable.esm-e01089c3ec4fe7817fa9abcad06cab6bdc387f95f0ca6aab4bf7ba7537f70690.js.gz +0 -0
- data/demo/public/assets/application-0637d2874099d8ba663ba7c4b7ae404ed5d14dce524e1199c89ad93f13956807.css +3715 -0
- data/demo/public/assets/application-0637d2874099d8ba663ba7c4b7ae404ed5d14dce524e1199c89ad93f13956807.css.gz +0 -0
- data/demo/public/assets/manifest-dad05bf766af0fe3d79dd746db3c1361c0583026cdf35d6a2921bccaea835331.js +3 -0
- data/demo/public/assets/manifest-dad05bf766af0fe3d79dd746db3c1361c0583026cdf35d6a2921bccaea835331.js.gz +0 -0
- data/lib/optics/view_components/version.rb +1 -1
- metadata +13 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bebd2ca8af827959428a3ce6407fc6351f78fdbac2afffb81911f5f4de05b433
|
4
|
+
data.tar.gz: 2191cc48f116a34176bbe86d9a2a082aa1be99be0c49b564bac01bb080606738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a5655beb97c77b56923fc5acd57595704f5d7719e2be17c802b1b842111fbe01daf55fdbacee4ac3a60e5c2c08948255341fcb47f5f86143a14c3ec0cff7b82
|
7
|
+
data.tar.gz: 88e0e000b078b49bb3863a872ddf32b50e2d627fa72fbb518a9136782ca090b84818db78ace2d0512e88ab9f779d487130110ab2c293db72bc7fd40ab188e7de
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.1
|
data/Gemfile
CHANGED
@@ -9,9 +9,14 @@ gem 'rails', '~> 7.0'
|
|
9
9
|
|
10
10
|
gem 'bootsnap', require: false
|
11
11
|
gem 'lookbook'
|
12
|
-
gem '
|
13
|
-
gem '
|
12
|
+
gem 'pronto'
|
13
|
+
gem 'pronto-reek', require: false
|
14
|
+
gem 'pronto-undercover', require: false
|
15
|
+
gem 'puma', '~> 6.4'
|
14
16
|
gem 'rake', '~> 13.0'
|
15
17
|
gem 'rspec', '~> 3.0'
|
16
18
|
gem 'rubocop', '~> 1.21'
|
19
|
+
gem 'simplecov', require: false
|
20
|
+
gem 'simplecov-lcov', require: false
|
21
|
+
gem 'sprockets-rails'
|
17
22
|
gem 'view_component'
|
data/Gemfile.lock
CHANGED
@@ -1,111 +1,171 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
optics_view_components (0.1.
|
4
|
+
optics_view_components (0.1.11)
|
5
5
|
view_component (> 2.0, < 4.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (7.
|
11
|
-
actionpack (= 7.
|
12
|
-
activesupport (= 7.
|
10
|
+
actioncable (7.1.3.3)
|
11
|
+
actionpack (= 7.1.3.3)
|
12
|
+
activesupport (= 7.1.3.3)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
zeitwerk (~> 2.6)
|
16
|
+
actionmailbox (7.1.3.3)
|
17
|
+
actionpack (= 7.1.3.3)
|
18
|
+
activejob (= 7.1.3.3)
|
19
|
+
activerecord (= 7.1.3.3)
|
20
|
+
activestorage (= 7.1.3.3)
|
21
|
+
activesupport (= 7.1.3.3)
|
21
22
|
mail (>= 2.7.1)
|
22
23
|
net-imap
|
23
24
|
net-pop
|
24
25
|
net-smtp
|
25
|
-
actionmailer (7.
|
26
|
-
actionpack (= 7.
|
27
|
-
actionview (= 7.
|
28
|
-
activejob (= 7.
|
29
|
-
activesupport (= 7.
|
26
|
+
actionmailer (7.1.3.3)
|
27
|
+
actionpack (= 7.1.3.3)
|
28
|
+
actionview (= 7.1.3.3)
|
29
|
+
activejob (= 7.1.3.3)
|
30
|
+
activesupport (= 7.1.3.3)
|
30
31
|
mail (~> 2.5, >= 2.5.4)
|
31
32
|
net-imap
|
32
33
|
net-pop
|
33
34
|
net-smtp
|
34
|
-
rails-dom-testing (~> 2.
|
35
|
-
actionpack (7.
|
36
|
-
actionview (= 7.
|
37
|
-
activesupport (= 7.
|
38
|
-
|
35
|
+
rails-dom-testing (~> 2.2)
|
36
|
+
actionpack (7.1.3.3)
|
37
|
+
actionview (= 7.1.3.3)
|
38
|
+
activesupport (= 7.1.3.3)
|
39
|
+
nokogiri (>= 1.8.5)
|
40
|
+
racc
|
41
|
+
rack (>= 2.2.4)
|
42
|
+
rack-session (>= 1.0.1)
|
39
43
|
rack-test (>= 0.6.3)
|
40
|
-
rails-dom-testing (~> 2.
|
41
|
-
rails-html-sanitizer (~> 1.
|
42
|
-
actiontext (7.
|
43
|
-
actionpack (= 7.
|
44
|
-
activerecord (= 7.
|
45
|
-
activestorage (= 7.
|
46
|
-
activesupport (= 7.
|
44
|
+
rails-dom-testing (~> 2.2)
|
45
|
+
rails-html-sanitizer (~> 1.6)
|
46
|
+
actiontext (7.1.3.3)
|
47
|
+
actionpack (= 7.1.3.3)
|
48
|
+
activerecord (= 7.1.3.3)
|
49
|
+
activestorage (= 7.1.3.3)
|
50
|
+
activesupport (= 7.1.3.3)
|
47
51
|
globalid (>= 0.6.0)
|
48
52
|
nokogiri (>= 1.8.5)
|
49
|
-
actionview (7.
|
50
|
-
activesupport (= 7.
|
53
|
+
actionview (7.1.3.3)
|
54
|
+
activesupport (= 7.1.3.3)
|
51
55
|
builder (~> 3.1)
|
52
|
-
erubi (~> 1.
|
53
|
-
rails-dom-testing (~> 2.
|
54
|
-
rails-html-sanitizer (~> 1.
|
55
|
-
activejob (7.
|
56
|
-
activesupport (= 7.
|
56
|
+
erubi (~> 1.11)
|
57
|
+
rails-dom-testing (~> 2.2)
|
58
|
+
rails-html-sanitizer (~> 1.6)
|
59
|
+
activejob (7.1.3.3)
|
60
|
+
activesupport (= 7.1.3.3)
|
57
61
|
globalid (>= 0.3.6)
|
58
|
-
activemodel (7.
|
59
|
-
activesupport (= 7.
|
60
|
-
activerecord (7.
|
61
|
-
activemodel (= 7.
|
62
|
-
activesupport (= 7.
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
62
|
+
activemodel (7.1.3.3)
|
63
|
+
activesupport (= 7.1.3.3)
|
64
|
+
activerecord (7.1.3.3)
|
65
|
+
activemodel (= 7.1.3.3)
|
66
|
+
activesupport (= 7.1.3.3)
|
67
|
+
timeout (>= 0.4.0)
|
68
|
+
activestorage (7.1.3.3)
|
69
|
+
actionpack (= 7.1.3.3)
|
70
|
+
activejob (= 7.1.3.3)
|
71
|
+
activerecord (= 7.1.3.3)
|
72
|
+
activesupport (= 7.1.3.3)
|
68
73
|
marcel (~> 1.0)
|
69
|
-
|
70
|
-
|
74
|
+
activesupport (7.1.3.3)
|
75
|
+
base64
|
76
|
+
bigdecimal
|
71
77
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
78
|
+
connection_pool (>= 2.2.5)
|
79
|
+
drb
|
72
80
|
i18n (>= 1.6, < 2)
|
73
81
|
minitest (>= 5.1)
|
82
|
+
mutex_m
|
74
83
|
tzinfo (~> 2.0)
|
75
|
-
addressable (2.8.
|
84
|
+
addressable (2.8.6)
|
76
85
|
public_suffix (>= 2.0.2, < 6.0)
|
77
86
|
ast (2.4.2)
|
78
|
-
|
87
|
+
base64 (0.2.0)
|
88
|
+
bigdecimal (3.1.8)
|
89
|
+
bootsnap (1.18.3)
|
79
90
|
msgpack (~> 1.2)
|
80
91
|
builder (3.2.4)
|
81
|
-
capybara (3.
|
92
|
+
capybara (3.40.0)
|
82
93
|
addressable
|
83
94
|
matrix
|
84
95
|
mini_mime (>= 0.1.3)
|
85
|
-
nokogiri (~> 1.
|
96
|
+
nokogiri (~> 1.11)
|
86
97
|
rack (>= 1.6.0)
|
87
98
|
rack-test (>= 0.6.3)
|
88
99
|
regexp_parser (>= 1.5, < 3.0)
|
89
100
|
xpath (~> 3.2)
|
90
101
|
coderay (1.1.3)
|
91
|
-
concurrent-ruby (1.2.
|
102
|
+
concurrent-ruby (1.2.3)
|
103
|
+
connection_pool (2.4.1)
|
92
104
|
crass (1.0.6)
|
93
|
-
css_parser (1.
|
105
|
+
css_parser (1.17.1)
|
94
106
|
addressable
|
95
|
-
|
96
|
-
|
107
|
+
csv (3.3.0)
|
108
|
+
date (3.3.4)
|
109
|
+
diff-lcs (1.5.1)
|
110
|
+
docile (1.4.0)
|
111
|
+
drb (2.2.1)
|
112
|
+
dry-configurable (1.1.0)
|
113
|
+
dry-core (~> 1.0, < 2)
|
114
|
+
zeitwerk (~> 2.6)
|
115
|
+
dry-core (1.0.1)
|
116
|
+
concurrent-ruby (~> 1.0)
|
117
|
+
zeitwerk (~> 2.6)
|
118
|
+
dry-inflector (1.0.0)
|
119
|
+
dry-initializer (3.1.1)
|
120
|
+
dry-logic (1.5.0)
|
121
|
+
concurrent-ruby (~> 1.0)
|
122
|
+
dry-core (~> 1.0, < 2)
|
123
|
+
zeitwerk (~> 2.6)
|
124
|
+
dry-schema (1.13.4)
|
125
|
+
concurrent-ruby (~> 1.0)
|
126
|
+
dry-configurable (~> 1.0, >= 1.0.1)
|
127
|
+
dry-core (~> 1.0, < 2)
|
128
|
+
dry-initializer (~> 3.0)
|
129
|
+
dry-logic (>= 1.4, < 2)
|
130
|
+
dry-types (>= 1.7, < 2)
|
131
|
+
zeitwerk (~> 2.6)
|
132
|
+
dry-types (1.7.2)
|
133
|
+
bigdecimal (~> 3.0)
|
134
|
+
concurrent-ruby (~> 1.0)
|
135
|
+
dry-core (~> 1.0)
|
136
|
+
dry-inflector (~> 1.0)
|
137
|
+
dry-logic (~> 1.4)
|
138
|
+
zeitwerk (~> 2.6)
|
97
139
|
erubi (1.12.0)
|
98
|
-
|
99
|
-
|
100
|
-
|
140
|
+
faraday (2.9.0)
|
141
|
+
faraday-net_http (>= 2.0, < 3.2)
|
142
|
+
faraday-net_http (3.1.0)
|
143
|
+
net-http
|
144
|
+
gitlab (4.19.0)
|
145
|
+
httparty (~> 0.20)
|
146
|
+
terminal-table (>= 1.5.1)
|
147
|
+
globalid (1.2.1)
|
148
|
+
activesupport (>= 6.1)
|
149
|
+
htmlbeautifier (1.4.3)
|
101
150
|
htmlentities (4.3.4)
|
102
|
-
|
151
|
+
httparty (0.22.0)
|
152
|
+
csv
|
153
|
+
mini_mime (>= 1.0.0)
|
154
|
+
multi_xml (>= 0.5.2)
|
155
|
+
i18n (1.14.5)
|
103
156
|
concurrent-ruby (~> 1.0)
|
104
|
-
|
105
|
-
|
157
|
+
imagen (0.1.8)
|
158
|
+
parser (>= 2.5, != 2.5.1.1)
|
159
|
+
io-console (0.7.2)
|
160
|
+
irb (1.13.1)
|
161
|
+
rdoc (>= 4.0.0)
|
162
|
+
reline (>= 0.4.2)
|
163
|
+
json (2.7.2)
|
164
|
+
language_server-protocol (3.17.0.3)
|
165
|
+
loofah (2.22.0)
|
106
166
|
crass (~> 1.0.2)
|
107
167
|
nokogiri (>= 1.12.0)
|
108
|
-
lookbook (2.
|
168
|
+
lookbook (2.3.1)
|
109
169
|
activemodel
|
110
170
|
css_parser
|
111
171
|
htmlbeautifier (~> 1.3)
|
@@ -115,135 +175,200 @@ GEM
|
|
115
175
|
redcarpet (~> 3.5)
|
116
176
|
rouge (>= 3.26, < 5.0)
|
117
177
|
view_component (>= 2.0)
|
118
|
-
yard (~> 0.9
|
178
|
+
yard (~> 0.9)
|
119
179
|
zeitwerk (~> 2.5)
|
120
180
|
mail (2.8.1)
|
121
181
|
mini_mime (>= 0.1.1)
|
122
182
|
net-imap
|
123
183
|
net-pop
|
124
184
|
net-smtp
|
125
|
-
marcel (1.0.
|
185
|
+
marcel (1.0.4)
|
126
186
|
matrix (0.4.2)
|
127
|
-
method_source (1.
|
128
|
-
mini_mime (1.1.
|
129
|
-
minitest (5.
|
130
|
-
msgpack (1.7.
|
131
|
-
|
187
|
+
method_source (1.1.0)
|
188
|
+
mini_mime (1.1.5)
|
189
|
+
minitest (5.23.1)
|
190
|
+
msgpack (1.7.2)
|
191
|
+
multi_xml (0.7.1)
|
192
|
+
bigdecimal (~> 3.1)
|
193
|
+
mutex_m (0.2.0)
|
194
|
+
net-http (0.4.1)
|
195
|
+
uri
|
196
|
+
net-imap (0.4.11)
|
132
197
|
date
|
133
198
|
net-protocol
|
134
199
|
net-pop (0.1.2)
|
135
200
|
net-protocol
|
136
|
-
net-protocol (0.2.
|
201
|
+
net-protocol (0.2.2)
|
137
202
|
timeout
|
138
|
-
net-smtp (0.
|
203
|
+
net-smtp (0.5.0)
|
139
204
|
net-protocol
|
140
|
-
nio4r (2.
|
141
|
-
nokogiri (1.
|
205
|
+
nio4r (2.7.3)
|
206
|
+
nokogiri (1.16.5-arm64-darwin)
|
142
207
|
racc (~> 1.4)
|
143
|
-
nokogiri (1.
|
208
|
+
nokogiri (1.16.5-x86_64-linux)
|
144
209
|
racc (~> 1.4)
|
145
|
-
|
146
|
-
|
210
|
+
octokit (7.2.0)
|
211
|
+
faraday (>= 1, < 3)
|
212
|
+
sawyer (~> 0.9)
|
213
|
+
parallel (1.24.0)
|
214
|
+
parser (3.3.1.0)
|
147
215
|
ast (~> 2.4.1)
|
216
|
+
racc
|
217
|
+
pronto (0.11.2)
|
218
|
+
gitlab (>= 4.4.0, < 5.0)
|
219
|
+
httparty (>= 0.13.7, < 1.0)
|
220
|
+
octokit (>= 4.7.0, < 8.0)
|
221
|
+
rainbow (>= 2.2, < 4.0)
|
222
|
+
rexml (>= 3.2.5, < 4.0)
|
223
|
+
rugged (>= 0.23.0, < 2.0)
|
224
|
+
thor (>= 0.20.3, < 2.0)
|
225
|
+
pronto-reek (0.11.1)
|
226
|
+
pronto (~> 0.11.0)
|
227
|
+
reek (>= 4.2, < 7.0)
|
228
|
+
pronto-undercover (0.2.0)
|
229
|
+
pronto (>= 0.9, < 0.12)
|
230
|
+
undercover (~> 0.4.3)
|
148
231
|
pry (0.14.2)
|
149
232
|
coderay (~> 1.1)
|
150
233
|
method_source (~> 1.0)
|
151
|
-
|
152
|
-
|
234
|
+
psych (5.1.2)
|
235
|
+
stringio
|
236
|
+
public_suffix (5.0.5)
|
237
|
+
puma (6.4.2)
|
153
238
|
nio4r (~> 2.0)
|
154
|
-
racc (1.
|
155
|
-
rack (
|
239
|
+
racc (1.8.0)
|
240
|
+
rack (3.0.11)
|
241
|
+
rack-session (2.0.0)
|
242
|
+
rack (>= 3.0.0)
|
156
243
|
rack-test (2.1.0)
|
157
244
|
rack (>= 1.3)
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
245
|
+
rackup (2.1.0)
|
246
|
+
rack (>= 3)
|
247
|
+
webrick (~> 1.8)
|
248
|
+
rails (7.1.3.3)
|
249
|
+
actioncable (= 7.1.3.3)
|
250
|
+
actionmailbox (= 7.1.3.3)
|
251
|
+
actionmailer (= 7.1.3.3)
|
252
|
+
actionpack (= 7.1.3.3)
|
253
|
+
actiontext (= 7.1.3.3)
|
254
|
+
actionview (= 7.1.3.3)
|
255
|
+
activejob (= 7.1.3.3)
|
256
|
+
activemodel (= 7.1.3.3)
|
257
|
+
activerecord (= 7.1.3.3)
|
258
|
+
activestorage (= 7.1.3.3)
|
259
|
+
activesupport (= 7.1.3.3)
|
170
260
|
bundler (>= 1.15.0)
|
171
|
-
railties (= 7.
|
172
|
-
rails-dom-testing (2.0
|
173
|
-
activesupport (>=
|
261
|
+
railties (= 7.1.3.3)
|
262
|
+
rails-dom-testing (2.2.0)
|
263
|
+
activesupport (>= 5.0.0)
|
264
|
+
minitest
|
174
265
|
nokogiri (>= 1.6)
|
175
|
-
rails-html-sanitizer (1.
|
176
|
-
loofah (~> 2.
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
266
|
+
rails-html-sanitizer (1.6.0)
|
267
|
+
loofah (~> 2.21)
|
268
|
+
nokogiri (~> 1.14)
|
269
|
+
railties (7.1.3.3)
|
270
|
+
actionpack (= 7.1.3.3)
|
271
|
+
activesupport (= 7.1.3.3)
|
272
|
+
irb
|
273
|
+
rackup (>= 1.0.0)
|
181
274
|
rake (>= 12.2)
|
182
|
-
thor (~> 1.0)
|
183
|
-
zeitwerk (~> 2.
|
275
|
+
thor (~> 1.0, >= 1.2.2)
|
276
|
+
zeitwerk (~> 2.6)
|
184
277
|
rainbow (3.1.1)
|
185
|
-
rake (13.
|
278
|
+
rake (13.2.1)
|
279
|
+
rdoc (6.7.0)
|
280
|
+
psych (>= 4.0.0)
|
186
281
|
redcarpet (3.6.0)
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
282
|
+
reek (6.3.0)
|
283
|
+
dry-schema (~> 1.13.0)
|
284
|
+
parser (~> 3.3.0)
|
285
|
+
rainbow (>= 2.0, < 4.0)
|
286
|
+
rexml (~> 3.1)
|
287
|
+
regexp_parser (2.9.2)
|
288
|
+
reline (0.5.7)
|
289
|
+
io-console (~> 0.5)
|
290
|
+
rexml (3.2.8)
|
291
|
+
strscan (>= 3.0.9)
|
292
|
+
rouge (4.2.1)
|
293
|
+
rspec (3.13.0)
|
294
|
+
rspec-core (~> 3.13.0)
|
295
|
+
rspec-expectations (~> 3.13.0)
|
296
|
+
rspec-mocks (~> 3.13.0)
|
297
|
+
rspec-core (3.13.0)
|
298
|
+
rspec-support (~> 3.13.0)
|
299
|
+
rspec-expectations (3.13.0)
|
197
300
|
diff-lcs (>= 1.2.0, < 2.0)
|
198
|
-
rspec-support (~> 3.
|
199
|
-
rspec-mocks (3.
|
301
|
+
rspec-support (~> 3.13.0)
|
302
|
+
rspec-mocks (3.13.1)
|
200
303
|
diff-lcs (>= 1.2.0, < 2.0)
|
201
|
-
rspec-support (~> 3.
|
202
|
-
rspec-rails (6.
|
304
|
+
rspec-support (~> 3.13.0)
|
305
|
+
rspec-rails (6.1.2)
|
203
306
|
actionpack (>= 6.1)
|
204
307
|
activesupport (>= 6.1)
|
205
308
|
railties (>= 6.1)
|
206
|
-
rspec-core (~> 3.
|
207
|
-
rspec-expectations (~> 3.
|
208
|
-
rspec-mocks (~> 3.
|
209
|
-
rspec-support (~> 3.
|
210
|
-
rspec-support (3.
|
211
|
-
rubocop (1.
|
309
|
+
rspec-core (~> 3.13)
|
310
|
+
rspec-expectations (~> 3.13)
|
311
|
+
rspec-mocks (~> 3.13)
|
312
|
+
rspec-support (~> 3.13)
|
313
|
+
rspec-support (3.13.1)
|
314
|
+
rubocop (1.64.0)
|
212
315
|
json (~> 2.3)
|
316
|
+
language_server-protocol (>= 3.17.0)
|
213
317
|
parallel (~> 1.10)
|
214
|
-
parser (>= 3.
|
318
|
+
parser (>= 3.3.0.2)
|
215
319
|
rainbow (>= 2.2.2, < 4.0)
|
216
320
|
regexp_parser (>= 1.8, < 3.0)
|
217
321
|
rexml (>= 3.2.5, < 4.0)
|
218
|
-
rubocop-ast (>= 1.
|
322
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
219
323
|
ruby-progressbar (~> 1.7)
|
220
324
|
unicode-display_width (>= 2.4.0, < 3.0)
|
221
|
-
rubocop-ast (1.
|
222
|
-
parser (>= 3.
|
325
|
+
rubocop-ast (1.31.3)
|
326
|
+
parser (>= 3.3.1.0)
|
223
327
|
ruby-progressbar (1.13.0)
|
224
|
-
|
328
|
+
rugged (1.6.5)
|
329
|
+
sawyer (0.9.2)
|
330
|
+
addressable (>= 2.3.5)
|
331
|
+
faraday (>= 0.17.3, < 3)
|
332
|
+
simplecov (0.22.0)
|
333
|
+
docile (~> 1.1)
|
334
|
+
simplecov-html (~> 0.11)
|
335
|
+
simplecov_json_formatter (~> 0.1)
|
336
|
+
simplecov-html (0.12.3)
|
337
|
+
simplecov-lcov (0.8.0)
|
338
|
+
simplecov_json_formatter (0.1.4)
|
339
|
+
sprockets (4.2.1)
|
225
340
|
concurrent-ruby (~> 1.0)
|
226
341
|
rack (>= 2.2.4, < 4)
|
227
342
|
sprockets-rails (3.4.2)
|
228
343
|
actionpack (>= 5.2)
|
229
344
|
activesupport (>= 5.2)
|
230
345
|
sprockets (>= 3.0.0)
|
231
|
-
|
232
|
-
|
346
|
+
stringio (3.1.0)
|
347
|
+
strscan (3.1.0)
|
348
|
+
terminal-table (3.0.2)
|
349
|
+
unicode-display_width (>= 1.1.1, < 3)
|
350
|
+
thor (1.3.1)
|
351
|
+
timeout (0.4.1)
|
233
352
|
tzinfo (2.0.6)
|
234
353
|
concurrent-ruby (~> 1.0)
|
235
|
-
|
236
|
-
|
354
|
+
undercover (0.4.7)
|
355
|
+
imagen (>= 0.1.8)
|
356
|
+
rainbow (>= 2.1, < 4.0)
|
357
|
+
rugged (>= 0.27, < 1.7)
|
358
|
+
unicode-display_width (2.5.0)
|
359
|
+
uri (0.13.0)
|
360
|
+
view_component (3.12.1)
|
237
361
|
activesupport (>= 5.2.0, < 8.0)
|
238
362
|
concurrent-ruby (~> 1.0)
|
239
363
|
method_source (~> 1.0)
|
240
|
-
|
364
|
+
webrick (1.8.1)
|
365
|
+
websocket-driver (0.7.6)
|
241
366
|
websocket-extensions (>= 0.1.0)
|
242
367
|
websocket-extensions (0.1.5)
|
243
368
|
xpath (3.2.0)
|
244
369
|
nokogiri (~> 1.8)
|
245
|
-
yard (0.9.
|
246
|
-
zeitwerk (2.6.
|
370
|
+
yard (0.9.36)
|
371
|
+
zeitwerk (2.6.15)
|
247
372
|
|
248
373
|
PLATFORMS
|
249
374
|
arm64-darwin-21
|
@@ -254,13 +379,18 @@ DEPENDENCIES
|
|
254
379
|
capybara
|
255
380
|
lookbook
|
256
381
|
optics_view_components!
|
382
|
+
pronto
|
383
|
+
pronto-reek
|
384
|
+
pronto-undercover
|
257
385
|
pry
|
258
|
-
puma (~> 6.
|
386
|
+
puma (~> 6.4)
|
259
387
|
rails (~> 7.0)
|
260
388
|
rake (~> 13.0)
|
261
389
|
rspec (~> 3.0)
|
262
390
|
rspec-rails
|
263
391
|
rubocop (~> 1.21)
|
392
|
+
simplecov
|
393
|
+
simplecov-lcov
|
264
394
|
sprockets
|
265
395
|
sprockets-rails
|
266
396
|
view_component
|
@@ -14,7 +14,8 @@ module Optics
|
|
14
14
|
def call
|
15
15
|
content_tag(
|
16
16
|
:nav,
|
17
|
-
class: classes
|
17
|
+
class: classes,
|
18
|
+
**@attributes.except(:class)
|
18
19
|
) do
|
19
20
|
capture do
|
20
21
|
concat brand
|
@@ -45,7 +46,7 @@ module Optics
|
|
45
46
|
accepts :name
|
46
47
|
|
47
48
|
def call
|
48
|
-
link_to(url, class: 'sidebar__brand') do
|
49
|
+
link_to(url, class: 'sidebar__brand', **@attributes) do
|
49
50
|
name || image_tag(image_source, alt: image_label)
|
50
51
|
end
|
51
52
|
end
|
@@ -55,7 +56,7 @@ module Optics
|
|
55
56
|
accepts :position, default: 'center'
|
56
57
|
|
57
58
|
def call
|
58
|
-
content_tag(:div, class: classes) do
|
59
|
+
content_tag(:div, class: classes, **@attributes) do
|
59
60
|
content
|
60
61
|
end
|
61
62
|
end
|
@@ -63,7 +64,8 @@ module Optics
|
|
63
64
|
def classes
|
64
65
|
class_names(
|
65
66
|
'sidebar__content',
|
66
|
-
position_class
|
67
|
+
position_class,
|
68
|
+
@attributes[:class]
|
67
69
|
).join(' ')
|
68
70
|
end
|
69
71
|
|
@@ -77,7 +79,7 @@ module Optics
|
|
77
79
|
accepts :url
|
78
80
|
|
79
81
|
def call
|
80
|
-
link_to(url, class: 'sidebar__brand') do
|
82
|
+
link_to(url, class: 'sidebar__brand', **@attributes) do
|
81
83
|
image_tag(img_src)
|
82
84
|
end
|
83
85
|
end
|
data/demo/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.1
|
data/demo/Gemfile
CHANGED
data/demo/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
optics_view_components (0.1.
|
4
|
+
optics_view_components (0.1.11)
|
5
5
|
view_component (> 2.0, < 4.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
activesupport (>= 5.0)
|
94
94
|
htmlbeautifier (1.4.2)
|
95
95
|
htmlentities (4.3.4)
|
96
|
-
i18n (1.
|
96
|
+
i18n (1.14.1)
|
97
97
|
concurrent-ruby (~> 1.0)
|
98
98
|
io-console (0.6.0)
|
99
99
|
irb (1.6.4)
|
@@ -121,7 +121,7 @@ GEM
|
|
121
121
|
marcel (1.0.2)
|
122
122
|
method_source (1.0.0)
|
123
123
|
mini_mime (1.1.2)
|
124
|
-
minitest (5.
|
124
|
+
minitest (5.20.0)
|
125
125
|
msgpack (1.7.1)
|
126
126
|
net-imap (0.3.4)
|
127
127
|
date
|
@@ -132,13 +132,13 @@ GEM
|
|
132
132
|
timeout
|
133
133
|
net-smtp (0.3.3)
|
134
134
|
net-protocol
|
135
|
-
nio4r (2.
|
136
|
-
nokogiri (1.
|
135
|
+
nio4r (2.7.0)
|
136
|
+
nokogiri (1.16.5-arm64-darwin)
|
137
137
|
racc (~> 1.4)
|
138
|
-
nokogiri (1.
|
138
|
+
nokogiri (1.16.5-x86_64-linux)
|
139
139
|
racc (~> 1.4)
|
140
140
|
public_suffix (5.0.1)
|
141
|
-
puma (6.
|
141
|
+
puma (6.4.2)
|
142
142
|
nio4r (~> 2.0)
|
143
143
|
racc (1.6.2)
|
144
144
|
rack (2.2.7)
|
@@ -186,7 +186,7 @@ GEM
|
|
186
186
|
timeout (0.3.2)
|
187
187
|
tzinfo (2.0.6)
|
188
188
|
concurrent-ruby (~> 1.0)
|
189
|
-
view_component (3.
|
189
|
+
view_component (3.9.0)
|
190
190
|
activesupport (>= 5.2.0, < 8.0)
|
191
191
|
concurrent-ruby (~> 1.0)
|
192
192
|
method_source (~> 1.0)
|
@@ -211,7 +211,7 @@ DEPENDENCIES
|
|
211
211
|
debug
|
212
212
|
lookbook
|
213
213
|
optics_view_components!
|
214
|
-
puma (~> 6.
|
214
|
+
puma (~> 6.4)
|
215
215
|
rails (~> 7.0.4, >= 7.0.4.3)
|
216
216
|
sprockets-rails
|
217
217
|
web-console
|