psych 5.2.1 → 5.2.2

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: 270858d5e7932bd2a8c72d6861566ebfef58a7c2bea4acd2635a3aa4246b89cc
4
- data.tar.gz: 20f230ccc6bc96cb1bb54fe77263b4545aad9a5028023fc6b2c13dc6e4934ca4
3
+ metadata.gz: e81adcfc8e167dbe8951e4b32794238a09003e57e75cc9e7f807d90c20aee917
4
+ data.tar.gz: 98cab7d17c5f91abbd84c95b089e71b4928b9554d5a8b154841c1d6d96c63f69
5
5
  SHA512:
6
- metadata.gz: dc1a496280c8d941f7d87924279dfc4e95b23046d0d7c5520fac4ff4c31eb6f2d4f0254bf73ea60f5a0974b8e03ad7005944ce569344908e0835691d1c5d7cba
7
- data.tar.gz: c0018b3e09a66ce9aff01c1d1546b2cae40f15ea2e47045ecccb5eedabdd60f5ca8f59f91eb1e3f5c6540e6dcf0c8b0b47d3518de75ac9ae4e0a6ad5b3c86b3e
6
+ metadata.gz: 9297958a815fe84220641506bc65e17133d2c551cc34d50d0261f95e51d7a19e706b06bb98b59bbde587825f9256f0579a68d250346134f2f766a79c93fa1288
7
+ data.tar.gz: a86c4526fb081f9b18cc13e6f8326c3335e80913013f448bf9ef0d0f741af7d1bdc52392014076fe3b709427e47ae42dce7f4ffe0e896de82c8d3d218e23cfb0
@@ -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*)StringValuePtr(value),
312
+ (yaml_char_t*)value_ptr,
312
313
  (int)RSTRING_LEN(value),
313
314
  plain ? 1 : 0,
314
315
  quoted ? 1 : 0,
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Psych
4
4
  # The version of Psych you are using
5
- VERSION = '5.2.1'
5
+ VERSION = '5.2.2'
6
6
 
7
7
  if RUBY_ENGINE == 'jruby'
8
8
  DEFAULT_SNAKEYAML_VERSION = '2.7'.freeze
data/lib/psych.rb CHANGED
@@ -86,7 +86,7 @@ require_relative 'psych/class_loader'
86
86
  # Psych.safe_load_file("data.yml", permitted_classes: [Date])
87
87
  # Psych.load_file("trusted_database.yml")
88
88
  #
89
- # ==== Exception handling
89
+ # ==== \Exception handling
90
90
  #
91
91
  # begin
92
92
  # # The second argument changes only the exception contents
@@ -150,7 +150,7 @@ require_relative 'psych/class_loader'
150
150
  # # Returns Psych::Nodes::Document
151
151
  # Psych.parse_file('database.yml')
152
152
  #
153
- # ==== Exception handling
153
+ # ==== \Exception handling
154
154
  #
155
155
  # begin
156
156
  # # The second argument changes only the exception contents
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psych
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.1
4
+ version: 5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
8
8
  - SHIBATA Hiroshi
9
9
  - Charles Oliver Nutter
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-12-02 00:00:00.000000000 Z
13
+ date: 2024-12-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: stringio
@@ -112,7 +112,7 @@ licenses:
112
112
  metadata:
113
113
  msys2_mingw_dependencies: libyaml
114
114
  changelog_uri: https://github.com/ruby/psych/releases
115
- post_install_message:
115
+ post_install_message:
116
116
  rdoc_options:
117
117
  - "--main"
118
118
  - README.md
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubygems_version: 3.5.11
133
- signing_key:
133
+ signing_key:
134
134
  specification_version: 4
135
135
  summary: Psych is a YAML parser and emitter
136
136
  test_files: []