psych 3.3.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Mavenfile +1 -1
  4. data/README.md +6 -5
  5. data/Rakefile +11 -4
  6. data/ext/psych/depend +13 -1
  7. data/ext/psych/extconf.rb +40 -30
  8. data/ext/psych/psych_parser.c +19 -33
  9. data/lib/psych/class_loader.rb +5 -5
  10. data/lib/psych/core_ext.rb +1 -1
  11. data/lib/psych/exception.rb +16 -2
  12. data/lib/psych/handler.rb +1 -1
  13. data/lib/psych/handlers/document_stream.rb +1 -1
  14. data/lib/psych/handlers/recorder.rb +1 -1
  15. data/lib/psych/json/stream.rb +2 -2
  16. data/lib/psych/json/tree_builder.rb +1 -1
  17. data/lib/psych/nodes/node.rb +4 -4
  18. data/lib/psych/nodes/scalar.rb +1 -1
  19. data/lib/psych/nodes.rb +7 -7
  20. data/lib/psych/parser.rb +13 -0
  21. data/lib/psych/scalar_scanner.rb +22 -16
  22. data/lib/psych/syntax_error.rb +1 -1
  23. data/lib/psych/tree_builder.rb +3 -3
  24. data/lib/psych/versions.rb +3 -3
  25. data/lib/psych/visitors/json_tree.rb +1 -1
  26. data/lib/psych/visitors/to_ruby.rb +19 -15
  27. data/lib/psych/visitors/visitor.rb +1 -1
  28. data/lib/psych/visitors/yaml_tree.rb +61 -13
  29. data/lib/psych/visitors.rb +6 -6
  30. data/lib/psych.rb +162 -84
  31. data/psych.gemspec +5 -5
  32. metadata +20 -17
  33. data/ext/psych/yaml/LICENSE +0 -19
  34. data/ext/psych/yaml/api.c +0 -1393
  35. data/ext/psych/yaml/config.h +0 -80
  36. data/ext/psych/yaml/dumper.c +0 -394
  37. data/ext/psych/yaml/emitter.c +0 -2358
  38. data/ext/psych/yaml/loader.c +0 -544
  39. data/ext/psych/yaml/parser.c +0 -1375
  40. data/ext/psych/yaml/reader.c +0 -469
  41. data/ext/psych/yaml/scanner.c +0 -3598
  42. data/ext/psych/yaml/writer.c +0 -141
  43. data/ext/psych/yaml/yaml.h +0 -1985
  44. data/ext/psych/yaml/yaml_private.h +0 -688
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: 3.3.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
@@ -10,8 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-12-23 00:00:00.000000000 Z
14
- dependencies: []
13
+ date: 2023-02-07 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: stringio
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
15
29
  description: |
16
30
  Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML]
17
31
  for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
@@ -46,18 +60,6 @@ files:
46
60
  - ext/psych/psych_to_ruby.h
47
61
  - ext/psych/psych_yaml_tree.c
48
62
  - ext/psych/psych_yaml_tree.h
49
- - ext/psych/yaml/LICENSE
50
- - ext/psych/yaml/api.c
51
- - ext/psych/yaml/config.h
52
- - ext/psych/yaml/dumper.c
53
- - ext/psych/yaml/emitter.c
54
- - ext/psych/yaml/loader.c
55
- - ext/psych/yaml/parser.c
56
- - ext/psych/yaml/reader.c
57
- - ext/psych/yaml/scanner.c
58
- - ext/psych/yaml/writer.c
59
- - ext/psych/yaml/yaml.h
60
- - ext/psych/yaml/yaml_private.h
61
63
  - lib/psych.rb
62
64
  - lib/psych/class_loader.rb
63
65
  - lib/psych/coder.rb
@@ -99,7 +101,8 @@ files:
99
101
  homepage: https://github.com/ruby/psych
100
102
  licenses:
101
103
  - MIT
102
- metadata: {}
104
+ metadata:
105
+ msys2_mingw_dependencies: libyaml
103
106
  post_install_message:
104
107
  rdoc_options:
105
108
  - "--main"
@@ -117,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
120
  - !ruby/object:Gem::Version
118
121
  version: '0'
119
122
  requirements: []
120
- rubygems_version: 3.2.2
123
+ rubygems_version: 3.3.26
121
124
  signing_key:
122
125
  specification_version: 4
123
126
  summary: Psych is a YAML parser and emitter
@@ -1,19 +0,0 @@
1
- Copyright (c) 2006 Kirill Simonov
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in
5
- the Software without restriction, including without limitation the rights to
6
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
- of the Software, and to permit persons to whom the Software is furnished to do
8
- so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.