psych 5.1.0 → 5.1.1.1

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: c1f8d034b29af61d3960b0cdca87e3c8cac106e7dde3176c1e67df223ab03472
4
- data.tar.gz: a1e3eed89394ce7c16c156eafae3c32a65f687efb68336c5b43aeede9d472538
3
+ metadata.gz: 32a9f06b7fd5303a77be8b5954d03e5d0c4fc19bff5b22a7e2a68eabe57db15c
4
+ data.tar.gz: 41c8fd2459cf1ac9c2e3db8fce51e2b05a0fda1f3666ce18207d1afdd491d0e4
5
5
  SHA512:
6
- metadata.gz: 105915165cc399dd19accfcccfbf742798b2923215fe9c50e19f20b0433eade76830c604e6c0598e7ea4117f82bada4e5a0d6a8d503c1621da9a440633e6441a
7
- data.tar.gz: ce05ea8f197089797e302833cb520bb4a8b2b01ca40080013fadce49aa141763c6ea4edd0df909e3c5abf6b29c687b8fd37fce177990f9f0f79bab926841e314
6
+ metadata.gz: d5e68fc1f4b0698a3eda0e9faa74364058b73364c2adc074d22628d4a98066e04089bda4d81ea5e6aaa41bd7ee69db38dd56c74f7c383a2cdfe3ca1f92acb14b
7
+ data.tar.gz: 6d7ca78b6fb6d15c4de16c4c706d2520f55777497e5f967a9fe83b8c5bcd0ffdd29a6122bce320ab09b24ccc4c1d7863b50988f299cdbc164e4c9e6614834071
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,24 @@
1
+ ## How to contribute to Psych
2
+
3
+ Full details [here](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToContribute)
4
+
5
+ #### **Did you find a bug?**
6
+
7
+ * **Do not open an issue if the bug is a security vulnerability
8
+ in Psych**, instead refer to our [security policy](https://www.ruby-lang.org/en/security/) and email [here](security@ruby-lang.org).
9
+
10
+ * **Ensure the bug was not already reported** by searching on ruby-core, the ruby github repo and on Psych's github repo. More info [here](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport)
11
+
12
+ * If you're unable to find an open issue addressing the problem, [open a new one](https://bugs.ruby-lang.org/). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.
13
+
14
+ #### **Did you write a patch that fixes a bug?**
15
+
16
+ * Open a new GitHub pull request with the patch for small fixes. Anything larger look [here](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToContribute); submit a Feature.
17
+
18
+ * Ensure you clearly describe the problem and solution. Include the relevant ticket/issue number if applicable.
19
+
20
+ Psych is a volunteer effort. We encourage you to pitch in and [join the team](https://github.com/ruby/psych/contributors)!
21
+
22
+ Thanks! :heart: :heart: :heart:
23
+
24
+ The Psych Team
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Psych
4
4
  # The version of Psych you are using
5
- VERSION = '5.1.0'
5
+ VERSION = '5.1.1.1'
6
6
 
7
7
  if RUBY_ENGINE == 'jruby'
8
- DEFAULT_SNAKEYAML_VERSION = '2.6'.freeze
8
+ DEFAULT_SNAKEYAML_VERSION = '2.7'.freeze
9
9
  end
10
10
  end
data/lib/psych.rb CHANGED
@@ -694,26 +694,8 @@ module Psych
694
694
  dump_tags[klass] = tag
695
695
  end
696
696
 
697
- # Workaround for emulating `warn '...', uplevel: 1` in Ruby 2.4 or lower.
698
- def self.warn_with_uplevel(message, uplevel: 1)
699
- at = parse_caller(caller[uplevel]).join(':')
700
- warn "#{at}: #{message}"
701
- end
702
-
703
- def self.parse_caller(at)
704
- if /^(.+?):(\d+)(?::in `.*')?/ =~ at
705
- file = $1
706
- line = $2.to_i
707
- [file, line]
708
- end
709
- end
710
- private_class_method :warn_with_uplevel, :parse_caller
711
-
712
697
  class << self
713
698
  if defined?(Ractor)
714
- require 'forwardable'
715
- extend Forwardable
716
-
717
699
  class Config
718
700
  attr_accessor :load_tags, :dump_tags, :domain_types
719
701
  def initialize
@@ -727,7 +709,29 @@ module Psych
727
709
  Ractor.current[:PsychConfig] ||= Config.new
728
710
  end
729
711
 
730
- def_delegators :config, :load_tags, :dump_tags, :domain_types, :load_tags=, :dump_tags=, :domain_types=
712
+ def load_tags
713
+ config.load_tags
714
+ end
715
+
716
+ def dump_tags
717
+ config.dump_tags
718
+ end
719
+
720
+ def domain_types
721
+ config.domain_types
722
+ end
723
+
724
+ def load_tags=(value)
725
+ config.load_tags = value
726
+ end
727
+
728
+ def dump_tags=(value)
729
+ config.dump_tags = value
730
+ end
731
+
732
+ def domain_types=(value)
733
+ config.domain_types = value
734
+ end
731
735
  else
732
736
  attr_accessor :load_tags
733
737
  attr_accessor :dump_tags
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.1.0
4
+ version: 5.1.1.1
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: 2023-02-07 00:00:00.000000000 Z
13
+ date: 2023-10-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: stringio
@@ -40,14 +40,9 @@ extensions:
40
40
  extra_rdoc_files:
41
41
  - README.md
42
42
  files:
43
- - ".gitignore"
44
- - Gemfile
43
+ - CONTRIBUTING.md
45
44
  - LICENSE
46
- - Mavenfile
47
45
  - README.md
48
- - Rakefile
49
- - bin/console
50
- - bin/setup
51
46
  - ext/psych/depend
52
47
  - ext/psych/extconf.rb
53
48
  - ext/psych/psych.c
@@ -97,7 +92,6 @@ files:
97
92
  - lib/psych/visitors/visitor.rb
98
93
  - lib/psych/visitors/yaml_tree.rb
99
94
  - lib/psych/y.rb
100
- - psych.gemspec
101
95
  homepage: https://github.com/ruby/psych
102
96
  licenses:
103
97
  - MIT
@@ -113,14 +107,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - ">="
115
109
  - !ruby/object:Gem::Version
116
- version: 2.4.0
110
+ version: 2.5.0
117
111
  required_rubygems_version: !ruby/object:Gem::Requirement
118
112
  requirements:
119
113
  - - ">="
120
114
  - !ruby/object:Gem::Version
121
115
  version: '0'
122
116
  requirements: []
123
- rubygems_version: 3.3.26
117
+ rubygems_version: 3.5.0.dev
124
118
  signing_key:
125
119
  specification_version: 4
126
120
  summary: Psych is a YAML parser and emitter
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- *.swp
2
- *.bundle
3
- *.so
4
- *.jar
5
- *.class
6
- .mvn
7
- /.bundle/
8
- /.yardoc
9
- /Gemfile.lock
10
- /_yardoc/
11
- /coverage/
12
- /doc/
13
- /pkg/
14
- /spec/reports/
15
- /tmp/
16
- /vendor
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development do
6
- gem 'rake-compiler', ">= 0.4.1"
7
- gem 'test-unit'
8
- gem 'ruby-maven', :platforms => :jruby
9
- end
data/Mavenfile DELETED
@@ -1,7 +0,0 @@
1
- #-*- mode: ruby -*-
2
-
3
- jar 'org.snakeyaml:snakeyaml-engine:${snakeyaml.version}'
4
-
5
- plugin :dependency, '2.8', :outputFile => 'pkg/classpath'
6
-
7
- # vim: syntax=Ruby
data/Rakefile DELETED
@@ -1,41 +0,0 @@
1
- require "bundler"
2
- Bundler::GemHelper.install_tasks
3
-
4
- require "rake/testtask"
5
- Rake::TestTask.new(:test) do |t|
6
- t.libs << "test/lib" << "test"
7
- t.ruby_opts << "-rhelper"
8
- t.test_files = FileList['test/**/test_*.rb']
9
- t.verbose = true
10
- t.warning = true
11
- end
12
-
13
- if RUBY_PLATFORM =~ /java/
14
- require 'rake/javaextensiontask'
15
- Rake::JavaExtensionTask.new("psych") do |ext|
16
- require 'maven/ruby/maven'
17
- # force load of versions to overwrite constants with values from repo.
18
- load './lib/psych/versions.rb'
19
- # uses Mavenfile to write classpath into pkg/classpath
20
- # and tell maven via system properties the snakeyaml version
21
- # this is basically the same as running from the commandline:
22
- # rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
23
- Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')
24
- ext.source_version = '1.8'
25
- ext.target_version = '1.8'
26
- ext.classpath = File.read('pkg/classpath')
27
- ext.ext_dir = 'ext/java'
28
- end
29
- else
30
- require 'rake/extensiontask'
31
- Rake::ExtensionTask.new("psych")
32
- end
33
-
34
- task :sync_tool do
35
- require 'fileutils'
36
- FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
37
- FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
38
- FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
39
- end
40
-
41
- task :default => [:compile, :test]
data/bin/console DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "psych"
5
-
6
- require "irb"
7
- IRB.start
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
data/psych.gemspec DELETED
@@ -1,67 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # frozen_string_literal: true
3
-
4
- version_module = Module.new do
5
- version_rb = File.join(__dir__, "lib/psych/versions.rb")
6
- module_eval(File.read(version_rb), version_rb)
7
- end
8
-
9
- Gem::Specification.new do |s|
10
- s.name = "psych"
11
- s.version = version_module::Psych::VERSION
12
- s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter"]
13
- s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com"]
14
- s.summary = "Psych is a YAML parser and emitter"
15
- s.description = <<-DESCRIPTION
16
- Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML]
17
- for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
18
- Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
19
- DESCRIPTION
20
- s.homepage = "https://github.com/ruby/psych"
21
- s.licenses = ["MIT"]
22
- s.require_paths = ["lib"]
23
-
24
- # for ruby core repository. It was generated by `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
- s.files = [
26
- ".gitignore", "Gemfile", "LICENSE", "Mavenfile", "README.md", "Rakefile", "bin/console",
27
- "bin/setup", "ext/psych/depend", "ext/psych/extconf.rb", "ext/psych/psych.c", "ext/psych/psych.h",
28
- "ext/psych/psych_emitter.c", "ext/psych/psych_emitter.h", "ext/psych/psych_parser.c", "ext/psych/psych_parser.h",
29
- "ext/psych/psych_to_ruby.c", "ext/psych/psych_to_ruby.h", "ext/psych/psych_yaml_tree.c", "ext/psych/psych_yaml_tree.h",
30
- "lib/psych.rb", "lib/psych/class_loader.rb", "lib/psych/coder.rb", "lib/psych/core_ext.rb", "lib/psych/exception.rb",
31
- "lib/psych/handler.rb", "lib/psych/handlers/document_stream.rb", "lib/psych/handlers/recorder.rb",
32
- "lib/psych/json/ruby_events.rb", "lib/psych/json/stream.rb", "lib/psych/json/tree_builder.rb",
33
- "lib/psych/json/yaml_events.rb", "lib/psych/nodes.rb", "lib/psych/nodes/alias.rb", "lib/psych/nodes/document.rb",
34
- "lib/psych/nodes/mapping.rb", "lib/psych/nodes/node.rb", "lib/psych/nodes/scalar.rb", "lib/psych/nodes/sequence.rb",
35
- "lib/psych/nodes/stream.rb", "lib/psych/omap.rb", "lib/psych/parser.rb", "lib/psych/scalar_scanner.rb",
36
- "lib/psych/set.rb", "lib/psych/stream.rb", "lib/psych/streaming.rb", "lib/psych/syntax_error.rb",
37
- "lib/psych/tree_builder.rb", "lib/psych/versions.rb", "lib/psych/visitors.rb","lib/psych/visitors/depth_first.rb",
38
- "lib/psych/visitors/emitter.rb", "lib/psych/visitors/json_tree.rb", "lib/psych/visitors/to_ruby.rb",
39
- "lib/psych/visitors/visitor.rb", "lib/psych/visitors/yaml_tree.rb", "lib/psych/y.rb", "psych.gemspec"
40
- ]
41
-
42
- s.rdoc_options = ["--main", "README.md"]
43
- s.extra_rdoc_files = ["README.md"]
44
-
45
- s.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
46
- s.required_rubygems_version = Gem::Requirement.new(">= 0")
47
-
48
- if RUBY_ENGINE == 'jruby'
49
- s.platform = 'java'
50
- s.files.concat [
51
- "ext/java/org/jruby/ext/psych/PsychEmitter.java",
52
- "ext/java/org/jruby/ext/psych/PsychLibrary.java",
53
- "ext/java/org/jruby/ext/psych/PsychParser.java",
54
- "ext/java/org/jruby/ext/psych/PsychToRuby.java",
55
- "lib/psych_jars.rb",
56
- "lib/psych.jar"
57
- ]
58
- s.requirements = "jar org.snakeyaml:snakeyaml-engine, #{version_module::Psych::DEFAULT_SNAKEYAML_VERSION}"
59
- s.add_dependency 'jar-dependencies', '>= 0.1.7'
60
- else
61
- s.extensions = ["ext/psych/extconf.rb"]
62
- s.add_dependency 'stringio'
63
- end
64
-
65
- s.metadata['msys2_mingw_dependencies'] = 'libyaml'
66
-
67
- end