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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa5429b607594bcd855bad1a66bbfdc01e3facb1f76be0c338fd549b502ec1c4
4
- data.tar.gz: e7e08e840cc7559df5708a0bfa5d1499a3e809fb9bf79b260e4c98e7ca634c60
3
+ metadata.gz: 4b09ae893ba2541ab9e4f564e480c01c7a435354b17a89d0b6e3bbdf33991037
4
+ data.tar.gz: 02b726590557cc3a0ab3253afa6bec58926c96524faf7cfe801a16db57edcfb4
5
5
  SHA512:
6
- metadata.gz: 5e59f88a7ef8c1487cc1c1fb04d28a96d44b26d8cc5379a6ea9f18edfca62d97fe0b84c27a03c600a6137febf9096917f0ec1d7a52574fc536f7c345b2e256af
7
- data.tar.gz: 9e732e7626034ae45dd1daf0cd54f20319854f27f041c5624e8c96d287a66ffeee780e8d0c142472e8b88cba597b65ee300b161b811acade9aaa697ff3352ff7
6
+ metadata.gz: 81ea7ba57a26c62c7919a0e875593a58e7875c8aec8e408b93a13c12373a9d1a48dbebb2e4ec41b38028a8923d110c0813885772df014faa71fbed2f96a22a3c
7
+ data.tar.gz: cb6a8e303724c7ecf9cf5b06907ff77e77dc8ac4a0cea8fa83f51785c85a24f1df650436e91e33af5ce79d3a9e8ea89396f90d6e053e73ca0e43f5db098fc375
data/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
8
8
 
9
9
  Note: [Next major version (X-mas 2021?)](https://github.com/marcandre/backports/issues/139) may drop support for Ruby < 2.2, please comment.
10
10
 
11
+ ## [3.21.0](https://github.com/marcandre/backports/compare/v3.20.1...v3.21.0) - 2021-03-31
12
+
13
+ ### Added
14
+
15
+ * Added `String#unpack1` (Ruby 2.4) [#166]
16
+
11
17
  ## [3.20.1](https://github.com/marcandre/backports/compare/v3.20.0...v3.20.1) - 2021-01-03
12
18
 
13
19
  ### Fixed
data/Gemfile CHANGED
@@ -11,6 +11,6 @@ end
11
11
 
12
12
  if RUBY_VERSION >= '2.4.0'
13
13
  group :development do
14
- gem 'rubocop', '~> 1.6.0'
14
+ gem 'rubocop', '<1.13.0'
15
15
  end
16
16
  end