psych 5.2.1-java → 5.2.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -10
- data/ext/psych/psych.c +0 -1
- data/ext/psych/psych_emitter.c +2 -2
- data/ext/psych/psych_parser.c +0 -1
- data/ext/psych/psych_to_ruby.c +0 -1
- data/ext/psych/psych_yaml_tree.c +0 -1
- data/lib/psych/versions.rb +2 -2
- data/lib/psych.jar +0 -0
- data/lib/psych.rb +2 -2
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d45c3d790110adf9d97e497f2d25341ecc113b430e6ca0c29aa12104d16e98f
|
4
|
+
data.tar.gz: 0b1dd144c01696b7c2be6271e7aee97072180f3bc387c2eb75b9d0705e3a21ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 987a2cc829bd9e4ddfe8ec67cdcdec388f70e42e240c333a00980692fd480a52d5c0e9fe7610b6ca6f3c61b2b83b4c74778d6ebc9ce3075772d1519bac62e1e5
|
7
|
+
data.tar.gz: 570dca8b9137bab7c0c41e7f04427176facd27760dd0e641c214bb976917001919997e5b51dd5f753e322e0c7af48d53fe9a9cd594413b9833a7812b46f197b0
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Psych
|
2
2
|
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* https://github.com/ruby/psych
|
4
|
+
* https://docs.ruby-lang.org/en/master/Psych.html
|
5
5
|
|
6
6
|
## Description
|
7
7
|
|
@@ -22,31 +22,38 @@ Psych.dump("foo") # => "--- foo\n...\n"
|
|
22
22
|
|
23
23
|
## Dependencies
|
24
24
|
|
25
|
-
*
|
25
|
+
* libyaml
|
26
26
|
|
27
27
|
## Installation
|
28
28
|
|
29
29
|
Psych has been included with MRI since 1.9.2, and is the default YAML parser
|
30
30
|
in 1.9.3.
|
31
31
|
|
32
|
-
If you want a newer gem release of Psych, you can use
|
33
|
-
|
34
|
-
gem install psych
|
32
|
+
If you want a newer gem release of Psych, you can use RubyGems:
|
35
33
|
|
34
|
+
```bash
|
35
|
+
gem install psych
|
36
|
+
```
|
36
37
|
|
37
38
|
Psych supported the static build with specific version of libyaml sources. You can build psych with libyaml-0.2.5 like this.
|
38
39
|
|
39
|
-
|
40
|
+
```bash
|
41
|
+
gem install psych -- --with-libyaml-source-dir=/path/to/libyaml-0.2.5
|
42
|
+
```
|
40
43
|
|
41
44
|
In order to use the gem release in your app, and not the stdlib version,
|
42
45
|
you'll need the following:
|
43
46
|
|
44
|
-
|
45
|
-
|
47
|
+
```ruby
|
48
|
+
gem 'psych'
|
49
|
+
require 'psych'
|
50
|
+
```
|
46
51
|
|
47
52
|
Or if you use Bundler add this to your `Gemfile`:
|
48
53
|
|
49
|
-
|
54
|
+
```ruby
|
55
|
+
gem 'psych'
|
56
|
+
```
|
50
57
|
|
51
58
|
JRuby ships with a pure Java implementation of Psych.
|
52
59
|
|
data/ext/psych/psych.c
CHANGED
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,
|
@@ -586,4 +587,3 @@ void Init_psych_emitter(void)
|
|
586
587
|
id_indentation = rb_intern("indentation");
|
587
588
|
id_canonical = rb_intern("canonical");
|
588
589
|
}
|
589
|
-
/* vim: set noet sws=4 sw=4: */
|
data/ext/psych/psych_parser.c
CHANGED
data/ext/psych/psych_to_ruby.c
CHANGED
data/ext/psych/psych_yaml_tree.c
CHANGED
data/lib/psych/versions.rb
CHANGED
data/lib/psych.jar
CHANGED
Binary file
|
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,15 @@
|
|
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.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
8
8
|
- SHIBATA Hiroshi
|
9
9
|
- Charles Oliver Nutter
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: jar-dependencies
|
@@ -117,7 +116,6 @@ licenses:
|
|
117
116
|
metadata:
|
118
117
|
msys2_mingw_dependencies: libyaml
|
119
118
|
changelog_uri: https://github.com/ruby/psych/releases
|
120
|
-
post_install_message:
|
121
119
|
rdoc_options:
|
122
120
|
- "--main"
|
123
121
|
- README.md
|
@@ -134,9 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
132
|
- !ruby/object:Gem::Version
|
135
133
|
version: '0'
|
136
134
|
requirements:
|
137
|
-
- jar org.snakeyaml:snakeyaml-engine, 2.
|
138
|
-
rubygems_version: 3.
|
139
|
-
signing_key:
|
135
|
+
- jar org.snakeyaml:snakeyaml-engine, 2.9
|
136
|
+
rubygems_version: 3.6.3
|
140
137
|
specification_version: 4
|
141
138
|
summary: Psych is a YAML parser and emitter
|
142
139
|
test_files: []
|