psych 5.2.0-java → 5.2.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/psych/psych_emitter.c +2 -1
- data/lib/psych/scalar_scanner.rb +0 -2
- data/lib/psych/versions.rb +1 -1
- data/lib/psych/visitors/to_ruby.rb +0 -1
- data/lib/psych.jar +0 -0
- data/lib/psych.rb +4 -2
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd64ef73206772ded78ac380177121a32fd32e615ddec1a97e68dced1741612
|
4
|
+
data.tar.gz: df99e64c76c815e6b4e5cdfbb4aebc6384b34149c7934e3108a70d16de56f11f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9d355feba5224923015f9d0d8d9fa8f929196f73c8f218f7cd3745714fd46ac67e71819dad4049342b1012eaa035b14cbadf388f2ac74a14cd0b567e93eb794
|
7
|
+
data.tar.gz: dc940e85cd7371b05069a3226903682824b533b13fa4dd58ebdbd04b2fb585495430d62f660b8b51c73985f52cc4fcfe3aafc9d1a0fb2de9f3d6e60a8d45110e
|
data/ext/psych/psych_emitter.c
CHANGED
@@ -304,11 +304,12 @@ static VALUE scalar(
|
|
304
304
|
tag = rb_str_export_to_enc(tag, encoding);
|
305
305
|
}
|
306
306
|
|
307
|
+
const char *value_ptr = StringValuePtr(value);
|
307
308
|
yaml_scalar_event_initialize(
|
308
309
|
&event,
|
309
310
|
(yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor)),
|
310
311
|
(yaml_char_t *)(NIL_P(tag) ? NULL : StringValueCStr(tag)),
|
311
|
-
(yaml_char_t*)
|
312
|
+
(yaml_char_t*)value_ptr,
|
312
313
|
(int)RSTRING_LEN(value),
|
313
314
|
plain ? 1 : 0,
|
314
315
|
quoted ? 1 : 0,
|
data/lib/psych/scalar_scanner.rb
CHANGED
@@ -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
|
|
data/lib/psych/versions.rb
CHANGED
@@ -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'
|
@@ -84,7 +86,7 @@ require_relative 'psych/class_loader'
|
|
84
86
|
# Psych.safe_load_file("data.yml", permitted_classes: [Date])
|
85
87
|
# Psych.load_file("trusted_database.yml")
|
86
88
|
#
|
87
|
-
# ==== Exception handling
|
89
|
+
# ==== \Exception handling
|
88
90
|
#
|
89
91
|
# begin
|
90
92
|
# # The second argument changes only the exception contents
|
@@ -148,7 +150,7 @@ require_relative 'psych/class_loader'
|
|
148
150
|
# # Returns Psych::Nodes::Document
|
149
151
|
# Psych.parse_file('database.yml')
|
150
152
|
#
|
151
|
-
# ==== Exception handling
|
153
|
+
# ==== \Exception handling
|
152
154
|
#
|
153
155
|
# begin
|
154
156
|
# # The second argument changes only the exception contents
|
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.
|
4
|
+
version: 5.2.2
|
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-
|
13
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name: jar-dependencies
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
17
|
requirements:
|
19
18
|
- - ">="
|
20
19
|
- !ruby/object:Gem::Version
|
21
20
|
version: 0.1.7
|
21
|
+
name: jar-dependencies
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -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
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
name: date
|
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,
|
@@ -121,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
135
|
version: '0'
|
122
136
|
requirements:
|
123
137
|
- jar org.snakeyaml:snakeyaml-engine, 2.7
|
124
|
-
rubygems_version: 3.
|
138
|
+
rubygems_version: 3.3.26
|
125
139
|
signing_key:
|
126
140
|
specification_version: 4
|
127
141
|
summary: Psych is a YAML parser and emitter
|