psych 5.1.1.1-java → 5.1.2-java

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: 29dc10383363778780c71a3dbc46fa0c6656a4dfe0df8a4c941725350e01ac19
4
- data.tar.gz: 7bc34038efc39bd095d7d21ec7b1b0d7886c4f63578c5fb7bc4db470b5eba7b6
3
+ metadata.gz: de2fb8d733d55c79078d206c343c541f29c35e94ba7c00f3f1bbafec78db195c
4
+ data.tar.gz: 867fa62c0f0f0c36c5c552f0e68ba3991027fe83b5552460de6a38cc083b2431
5
5
  SHA512:
6
- metadata.gz: 43542dfeb185b7e2f4969901ed3b6c66eb53359194b6f825fcae201e8691d701da2c59f8f2b46eb6701391cc30089da99694ad36171f91585d37fd0e25ee026e
7
- data.tar.gz: '09d0a6169807a96d8a690a8b80a945e09b3113b26ac81fb4c6e09fab557cce5c29a5a7e355b899ecfb2cbe6a2600e91ca0297f6f41c969652e5f99ad98415142'
6
+ metadata.gz: 3e82efb8852dfb62ae7cc93e056056d3ea1afd532c091907472e9ff1943f2b646c734a2df60fe28e93dd4bbe1922278a3e1ed5bc2ff6ff0c8258dbc07ee271ff
7
+ data.tar.gz: 2585468bb883d8f07d9ebe02d1b37a2f2beee8897901765a9674ee82b2d5a18c372f38a8b4f2674c447de55f2433c6bc75d93fb28db102cf4cb258e52d55c015
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Psych
4
4
  # The version of Psych you are using
5
- VERSION = '5.1.1.1'
5
+ VERSION = '5.1.2'
6
6
 
7
7
  if RUBY_ENGINE == 'jruby'
8
8
  DEFAULT_SNAKEYAML_VERSION = '2.7'.freeze
@@ -101,7 +101,7 @@ module Psych
101
101
  source = $1
102
102
  options = 0
103
103
  lang = nil
104
- ($2 || '').split('').each do |option|
104
+ $2&.each_char do |option|
105
105
  case option
106
106
  when 'x' then options |= Regexp::EXTENDED
107
107
  when 'i' then options |= Regexp::IGNORECASE
@@ -15,30 +15,29 @@ module Psych
15
15
  class YAMLTree < Psych::Visitors::Visitor
16
16
  class Registrar # :nodoc:
17
17
  def initialize
18
- @obj_to_id = {}
19
- @obj_to_node = {}
18
+ @obj_to_id = {}.compare_by_identity
19
+ @obj_to_node = {}.compare_by_identity
20
20
  @targets = []
21
21
  @counter = 0
22
22
  end
23
23
 
24
24
  def register target, node
25
- return unless target.respond_to? :object_id
26
25
  @targets << target
27
- @obj_to_node[target.object_id] = node
26
+ @obj_to_node[target] = node
28
27
  end
29
28
 
30
29
  def key? target
31
- @obj_to_node.key? target.object_id
30
+ @obj_to_node.key? target
32
31
  rescue NoMethodError
33
32
  false
34
33
  end
35
34
 
36
35
  def id_for target
37
- @obj_to_id[target.object_id] ||= (@counter += 1)
36
+ @obj_to_id[target] ||= (@counter += 1)
38
37
  end
39
38
 
40
39
  def node_for target
41
- @obj_to_node[target.object_id]
40
+ @obj_to_node[target]
42
41
  end
43
42
  end
44
43
 
data/lib/psych.jar CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psych
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1.1
4
+ version: 5.1.2
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-10-16 00:00:00.000000000 Z
13
+ date: 2023-12-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  requirement: !ruby/object:Gem::Requirement
@@ -19,8 +19,8 @@ dependencies:
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.1.7
21
21
  name: jar-dependencies
22
- prerelease: false
23
22
  type: :runtime
23
+ prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="