ruby3-backward-compatibility 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dea3d1f265f31f9581b5f558b2df2a2e8ba10dc76665f793e05b450fd6470daf
4
- data.tar.gz: e601975de9ae5fdb6081c67546c8ad00f1381b8769c299802ad714b179eb62bb
3
+ metadata.gz: ced5ff7ed2f076e330be4b444f418d6ea102ba732bedf7540a6594c1bd4703b4
4
+ data.tar.gz: 36314617ae1e2e10e04e6b7db71a93a70226bacceec9ef1591f4ede1925d7f26
5
5
  SHA512:
6
- metadata.gz: c470ac7894bada53f9aea7518db643551e216126331ae20760532199c24f96fa088afb98955346d8424fa27cd20a18fefb0712a35075e63c1d97d51733dc913b
7
- data.tar.gz: 4e5396c9b4281c4955e90a5ea318dde169937881899a865d6b66ce382753a669f9c9a8cef1bf840d11b5d6a736f5825948845334ef01b90feb77d6e6ef3e1949
6
+ metadata.gz: 238d11616add2f0cb7253a52f781735244d5ad0009033710319382e9c10f76109b7d48a6b90bc089937d9f597e86d900479815eb93dda1f2ffa3f88f05599b90
7
+ data.tar.gz: b9707b24ece18a5da64d85cff697102d4491ddf34a828395d50882f2a84f77a6c97dff28eabd4c44ce50b97624f8a0aa369b40b32ba417e3df4213f656424914
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.2.3] - 2022-11-10
3
+ ## [0.3.0] - 2022-11-22
4
+
5
+ - Security fix: `ruby3_backward_compatibility/compatibility/psych` no longer aliases YAML.load to YAML.safe_load.
6
+
7
+ ## [0.2.3] - 2022-11-22
4
8
 
5
9
  - Add `ignore_missing: true` option for `ruby3_keywords` to not crash on missing methods.
6
10
  - Fix `ruby3_backward_compatibility/compatibility/i18n` to not crash when used with older I18n versions.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby3-backward-compatibility (0.2.3)
4
+ ruby3-backward-compatibility (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -8,12 +8,6 @@ module Ruby3BackwardCompatibility
8
8
  end
9
9
 
10
10
  module ClassMethods
11
- if Psych::VERSION >= '4'
12
- def load(...)
13
- unsafe_load(...)
14
- end
15
- end
16
-
17
11
  def safe_load(yaml, legacy_permitted_classes = NOT_GIVEN, legacy_permitted_symbols = NOT_GIVEN, legacy_aliases = NOT_GIVEN, legacy_filename = NOT_GIVEN, permitted_classes: [], permitted_symbols: [], aliases: false, filename: nil, **args)
18
12
  if legacy_permitted_classes != NOT_GIVEN
19
13
  permitted_classes = legacy_permitted_classes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ruby3BackwardCompatibility
4
- VERSION = '0.2.3'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby3-backward-compatibility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze