backports 3.20.1 → 3.22.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile +1 -1
  4. data/README.md +281 -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/match_data/match.rb +5 -0
  25. data/lib/backports/3.1.0/match_data/match_length.rb +6 -0
  26. data/lib/backports/3.1.0/match_data.rb +3 -0
  27. data/lib/backports/3.1.0/struct/keyword_init.rb +5 -0
  28. data/lib/backports/3.1.0/struct.rb +3 -0
  29. data/lib/backports/3.1.0.rb +3 -0
  30. data/lib/backports/3.1.rb +1 -0
  31. data/lib/backports/latest.rb +1 -1
  32. data/lib/backports/ractor/cloner.rb +81 -69
  33. data/lib/backports/ractor/errors.rb +14 -10
  34. data/lib/backports/{tools → ractor}/filtered_queue.rb +11 -8
  35. data/lib/backports/ractor/queues.rb +50 -46
  36. data/lib/backports/ractor/ractor.rb +224 -213
  37. data/lib/backports/ractor/sharing.rb +75 -71
  38. data/lib/backports/version.rb +1 -1
  39. metadata +23 -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.1
4
+ version: 3.22.1
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: 2021-01-03 00:00:00.000000000 Z
11
+ date: 2021-12-28 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,23 @@ 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/match_data.rb
559
+ - lib/backports/3.1.0/match_data/match.rb
560
+ - lib/backports/3.1.0/match_data/match_length.rb
561
+ - lib/backports/3.1.0/struct.rb
562
+ - lib/backports/3.1.0/struct/keyword_init.rb
563
+ - lib/backports/3.1.rb
545
564
  - lib/backports/basic_object.rb
546
565
  - lib/backports/force/array_map.rb
547
566
  - lib/backports/force/enumerable_map.rb
@@ -551,6 +570,7 @@ files:
551
570
  - lib/backports/latest.rb
552
571
  - lib/backports/ractor/cloner.rb
553
572
  - lib/backports/ractor/errors.rb
573
+ - lib/backports/ractor/filtered_queue.rb
554
574
  - lib/backports/ractor/queues.rb
555
575
  - lib/backports/ractor/ractor.rb
556
576
  - lib/backports/ractor/sharing.rb
@@ -572,7 +592,6 @@ files:
572
592
  - lib/backports/tools/arguments.rb
573
593
  - lib/backports/tools/deprecation.rb
574
594
  - lib/backports/tools/extreme_object.rb
575
- - lib/backports/tools/filtered_queue.rb
576
595
  - lib/backports/tools/float_integer_conversion.rb
577
596
  - lib/backports/tools/io.rb
578
597
  - lib/backports/tools/make_block_optional.rb