Icarus-Mod-Tools 2.1.4 → 2.2.1
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 +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +213 -100
- data/lib/icarus/mod/cli/sync.rb +1 -1
- data/lib/icarus/mod/config.rb +1 -0
- data/lib/icarus/mod/firestore.rb +1 -1
- data/lib/icarus/mod/github.rb +2 -4
- data/lib/icarus/mod/tools/sync/helpers.rb +18 -1
- data/lib/icarus/mod/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e65ad8b4c6c5bd0cd903b9f2d9b8d0e09fb1382a776c7177a3aae0e74c60cfaa
|
|
4
|
+
data.tar.gz: aa19523d4e5cd01aa6439e4cf83e020728a870c439c75552927940314979ddf6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbf4a04fcd7c8035f22c6833f2beac93ded7a24ea9c73668ac29bdbc6aa41b0798376621b0a2965671fe715712d9f88f91c9270aec90267fe53293137ed0052c
|
|
7
|
+
data.tar.gz: 95602d38541559babf423d486bd85a3a803e46eb131363391ec8d8904a326f1d84ebde775735c6783cc1ddf05b820e60696d3670541792ca611b4425c37224de
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.4
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
Icarus-Mod-Tools (2.1
|
|
4
|
+
Icarus-Mod-Tools (2.2.1)
|
|
5
5
|
google-cloud-firestore (~> 2.7)
|
|
6
6
|
octokit (~> 6.0)
|
|
7
7
|
paint (~> 2.3)
|
|
@@ -10,72 +10,145 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
addressable (2.8.
|
|
14
|
-
public_suffix (>= 2.0.2, <
|
|
15
|
-
ast (2.4.
|
|
13
|
+
addressable (2.8.7)
|
|
14
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
15
|
+
ast (2.4.3)
|
|
16
|
+
base64 (0.3.0)
|
|
17
|
+
bigdecimal (3.3.1)
|
|
16
18
|
coderay (1.1.3)
|
|
17
|
-
concurrent-ruby (1.
|
|
18
|
-
diff-lcs (1.
|
|
19
|
-
faraday (2.
|
|
20
|
-
faraday-net_http (>= 2.0, < 3.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
faraday-
|
|
19
|
+
concurrent-ruby (1.3.5)
|
|
20
|
+
diff-lcs (1.6.2)
|
|
21
|
+
faraday (2.14.0)
|
|
22
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
23
|
+
json
|
|
24
|
+
logger
|
|
25
|
+
faraday-net_http (3.4.2)
|
|
26
|
+
net-http (~> 0.5)
|
|
27
|
+
faraday-retry (2.3.2)
|
|
24
28
|
faraday (~> 2.0)
|
|
25
|
-
ffi (1.
|
|
26
|
-
|
|
29
|
+
ffi (1.17.2)
|
|
30
|
+
ffi (1.17.2-aarch64-linux-gnu)
|
|
31
|
+
ffi (1.17.2-aarch64-linux-musl)
|
|
32
|
+
ffi (1.17.2-arm-linux-gnu)
|
|
33
|
+
ffi (1.17.2-arm-linux-musl)
|
|
34
|
+
ffi (1.17.2-arm64-darwin)
|
|
35
|
+
ffi (1.17.2-x86-linux-gnu)
|
|
36
|
+
ffi (1.17.2-x86-linux-musl)
|
|
37
|
+
ffi (1.17.2-x86_64-darwin)
|
|
38
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
|
39
|
+
ffi (1.17.2-x86_64-linux-musl)
|
|
40
|
+
formatador (1.2.2)
|
|
41
|
+
reline
|
|
27
42
|
fuubar (2.5.1)
|
|
28
43
|
rspec-core (~> 3.0)
|
|
29
44
|
ruby-progressbar (~> 1.4)
|
|
30
|
-
gapic-common (
|
|
45
|
+
gapic-common (1.2.0)
|
|
31
46
|
faraday (>= 1.9, < 3.a)
|
|
32
47
|
faraday-retry (>= 1.0, < 3.a)
|
|
33
|
-
google-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
google-cloud-env (~> 2.2)
|
|
49
|
+
google-logging-utils (~> 0.1)
|
|
50
|
+
google-protobuf (~> 4.26)
|
|
51
|
+
googleapis-common-protos (~> 1.6)
|
|
52
|
+
googleapis-common-protos-types (~> 1.15)
|
|
53
|
+
googleauth (~> 1.12)
|
|
54
|
+
grpc (~> 1.66)
|
|
55
|
+
google-cloud-core (1.8.0)
|
|
56
|
+
google-cloud-env (>= 1.0, < 3.a)
|
|
40
57
|
google-cloud-errors (~> 1.0)
|
|
41
|
-
google-cloud-env (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
google-cloud-
|
|
58
|
+
google-cloud-env (2.3.1)
|
|
59
|
+
base64 (~> 0.2)
|
|
60
|
+
faraday (>= 1.0, < 3.a)
|
|
61
|
+
google-cloud-errors (1.5.0)
|
|
62
|
+
google-cloud-firestore (2.16.1)
|
|
63
|
+
bigdecimal (~> 3.0)
|
|
45
64
|
concurrent-ruby (~> 1.0)
|
|
46
65
|
google-cloud-core (~> 1.5)
|
|
47
|
-
google-cloud-firestore-v1 (
|
|
66
|
+
google-cloud-firestore-v1 (>= 0.10, < 2.a)
|
|
48
67
|
rbtree (~> 0.4.2)
|
|
49
|
-
google-cloud-firestore-v1 (
|
|
50
|
-
gapic-common (>= 0.
|
|
68
|
+
google-cloud-firestore-v1 (1.3.0)
|
|
69
|
+
gapic-common (>= 0.25.0, < 2.a)
|
|
51
70
|
google-cloud-errors (~> 1.0)
|
|
52
|
-
google-cloud-location (>= 0.
|
|
53
|
-
google-cloud-location (
|
|
54
|
-
gapic-common (
|
|
71
|
+
google-cloud-location (>= 0.7, < 2.a)
|
|
72
|
+
google-cloud-location (1.2.1)
|
|
73
|
+
gapic-common (~> 1.2)
|
|
55
74
|
google-cloud-errors (~> 1.0)
|
|
56
|
-
google-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
75
|
+
google-logging-utils (0.2.0)
|
|
76
|
+
google-protobuf (4.33.0)
|
|
77
|
+
bigdecimal
|
|
78
|
+
rake (>= 13)
|
|
79
|
+
google-protobuf (4.33.0-aarch64-linux-gnu)
|
|
80
|
+
bigdecimal
|
|
81
|
+
rake (>= 13)
|
|
82
|
+
google-protobuf (4.33.0-aarch64-linux-musl)
|
|
83
|
+
bigdecimal
|
|
84
|
+
rake (>= 13)
|
|
85
|
+
google-protobuf (4.33.0-arm64-darwin)
|
|
86
|
+
bigdecimal
|
|
87
|
+
rake (>= 13)
|
|
88
|
+
google-protobuf (4.33.0-x86-linux-gnu)
|
|
89
|
+
bigdecimal
|
|
90
|
+
rake (>= 13)
|
|
91
|
+
google-protobuf (4.33.0-x86-linux-musl)
|
|
92
|
+
bigdecimal
|
|
93
|
+
rake (>= 13)
|
|
94
|
+
google-protobuf (4.33.0-x86_64-darwin)
|
|
95
|
+
bigdecimal
|
|
96
|
+
rake (>= 13)
|
|
97
|
+
google-protobuf (4.33.0-x86_64-linux-gnu)
|
|
98
|
+
bigdecimal
|
|
99
|
+
rake (>= 13)
|
|
100
|
+
google-protobuf (4.33.0-x86_64-linux-musl)
|
|
101
|
+
bigdecimal
|
|
102
|
+
rake (>= 13)
|
|
103
|
+
googleapis-common-protos (1.9.0)
|
|
104
|
+
google-protobuf (~> 4.26)
|
|
105
|
+
googleapis-common-protos-types (~> 1.21)
|
|
106
|
+
grpc (~> 1.41)
|
|
107
|
+
googleapis-common-protos-types (1.22.0)
|
|
108
|
+
google-protobuf (~> 4.26)
|
|
109
|
+
googleauth (1.15.1)
|
|
110
|
+
faraday (>= 1.0, < 3.a)
|
|
111
|
+
google-cloud-env (~> 2.2)
|
|
112
|
+
google-logging-utils (~> 0.1)
|
|
113
|
+
jwt (>= 1.4, < 4.0)
|
|
67
114
|
multi_json (~> 1.11)
|
|
68
115
|
os (>= 0.9, < 2.0)
|
|
69
116
|
signet (>= 0.16, < 2.a)
|
|
70
|
-
grpc (1.
|
|
71
|
-
google-protobuf (
|
|
117
|
+
grpc (1.76.0)
|
|
118
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
72
119
|
googleapis-common-protos-types (~> 1.0)
|
|
73
|
-
|
|
120
|
+
grpc (1.76.0-aarch64-linux-gnu)
|
|
121
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
122
|
+
googleapis-common-protos-types (~> 1.0)
|
|
123
|
+
grpc (1.76.0-aarch64-linux-musl)
|
|
124
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
125
|
+
googleapis-common-protos-types (~> 1.0)
|
|
126
|
+
grpc (1.76.0-arm64-darwin)
|
|
127
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
128
|
+
googleapis-common-protos-types (~> 1.0)
|
|
129
|
+
grpc (1.76.0-x86-linux-gnu)
|
|
130
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
131
|
+
googleapis-common-protos-types (~> 1.0)
|
|
132
|
+
grpc (1.76.0-x86-linux-musl)
|
|
133
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
134
|
+
googleapis-common-protos-types (~> 1.0)
|
|
135
|
+
grpc (1.76.0-x86_64-darwin)
|
|
136
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
137
|
+
googleapis-common-protos-types (~> 1.0)
|
|
138
|
+
grpc (1.76.0-x86_64-linux-gnu)
|
|
139
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
140
|
+
googleapis-common-protos-types (~> 1.0)
|
|
141
|
+
grpc (1.76.0-x86_64-linux-musl)
|
|
142
|
+
google-protobuf (>= 3.25, < 5.0)
|
|
143
|
+
googleapis-common-protos-types (~> 1.0)
|
|
144
|
+
guard (2.19.1)
|
|
74
145
|
formatador (>= 0.2.4)
|
|
75
146
|
listen (>= 2.7, < 4.0)
|
|
147
|
+
logger (~> 1.6)
|
|
76
148
|
lumberjack (>= 1.0.12, < 2.0)
|
|
77
149
|
nenv (~> 0.1)
|
|
78
150
|
notiffany (~> 0.0)
|
|
151
|
+
ostruct (~> 0.6)
|
|
79
152
|
pry (>= 0.13.0)
|
|
80
153
|
shellany (~> 0.0)
|
|
81
154
|
thor (>= 0.18.1)
|
|
@@ -84,94 +157,134 @@ GEM
|
|
|
84
157
|
guard (~> 2.1)
|
|
85
158
|
guard-compat (~> 1.1)
|
|
86
159
|
rspec (>= 2.99.0, < 4.0)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
160
|
+
io-console (0.8.1)
|
|
161
|
+
json (2.16.0)
|
|
162
|
+
jwt (3.1.2)
|
|
163
|
+
base64
|
|
164
|
+
language_server-protocol (3.17.0.5)
|
|
165
|
+
lint_roller (1.1.0)
|
|
166
|
+
listen (3.9.0)
|
|
91
167
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
92
168
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
method_source (1.
|
|
96
|
-
multi_json (1.
|
|
169
|
+
logger (1.7.0)
|
|
170
|
+
lumberjack (1.4.2)
|
|
171
|
+
method_source (1.1.0)
|
|
172
|
+
multi_json (1.17.0)
|
|
97
173
|
nenv (0.3.0)
|
|
174
|
+
net-http (0.7.0)
|
|
175
|
+
uri
|
|
98
176
|
notiffany (0.1.3)
|
|
99
177
|
nenv (~> 0.1)
|
|
100
178
|
shellany (~> 0.0)
|
|
101
|
-
octokit (6.1.
|
|
179
|
+
octokit (6.1.1)
|
|
102
180
|
faraday (>= 1, < 3)
|
|
103
181
|
sawyer (~> 0.9)
|
|
104
182
|
os (1.1.4)
|
|
183
|
+
ostruct (0.6.3)
|
|
105
184
|
paint (2.3.0)
|
|
106
|
-
parallel (1.
|
|
107
|
-
parser (3.
|
|
185
|
+
parallel (1.27.0)
|
|
186
|
+
parser (3.3.10.0)
|
|
108
187
|
ast (~> 2.4.1)
|
|
188
|
+
racc
|
|
189
|
+
prism (1.6.0)
|
|
109
190
|
pry (0.14.2)
|
|
110
191
|
coderay (~> 1.1)
|
|
111
192
|
method_source (~> 1.0)
|
|
112
|
-
public_suffix (
|
|
193
|
+
public_suffix (6.0.2)
|
|
194
|
+
racc (1.8.1)
|
|
113
195
|
rainbow (3.1.1)
|
|
114
|
-
rake (13.
|
|
196
|
+
rake (13.3.1)
|
|
115
197
|
rb-fsevent (0.11.2)
|
|
116
|
-
rb-inotify (0.
|
|
198
|
+
rb-inotify (0.11.1)
|
|
117
199
|
ffi (~> 1.0)
|
|
118
200
|
rbtree (0.4.6)
|
|
119
|
-
regexp_parser (2.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
rspec-
|
|
124
|
-
rspec-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
201
|
+
regexp_parser (2.11.3)
|
|
202
|
+
reline (0.6.2)
|
|
203
|
+
io-console (~> 0.5)
|
|
204
|
+
rspec (3.13.2)
|
|
205
|
+
rspec-core (~> 3.13.0)
|
|
206
|
+
rspec-expectations (~> 3.13.0)
|
|
207
|
+
rspec-mocks (~> 3.13.0)
|
|
208
|
+
rspec-core (3.13.6)
|
|
209
|
+
rspec-support (~> 3.13.0)
|
|
210
|
+
rspec-expectations (3.13.5)
|
|
128
211
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
129
|
-
rspec-support (~> 3.
|
|
130
|
-
rspec-mocks (3.
|
|
212
|
+
rspec-support (~> 3.13.0)
|
|
213
|
+
rspec-mocks (3.13.7)
|
|
131
214
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
132
|
-
rspec-support (~> 3.
|
|
133
|
-
rspec-support (3.
|
|
134
|
-
rubocop (1.
|
|
215
|
+
rspec-support (~> 3.13.0)
|
|
216
|
+
rspec-support (3.13.6)
|
|
217
|
+
rubocop (1.80.2)
|
|
135
218
|
json (~> 2.3)
|
|
219
|
+
language_server-protocol (~> 3.17.0.2)
|
|
220
|
+
lint_roller (~> 1.1.0)
|
|
136
221
|
parallel (~> 1.10)
|
|
137
|
-
parser (>= 3.
|
|
222
|
+
parser (>= 3.3.0.2)
|
|
138
223
|
rainbow (>= 2.2.2, < 4.0)
|
|
139
|
-
regexp_parser (>=
|
|
140
|
-
|
|
141
|
-
rubocop-ast (>= 1.26.0, < 2.0)
|
|
224
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
225
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
|
142
226
|
ruby-progressbar (~> 1.7)
|
|
143
|
-
unicode-display_width (>= 2.4.0, <
|
|
144
|
-
rubocop-ast (1.
|
|
145
|
-
parser (>= 3.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
rubocop (
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
rubocop (~> 1.
|
|
227
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
228
|
+
rubocop-ast (1.48.0)
|
|
229
|
+
parser (>= 3.3.7.2)
|
|
230
|
+
prism (~> 1.4)
|
|
231
|
+
rubocop-capybara (2.22.1)
|
|
232
|
+
lint_roller (~> 1.1)
|
|
233
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
234
|
+
rubocop-factory_bot (2.27.1)
|
|
235
|
+
lint_roller (~> 1.1)
|
|
236
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
237
|
+
rubocop-performance (1.25.0)
|
|
238
|
+
lint_roller (~> 1.1)
|
|
239
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
240
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
241
|
+
rubocop-rspec (2.31.0)
|
|
242
|
+
rubocop (~> 1.40)
|
|
153
243
|
rubocop-capybara (~> 2.17)
|
|
244
|
+
rubocop-factory_bot (~> 2.22)
|
|
245
|
+
rubocop-rspec_rails (~> 2.28)
|
|
246
|
+
rubocop-rspec_rails (2.29.1)
|
|
247
|
+
rubocop (~> 1.61)
|
|
154
248
|
ruby-progressbar (1.13.0)
|
|
155
|
-
|
|
156
|
-
sawyer (0.9.2)
|
|
249
|
+
sawyer (0.9.3)
|
|
157
250
|
addressable (>= 2.3.5)
|
|
158
251
|
faraday (>= 0.17.3, < 3)
|
|
159
252
|
shellany (0.0.1)
|
|
160
|
-
signet (0.
|
|
253
|
+
signet (0.21.0)
|
|
161
254
|
addressable (~> 2.8)
|
|
162
255
|
faraday (>= 0.17.5, < 3.a)
|
|
163
|
-
jwt (>= 1.5, <
|
|
256
|
+
jwt (>= 1.5, < 4.0)
|
|
164
257
|
multi_json (~> 1.10)
|
|
165
|
-
standard (1.
|
|
258
|
+
standard (1.51.1)
|
|
166
259
|
language_server-protocol (~> 3.17.0.2)
|
|
167
|
-
|
|
168
|
-
rubocop
|
|
169
|
-
|
|
170
|
-
|
|
260
|
+
lint_roller (~> 1.0)
|
|
261
|
+
rubocop (~> 1.80.2)
|
|
262
|
+
standard-custom (~> 1.0.0)
|
|
263
|
+
standard-performance (~> 1.8)
|
|
264
|
+
standard-custom (1.0.2)
|
|
265
|
+
lint_roller (~> 1.0)
|
|
266
|
+
rubocop (~> 1.50)
|
|
267
|
+
standard-performance (1.8.0)
|
|
268
|
+
lint_roller (~> 1.1)
|
|
269
|
+
rubocop-performance (~> 1.25.0)
|
|
270
|
+
thor (1.4.0)
|
|
271
|
+
unicode-display_width (3.2.0)
|
|
272
|
+
unicode-emoji (~> 4.1)
|
|
273
|
+
unicode-emoji (4.1.0)
|
|
274
|
+
uri (1.1.1)
|
|
171
275
|
|
|
172
276
|
PLATFORMS
|
|
173
|
-
|
|
174
|
-
|
|
277
|
+
aarch64-linux-gnu
|
|
278
|
+
aarch64-linux-musl
|
|
279
|
+
arm-linux-gnu
|
|
280
|
+
arm-linux-musl
|
|
281
|
+
arm64-darwin
|
|
282
|
+
ruby
|
|
283
|
+
x86-linux-gnu
|
|
284
|
+
x86-linux-musl
|
|
285
|
+
x86_64-darwin
|
|
286
|
+
x86_64-linux-gnu
|
|
287
|
+
x86_64-linux-musl
|
|
175
288
|
|
|
176
289
|
DEPENDENCIES
|
|
177
290
|
Icarus-Mod-Tools!
|
|
@@ -183,7 +296,7 @@ DEPENDENCIES
|
|
|
183
296
|
rspec (~> 3.12)
|
|
184
297
|
rubocop (~> 1.41)
|
|
185
298
|
rubocop-rspec (~> 2.16)
|
|
186
|
-
standard
|
|
299
|
+
standard (>= 1.35.1)
|
|
187
300
|
|
|
188
301
|
BUNDLED WITH
|
|
189
|
-
2.
|
|
302
|
+
2.6.9
|
data/lib/icarus/mod/cli/sync.rb
CHANGED
|
@@ -144,7 +144,7 @@ module Icarus
|
|
|
144
144
|
|
|
145
145
|
puts "Deleting outdated items..." if verbose?
|
|
146
146
|
delete_array.each do |list|
|
|
147
|
-
print
|
|
147
|
+
print "Deleting '#{list.author || "NoOne"}/#{list.name || "Unnamed'"}'#{" " * 20}" if verbose > 1
|
|
148
148
|
response = sync.delete(list)
|
|
149
149
|
puts success_or_failure(status: response) if verbose > 1
|
|
150
150
|
end
|
data/lib/icarus/mod/config.rb
CHANGED
data/lib/icarus/mod/firestore.rb
CHANGED
|
@@ -41,7 +41,7 @@ module Icarus
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def find_by_type(type:, name:, author:)
|
|
44
|
-
instance_variable_get("@#{type}").find { |obj| obj.name == name && obj.author == author }
|
|
44
|
+
instance_variable_get(:"@#{type}").find { |obj| obj.name == name && obj.author == author }
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def update(type, payload, merge: false)
|
data/lib/icarus/mod/github.rb
CHANGED
|
@@ -44,6 +44,8 @@ module Icarus
|
|
|
44
44
|
|
|
45
45
|
block&.call(entry)
|
|
46
46
|
@resources << entry # cache the file
|
|
47
|
+
rescue Octokit::NotFound
|
|
48
|
+
warn "WARNING: Could not access #{repository}: 404 - not found"
|
|
47
49
|
end
|
|
48
50
|
end
|
|
49
51
|
|
|
@@ -53,10 +55,6 @@ module Icarus
|
|
|
53
55
|
def find(pattern)
|
|
54
56
|
all_files { |file| return file if /#{pattern}/i.match?(file[:name]) }
|
|
55
57
|
end
|
|
56
|
-
|
|
57
|
-
def get_contents(url)
|
|
58
|
-
@client.contents(url)
|
|
59
|
-
end
|
|
60
58
|
end
|
|
61
59
|
end
|
|
62
60
|
end
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
require "uri"
|
|
4
4
|
require "net/http"
|
|
5
5
|
require "json"
|
|
6
|
+
require "openssl"
|
|
6
7
|
|
|
7
8
|
module Icarus
|
|
8
9
|
module Mod
|
|
@@ -15,7 +16,23 @@ module Icarus
|
|
|
15
16
|
def retrieve_from_url(url)
|
|
16
17
|
raise RequestFailed, "Invalid URI: '#{url}'" unless url && url =~ URI::DEFAULT_PARSER.make_regexp
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
uri = URI(url)
|
|
20
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
21
|
+
|
|
22
|
+
if uri.scheme == "https"
|
|
23
|
+
http.use_ssl = true
|
|
24
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
25
|
+
# Disable CRL checking which is causing the issue
|
|
26
|
+
http.verify_callback = proc { |preverify_ok, ssl_context|
|
|
27
|
+
if ssl_context.error == OpenSSL::X509::V_ERR_UNABLE_TO_GET_CRL
|
|
28
|
+
true
|
|
29
|
+
else
|
|
30
|
+
preverify_ok
|
|
31
|
+
end
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
res = http.get(uri.path.empty? ? "/" : uri.path)
|
|
19
36
|
|
|
20
37
|
raise RequestFailed, "HTTP Request failed for #{url} (#{res.code}): #{res.message}" unless res&.code == "200"
|
|
21
38
|
|
data/lib/icarus/mod/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: Icarus-Mod-Tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Donovan Young
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: google-cloud-firestore
|
|
@@ -117,7 +116,6 @@ metadata:
|
|
|
117
116
|
source_code_uri: https://github.com/DonovanMods/icarus-mod-tools
|
|
118
117
|
changelog_uri: https://github.com/DonovanMods/icarus-mod-tools/blob/main/CHANGELOG.md
|
|
119
118
|
rubygems_mfa_required: 'true'
|
|
120
|
-
post_install_message:
|
|
121
119
|
rdoc_options: []
|
|
122
120
|
require_paths:
|
|
123
121
|
- lib
|
|
@@ -133,8 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
131
|
- !ruby/object:Gem::Version
|
|
134
132
|
version: '0'
|
|
135
133
|
requirements: []
|
|
136
|
-
rubygems_version: 3.
|
|
137
|
-
signing_key:
|
|
134
|
+
rubygems_version: 3.6.9
|
|
138
135
|
specification_version: 4
|
|
139
136
|
summary: Various tools for Icarus Modding
|
|
140
137
|
test_files: []
|