colordom 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +37 -0
- data/ext/colordom/Cargo.lock +135 -270
- data/ext/colordom/Cargo.toml +1 -1
- data/ext/colordom/src/lib.rs +5 -6
- data/lib/colordom/image.rb +1 -1
- data/lib/colordom/version.rb +1 -1
- data/lib/colordom.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab78e213b13f6c9a3d0563b94e4675f806bf295ae46acf5343b1491968673cf6
|
4
|
+
data.tar.gz: 784d3608d34cff60e0bba8f69910f9c42c8553bb3577f3f6326f49b7c04d4e3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1bbf76b5c4cfe1f094aa7725a003b73b1ca9cb3050645b42e532a1829ea79ddaa833fefcdcfe0e9dc93cd92be82b6cad2d0fb059bf952330e7dd903a24918f4
|
7
|
+
data.tar.gz: 4c69717df0af5a890c41f14fb5314acd7e9cc588b373b82379153958db644e0f1378e97a08dd97a47516895804cdaf49a6da041dad6ce0efc7f428d23487a16a
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Code of Conduct
|
2
|
+
|
3
|
+
All participants of this project are expected to abide by our Code of Conduct, both online and during in-person events that are hosted and/or associated with this project.
|
4
|
+
|
5
|
+
## The Pledge
|
6
|
+
|
7
|
+
In the interest of fostering an open and welcoming environment, we pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
8
|
+
|
9
|
+
## The Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to creating a positive environment include:
|
12
|
+
|
13
|
+
* Using welcoming and inclusive language
|
14
|
+
* Being respectful of differing viewpoints and experiences
|
15
|
+
* Referring to people by their preferred pronouns and using gender-neutral pronouns when uncertain
|
16
|
+
* Gracefully accepting constructive criticism
|
17
|
+
* Focusing on what is best for the community
|
18
|
+
* Showing empathy towards other community members
|
19
|
+
|
20
|
+
Examples of unacceptable behavior by participants include:
|
21
|
+
|
22
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
23
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
26
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
27
|
+
* Dismissing or attacking inclusion-oriented requests
|
28
|
+
|
29
|
+
## Enforcement
|
30
|
+
|
31
|
+
Violations of the Code of Conduct may be reported by sending an email to info@hardpixel.eu. All reports will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Further details of specific enforcement policies may be posted separately.
|
32
|
+
|
33
|
+
We hold the right and responsibility to remove comments or other contributions that are not aligned to this Code of Conduct, or to suspend temporarily or permanently any members for other behaviors that are inappropriate, threatening, offensive, or harmful.
|
34
|
+
|
35
|
+
## Attribution
|
36
|
+
|
37
|
+
This Code of Conduct is adapted from [dev.to](https://dev.to/code-of-conduct).
|
data/ext/colordom/Cargo.lock
CHANGED
@@ -8,30 +8,15 @@ version = "1.0.2"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
9
9
|
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
10
10
|
|
11
|
-
[[package]]
|
12
|
-
name = "adler32"
|
13
|
-
version = "1.2.0"
|
14
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
15
|
-
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
|
16
|
-
|
17
11
|
[[package]]
|
18
12
|
name = "aho-corasick"
|
19
|
-
version = "0.7.
|
13
|
+
version = "0.7.19"
|
20
14
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
21
|
-
checksum = "
|
15
|
+
checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e"
|
22
16
|
dependencies = [
|
23
17
|
"memchr",
|
24
18
|
]
|
25
19
|
|
26
|
-
[[package]]
|
27
|
-
name = "ansi_term"
|
28
|
-
version = "0.12.1"
|
29
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
30
|
-
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
|
31
|
-
dependencies = [
|
32
|
-
"winapi",
|
33
|
-
]
|
34
|
-
|
35
20
|
[[package]]
|
36
21
|
name = "approx"
|
37
22
|
version = "0.5.1"
|
@@ -41,17 +26,6 @@ dependencies = [
|
|
41
26
|
"num-traits",
|
42
27
|
]
|
43
28
|
|
44
|
-
[[package]]
|
45
|
-
name = "atty"
|
46
|
-
version = "0.2.14"
|
47
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
48
|
-
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
49
|
-
dependencies = [
|
50
|
-
"hermit-abi",
|
51
|
-
"libc",
|
52
|
-
"winapi",
|
53
|
-
]
|
54
|
-
|
55
29
|
[[package]]
|
56
30
|
name = "autocfg"
|
57
31
|
version = "1.1.0"
|
@@ -60,25 +34,21 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
|
60
34
|
|
61
35
|
[[package]]
|
62
36
|
name = "bindgen"
|
63
|
-
version = "0.
|
37
|
+
version = "0.60.1"
|
64
38
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
65
|
-
checksum = "
|
39
|
+
checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6"
|
66
40
|
dependencies = [
|
67
41
|
"bitflags",
|
68
42
|
"cexpr",
|
69
43
|
"clang-sys",
|
70
|
-
"clap",
|
71
|
-
"env_logger",
|
72
44
|
"lazy_static",
|
73
45
|
"lazycell",
|
74
|
-
"log",
|
75
46
|
"peeking_take_while",
|
76
47
|
"proc-macro2",
|
77
48
|
"quote",
|
78
49
|
"regex",
|
79
50
|
"rustc-hash",
|
80
51
|
"shlex",
|
81
|
-
"which",
|
82
52
|
]
|
83
53
|
|
84
54
|
[[package]]
|
@@ -95,15 +65,15 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
95
65
|
|
96
66
|
[[package]]
|
97
67
|
name = "bumpalo"
|
98
|
-
version = "3.11.
|
68
|
+
version = "3.11.1"
|
99
69
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
100
|
-
checksum = "
|
70
|
+
checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba"
|
101
71
|
|
102
72
|
[[package]]
|
103
73
|
name = "bytemuck"
|
104
|
-
version = "1.12.
|
74
|
+
version = "1.12.3"
|
105
75
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
106
|
-
checksum = "
|
76
|
+
checksum = "aaa3a8d9a1ca92e282c96a32d6511b695d7d994d1d102ba85d279f9b2756947f"
|
107
77
|
|
108
78
|
[[package]]
|
109
79
|
name = "byteorder"
|
@@ -128,30 +98,15 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
128
98
|
|
129
99
|
[[package]]
|
130
100
|
name = "clang-sys"
|
131
|
-
version = "1.
|
101
|
+
version = "1.4.0"
|
132
102
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
133
|
-
checksum = "
|
103
|
+
checksum = "fa2e27ae6ab525c3d369ded447057bca5438d86dc3a68f6faafb8269ba82ebf3"
|
134
104
|
dependencies = [
|
135
105
|
"glob",
|
136
106
|
"libc",
|
137
107
|
"libloading",
|
138
108
|
]
|
139
109
|
|
140
|
-
[[package]]
|
141
|
-
name = "clap"
|
142
|
-
version = "2.34.0"
|
143
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
144
|
-
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
|
145
|
-
dependencies = [
|
146
|
-
"ansi_term",
|
147
|
-
"atty",
|
148
|
-
"bitflags",
|
149
|
-
"strsim 0.8.0",
|
150
|
-
"textwrap",
|
151
|
-
"unicode-width",
|
152
|
-
"vec_map",
|
153
|
-
]
|
154
|
-
|
155
110
|
[[package]]
|
156
111
|
name = "color_quant"
|
157
112
|
version = "1.1.0"
|
@@ -202,71 +157,31 @@ dependencies = [
|
|
202
157
|
|
203
158
|
[[package]]
|
204
159
|
name = "crossbeam-epoch"
|
205
|
-
version = "0.9.
|
160
|
+
version = "0.9.11"
|
206
161
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
207
|
-
checksum = "
|
162
|
+
checksum = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348"
|
208
163
|
dependencies = [
|
209
164
|
"autocfg",
|
210
165
|
"cfg-if",
|
211
166
|
"crossbeam-utils",
|
212
167
|
"memoffset",
|
213
|
-
"once_cell",
|
214
168
|
"scopeguard",
|
215
169
|
]
|
216
170
|
|
217
171
|
[[package]]
|
218
172
|
name = "crossbeam-utils"
|
219
|
-
version = "0.8.
|
173
|
+
version = "0.8.12"
|
220
174
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
221
|
-
checksum = "
|
175
|
+
checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac"
|
222
176
|
dependencies = [
|
223
177
|
"cfg-if",
|
224
|
-
"once_cell",
|
225
|
-
]
|
226
|
-
|
227
|
-
[[package]]
|
228
|
-
name = "darling"
|
229
|
-
version = "0.13.4"
|
230
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
231
|
-
checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c"
|
232
|
-
dependencies = [
|
233
|
-
"darling_core",
|
234
|
-
"darling_macro",
|
235
178
|
]
|
236
179
|
|
237
180
|
[[package]]
|
238
|
-
name = "
|
239
|
-
version = "0.
|
181
|
+
name = "crunchy"
|
182
|
+
version = "0.2.2"
|
240
183
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
241
|
-
checksum = "
|
242
|
-
dependencies = [
|
243
|
-
"fnv",
|
244
|
-
"ident_case",
|
245
|
-
"proc-macro2",
|
246
|
-
"quote",
|
247
|
-
"strsim 0.10.0",
|
248
|
-
"syn",
|
249
|
-
]
|
250
|
-
|
251
|
-
[[package]]
|
252
|
-
name = "darling_macro"
|
253
|
-
version = "0.13.4"
|
254
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
255
|
-
checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835"
|
256
|
-
dependencies = [
|
257
|
-
"darling_core",
|
258
|
-
"quote",
|
259
|
-
"syn",
|
260
|
-
]
|
261
|
-
|
262
|
-
[[package]]
|
263
|
-
name = "deflate"
|
264
|
-
version = "1.0.0"
|
265
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
266
|
-
checksum = "c86f7e25f518f4b81808a2cf1c50996a61f5c2eb394b2393bd87f2a4780a432f"
|
267
|
-
dependencies = [
|
268
|
-
"adler32",
|
269
|
-
]
|
184
|
+
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
|
270
185
|
|
271
186
|
[[package]]
|
272
187
|
name = "dominant_color"
|
@@ -280,30 +195,17 @@ version = "1.8.0"
|
|
280
195
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
281
196
|
checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
|
282
197
|
|
283
|
-
[[package]]
|
284
|
-
name = "env_logger"
|
285
|
-
version = "0.9.0"
|
286
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
287
|
-
checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
|
288
|
-
dependencies = [
|
289
|
-
"atty",
|
290
|
-
"humantime",
|
291
|
-
"log",
|
292
|
-
"regex",
|
293
|
-
"termcolor",
|
294
|
-
]
|
295
|
-
|
296
198
|
[[package]]
|
297
199
|
name = "exr"
|
298
|
-
version = "1.5.
|
200
|
+
version = "1.5.2"
|
299
201
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
300
|
-
checksum = "
|
202
|
+
checksum = "8eb5f255b5980bb0c8cf676b675d1a99be40f316881444f44e0462eaf5df5ded"
|
301
203
|
dependencies = [
|
302
204
|
"bit_field",
|
303
205
|
"flume",
|
304
206
|
"half",
|
305
207
|
"lebe",
|
306
|
-
"miniz_oxide",
|
208
|
+
"miniz_oxide 0.6.2",
|
307
209
|
"smallvec",
|
308
210
|
"threadpool",
|
309
211
|
]
|
@@ -324,7 +226,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
324
226
|
checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6"
|
325
227
|
dependencies = [
|
326
228
|
"crc32fast",
|
327
|
-
"miniz_oxide",
|
229
|
+
"miniz_oxide 0.5.4",
|
328
230
|
]
|
329
231
|
|
330
232
|
[[package]]
|
@@ -340,29 +242,23 @@ dependencies = [
|
|
340
242
|
"spin",
|
341
243
|
]
|
342
244
|
|
343
|
-
[[package]]
|
344
|
-
name = "fnv"
|
345
|
-
version = "1.0.7"
|
346
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
347
|
-
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
348
|
-
|
349
245
|
[[package]]
|
350
246
|
name = "futures-core"
|
351
|
-
version = "0.3.
|
247
|
+
version = "0.3.25"
|
352
248
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
353
|
-
checksum = "
|
249
|
+
checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac"
|
354
250
|
|
355
251
|
[[package]]
|
356
252
|
name = "futures-sink"
|
357
|
-
version = "0.3.
|
253
|
+
version = "0.3.25"
|
358
254
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
359
|
-
checksum = "
|
255
|
+
checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9"
|
360
256
|
|
361
257
|
[[package]]
|
362
258
|
name = "getrandom"
|
363
|
-
version = "0.2.
|
259
|
+
version = "0.2.8"
|
364
260
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
365
|
-
checksum = "
|
261
|
+
checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
|
366
262
|
dependencies = [
|
367
263
|
"cfg-if",
|
368
264
|
"js-sys",
|
@@ -389,9 +285,12 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
|
389
285
|
|
390
286
|
[[package]]
|
391
287
|
name = "half"
|
392
|
-
version = "1.
|
288
|
+
version = "2.1.0"
|
393
289
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
394
|
-
checksum = "
|
290
|
+
checksum = "ad6a9459c9c30b177b925162351f97e7d967c7ea8bab3b8352805327daf45554"
|
291
|
+
dependencies = [
|
292
|
+
"crunchy",
|
293
|
+
]
|
395
294
|
|
396
295
|
[[package]]
|
397
296
|
name = "hermit-abi"
|
@@ -402,23 +301,11 @@ dependencies = [
|
|
402
301
|
"libc",
|
403
302
|
]
|
404
303
|
|
405
|
-
[[package]]
|
406
|
-
name = "humantime"
|
407
|
-
version = "2.1.0"
|
408
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
409
|
-
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
410
|
-
|
411
|
-
[[package]]
|
412
|
-
name = "ident_case"
|
413
|
-
version = "1.0.1"
|
414
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
415
|
-
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
|
416
|
-
|
417
304
|
[[package]]
|
418
305
|
name = "image"
|
419
|
-
version = "0.24.
|
306
|
+
version = "0.24.5"
|
420
307
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
421
|
-
checksum = "
|
308
|
+
checksum = "69b7ea949b537b0fd0af141fff8c77690f2ce96f4f41f042ccb6c69c6c965945"
|
422
309
|
dependencies = [
|
423
310
|
"bytemuck",
|
424
311
|
"byteorder",
|
@@ -435,18 +322,18 @@ dependencies = [
|
|
435
322
|
|
436
323
|
[[package]]
|
437
324
|
name = "jpeg-decoder"
|
438
|
-
version = "0.
|
325
|
+
version = "0.3.0"
|
439
326
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
440
|
-
checksum = "
|
327
|
+
checksum = "bc0000e42512c92e31c2252315bda326620a4e034105e900c98ec492fa077b3e"
|
441
328
|
dependencies = [
|
442
329
|
"rayon",
|
443
330
|
]
|
444
331
|
|
445
332
|
[[package]]
|
446
333
|
name = "js-sys"
|
447
|
-
version = "0.3.
|
334
|
+
version = "0.3.60"
|
448
335
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
449
|
-
checksum = "
|
336
|
+
checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47"
|
450
337
|
dependencies = [
|
451
338
|
"wasm-bindgen",
|
452
339
|
]
|
@@ -482,15 +369,15 @@ checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
|
|
482
369
|
|
483
370
|
[[package]]
|
484
371
|
name = "libc"
|
485
|
-
version = "0.2.
|
372
|
+
version = "0.2.137"
|
486
373
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
487
|
-
checksum = "
|
374
|
+
checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89"
|
488
375
|
|
489
376
|
[[package]]
|
490
377
|
name = "libloading"
|
491
|
-
version = "0.7.
|
378
|
+
version = "0.7.4"
|
492
379
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
493
|
-
checksum = "
|
380
|
+
checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
|
494
381
|
dependencies = [
|
495
382
|
"cfg-if",
|
496
383
|
"winapi",
|
@@ -498,9 +385,9 @@ dependencies = [
|
|
498
385
|
|
499
386
|
[[package]]
|
500
387
|
name = "lock_api"
|
501
|
-
version = "0.4.
|
388
|
+
version = "0.4.9"
|
502
389
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
503
|
-
checksum = "
|
390
|
+
checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df"
|
504
391
|
dependencies = [
|
505
392
|
"autocfg",
|
506
393
|
"scopeguard",
|
@@ -517,21 +404,21 @@ dependencies = [
|
|
517
404
|
|
518
405
|
[[package]]
|
519
406
|
name = "magnus"
|
520
|
-
version = "0.
|
407
|
+
version = "0.4.0"
|
521
408
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
522
|
-
checksum = "
|
409
|
+
checksum = "453555eff7ec4de96c9d095f5fe36fa9610b64832ba0e965a43c21d622d077fc"
|
523
410
|
dependencies = [
|
524
|
-
"bindgen",
|
525
411
|
"magnus-macros",
|
412
|
+
"rb-sys",
|
413
|
+
"rb-sys-env",
|
526
414
|
]
|
527
415
|
|
528
416
|
[[package]]
|
529
417
|
name = "magnus-macros"
|
530
|
-
version = "0.
|
418
|
+
version = "0.2.0"
|
531
419
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
532
|
-
checksum = "
|
420
|
+
checksum = "acc8ba6908cb0f67a4e75cb48fc81a1f0e6a6dd1501936e0c9e2c7c8f9f18e05"
|
533
421
|
dependencies = [
|
534
|
-
"darling",
|
535
422
|
"proc-macro2",
|
536
423
|
"quote",
|
537
424
|
"syn",
|
@@ -560,9 +447,18 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
560
447
|
|
561
448
|
[[package]]
|
562
449
|
name = "miniz_oxide"
|
563
|
-
version = "0.5.
|
450
|
+
version = "0.5.4"
|
564
451
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
565
|
-
checksum = "
|
452
|
+
checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34"
|
453
|
+
dependencies = [
|
454
|
+
"adler",
|
455
|
+
]
|
456
|
+
|
457
|
+
[[package]]
|
458
|
+
name = "miniz_oxide"
|
459
|
+
version = "0.6.2"
|
460
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
461
|
+
checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa"
|
566
462
|
dependencies = [
|
567
463
|
"adler",
|
568
464
|
]
|
@@ -618,9 +514,9 @@ dependencies = [
|
|
618
514
|
|
619
515
|
[[package]]
|
620
516
|
name = "num_cpus"
|
621
|
-
version = "1.
|
517
|
+
version = "1.14.0"
|
622
518
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
623
|
-
checksum = "
|
519
|
+
checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5"
|
624
520
|
dependencies = [
|
625
521
|
"hermit-abi",
|
626
522
|
"libc",
|
@@ -628,9 +524,9 @@ dependencies = [
|
|
628
524
|
|
629
525
|
[[package]]
|
630
526
|
name = "once_cell"
|
631
|
-
version = "1.
|
527
|
+
version = "1.16.0"
|
632
528
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
633
|
-
checksum = "
|
529
|
+
checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860"
|
634
530
|
|
635
531
|
[[package]]
|
636
532
|
name = "palette"
|
@@ -689,27 +585,27 @@ dependencies = [
|
|
689
585
|
|
690
586
|
[[package]]
|
691
587
|
name = "png"
|
692
|
-
version = "0.17.
|
588
|
+
version = "0.17.7"
|
693
589
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
694
|
-
checksum = "
|
590
|
+
checksum = "5d708eaf860a19b19ce538740d2b4bdeeb8337fa53f7738455e706623ad5c638"
|
695
591
|
dependencies = [
|
696
592
|
"bitflags",
|
697
593
|
"crc32fast",
|
698
|
-
"
|
699
|
-
"miniz_oxide",
|
594
|
+
"flate2",
|
595
|
+
"miniz_oxide 0.6.2",
|
700
596
|
]
|
701
597
|
|
702
598
|
[[package]]
|
703
599
|
name = "ppv-lite86"
|
704
|
-
version = "0.2.
|
600
|
+
version = "0.2.17"
|
705
601
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
706
|
-
checksum = "
|
602
|
+
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
707
603
|
|
708
604
|
[[package]]
|
709
605
|
name = "proc-macro2"
|
710
|
-
version = "1.0.
|
606
|
+
version = "1.0.47"
|
711
607
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
712
|
-
checksum = "
|
608
|
+
checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725"
|
713
609
|
dependencies = [
|
714
610
|
"unicode-ident",
|
715
611
|
]
|
@@ -746,20 +642,19 @@ dependencies = [
|
|
746
642
|
|
747
643
|
[[package]]
|
748
644
|
name = "rand_core"
|
749
|
-
version = "0.6.
|
645
|
+
version = "0.6.4"
|
750
646
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
751
|
-
checksum = "
|
647
|
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
752
648
|
dependencies = [
|
753
649
|
"getrandom",
|
754
650
|
]
|
755
651
|
|
756
652
|
[[package]]
|
757
653
|
name = "rayon"
|
758
|
-
version = "1.
|
654
|
+
version = "1.6.0"
|
759
655
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
760
|
-
checksum = "
|
656
|
+
checksum = "1e060280438193c554f654141c9ea9417886713b7acd75974c85b18a69a88e0b"
|
761
657
|
dependencies = [
|
762
|
-
"autocfg",
|
763
658
|
"crossbeam-deque",
|
764
659
|
"either",
|
765
660
|
"rayon-core",
|
@@ -767,9 +662,9 @@ dependencies = [
|
|
767
662
|
|
768
663
|
[[package]]
|
769
664
|
name = "rayon-core"
|
770
|
-
version = "1.
|
665
|
+
version = "1.10.1"
|
771
666
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
772
|
-
checksum = "
|
667
|
+
checksum = "cac410af5d00ab6884528b4ab69d1e8e146e8d471201800fa1b4524126de6ad3"
|
773
668
|
dependencies = [
|
774
669
|
"crossbeam-channel",
|
775
670
|
"crossbeam-deque",
|
@@ -777,11 +672,37 @@ dependencies = [
|
|
777
672
|
"num_cpus",
|
778
673
|
]
|
779
674
|
|
675
|
+
[[package]]
|
676
|
+
name = "rb-sys"
|
677
|
+
version = "0.9.44"
|
678
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
679
|
+
checksum = "31f48777b8161ff5c077ad74ce486ebe963ca8a92257512bab473b405a80d69f"
|
680
|
+
dependencies = [
|
681
|
+
"rb-sys-build",
|
682
|
+
]
|
683
|
+
|
684
|
+
[[package]]
|
685
|
+
name = "rb-sys-build"
|
686
|
+
version = "0.9.44"
|
687
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
688
|
+
checksum = "a46785122aff7077527b78c2518d739c45dc0fbc410a2b8361076ff4bbf993f9"
|
689
|
+
dependencies = [
|
690
|
+
"bindgen",
|
691
|
+
"regex",
|
692
|
+
"shell-words",
|
693
|
+
]
|
694
|
+
|
695
|
+
[[package]]
|
696
|
+
name = "rb-sys-env"
|
697
|
+
version = "0.1.1"
|
698
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
699
|
+
checksum = "74c38752410925faeb82c400c06ba2fd9ee6aa8f719dd33994c9e53f5242d25f"
|
700
|
+
|
780
701
|
[[package]]
|
781
702
|
name = "regex"
|
782
|
-
version = "1.
|
703
|
+
version = "1.7.0"
|
783
704
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
784
|
-
checksum = "
|
705
|
+
checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a"
|
785
706
|
dependencies = [
|
786
707
|
"aho-corasick",
|
787
708
|
"memchr",
|
@@ -790,9 +711,9 @@ dependencies = [
|
|
790
711
|
|
791
712
|
[[package]]
|
792
713
|
name = "regex-syntax"
|
793
|
-
version = "0.6.
|
714
|
+
version = "0.6.28"
|
794
715
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
795
|
-
checksum = "
|
716
|
+
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
796
717
|
|
797
718
|
[[package]]
|
798
719
|
name = "rustc-hash"
|
@@ -814,9 +735,15 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
|
814
735
|
|
815
736
|
[[package]]
|
816
737
|
name = "serde"
|
817
|
-
version = "1.0.
|
738
|
+
version = "1.0.147"
|
739
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
740
|
+
checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965"
|
741
|
+
|
742
|
+
[[package]]
|
743
|
+
name = "shell-words"
|
744
|
+
version = "1.1.0"
|
818
745
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
819
|
-
checksum = "
|
746
|
+
checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
|
820
747
|
|
821
748
|
[[package]]
|
822
749
|
name = "shlex"
|
@@ -826,9 +753,9 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
|
|
826
753
|
|
827
754
|
[[package]]
|
828
755
|
name = "smallvec"
|
829
|
-
version = "1.
|
756
|
+
version = "1.10.0"
|
830
757
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
831
|
-
checksum = "
|
758
|
+
checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
|
832
759
|
|
833
760
|
[[package]]
|
834
761
|
name = "spin"
|
@@ -839,47 +766,17 @@ dependencies = [
|
|
839
766
|
"lock_api",
|
840
767
|
]
|
841
768
|
|
842
|
-
[[package]]
|
843
|
-
name = "strsim"
|
844
|
-
version = "0.8.0"
|
845
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
846
|
-
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
847
|
-
|
848
|
-
[[package]]
|
849
|
-
name = "strsim"
|
850
|
-
version = "0.10.0"
|
851
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
852
|
-
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
853
|
-
|
854
769
|
[[package]]
|
855
770
|
name = "syn"
|
856
|
-
version = "1.0.
|
771
|
+
version = "1.0.103"
|
857
772
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
858
|
-
checksum = "
|
773
|
+
checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d"
|
859
774
|
dependencies = [
|
860
775
|
"proc-macro2",
|
861
776
|
"quote",
|
862
777
|
"unicode-ident",
|
863
778
|
]
|
864
779
|
|
865
|
-
[[package]]
|
866
|
-
name = "termcolor"
|
867
|
-
version = "1.1.3"
|
868
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
869
|
-
checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
|
870
|
-
dependencies = [
|
871
|
-
"winapi-util",
|
872
|
-
]
|
873
|
-
|
874
|
-
[[package]]
|
875
|
-
name = "textwrap"
|
876
|
-
version = "0.11.0"
|
877
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
878
|
-
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
|
879
|
-
dependencies = [
|
880
|
-
"unicode-width",
|
881
|
-
]
|
882
|
-
|
883
780
|
[[package]]
|
884
781
|
name = "threadpool"
|
885
782
|
version = "1.8.1"
|
@@ -891,9 +788,9 @@ dependencies = [
|
|
891
788
|
|
892
789
|
[[package]]
|
893
790
|
name = "tiff"
|
894
|
-
version = "0.
|
791
|
+
version = "0.8.0"
|
895
792
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
896
|
-
checksum = "
|
793
|
+
checksum = "f17def29300a156c19ae30814710d9c63cd50288a49c6fd3a10ccfbe4cf886fd"
|
897
794
|
dependencies = [
|
898
795
|
"flate2",
|
899
796
|
"jpeg-decoder",
|
@@ -911,21 +808,9 @@ dependencies = [
|
|
911
808
|
|
912
809
|
[[package]]
|
913
810
|
name = "unicode-ident"
|
914
|
-
version = "1.0.
|
915
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
916
|
-
checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf"
|
917
|
-
|
918
|
-
[[package]]
|
919
|
-
name = "unicode-width"
|
920
|
-
version = "0.1.9"
|
811
|
+
version = "1.0.5"
|
921
812
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
922
|
-
checksum = "
|
923
|
-
|
924
|
-
[[package]]
|
925
|
-
name = "vec_map"
|
926
|
-
version = "0.8.2"
|
927
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
928
|
-
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
813
|
+
checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"
|
929
814
|
|
930
815
|
[[package]]
|
931
816
|
name = "wasi"
|
@@ -935,9 +820,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
|
935
820
|
|
936
821
|
[[package]]
|
937
822
|
name = "wasm-bindgen"
|
938
|
-
version = "0.2.
|
823
|
+
version = "0.2.83"
|
939
824
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
940
|
-
checksum = "
|
825
|
+
checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268"
|
941
826
|
dependencies = [
|
942
827
|
"cfg-if",
|
943
828
|
"wasm-bindgen-macro",
|
@@ -945,9 +830,9 @@ dependencies = [
|
|
945
830
|
|
946
831
|
[[package]]
|
947
832
|
name = "wasm-bindgen-backend"
|
948
|
-
version = "0.2.
|
833
|
+
version = "0.2.83"
|
949
834
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
950
|
-
checksum = "
|
835
|
+
checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142"
|
951
836
|
dependencies = [
|
952
837
|
"bumpalo",
|
953
838
|
"log",
|
@@ -960,9 +845,9 @@ dependencies = [
|
|
960
845
|
|
961
846
|
[[package]]
|
962
847
|
name = "wasm-bindgen-macro"
|
963
|
-
version = "0.2.
|
848
|
+
version = "0.2.83"
|
964
849
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
965
|
-
checksum = "
|
850
|
+
checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810"
|
966
851
|
dependencies = [
|
967
852
|
"quote",
|
968
853
|
"wasm-bindgen-macro-support",
|
@@ -970,9 +855,9 @@ dependencies = [
|
|
970
855
|
|
971
856
|
[[package]]
|
972
857
|
name = "wasm-bindgen-macro-support"
|
973
|
-
version = "0.2.
|
858
|
+
version = "0.2.83"
|
974
859
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
975
|
-
checksum = "
|
860
|
+
checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c"
|
976
861
|
dependencies = [
|
977
862
|
"proc-macro2",
|
978
863
|
"quote",
|
@@ -983,9 +868,9 @@ dependencies = [
|
|
983
868
|
|
984
869
|
[[package]]
|
985
870
|
name = "wasm-bindgen-shared"
|
986
|
-
version = "0.2.
|
871
|
+
version = "0.2.83"
|
987
872
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
988
|
-
checksum = "
|
873
|
+
checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f"
|
989
874
|
|
990
875
|
[[package]]
|
991
876
|
name = "weezl"
|
@@ -993,17 +878,6 @@ version = "0.1.7"
|
|
993
878
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
994
879
|
checksum = "9193164d4de03a926d909d3bc7c30543cecb35400c02114792c2cae20d5e2dbb"
|
995
880
|
|
996
|
-
[[package]]
|
997
|
-
name = "which"
|
998
|
-
version = "4.2.5"
|
999
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1000
|
-
checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae"
|
1001
|
-
dependencies = [
|
1002
|
-
"either",
|
1003
|
-
"lazy_static",
|
1004
|
-
"libc",
|
1005
|
-
]
|
1006
|
-
|
1007
881
|
[[package]]
|
1008
882
|
name = "winapi"
|
1009
883
|
version = "0.3.9"
|
@@ -1020,15 +894,6 @@ version = "0.4.0"
|
|
1020
894
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1021
895
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
1022
896
|
|
1023
|
-
[[package]]
|
1024
|
-
name = "winapi-util"
|
1025
|
-
version = "0.1.5"
|
1026
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1027
|
-
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
1028
|
-
dependencies = [
|
1029
|
-
"winapi",
|
1030
|
-
]
|
1031
|
-
|
1032
897
|
[[package]]
|
1033
898
|
name = "winapi-x86_64-pc-windows-gnu"
|
1034
899
|
version = "0.4.0"
|
data/ext/colordom/Cargo.toml
CHANGED
data/ext/colordom/src/lib.rs
CHANGED
@@ -3,7 +3,7 @@ use std::path::PathBuf;
|
|
3
3
|
use magnus::{
|
4
4
|
class, define_module, function, method,
|
5
5
|
prelude::*, gc::register_mark_object, memoize,
|
6
|
-
Error, ExceptionClass,
|
6
|
+
Error, ExceptionClass, RModule
|
7
7
|
};
|
8
8
|
|
9
9
|
use image::{DynamicImage};
|
@@ -15,15 +15,14 @@ use kmeans_colors;
|
|
15
15
|
|
16
16
|
fn colordom_error() -> ExceptionClass {
|
17
17
|
*memoize!(ExceptionClass: {
|
18
|
-
let ex
|
18
|
+
let ex = class::object().const_get::<_, RModule>("Colordom").unwrap().const_get("Error").unwrap();
|
19
19
|
register_mark_object(ex);
|
20
|
-
|
21
|
-
ExceptionClass::from_value(*ex).unwrap()
|
20
|
+
ex
|
22
21
|
})
|
23
22
|
}
|
24
23
|
|
25
24
|
#[derive(Clone)]
|
26
|
-
#[magnus::wrap(class = "Colordom::Color",
|
25
|
+
#[magnus::wrap(class = "Colordom::Color", free_immediately, size)]
|
27
26
|
struct Color {
|
28
27
|
r: u8,
|
29
28
|
g: u8,
|
@@ -49,7 +48,7 @@ impl Color {
|
|
49
48
|
}
|
50
49
|
|
51
50
|
#[derive(Clone)]
|
52
|
-
#[magnus::wrap(class = "Colordom::Image",
|
51
|
+
#[magnus::wrap(class = "Colordom::Image", free_immediately, size)]
|
53
52
|
struct Image {
|
54
53
|
img: DynamicImage
|
55
54
|
}
|
data/lib/colordom/image.rb
CHANGED
data/lib/colordom/version.rb
CHANGED
data/lib/colordom.rb
CHANGED
@@ -27,7 +27,7 @@ module Colordom
|
|
27
27
|
image.histogram(max_colors)
|
28
28
|
end
|
29
29
|
|
30
|
-
# Get dominant colors using
|
30
|
+
# Get dominant colors using median cut quantization.
|
31
31
|
# @param path (see Image#initialize)
|
32
32
|
# @param max_colors (see Image#mediancut)
|
33
33
|
# @return (see Image#mediancut)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colordom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonian Guveli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|
@@ -75,6 +75,7 @@ extensions:
|
|
75
75
|
- ext/colordom/extconf.rb
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
+
- CODE_OF_CONDUCT.md
|
78
79
|
- LICENSE.txt
|
79
80
|
- README.md
|
80
81
|
- ext/colordom/Cargo.lock
|