persistent-dmnd 2.0.5 → 2.0.6
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/.gitlab-ci.yml +54 -137
- data/.standard.yml +4 -0
- data/CODE_OF_CONDUCT.adoc +99 -45
- data/README.adoc +1 -1
- data/Rakefile +4 -3
- data/lib/persistent_dmnd/array.rb +3 -3
- data/lib/persistent_dmnd/concurrent_ruby_support.rb +1 -1
- data/lib/persistent_dmnd/dmndifier.rb +10 -11
- data/lib/persistent_dmnd/everywhere.rb +1 -1
- data/lib/persistent_dmnd/hash.rb +3 -3
- data/lib/persistent_dmnd/jruby_9_2_set_workaround.rb +31 -28
- data/lib/persistent_dmnd/jruby_workaround.rb +3 -3
- data/lib/persistent_dmnd/set.rb +7 -5
- data/lib/persistent_dmnd/version.rb +1 -1
- data/persistent-dmnd.gemspec +1 -5
- metadata +6 -42
- data/.ruby-version +0 -1
- data/sorbet/config +0 -2
- data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1660
- data/sorbet/rbi/gems/hamster.rbi +0 -683
- data/sorbet/rbi/hidden-definitions/errors.txt +0 -2552
- data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -4180
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
- data/sorbet/rbi/todo.rbi +0 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cd01e1f2ee6015265d1acbf6c39650d57550dba82e53c11fe2a0d4d3f91cf5a
|
|
4
|
+
data.tar.gz: bd0fa4583bfdb2918433219b470ca92257694a34fa0e7291fa19d98fc6c2a6ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0caf98c7fc4d381d6d0262063fb50ec899fa42e047aa7baf13eaf761440940fc8dfe995d3a1045ba8b06608d0039b5e58c7c465af080b3e7f219f3f94662f70c
|
|
7
|
+
data.tar.gz: d37814ecc14f80ad39e3bcbfd73f8b714b5da823614b6a26ff0e580db1299bc7ea591bd651aaafedd3db4bc019ceca00d2f2161446865d259aed06dcb1ddf84e
|
data/.gitlab-ci.yml
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
testruby_1_9_3:
|
|
5
5
|
image: "ruby:1.9.3"
|
|
6
6
|
|
|
7
|
-
# Cache gems in between builds
|
|
8
|
-
cache:
|
|
7
|
+
cache: # Cache gems in between builds
|
|
9
8
|
paths:
|
|
10
9
|
- vendor/ruby
|
|
11
10
|
|
|
@@ -29,8 +28,7 @@ testruby_1_9_3:
|
|
|
29
28
|
testruby_2_0:
|
|
30
29
|
image: "ruby:2.0"
|
|
31
30
|
|
|
32
|
-
# Cache gems in between builds
|
|
33
|
-
cache:
|
|
31
|
+
cache: # Cache gems in between builds
|
|
34
32
|
paths:
|
|
35
33
|
- vendor/ruby
|
|
36
34
|
|
|
@@ -54,14 +52,14 @@ testruby_2_0:
|
|
|
54
52
|
testruby_2_1:
|
|
55
53
|
image: "ruby:2.1"
|
|
56
54
|
|
|
57
|
-
# Cache gems in between builds
|
|
58
|
-
cache:
|
|
55
|
+
cache: # Cache gems in between builds
|
|
59
56
|
paths:
|
|
60
57
|
- vendor/ruby
|
|
61
58
|
|
|
62
59
|
before_script:
|
|
63
|
-
-
|
|
64
|
-
-
|
|
60
|
+
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50 7638D0442B90D010 8B48AD6246925553
|
|
61
|
+
- echo "deb [trusted=yes] http://archive.debian.org/debian/ jessie main contrib non-free" | tee /etc/apt/sources.list
|
|
62
|
+
- apt-get update # Add UTF-8 support
|
|
65
63
|
- apt-get install -y locales >/dev/null # |
|
|
66
64
|
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
67
65
|
- locale-gen en_US.UTF-8 # |
|
|
@@ -78,14 +76,14 @@ testruby_2_1:
|
|
|
78
76
|
testruby_2_2:
|
|
79
77
|
image: "ruby:2.2"
|
|
80
78
|
|
|
81
|
-
# Cache gems in between builds
|
|
82
|
-
cache:
|
|
79
|
+
cache: # Cache gems in between builds
|
|
83
80
|
paths:
|
|
84
81
|
- vendor/ruby
|
|
85
82
|
|
|
86
83
|
before_script:
|
|
87
|
-
-
|
|
88
|
-
-
|
|
84
|
+
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50 7638D0442B90D010 8B48AD6246925553
|
|
85
|
+
- echo "deb [trusted=yes] http://archive.debian.org/debian/ jessie main contrib non-free" | tee /etc/apt/sources.list
|
|
86
|
+
- apt-get update # Add UTF-8 support
|
|
89
87
|
- apt-get install -y locales >/dev/null # |
|
|
90
88
|
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
91
89
|
- locale-gen en_US.UTF-8 # |
|
|
@@ -102,12 +100,12 @@ testruby_2_2:
|
|
|
102
100
|
testruby_2_3:
|
|
103
101
|
image: "ruby:2.3"
|
|
104
102
|
|
|
105
|
-
# Cache gems in between builds
|
|
106
|
-
cache:
|
|
103
|
+
cache: # Cache gems in between builds
|
|
107
104
|
paths:
|
|
108
105
|
- vendor/ruby
|
|
109
106
|
|
|
110
107
|
before_script:
|
|
108
|
+
- echo "deb [trusted=yes] http://archive.debian.org/debian/ stretch main contrib non-free" | tee /etc/apt/sources.list
|
|
111
109
|
- apt-get update >/dev/null # Add UTF-8 support
|
|
112
110
|
- apt-get install -y locales >/dev/null # |
|
|
113
111
|
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
@@ -125,8 +123,7 @@ testruby_2_3:
|
|
|
125
123
|
testruby_2_4:
|
|
126
124
|
image: "ruby:2.4"
|
|
127
125
|
|
|
128
|
-
# Cache gems in between builds
|
|
129
|
-
cache:
|
|
126
|
+
cache: # Cache gems in between builds
|
|
130
127
|
paths:
|
|
131
128
|
- vendor/ruby
|
|
132
129
|
|
|
@@ -148,21 +145,12 @@ testruby_2_4:
|
|
|
148
145
|
testruby_2_5:
|
|
149
146
|
image: "ruby:2.5"
|
|
150
147
|
|
|
151
|
-
# Cache gems in between builds
|
|
152
|
-
cache:
|
|
148
|
+
cache: # Cache gems in between builds
|
|
153
149
|
paths:
|
|
154
150
|
- vendor/ruby
|
|
155
151
|
|
|
156
152
|
before_script:
|
|
157
|
-
- apt-get update >/dev/null # Add UTF-8 support
|
|
158
|
-
- apt-get install -y locales >/dev/null # |
|
|
159
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
160
|
-
- locale-gen en_US.UTF-8 # |
|
|
161
|
-
- export LANG=en_US.UTF-8 # |
|
|
162
|
-
- export LANGUAGE=en_US:en # |
|
|
163
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
164
153
|
- ruby -v # Print out ruby version for debugging
|
|
165
|
-
- gem install bundler:'< 2' # Bundler is not installed with the image
|
|
166
154
|
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
167
155
|
|
|
168
156
|
script:
|
|
@@ -171,21 +159,12 @@ testruby_2_5:
|
|
|
171
159
|
testruby_2_6:
|
|
172
160
|
image: "ruby:2.6"
|
|
173
161
|
|
|
174
|
-
# Cache gems in between builds
|
|
175
|
-
cache:
|
|
162
|
+
cache: # Cache gems in between builds
|
|
176
163
|
paths:
|
|
177
164
|
- vendor/ruby
|
|
178
165
|
|
|
179
166
|
before_script:
|
|
180
|
-
- apt-get update >/dev/null # Add UTF-8 support
|
|
181
|
-
- apt-get install -y locales >/dev/null # |
|
|
182
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
183
|
-
- locale-gen en_US.UTF-8 # |
|
|
184
|
-
- export LANG=en_US.UTF-8 # |
|
|
185
|
-
- export LANGUAGE=en_US:en # |
|
|
186
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
187
167
|
- ruby -v # Print out ruby version for debugging
|
|
188
|
-
- gem install bundler:'< 2' # Bundler is not installed with the image
|
|
189
168
|
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
190
169
|
|
|
191
170
|
script:
|
|
@@ -194,19 +173,11 @@ testruby_2_6:
|
|
|
194
173
|
testruby_2_7:
|
|
195
174
|
image: "ruby:2.7"
|
|
196
175
|
|
|
197
|
-
# Cache gems in between builds
|
|
198
|
-
cache:
|
|
176
|
+
cache: # Cache gems in between builds
|
|
199
177
|
paths:
|
|
200
178
|
- vendor/ruby
|
|
201
179
|
|
|
202
180
|
before_script:
|
|
203
|
-
- apt-get update >/dev/null # Add UTF-8 support
|
|
204
|
-
- apt-get install -y locales >/dev/null # |
|
|
205
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
206
|
-
- locale-gen en_US.UTF-8 # |
|
|
207
|
-
- export LANG=en_US.UTF-8 # |
|
|
208
|
-
- export LANGUAGE=en_US:en # |
|
|
209
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
210
181
|
- ruby -v # Print out ruby version for debugging
|
|
211
182
|
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
212
183
|
|
|
@@ -214,21 +185,13 @@ testruby_2_7:
|
|
|
214
185
|
- bin/rspec
|
|
215
186
|
|
|
216
187
|
testruby_3_0:
|
|
217
|
-
image: "ruby:3.0
|
|
188
|
+
image: "ruby:3.0"
|
|
218
189
|
|
|
219
|
-
# Cache gems in between builds
|
|
220
|
-
cache:
|
|
190
|
+
cache: # Cache gems in between builds
|
|
221
191
|
paths:
|
|
222
192
|
- vendor/ruby
|
|
223
193
|
|
|
224
194
|
before_script:
|
|
225
|
-
- apt-get update >/dev/null # Add UTF-8 support
|
|
226
|
-
- apt-get install -y locales >/dev/null # |
|
|
227
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
228
|
-
- locale-gen en_US.UTF-8 # |
|
|
229
|
-
- export LANG=en_US.UTF-8 # |
|
|
230
|
-
- export LANGUAGE=en_US:en # |
|
|
231
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
232
195
|
- ruby -v # Print out ruby version for debugging
|
|
233
196
|
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
234
197
|
|
|
@@ -236,21 +199,13 @@ testruby_3_0:
|
|
|
236
199
|
- bin/rspec
|
|
237
200
|
|
|
238
201
|
testruby_3_1:
|
|
239
|
-
image: "ruby:3.1
|
|
202
|
+
image: "ruby:3.1"
|
|
240
203
|
|
|
241
|
-
# Cache gems in between builds
|
|
242
|
-
cache:
|
|
204
|
+
cache: # Cache gems in between builds
|
|
243
205
|
paths:
|
|
244
206
|
- vendor/ruby
|
|
245
207
|
|
|
246
208
|
before_script:
|
|
247
|
-
- apt-get update >/dev/null # Add UTF-8 support
|
|
248
|
-
- apt-get install -y locales >/dev/null # |
|
|
249
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
250
|
-
- locale-gen en_US.UTF-8 # |
|
|
251
|
-
- export LANG=en_US.UTF-8 # |
|
|
252
|
-
- export LANGUAGE=en_US:en # |
|
|
253
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
254
209
|
- ruby -v # Print out ruby version for debugging
|
|
255
210
|
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
256
211
|
|
|
@@ -258,21 +213,27 @@ testruby_3_1:
|
|
|
258
213
|
- bin/rspec
|
|
259
214
|
|
|
260
215
|
testruby_3_2:
|
|
261
|
-
image: "ruby:3.2
|
|
216
|
+
image: "ruby:3.2"
|
|
262
217
|
|
|
263
|
-
# Cache gems in between builds
|
|
264
|
-
|
|
218
|
+
cache: # Cache gems in between builds
|
|
219
|
+
paths:
|
|
220
|
+
- vendor/ruby
|
|
221
|
+
|
|
222
|
+
before_script:
|
|
223
|
+
- ruby -v # Print out ruby version for debugging
|
|
224
|
+
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
225
|
+
|
|
226
|
+
script:
|
|
227
|
+
- bin/rspec
|
|
228
|
+
|
|
229
|
+
testruby_3_3:
|
|
230
|
+
image: "ruby:3.3"
|
|
231
|
+
|
|
232
|
+
cache: # Cache gems in between builds
|
|
265
233
|
paths:
|
|
266
234
|
- vendor/ruby
|
|
267
235
|
|
|
268
236
|
before_script:
|
|
269
|
-
- apt-get update >/dev/null # Add UTF-8 support
|
|
270
|
-
- apt-get install -y locales >/dev/null # |
|
|
271
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
272
|
-
- locale-gen en_US.UTF-8 # |
|
|
273
|
-
- export LANG=en_US.UTF-8 # |
|
|
274
|
-
- export LANGUAGE=en_US:en # |
|
|
275
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
276
237
|
- ruby -v # Print out ruby version for debugging
|
|
277
238
|
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
278
239
|
|
|
@@ -282,12 +243,12 @@ testruby_3_2:
|
|
|
282
243
|
testjruby_1_7:
|
|
283
244
|
image: "jruby:1.7"
|
|
284
245
|
|
|
285
|
-
# Cache gems in between builds
|
|
286
|
-
cache:
|
|
246
|
+
cache: # Cache gems in between builds
|
|
287
247
|
paths:
|
|
288
248
|
- vendor/ruby
|
|
289
249
|
|
|
290
250
|
before_script:
|
|
251
|
+
- echo "deb [trusted=yes] http://archive.debian.org/debian/ stretch main contrib non-free" | tee /etc/apt/sources.list
|
|
291
252
|
- apt-get update >/dev/null # Add UTF-8 support
|
|
292
253
|
- apt-get install -y locales >/dev/null # |
|
|
293
254
|
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
@@ -307,8 +268,7 @@ testjruby_1_7:
|
|
|
307
268
|
testjruby_9_0:
|
|
308
269
|
image: "jruby:9.0"
|
|
309
270
|
|
|
310
|
-
# Cache gems in between builds
|
|
311
|
-
cache:
|
|
271
|
+
cache: # Cache gems in between builds
|
|
312
272
|
paths:
|
|
313
273
|
- vendor/ruby
|
|
314
274
|
|
|
@@ -338,8 +298,7 @@ testjruby_9_0:
|
|
|
338
298
|
testjruby_9_1:
|
|
339
299
|
image: "jruby:9.1"
|
|
340
300
|
|
|
341
|
-
# Cache gems in between builds
|
|
342
|
-
cache:
|
|
301
|
+
cache: # Cache gems in between builds
|
|
343
302
|
paths:
|
|
344
303
|
- vendor/ruby
|
|
345
304
|
|
|
@@ -366,12 +325,12 @@ testjruby_9_1:
|
|
|
366
325
|
testjruby9_2_0_0:
|
|
367
326
|
image: "jruby:9.2.0.0"
|
|
368
327
|
|
|
369
|
-
# Cache gems in between builds
|
|
370
|
-
cache:
|
|
328
|
+
cache: # Cache gems in between builds
|
|
371
329
|
paths:
|
|
372
330
|
- vendor/ruby
|
|
373
331
|
|
|
374
332
|
before_script:
|
|
333
|
+
- echo "deb [trusted=yes] http://archive.debian.org/debian/ stretch main contrib non-free" | tee /etc/apt/sources.list
|
|
375
334
|
- apt-get update >/dev/null # Add UTF-8 support
|
|
376
335
|
- apt-get install -y locales >/dev/null # |
|
|
377
336
|
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
@@ -391,19 +350,12 @@ testjruby9_2_0_0:
|
|
|
391
350
|
testjruby_9_2:
|
|
392
351
|
image: "jruby:9.2"
|
|
393
352
|
|
|
394
|
-
# Cache gems in between builds
|
|
395
|
-
cache:
|
|
353
|
+
cache: # Cache gems in between builds
|
|
396
354
|
paths:
|
|
397
355
|
- vendor/ruby
|
|
398
356
|
|
|
399
357
|
before_script:
|
|
400
|
-
- apt-get update >/dev/null
|
|
401
|
-
- apt-get install -y locales >/dev/null # |
|
|
402
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
403
|
-
- locale-gen en_US.UTF-8 # |
|
|
404
|
-
- export LANG=en_US.UTF-8 # |
|
|
405
|
-
- export LANGUAGE=en_US:en # |
|
|
406
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
358
|
+
- apt-get update >/dev/null
|
|
407
359
|
- apt-get install -y git >/dev/null # Add git binary
|
|
408
360
|
- export JRUBY_OPTS=--dev # Faster test runs
|
|
409
361
|
- ruby -v # Print out ruby version for debugging
|
|
@@ -417,19 +369,12 @@ testjruby_9_2:
|
|
|
417
369
|
testjruby_9_3:
|
|
418
370
|
image: "jruby:9.3"
|
|
419
371
|
|
|
420
|
-
# Cache gems in between builds
|
|
421
|
-
cache:
|
|
372
|
+
cache: # Cache gems in between builds
|
|
422
373
|
paths:
|
|
423
374
|
- vendor/ruby
|
|
424
375
|
|
|
425
376
|
before_script:
|
|
426
|
-
- apt-get update >/dev/null
|
|
427
|
-
- apt-get install -y locales >/dev/null # |
|
|
428
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
429
|
-
- locale-gen en_US.UTF-8 # |
|
|
430
|
-
- export LANG=en_US.UTF-8 # |
|
|
431
|
-
- export LANGUAGE=en_US:en # |
|
|
432
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
377
|
+
- apt-get update >/dev/null
|
|
433
378
|
- apt-get install -y git >/dev/null # Add git binary
|
|
434
379
|
- export JRUBY_OPTS=--dev # Faster test runs
|
|
435
380
|
- ruby -v # Print out ruby version for debugging
|
|
@@ -441,19 +386,12 @@ testjruby_9_3:
|
|
|
441
386
|
testjruby_9_4:
|
|
442
387
|
image: "jruby:9.4"
|
|
443
388
|
|
|
444
|
-
# Cache gems in between builds
|
|
445
|
-
cache:
|
|
389
|
+
cache: # Cache gems in between builds
|
|
446
390
|
paths:
|
|
447
391
|
- vendor/ruby
|
|
448
392
|
|
|
449
393
|
before_script:
|
|
450
|
-
- apt-get update >/dev/null
|
|
451
|
-
- apt-get install -y locales >/dev/null # |
|
|
452
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
453
|
-
- locale-gen en_US.UTF-8 # |
|
|
454
|
-
- export LANG=en_US.UTF-8 # |
|
|
455
|
-
- export LANGUAGE=en_US:en # |
|
|
456
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
394
|
+
- apt-get update >/dev/null
|
|
457
395
|
- apt-get install -y git >/dev/null # Add git binary
|
|
458
396
|
- export JRUBY_OPTS=--dev # Faster test runs
|
|
459
397
|
- ruby -v # Print out ruby version for debugging
|
|
@@ -462,36 +400,15 @@ testjruby_9_4:
|
|
|
462
400
|
script:
|
|
463
401
|
- bin/rspec
|
|
464
402
|
|
|
465
|
-
|
|
466
|
-
image: "
|
|
467
|
-
|
|
468
|
-
before_script:
|
|
469
|
-
- apt-get update >/dev/null # Add UTF-8 support
|
|
470
|
-
- apt-get install -y locales >/dev/null # |
|
|
471
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
472
|
-
- locale-gen en_US.UTF-8 # |
|
|
473
|
-
- export LANG=en_US.UTF-8 # |
|
|
474
|
-
- export LANGUAGE=en_US:en # |
|
|
475
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
476
|
-
- apt-get install -y git >/dev/null # Add git binary
|
|
477
|
-
- ruby -v # Print out ruby version for debugging
|
|
478
|
-
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
|
403
|
+
testtruffleruby_23_1_2:
|
|
404
|
+
image: "ghcr.io/graalvm/truffleruby-community:23.1.2-debian"
|
|
479
405
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
testtruffleruby_21_3_0:
|
|
485
|
-
image: "ghcr.io/flavorjones/truffleruby:21.3.0"
|
|
406
|
+
cache: # Cache gems in between builds
|
|
407
|
+
paths:
|
|
408
|
+
- vendor/ruby
|
|
486
409
|
|
|
487
410
|
before_script:
|
|
488
|
-
- apt-get update >/dev/null
|
|
489
|
-
- apt-get install -y locales >/dev/null # |
|
|
490
|
-
- echo "en_US UTF-8" > /etc/locale.gen # |
|
|
491
|
-
- locale-gen en_US.UTF-8 # |
|
|
492
|
-
- export LANG=en_US.UTF-8 # |
|
|
493
|
-
- export LANGUAGE=en_US:en # |
|
|
494
|
-
- export LC_ALL=en_US.UTF-8 # v
|
|
411
|
+
- apt-get update >/dev/null
|
|
495
412
|
- apt-get install -y git >/dev/null # Add git binary
|
|
496
413
|
- ruby -v # Print out ruby version for debugging
|
|
497
414
|
- bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
|
data/.standard.yml
ADDED
data/CODE_OF_CONDUCT.adoc
CHANGED
|
@@ -2,71 +2,125 @@
|
|
|
2
2
|
|
|
3
3
|
== Our Pledge
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual
|
|
10
|
-
orientation.
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
11
14
|
|
|
12
15
|
== Our Standards
|
|
13
16
|
|
|
14
|
-
Examples of behavior that contributes to
|
|
15
|
-
include:
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
16
19
|
|
|
17
|
-
*
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
22
27
|
|
|
23
|
-
Examples of unacceptable behavior
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
24
29
|
|
|
25
|
-
* The use of sexualized language or imagery and
|
|
26
|
-
|
|
27
|
-
* Trolling, insulting
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
28
33
|
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or
|
|
30
|
-
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
31
36
|
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
37
|
professional setting
|
|
33
38
|
|
|
34
|
-
==
|
|
39
|
+
== Enforcement Responsibilities
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
behavior and
|
|
38
|
-
response to any
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
39
45
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
threatening, offensive, or harmful.
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
45
50
|
|
|
46
51
|
== Scope
|
|
47
52
|
|
|
48
|
-
This Code of Conduct applies
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
representative at an online or offline event.
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
54
58
|
|
|
55
59
|
== Enforcement
|
|
56
60
|
|
|
57
61
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
ivo@ivoanjo.me.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
== Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
=== 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
=== 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
63
87
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
=== 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
=== 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
67
114
|
|
|
68
115
|
== Attribution
|
|
69
116
|
|
|
70
|
-
This Code of Conduct is adapted from the
|
|
71
|
-
|
|
72
|
-
|
|
117
|
+
This Code of Conduct is adapted from the Contributor Covenant,
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
Mozilla's code of conduct enforcement ladder.
|
|
123
|
+
|
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
126
|
+
https://www.contributor-covenant.org/translations.
|
data/README.adoc
CHANGED
|
@@ -97,7 +97,7 @@ It also (_optionally!_) interoperates with the https://github.com/ruby-concurren
|
|
|
97
97
|
Underneath the covers, persistent-💎 mostly builds atop the awesome https://github.com/hamstergem/hamster[hamster gem].
|
|
98
98
|
Big thanks to its equally-awesome authors!
|
|
99
99
|
|
|
100
|
-
Persistent-💎 is fully supported and tested on Ruby versions 1.9.3 to 3.
|
|
100
|
+
Persistent-💎 is fully supported and tested on Ruby versions 1.9.3 to 3.3, JRuby 1.7 to 9.4, and TruffleRuby 🎉.
|
|
101
101
|
If we don't support your Ruby, it's probably a Python binary instead (or a potato?).
|
|
102
102
|
Keep calm and 💎 away!
|
|
103
103
|
|
data/Rakefile
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
require
|
|
2
|
-
require
|
|
1
|
+
require "bundler/gem_tasks"
|
|
2
|
+
require "standard/rake" if RUBY_VERSION >= "2.6.0"
|
|
3
|
+
require "rspec/core/rake_task"
|
|
3
4
|
|
|
4
5
|
RSpec::Core::RakeTask.new(:spec)
|
|
5
6
|
|
|
6
|
-
task :
|
|
7
|
+
task default: [:"standard:fix", :spec]
|
|
@@ -60,11 +60,11 @@ module Persistent💎
|
|
|
60
60
|
# my_concurrent_array = my_array.to_concurrent_array
|
|
61
61
|
#
|
|
62
62
|
def to_concurrent_array
|
|
63
|
-
ConcurrentRubySupport
|
|
63
|
+
ConcurrentRubySupport.ensure_concurrent_ruby_loaded
|
|
64
64
|
Concurrent::Array.new(self)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
alias_method :to_concurrent, :to_concurrent_array
|
|
68
68
|
|
|
69
69
|
# Return Concurrent::Tuple with contents of Persistent💎::Array
|
|
70
70
|
#
|
|
@@ -74,7 +74,7 @@ module Persistent💎
|
|
|
74
74
|
# # => #<Concurrent::Tuple @size=2, @tuple=[<#Concurrent::AtomicReference value:hello>, <#Concurrent::AtomicReference value:world>]>
|
|
75
75
|
#
|
|
76
76
|
def to_concurrent_tuple
|
|
77
|
-
ConcurrentRubySupport
|
|
77
|
+
ConcurrentRubySupport.ensure_concurrent_ruby_loaded
|
|
78
78
|
each.with_index.each_with_object(Concurrent::Tuple.new(size)) do |(item, index), result|
|
|
79
79
|
result.set(index, item)
|
|
80
80
|
end
|
|
@@ -66,7 +66,7 @@ module Persistent💎
|
|
|
66
66
|
|
|
67
67
|
def raise_no_concurrent_ruby
|
|
68
68
|
raise(NotImplementedError,
|
|
69
|
-
|
|
69
|
+
"concurrent-ruby gem is not available, please install it in order to use #to_concurrent and #to_concurrent_* methods")
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
# The following methods are only for internal and test usage. Please do not use them :)
|