psych 5.0.0 → 5.0.2.pre1

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: c1f28150eddba20d25bc0148ef02586e0c57defafab2fd085ff3838797ee0678
4
- data.tar.gz: e7025e3b097c4b46a9a1cafb92441b362e3e85b909e70839eb7163881edc7d23
3
+ metadata.gz: bad0c37768b489a56b9c11ec3b31892ba99171d2e5a140f28d9347a7c5842bbb
4
+ data.tar.gz: 7bc9a649097b8503812de5aa3e6a26d5ec1d9511f5d4f1964bdcb379457a89b7
5
5
  SHA512:
6
- metadata.gz: 7eb5c82f61ba859be6207a1a1ecffc63ab4948437bbe8d380838b033324dfba165319fe65804a407742545e96e47eb7656c2299fd7805e9114387efedd959d8c
7
- data.tar.gz: e83978ee6e12de207ae51985f00d0907e42c68d9960d4e6f4f89c5e9b5062d5d4c6f8851bc3289e18331cdf15eb31d59a5e9e63111a2625bc3aa238382d700f1
6
+ metadata.gz: 8eaeb0a30d7d8ebf9f95a6116c4dd3b65904c6c3fb766d1aaa34019bf96de237d0c8f0f210e9c7aa299fbbf0edee7d344adcfc569fb555b7f24d54f95bc92079
7
+ data.tar.gz: 59fba592339935369f04d59a5c2f18fe8a8e6c8927ac6f93ffe6228693591bc4faa06e3e13122213edb1e52896dffaae735e2ae1c82a0a8991bd160b33ff5392
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Psych
2
2
 
3
3
  * https://github.com/ruby/psych
4
+ * https://docs.ruby-lang.org/en/master/Psych.html
4
5
 
5
6
  ## Description
6
7
 
@@ -32,6 +33,11 @@ If you want a newer gem release of Psych, you can use rubygems:
32
33
 
33
34
  gem install psych
34
35
 
36
+
37
+ Psych supported the static build with specific version of libyaml sources. You can build psych with libyaml-0.2.5 like this.
38
+
39
+ gem install psych -- --with-libyaml-source-dir=/path/to/libyaml-0.2.5
40
+
35
41
  In order to use the gem release in your app, and not the stdlib version,
36
42
  you'll need the following:
37
43
 
@@ -44,11 +50,6 @@ Or if you use Bundler add this to your `Gemfile`:
44
50
 
45
51
  JRuby ships with a pure Java implementation of Psych.
46
52
 
47
- If you're on Rubinius, Psych is available in 1.9 mode, please refer to the
48
- Language Modes section of the [Rubinius
49
- README](https://github.com/rubinius/rubinius#readme) for more information on
50
- building and 1.9 mode.
51
-
52
53
  ## License
53
54
 
54
55
  Copyright 2009 Aaron Patterson, et al.
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.7'
25
- ext.target_version = '1.7'
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
  ]
@@ -35,7 +35,7 @@ module Psych
35
35
 
36
36
  constants.each do |const|
37
37
  konst = const_get const
38
- class_eval <<~RUBY
38
+ class_eval <<~RUBY, __FILE__, __LINE__ + 1
39
39
  def #{const.to_s.downcase}
40
40
  load #{konst.inspect}
41
41
  end
@@ -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
  ###
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Psych
4
4
  # The version of Psych you are using
5
- VERSION = '5.0.0'
5
+ VERSION = '5.0.2.pre1'
6
6
 
7
7
  if RUBY_ENGINE == 'jruby'
8
8
  DEFAULT_SNAKEYAML_VERSION = '1.33'.freeze
data/psych.gemspec CHANGED
@@ -52,7 +52,6 @@ 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
  ]
@@ -63,4 +62,6 @@ DESCRIPTION
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.0
4
+ version: 5.0.2.pre1
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: 2022-12-05 00:00:00.000000000 Z
13
+ date: 2023-01-17 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.4.0.dev
123
+ rubygems_version: 3.5.0.dev
123
124
  signing_key:
124
125
  specification_version: 4
125
126
  summary: Psych is a YAML parser and emitter