backports 3.20.0 → 3.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile +1 -1
  4. data/README.md +285 -158
  5. data/lib/backports/2.1.0/module/singleton_class.rb +8 -0
  6. data/lib/backports/2.3.0/struct/dig.rb +2 -0
  7. data/lib/backports/2.4.0/string/unpack1.rb +7 -0
  8. data/lib/backports/2.5.0/dir/children.rb +4 -0
  9. data/lib/backports/2.5.0/dir/each_child.rb +7 -0
  10. data/lib/backports/2.5.0/integer/sqrt.rb +1 -1
  11. data/lib/backports/2.7.0/complex/{comparision.rb → comparison.rb} +0 -0
  12. data/lib/backports/2.7.0/enumerable/tally.rb +4 -3
  13. data/lib/backports/3.0.0/ractor.rb +15 -1
  14. data/lib/backports/3.1.0/array/intersect.rb +16 -0
  15. data/lib/backports/3.1.0/array.rb +3 -0
  16. data/lib/backports/3.1.0/class/descendants.rb +11 -0
  17. data/lib/backports/3.1.0/class/subclasses.rb +11 -0
  18. data/lib/backports/3.1.0/class.rb +3 -0
  19. data/lib/backports/3.1.0/enumerable/compact.rb +5 -0
  20. data/lib/backports/3.1.0/enumerable/tally.rb +18 -0
  21. data/lib/backports/3.1.0/enumerable.rb +3 -0
  22. data/lib/backports/3.1.0/file/dirname.rb +16 -0
  23. data/lib/backports/3.1.0/file.rb +3 -0
  24. data/lib/backports/3.1.0/integer/try_convert.rb +5 -0
  25. data/lib/backports/3.1.0/integer.rb +3 -0
  26. data/lib/backports/3.1.0/match_data/match.rb +5 -0
  27. data/lib/backports/3.1.0/match_data/match_length.rb +6 -0
  28. data/lib/backports/3.1.0/match_data.rb +3 -0
  29. data/lib/backports/3.1.0/struct/keyword_init.rb +5 -0
  30. data/lib/backports/3.1.0/struct.rb +3 -0
  31. data/lib/backports/3.1.0.rb +3 -0
  32. data/lib/backports/3.1.rb +1 -0
  33. data/lib/backports/latest.rb +1 -1
  34. data/lib/backports/ractor/cloner.rb +81 -69
  35. data/lib/backports/ractor/errors.rb +14 -10
  36. data/lib/backports/{tools → ractor}/filtered_queue.rb +11 -8
  37. data/lib/backports/ractor/queues.rb +50 -46
  38. data/lib/backports/ractor/ractor.rb +225 -191
  39. data/lib/backports/ractor/sharing.rb +75 -71
  40. data/lib/backports/version.rb +1 -1
  41. metadata +25 -4
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.20.0
4
+ version: 3.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-30 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Essential backports that enable many of the nice features of Ruby for
14
14
  earlier versions.
@@ -391,6 +391,7 @@ files:
391
391
  - lib/backports/2.1.0/fixnum/bit_length.rb
392
392
  - lib/backports/2.1.0/module.rb
393
393
  - lib/backports/2.1.0/module/include.rb
394
+ - lib/backports/2.1.0/module/singleton_class.rb
394
395
  - lib/backports/2.1.rb
395
396
  - lib/backports/2.2.0.rb
396
397
  - lib/backports/2.2.0/enumerable.rb
@@ -455,6 +456,7 @@ files:
455
456
  - lib/backports/2.4.0/regexp/match.rb
456
457
  - lib/backports/2.4.0/string.rb
457
458
  - lib/backports/2.4.0/string/match.rb
459
+ - lib/backports/2.4.0/string/unpack1.rb
458
460
  - lib/backports/2.4.0/true_class.rb
459
461
  - lib/backports/2.4.0/true_class/dup.rb
460
462
  - lib/backports/2.4.rb
@@ -523,7 +525,7 @@ files:
523
525
  - lib/backports/2.7.0/comparable.rb
524
526
  - lib/backports/2.7.0/comparable/clamp.rb
525
527
  - lib/backports/2.7.0/complex.rb
526
- - lib/backports/2.7.0/complex/comparision.rb
528
+ - lib/backports/2.7.0/complex/comparison.rb
527
529
  - lib/backports/2.7.0/enumerable.rb
528
530
  - lib/backports/2.7.0/enumerable/filter_map.rb
529
531
  - lib/backports/2.7.0/enumerable/tally.rb
@@ -542,6 +544,25 @@ files:
542
544
  - lib/backports/3.0.0/symbol.rb
543
545
  - lib/backports/3.0.0/symbol/name.rb
544
546
  - lib/backports/3.0.rb
547
+ - lib/backports/3.1.0.rb
548
+ - lib/backports/3.1.0/array.rb
549
+ - lib/backports/3.1.0/array/intersect.rb
550
+ - lib/backports/3.1.0/class.rb
551
+ - lib/backports/3.1.0/class/descendants.rb
552
+ - lib/backports/3.1.0/class/subclasses.rb
553
+ - lib/backports/3.1.0/enumerable.rb
554
+ - lib/backports/3.1.0/enumerable/compact.rb
555
+ - lib/backports/3.1.0/enumerable/tally.rb
556
+ - lib/backports/3.1.0/file.rb
557
+ - lib/backports/3.1.0/file/dirname.rb
558
+ - lib/backports/3.1.0/integer.rb
559
+ - lib/backports/3.1.0/integer/try_convert.rb
560
+ - lib/backports/3.1.0/match_data.rb
561
+ - lib/backports/3.1.0/match_data/match.rb
562
+ - lib/backports/3.1.0/match_data/match_length.rb
563
+ - lib/backports/3.1.0/struct.rb
564
+ - lib/backports/3.1.0/struct/keyword_init.rb
565
+ - lib/backports/3.1.rb
545
566
  - lib/backports/basic_object.rb
546
567
  - lib/backports/force/array_map.rb
547
568
  - lib/backports/force/enumerable_map.rb
@@ -551,6 +572,7 @@ files:
551
572
  - lib/backports/latest.rb
552
573
  - lib/backports/ractor/cloner.rb
553
574
  - lib/backports/ractor/errors.rb
575
+ - lib/backports/ractor/filtered_queue.rb
554
576
  - lib/backports/ractor/queues.rb
555
577
  - lib/backports/ractor/ractor.rb
556
578
  - lib/backports/ractor/sharing.rb
@@ -572,7 +594,6 @@ files:
572
594
  - lib/backports/tools/arguments.rb
573
595
  - lib/backports/tools/deprecation.rb
574
596
  - lib/backports/tools/extreme_object.rb
575
- - lib/backports/tools/filtered_queue.rb
576
597
  - lib/backports/tools/float_integer_conversion.rb
577
598
  - lib/backports/tools/io.rb
578
599
  - lib/backports/tools/make_block_optional.rb