copy_tuner_client 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.js +12 -0
- data/.gitattributes +2 -0
- data/.github/workflows/rspec.yml +4 -8
- data/.ruby-version +1 -1
- data/.vscode/settings.json +7 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +117 -116
- data/README.md +5 -10
- data/app/assets/javascripts/main.js +388 -0
- data/app/assets/stylesheets/style.css +1 -0
- data/copy_tuner_client.gemspec +1 -1
- data/gemfiles/{5.2.gemfile → 7.0.gemfile} +1 -1
- data/index.html +34 -0
- data/lib/copy_tuner_client/copyray_middleware.rb +15 -29
- data/lib/copy_tuner_client/engine.rb +2 -2
- data/lib/copy_tuner_client/version.rb +1 -1
- data/package.json +14 -15
- data/spec/copy_tuner_client/i18n_backend_spec.rb +2 -0
- data/{app/assets/stylesheets → src}/copyray.css +0 -0
- data/src/copyray.ts +130 -0
- data/src/copytuner_bar.ts +115 -0
- data/src/main.ts +58 -0
- data/src/specimen.ts +84 -0
- data/src/util.ts +38 -0
- data/src/vite-env.d.ts +1 -0
- data/tsconfig.json +26 -0
- data/vite.config.ts +18 -0
- data/yarn.lock +2251 -0
- metadata +25 -22
- data/.eslintrc +0 -4
- data/app/assets/javascripts/copyray.js +0 -1069
- data/app/views/_copy_tuner_bar.html.erb +0 -6
- data/gemfiles/6.0.gemfile +0 -5
- data/package-lock.json +0 -4341
- data/rollup.config.js +0 -16
- data/src/copyray.js +0 -112
- data/src/copytuner_bar.js +0 -96
- data/src/main.js +0 -42
- data/src/specimen.js +0 -63
- data/src/util.js +0 -32
- data/test.sh +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec8d15928bbbb3d88569bb8ec24755a845ef0d3cb0790bda8abe9ed824d473ac
|
4
|
+
data.tar.gz: 0b1d3749c9e763de26261839d5d8470eb33b1b4a673a1a09513a3ba7a2e49678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 516a4b43547717f658498735f908c138427a01f951916aee27065181e525b48d4dee9e823930ce406e2119fac54f2f8be04dc54926dd8c3726f2ccdf958c69c3
|
7
|
+
data.tar.gz: d2aac09f2b3db806a0aa76ed493f0a43b1efd0806f860131c31c20b750c819ca7102fb015a6be5c0e7822256183fa7a10389ae08546e6253553295634dc987d6
|
data/.eslintrc.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
module.exports = {
|
2
|
+
plugins: ['@sonicgarden'],
|
3
|
+
extends: [
|
4
|
+
'plugin:@sonicgarden/browser',
|
5
|
+
'plugin:@sonicgarden/recommended',
|
6
|
+
'plugin:@sonicgarden/typescript',
|
7
|
+
'plugin:@sonicgarden/prettier',
|
8
|
+
],
|
9
|
+
settings: {
|
10
|
+
'import/internal-regex': '^@/',
|
11
|
+
},
|
12
|
+
}
|
data/.gitattributes
ADDED
data/.github/workflows/rspec.yml
CHANGED
@@ -22,15 +22,11 @@ jobs:
|
|
22
22
|
strategy:
|
23
23
|
fail-fast: false
|
24
24
|
matrix:
|
25
|
-
ruby: [2.
|
26
|
-
gemfile: ["
|
25
|
+
ruby: [2.7, "3.0", 3.1]
|
26
|
+
gemfile: ["6.1", "7.0", "main"]
|
27
27
|
exclude:
|
28
|
-
- ruby:
|
29
|
-
gemfile:
|
30
|
-
- ruby: 3.0
|
31
|
-
gemfile: 5.2
|
32
|
-
- ruby: 3.0
|
33
|
-
gemfile: "6.0"
|
28
|
+
- ruby: "3.1"
|
29
|
+
gemfile: "6.1"
|
34
30
|
steps:
|
35
31
|
- name: Install packages
|
36
32
|
run: |
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.4
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/SonicGarden/sgcop.git
|
3
|
-
revision:
|
3
|
+
revision: a2478f309e7c82d32b93073e0a1158ab20c894c8
|
4
4
|
specs:
|
5
|
-
sgcop (0.
|
6
|
-
haml_lint (~> 0.
|
7
|
-
rubocop (~> 1.
|
8
|
-
rubocop-performance (~> 1.
|
9
|
-
rubocop-rails (~> 2.
|
5
|
+
sgcop (0.5.14)
|
6
|
+
haml_lint (~> 0.40.0)
|
7
|
+
rubocop (~> 1.30.0)
|
8
|
+
rubocop-performance (~> 1.14.0)
|
9
|
+
rubocop-rails (~> 2.14.2)
|
10
10
|
rubocop-rake (~> 0.6.0)
|
11
|
-
rubocop-rspec (~> 2.
|
11
|
+
rubocop-rspec (~> 2.11.1)
|
12
12
|
|
13
13
|
PATH
|
14
14
|
remote: .
|
15
15
|
specs:
|
16
|
-
copy_tuner_client (0.
|
16
|
+
copy_tuner_client (0.13.0)
|
17
17
|
i18n (>= 0.5.0)
|
18
18
|
json
|
19
19
|
nokogiri
|
@@ -21,60 +21,60 @@ PATH
|
|
21
21
|
GEM
|
22
22
|
remote: http://rubygems.org/
|
23
23
|
specs:
|
24
|
-
actioncable (6.1.
|
25
|
-
actionpack (= 6.1.
|
26
|
-
activesupport (= 6.1.
|
24
|
+
actioncable (6.1.6)
|
25
|
+
actionpack (= 6.1.6)
|
26
|
+
activesupport (= 6.1.6)
|
27
27
|
nio4r (~> 2.0)
|
28
28
|
websocket-driver (>= 0.6.1)
|
29
|
-
actionmailbox (6.1.
|
30
|
-
actionpack (= 6.1.
|
31
|
-
activejob (= 6.1.
|
32
|
-
activerecord (= 6.1.
|
33
|
-
activestorage (= 6.1.
|
34
|
-
activesupport (= 6.1.
|
29
|
+
actionmailbox (6.1.6)
|
30
|
+
actionpack (= 6.1.6)
|
31
|
+
activejob (= 6.1.6)
|
32
|
+
activerecord (= 6.1.6)
|
33
|
+
activestorage (= 6.1.6)
|
34
|
+
activesupport (= 6.1.6)
|
35
35
|
mail (>= 2.7.1)
|
36
|
-
actionmailer (6.1.
|
37
|
-
actionpack (= 6.1.
|
38
|
-
actionview (= 6.1.
|
39
|
-
activejob (= 6.1.
|
40
|
-
activesupport (= 6.1.
|
36
|
+
actionmailer (6.1.6)
|
37
|
+
actionpack (= 6.1.6)
|
38
|
+
actionview (= 6.1.6)
|
39
|
+
activejob (= 6.1.6)
|
40
|
+
activesupport (= 6.1.6)
|
41
41
|
mail (~> 2.5, >= 2.5.4)
|
42
42
|
rails-dom-testing (~> 2.0)
|
43
|
-
actionpack (6.1.
|
44
|
-
actionview (= 6.1.
|
45
|
-
activesupport (= 6.1.
|
43
|
+
actionpack (6.1.6)
|
44
|
+
actionview (= 6.1.6)
|
45
|
+
activesupport (= 6.1.6)
|
46
46
|
rack (~> 2.0, >= 2.0.9)
|
47
47
|
rack-test (>= 0.6.3)
|
48
48
|
rails-dom-testing (~> 2.0)
|
49
49
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
50
|
-
actiontext (6.1.
|
51
|
-
actionpack (= 6.1.
|
52
|
-
activerecord (= 6.1.
|
53
|
-
activestorage (= 6.1.
|
54
|
-
activesupport (= 6.1.
|
50
|
+
actiontext (6.1.6)
|
51
|
+
actionpack (= 6.1.6)
|
52
|
+
activerecord (= 6.1.6)
|
53
|
+
activestorage (= 6.1.6)
|
54
|
+
activesupport (= 6.1.6)
|
55
55
|
nokogiri (>= 1.8.5)
|
56
|
-
actionview (6.1.
|
57
|
-
activesupport (= 6.1.
|
56
|
+
actionview (6.1.6)
|
57
|
+
activesupport (= 6.1.6)
|
58
58
|
builder (~> 3.1)
|
59
59
|
erubi (~> 1.4)
|
60
60
|
rails-dom-testing (~> 2.0)
|
61
61
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
62
|
-
activejob (6.1.
|
63
|
-
activesupport (= 6.1.
|
62
|
+
activejob (6.1.6)
|
63
|
+
activesupport (= 6.1.6)
|
64
64
|
globalid (>= 0.3.6)
|
65
|
-
activemodel (6.1.
|
66
|
-
activesupport (= 6.1.
|
67
|
-
activerecord (6.1.
|
68
|
-
activemodel (= 6.1.
|
69
|
-
activesupport (= 6.1.
|
70
|
-
activestorage (6.1.
|
71
|
-
actionpack (= 6.1.
|
72
|
-
activejob (= 6.1.
|
73
|
-
activerecord (= 6.1.
|
74
|
-
activesupport (= 6.1.
|
75
|
-
marcel (~> 1.0
|
65
|
+
activemodel (6.1.6)
|
66
|
+
activesupport (= 6.1.6)
|
67
|
+
activerecord (6.1.6)
|
68
|
+
activemodel (= 6.1.6)
|
69
|
+
activesupport (= 6.1.6)
|
70
|
+
activestorage (6.1.6)
|
71
|
+
actionpack (= 6.1.6)
|
72
|
+
activejob (= 6.1.6)
|
73
|
+
activerecord (= 6.1.6)
|
74
|
+
activesupport (= 6.1.6)
|
75
|
+
marcel (~> 1.0)
|
76
76
|
mini_mime (>= 1.1.0)
|
77
|
-
activesupport (6.1.
|
77
|
+
activesupport (6.1.6)
|
78
78
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
79
79
|
i18n (>= 1.6, < 2)
|
80
80
|
minitest (>= 5.1)
|
@@ -84,136 +84,135 @@ GEM
|
|
84
84
|
public_suffix (>= 2.0.2, < 5.0)
|
85
85
|
ast (2.4.2)
|
86
86
|
builder (3.2.4)
|
87
|
-
concurrent-ruby (1.1.
|
87
|
+
concurrent-ruby (1.1.10)
|
88
88
|
crack (0.4.5)
|
89
89
|
rexml
|
90
90
|
crass (1.0.6)
|
91
91
|
daemons (1.4.1)
|
92
|
-
diff-lcs (1.
|
92
|
+
diff-lcs (1.5.0)
|
93
93
|
erubi (1.10.0)
|
94
94
|
eventmachine (1.2.7)
|
95
|
-
globalid (0.
|
95
|
+
globalid (1.0.0)
|
96
96
|
activesupport (>= 5.0)
|
97
97
|
haml (5.2.2)
|
98
98
|
temple (>= 0.8.0)
|
99
99
|
tilt
|
100
|
-
haml_lint (0.
|
100
|
+
haml_lint (0.40.0)
|
101
101
|
haml (>= 4.0, < 5.3)
|
102
102
|
parallel (~> 1.10)
|
103
103
|
rainbow
|
104
104
|
rubocop (>= 0.50.0)
|
105
105
|
sysexits (~> 1.1)
|
106
106
|
hashdiff (1.0.1)
|
107
|
-
i18n (1.
|
107
|
+
i18n (1.10.0)
|
108
108
|
concurrent-ruby (~> 1.0)
|
109
|
-
json (2.
|
110
|
-
loofah (2.
|
109
|
+
json (2.6.2)
|
110
|
+
loofah (2.18.0)
|
111
111
|
crass (~> 1.0.2)
|
112
112
|
nokogiri (>= 1.5.9)
|
113
113
|
mail (2.7.1)
|
114
114
|
mini_mime (>= 0.1.1)
|
115
|
-
marcel (1.0.
|
115
|
+
marcel (1.0.2)
|
116
116
|
method_source (1.0.0)
|
117
|
-
mini_mime (1.1.
|
118
|
-
mini_portile2 (2.
|
119
|
-
minitest (5.
|
117
|
+
mini_mime (1.1.2)
|
118
|
+
mini_portile2 (2.8.0)
|
119
|
+
minitest (5.15.0)
|
120
120
|
mustermann (1.1.1)
|
121
121
|
ruby2_keywords (~> 0.0.1)
|
122
122
|
nio4r (2.5.8)
|
123
|
-
nokogiri (1.
|
124
|
-
mini_portile2 (~> 2.
|
123
|
+
nokogiri (1.13.6)
|
124
|
+
mini_portile2 (~> 2.8.0)
|
125
125
|
racc (~> 1.4)
|
126
|
-
parallel (1.
|
127
|
-
parser (3.
|
126
|
+
parallel (1.22.1)
|
127
|
+
parser (3.1.2.0)
|
128
128
|
ast (~> 2.4.1)
|
129
|
-
public_suffix (4.0.
|
130
|
-
racc (1.
|
131
|
-
rack (2.2.3)
|
132
|
-
rack-protection (2.
|
129
|
+
public_suffix (4.0.7)
|
130
|
+
racc (1.6.0)
|
131
|
+
rack (2.2.3.1)
|
132
|
+
rack-protection (2.2.0)
|
133
133
|
rack
|
134
134
|
rack-test (1.1.0)
|
135
135
|
rack (>= 1.0, < 3)
|
136
|
-
rails (6.1.
|
137
|
-
actioncable (= 6.1.
|
138
|
-
actionmailbox (= 6.1.
|
139
|
-
actionmailer (= 6.1.
|
140
|
-
actionpack (= 6.1.
|
141
|
-
actiontext (= 6.1.
|
142
|
-
actionview (= 6.1.
|
143
|
-
activejob (= 6.1.
|
144
|
-
activemodel (= 6.1.
|
145
|
-
activerecord (= 6.1.
|
146
|
-
activestorage (= 6.1.
|
147
|
-
activesupport (= 6.1.
|
136
|
+
rails (6.1.6)
|
137
|
+
actioncable (= 6.1.6)
|
138
|
+
actionmailbox (= 6.1.6)
|
139
|
+
actionmailer (= 6.1.6)
|
140
|
+
actionpack (= 6.1.6)
|
141
|
+
actiontext (= 6.1.6)
|
142
|
+
actionview (= 6.1.6)
|
143
|
+
activejob (= 6.1.6)
|
144
|
+
activemodel (= 6.1.6)
|
145
|
+
activerecord (= 6.1.6)
|
146
|
+
activestorage (= 6.1.6)
|
147
|
+
activesupport (= 6.1.6)
|
148
148
|
bundler (>= 1.15.0)
|
149
|
-
railties (= 6.1.
|
149
|
+
railties (= 6.1.6)
|
150
150
|
sprockets-rails (>= 2.0.0)
|
151
151
|
rails-dom-testing (2.0.3)
|
152
152
|
activesupport (>= 4.2.0)
|
153
153
|
nokogiri (>= 1.6)
|
154
154
|
rails-html-sanitizer (1.4.2)
|
155
155
|
loofah (~> 2.3)
|
156
|
-
railties (6.1.
|
157
|
-
actionpack (= 6.1.
|
158
|
-
activesupport (= 6.1.
|
156
|
+
railties (6.1.6)
|
157
|
+
actionpack (= 6.1.6)
|
158
|
+
activesupport (= 6.1.6)
|
159
159
|
method_source
|
160
|
-
rake (>=
|
160
|
+
rake (>= 12.2)
|
161
161
|
thor (~> 1.0)
|
162
|
-
rainbow (3.
|
162
|
+
rainbow (3.1.1)
|
163
163
|
rake (13.0.6)
|
164
|
-
regexp_parser (2.
|
164
|
+
regexp_parser (2.5.0)
|
165
165
|
rexml (3.2.5)
|
166
|
-
rspec (3.
|
167
|
-
rspec-core (~> 3.
|
168
|
-
rspec-expectations (~> 3.
|
169
|
-
rspec-mocks (~> 3.
|
170
|
-
rspec-core (3.
|
171
|
-
rspec-support (~> 3.
|
172
|
-
rspec-expectations (3.
|
166
|
+
rspec (3.11.0)
|
167
|
+
rspec-core (~> 3.11.0)
|
168
|
+
rspec-expectations (~> 3.11.0)
|
169
|
+
rspec-mocks (~> 3.11.0)
|
170
|
+
rspec-core (3.11.0)
|
171
|
+
rspec-support (~> 3.11.0)
|
172
|
+
rspec-expectations (3.11.0)
|
173
173
|
diff-lcs (>= 1.2.0, < 2.0)
|
174
|
-
rspec-support (~> 3.
|
175
|
-
rspec-mocks (3.
|
174
|
+
rspec-support (~> 3.11.0)
|
175
|
+
rspec-mocks (3.11.1)
|
176
176
|
diff-lcs (>= 1.2.0, < 2.0)
|
177
|
-
rspec-support (~> 3.
|
178
|
-
rspec-support (3.
|
179
|
-
rubocop (1.
|
177
|
+
rspec-support (~> 3.11.0)
|
178
|
+
rspec-support (3.11.0)
|
179
|
+
rubocop (1.30.0)
|
180
180
|
parallel (~> 1.10)
|
181
|
-
parser (>= 3.
|
181
|
+
parser (>= 3.1.0.0)
|
182
182
|
rainbow (>= 2.2.2, < 4.0)
|
183
183
|
regexp_parser (>= 1.8, < 3.0)
|
184
|
-
rexml
|
185
|
-
rubocop-ast (>= 1.
|
184
|
+
rexml (>= 3.2.5, < 4.0)
|
185
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
186
186
|
ruby-progressbar (~> 1.7)
|
187
187
|
unicode-display_width (>= 1.4.0, < 3.0)
|
188
|
-
rubocop-ast (1.
|
189
|
-
parser (>= 3.
|
190
|
-
rubocop-performance (1.
|
188
|
+
rubocop-ast (1.18.0)
|
189
|
+
parser (>= 3.1.1.0)
|
190
|
+
rubocop-performance (1.14.0)
|
191
191
|
rubocop (>= 1.7.0, < 2.0)
|
192
192
|
rubocop-ast (>= 0.4.0)
|
193
|
-
rubocop-rails (2.
|
193
|
+
rubocop-rails (2.14.2)
|
194
194
|
activesupport (>= 4.2.0)
|
195
195
|
rack (>= 1.1)
|
196
196
|
rubocop (>= 1.7.0, < 2.0)
|
197
197
|
rubocop-rake (0.6.0)
|
198
198
|
rubocop (~> 1.0)
|
199
|
-
rubocop-rspec (2.
|
200
|
-
rubocop (~> 1.
|
201
|
-
rubocop-ast (>= 1.1.0)
|
199
|
+
rubocop-rspec (2.11.1)
|
200
|
+
rubocop (~> 1.19)
|
202
201
|
ruby-progressbar (1.11.0)
|
203
202
|
ruby2_keywords (0.0.5)
|
204
203
|
sham_rack (1.4.1)
|
205
204
|
rack
|
206
|
-
sinatra (2.
|
205
|
+
sinatra (2.2.0)
|
207
206
|
mustermann (~> 1.0)
|
208
207
|
rack (~> 2.2)
|
209
|
-
rack-protection (= 2.
|
208
|
+
rack-protection (= 2.2.0)
|
210
209
|
tilt (~> 2.0)
|
211
|
-
sprockets (4.0.
|
210
|
+
sprockets (4.0.3)
|
212
211
|
concurrent-ruby (~> 1.0)
|
213
212
|
rack (> 1, < 3)
|
214
|
-
sprockets-rails (3.
|
215
|
-
actionpack (>=
|
216
|
-
activesupport (>=
|
213
|
+
sprockets-rails (3.4.2)
|
214
|
+
actionpack (>= 5.2)
|
215
|
+
activesupport (>= 5.2)
|
217
216
|
sprockets (>= 3.0.0)
|
218
217
|
sqlite3 (1.4.2)
|
219
218
|
sysexits (1.2.0)
|
@@ -222,7 +221,7 @@ GEM
|
|
222
221
|
daemons (~> 1.0, >= 1.0.9)
|
223
222
|
eventmachine (~> 1.0, >= 1.0.4)
|
224
223
|
rack (>= 1, < 3)
|
225
|
-
thor (1.1
|
224
|
+
thor (1.2.1)
|
226
225
|
tilt (2.0.10)
|
227
226
|
tzinfo (2.0.4)
|
228
227
|
concurrent-ruby (~> 1.0)
|
@@ -231,11 +230,13 @@ GEM
|
|
231
230
|
addressable (>= 2.8.0)
|
232
231
|
crack (>= 0.3.2)
|
233
232
|
hashdiff (>= 0.4.0, < 2.0.0)
|
233
|
+
webrick (1.7.0)
|
234
234
|
websocket-driver (0.7.5)
|
235
235
|
websocket-extensions (>= 0.1.0)
|
236
236
|
websocket-extensions (0.1.5)
|
237
|
-
yard (0.9.
|
238
|
-
|
237
|
+
yard (0.9.27)
|
238
|
+
webrick (~> 1.7.0)
|
239
|
+
zeitwerk (2.5.4)
|
239
240
|
|
240
241
|
PLATFORMS
|
241
242
|
ruby
|
@@ -254,4 +255,4 @@ DEPENDENCIES
|
|
254
255
|
yard
|
255
256
|
|
256
257
|
BUNDLED WITH
|
257
|
-
2.
|
258
|
+
2.2.33
|
data/README.md
CHANGED
@@ -47,13 +47,14 @@ bundle exec rake copy_tuner:export
|
|
47
47
|
Development
|
48
48
|
=================
|
49
49
|
|
50
|
-
##
|
50
|
+
## クライアント用コード
|
51
51
|
|
52
|
-
`
|
52
|
+
`src`以下を編集してください。
|
53
|
+
`app/assets/*`を直接編集したらダメよ!
|
53
54
|
|
54
55
|
```
|
55
|
-
$
|
56
|
-
$
|
56
|
+
$ yarn dev # 開発時
|
57
|
+
$ yarn build # ビルド
|
57
58
|
```
|
58
59
|
|
59
60
|
|
@@ -65,12 +66,6 @@ $ npm run build # Compile to a <script> containing a self-executing function
|
|
65
66
|
$ bundle exec rspec
|
66
67
|
```
|
67
68
|
|
68
|
-
### testing against all target rails versions
|
69
|
-
|
70
|
-
```
|
71
|
-
$ ./test.sh
|
72
|
-
```
|
73
|
-
|
74
69
|
## release gem
|
75
70
|
|
76
71
|
$ bundle exec rake build # build gem to pkg/ dir
|