psych 5.2.0.beta1-java → 5.2.0.beta7-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62077f615c2d7278e5baeb3bb7c909b5f17782ed816e9fb560f9edb9912fc0e1
4
- data.tar.gz: 7cfa68a9cc5255ee948ef4084e17b1fe617d426ac340c47e181713586ec54912
3
+ metadata.gz: bc7cea50514caf4f06610aaf95a2a71d3519197bfa250d04b06869b63167d182
4
+ data.tar.gz: a5d0a8bb6faa8c60a8c41910058f004343eedc79dddbdbda322819395d7fbbc2
5
5
  SHA512:
6
- metadata.gz: e5c7c466a685c541f6a48c8b99fe95e210e3ff7119ecb6f639d32536e7f7f637b074b2cd3b367925931df5bc73c2465347b196d84b0ca3e946dbf21338a09bc5
7
- data.tar.gz: ca4769b88d733f973b95185ca11914c6df57692758fd531f4569f5e12fad02c67360883498bbd7dda7f102d0e9406c27dad9e6ed1f5c3f8e2d4c5c39f62f2990
6
+ metadata.gz: 2a48f66104f901055a1b3a6bb042e5efde71a233113f7bf5dc0770ed79d017bdd8c7e0496cdd23898174e31f0fe789fcefc439bbcfc2dcf7477259ecf7086742
7
+ data.tar.gz: 7a1fb1a22d83218ed42eea8193b86dd9eeeaf4021ecd1117b7de5a8bfe513b21e9c0d03bb8f977ec265dfe7c9ede4abe13b0a504644574bd57cd4792ce56cfe9
@@ -13,18 +13,18 @@ module Psych
13
13
  # Base 60, [-+]inf and NaN are handled separately
14
14
  FLOAT = /^(?:[-+]?([0-9][0-9_,]*)?\.[0-9]*([eE][-+][0-9]+)?(?# base 10))$/x
15
15
 
16
- # Taken from http://yaml.org/type/int.html
17
- INTEGER_STRICT = /^(?:[-+]?0b[0-1_]+ (?# base 2)
18
- |[-+]?0[0-7_]+ (?# base 8)
19
- |[-+]?(0|[1-9][0-9_]*) (?# base 10)
20
- |[-+]?0x[0-9a-fA-F_]+ (?# base 16))$/x
16
+ # Taken from http://yaml.org/type/int.html and modified to ensure at least one numerical symbol exists
17
+ INTEGER_STRICT = /^(?:[-+]?0b[_]*[0-1][0-1_]* (?# base 2)
18
+ |[-+]?0[_]*[0-7][0-7_]* (?# base 8)
19
+ |[-+]?(0|[1-9][0-9_]*) (?# base 10)
20
+ |[-+]?0x[_]*[0-9a-fA-F][0-9a-fA-F_]* (?# base 16))$/x
21
21
 
22
22
  # Same as above, but allows commas.
23
23
  # Not to YML spec, but kept for backwards compatibility
24
- INTEGER_LEGACY = /^(?:[-+]?0b[0-1_,]+ (?# base 2)
25
- |[-+]?0[0-7_,]+ (?# base 8)
24
+ INTEGER_LEGACY = /^(?:[-+]?0b[_,]*[0-1][0-1_,]* (?# base 2)
25
+ |[-+]?0[_,]*[0-7][0-7_,]* (?# base 8)
26
26
  |[-+]?(?:0|[1-9](?:[0-9]|,[0-9]|_[0-9])*) (?# base 10)
27
- |[-+]?0x[0-9a-fA-F_,]+ (?# base 16))$/x
27
+ |[-+]?0x[_,]*[0-9a-fA-F][0-9a-fA-F_,]* (?# base 16))$/x
28
28
 
29
29
  attr_reader :class_loader
30
30
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Psych
4
4
  # The version of Psych you are using
5
- VERSION = '5.2.0.beta1'
5
+ VERSION = '5.2.0.beta7'
6
6
 
7
7
  if RUBY_ENGINE == 'jruby'
8
8
  DEFAULT_SNAKEYAML_VERSION = '2.7'.freeze
@@ -36,7 +36,7 @@ module Psych
36
36
 
37
37
  unless @domain_types.empty? || !target.tag
38
38
  key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
39
- key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
39
+ key = "tag:#{key}" unless key.match?(/^(?:tag:|x-private)/)
40
40
 
41
41
  if @domain_types.key? key
42
42
  value, block = @domain_types[key]
@@ -261,7 +261,7 @@ module Psych
261
261
  style = Nodes::Scalar::LITERAL
262
262
  plain = false
263
263
  quote = false
264
- elsif o =~ /\n(?!\Z)/ # match \n except blank line at the end of string
264
+ elsif o.match?(/\n(?!\Z)/) # match \n except blank line at the end of string
265
265
  style = Nodes::Scalar::LITERAL
266
266
  elsif o == '<<'
267
267
  style = Nodes::Scalar::SINGLE_QUOTED
@@ -272,9 +272,9 @@ module Psych
272
272
  style = Nodes::Scalar::DOUBLE_QUOTED
273
273
  elsif @line_width && o.length > @line_width
274
274
  style = Nodes::Scalar::FOLDED
275
- elsif o =~ /^[^[:word:]][^"]*$/
275
+ elsif o.match?(/^[^[:word:]][^"]*$/)
276
276
  style = Nodes::Scalar::DOUBLE_QUOTED
277
- elsif not String === @ss.tokenize(o) or /\A0[0-7]*[89]/ =~ o
277
+ elsif not String === @ss.tokenize(o) or /\A0[0-7]*[89]/.match?(o)
278
278
  style = Nodes::Scalar::SINGLE_QUOTED
279
279
  end
280
280
 
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.2.0.beta1
4
+ version: 5.2.0.beta7
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson
@@ -10,15 +10,15 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-09-09 00:00:00.000000000 Z
13
+ date: 2024-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
+ name: jar-dependencies
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  requirements:
18
19
  - - ">="
19
20
  - !ruby/object:Gem::Version
20
21
  version: 0.1.7
21
- name: jar-dependencies
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements:
123
123
  - jar org.snakeyaml:snakeyaml-engine, 2.7
124
- rubygems_version: 3.3.26
124
+ rubygems_version: 3.5.23
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Psych is a YAML parser and emitter