psych 5.2.0.beta7-java → 5.2.1-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: bc7cea50514caf4f06610aaf95a2a71d3519197bfa250d04b06869b63167d182
4
- data.tar.gz: a5d0a8bb6faa8c60a8c41910058f004343eedc79dddbdbda322819395d7fbbc2
3
+ metadata.gz: a30ed6083d2d873e071ab81b763285405d6fa8cda84cd83a07487755ab7449b9
4
+ data.tar.gz: d227361e65d651988c58b429bac0a777f2b4b17cb47345d7bdddda4332585b72
5
5
  SHA512:
6
- metadata.gz: 2a48f66104f901055a1b3a6bb042e5efde71a233113f7bf5dc0770ed79d017bdd8c7e0496cdd23898174e31f0fe789fcefc439bbcfc2dcf7477259ecf7086742
7
- data.tar.gz: 7a1fb1a22d83218ed42eea8193b86dd9eeeaf4021ecd1117b7de5a8bfe513b21e9c0d03bb8f977ec265dfe7c9ede4abe13b0a504644574bd57cd4792ce56cfe9
6
+ metadata.gz: 8884a4c9914919c925429c97ecf49a0bb249cde490b5ff909882e4efad3752424caef1846c16032fa9d9e4be04d0bd4855304ba8cdcaaf35a044b707a5cd3a3d
7
+ data.tar.gz: 936a44c84710b6648a81361d3a95e30f1fe186e2a45982cc179b40e46c17fd4323c3ba38416027de393b224e41833181cdc23585c97701cff5b17205a46b0149
@@ -4,8 +4,6 @@ module Psych
4
4
  ###
5
5
  # Scan scalars for built in types
6
6
  class ScalarScanner
7
- autoload :Date, "date"
8
-
9
7
  # Taken from http://yaml.org/type/timestamp.html
10
8
  TIME = /^-?\d{4}-\d{1,2}-\d{1,2}(?:[Tt]|\s+)\d{1,2}:\d\d:\d\d(?:\.\d*)?(?:\s*(?:Z|[-+]\d{1,2}:?(?:\d\d)?))?$/
11
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Psych
4
4
  # The version of Psych you are using
5
- VERSION = '5.2.0.beta7'
5
+ VERSION = '5.2.1'
6
6
 
7
7
  if RUBY_ENGINE == 'jruby'
8
8
  DEFAULT_SNAKEYAML_VERSION = '2.7'.freeze
@@ -79,7 +79,6 @@ module Psych
79
79
  class_loader.big_decimal._load o.value
80
80
  when "!ruby/object:DateTime"
81
81
  class_loader.date_time
82
- require 'date' unless defined? DateTime
83
82
  t = @ss.parse_time(o.value)
84
83
  DateTime.civil(*t.to_a[0, 6].reverse, Rational(t.utc_offset, 86400)) +
85
84
  (t.subsec/86400)
data/lib/psych.jar CHANGED
Binary file
data/lib/psych.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  # frozen_string_literal: true
2
+ require 'date'
3
+
2
4
  require_relative 'psych/versions'
3
5
  case RUBY_ENGINE
4
6
  when 'jruby'
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.beta7
4
+ version: 5.2.1
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: 2024-11-07 00:00:00.000000000 Z
13
+ date: 2024-12-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jar-dependencies
@@ -26,6 +26,20 @@ dependencies:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: 0.1.7
29
+ - !ruby/object:Gem::Dependency
30
+ name: date
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
29
43
  description: |
30
44
  Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML]
31
45
  for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,