psych 5.0.1 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Mavenfile +1 -1
- data/Rakefile +2 -2
- data/ext/psych/extconf.rb +1 -1
- data/lib/psych/class_loader.rb +1 -1
- data/lib/psych/tree_builder.rb +2 -2
- data/lib/psych/versions.rb +2 -2
- data/lib/psych/visitors/yaml_tree.rb +2 -2
- data/psych.gemspec +3 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1f8d034b29af61d3960b0cdca87e3c8cac106e7dde3176c1e67df223ab03472
|
4
|
+
data.tar.gz: a1e3eed89394ce7c16c156eafae3c32a65f687efb68336c5b43aeede9d472538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 105915165cc399dd19accfcccfbf742798b2923215fe9c50e19f20b0433eade76830c604e6c0598e7ea4117f82bada4e5a0d6a8d503c1621da9a440633e6441a
|
7
|
+
data.tar.gz: ce05ea8f197089797e302833cb520bb4a8b2b01ca40080013fadce49aa141763c6ea4edd0df909e3c5abf6b29c687b8fd37fce177990f9f0f79bab926841e314
|
data/Mavenfile
CHANGED
data/Rakefile
CHANGED
@@ -21,8 +21,8 @@ if RUBY_PLATFORM =~ /java/
|
|
21
21
|
# this is basically the same as running from the commandline:
|
22
22
|
# rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
|
23
23
|
Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')
|
24
|
-
ext.source_version = '1.
|
25
|
-
ext.target_version = '1.
|
24
|
+
ext.source_version = '1.8'
|
25
|
+
ext.target_version = '1.8'
|
26
26
|
ext.classpath = File.read('pkg/classpath')
|
27
27
|
ext.ext_dir = 'ext/java'
|
28
28
|
end
|
data/ext/psych/extconf.rb
CHANGED
@@ -22,7 +22,7 @@ if yaml_source
|
|
22
22
|
args = [
|
23
23
|
yaml_configure,
|
24
24
|
"--enable-#{shared ? 'shared' : 'static'}",
|
25
|
-
"--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}",
|
25
|
+
"--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-').sub(/arm64/, 'arm')}",
|
26
26
|
"CC=#{RbConfig::CONFIG['CC']}",
|
27
27
|
*(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"),
|
28
28
|
]
|
data/lib/psych/class_loader.rb
CHANGED
data/lib/psych/tree_builder.rb
CHANGED
@@ -41,7 +41,7 @@ module Psych
|
|
41
41
|
Sequence
|
42
42
|
Mapping
|
43
43
|
}.each do |node|
|
44
|
-
class_eval
|
44
|
+
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
45
45
|
def start_#{node.downcase}(anchor, tag, implicit, style)
|
46
46
|
n = Nodes::#{node}.new(anchor, tag, implicit, style)
|
47
47
|
set_start_location(n)
|
@@ -54,7 +54,7 @@ module Psych
|
|
54
54
|
set_end_location(n)
|
55
55
|
n
|
56
56
|
end
|
57
|
-
|
57
|
+
RUBY
|
58
58
|
end
|
59
59
|
|
60
60
|
###
|
data/lib/psych/versions.rb
CHANGED
@@ -568,7 +568,7 @@ module Psych
|
|
568
568
|
raise BadAlias, "Tried to dump an aliased object"
|
569
569
|
end
|
570
570
|
|
571
|
-
unless @permitted_classes[target.class]
|
571
|
+
unless Symbol === target || @permitted_classes[target.class]
|
572
572
|
raise DisallowedClass.new('dump', target.class.name || target.class.inspect)
|
573
573
|
end
|
574
574
|
|
@@ -576,7 +576,7 @@ module Psych
|
|
576
576
|
end
|
577
577
|
|
578
578
|
def visit_Symbol sym
|
579
|
-
unless @permitted_symbols[sym]
|
579
|
+
unless @permitted_classes[Symbol] || @permitted_symbols[sym]
|
580
580
|
raise DisallowedClass.new('dump', "Symbol(#{sym.inspect})")
|
581
581
|
end
|
582
582
|
|
data/psych.gemspec
CHANGED
@@ -52,15 +52,16 @@ DESCRIPTION
|
|
52
52
|
"ext/java/org/jruby/ext/psych/PsychLibrary.java",
|
53
53
|
"ext/java/org/jruby/ext/psych/PsychParser.java",
|
54
54
|
"ext/java/org/jruby/ext/psych/PsychToRuby.java",
|
55
|
-
"ext/java/org/jruby/ext/psych/PsychYamlTree.java",
|
56
55
|
"lib/psych_jars.rb",
|
57
56
|
"lib/psych.jar"
|
58
57
|
]
|
59
|
-
s.requirements = "jar org.
|
58
|
+
s.requirements = "jar org.snakeyaml:snakeyaml-engine, #{version_module::Psych::DEFAULT_SNAKEYAML_VERSION}"
|
60
59
|
s.add_dependency 'jar-dependencies', '>= 0.1.7'
|
61
60
|
else
|
62
61
|
s.extensions = ["ext/psych/extconf.rb"]
|
63
62
|
s.add_dependency 'stringio'
|
64
63
|
end
|
65
64
|
|
65
|
+
s.metadata['msys2_mingw_dependencies'] = 'libyaml'
|
66
|
+
|
66
67
|
end
|
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.0
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
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:
|
13
|
+
date: 2023-02-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: stringio
|
@@ -101,7 +101,8 @@ files:
|
|
101
101
|
homepage: https://github.com/ruby/psych
|
102
102
|
licenses:
|
103
103
|
- MIT
|
104
|
-
metadata:
|
104
|
+
metadata:
|
105
|
+
msys2_mingw_dependencies: libyaml
|
105
106
|
post_install_message:
|
106
107
|
rdoc_options:
|
107
108
|
- "--main"
|
@@ -119,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
120
|
- !ruby/object:Gem::Version
|
120
121
|
version: '0'
|
121
122
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.3.26
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: Psych is a YAML parser and emitter
|