psych 2.2.1 → 5.1.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.
Files changed (70) hide show
  1. checksums.yaml +5 -5
  2. data/CONTRIBUTING.md +24 -0
  3. data/{ext/psych/yaml/LICENSE → LICENSE} +9 -7
  4. data/README.md +13 -13
  5. data/ext/psych/depend +14 -0
  6. data/ext/psych/extconf.rb +43 -29
  7. data/ext/psych/psych.c +6 -3
  8. data/ext/psych/psych_emitter.c +10 -9
  9. data/ext/psych/psych_parser.c +69 -72
  10. data/ext/psych/psych_yaml_tree.c +0 -12
  11. data/lib/psych/class_loader.rb +11 -9
  12. data/lib/psych/coder.rb +1 -1
  13. data/lib/psych/core_ext.rb +3 -20
  14. data/lib/psych/exception.rb +17 -3
  15. data/lib/psych/handler.rb +8 -3
  16. data/lib/psych/handlers/document_stream.rb +2 -2
  17. data/lib/psych/handlers/recorder.rb +2 -2
  18. data/lib/psych/json/ruby_events.rb +1 -1
  19. data/lib/psych/json/stream.rb +3 -3
  20. data/lib/psych/json/tree_builder.rb +2 -2
  21. data/lib/psych/json/yaml_events.rb +1 -1
  22. data/lib/psych/nodes/alias.rb +3 -1
  23. data/lib/psych/nodes/document.rb +3 -1
  24. data/lib/psych/nodes/mapping.rb +3 -1
  25. data/lib/psych/nodes/node.rb +24 -5
  26. data/lib/psych/nodes/scalar.rb +4 -2
  27. data/lib/psych/nodes/sequence.rb +3 -1
  28. data/lib/psych/nodes/stream.rb +3 -1
  29. data/lib/psych/nodes.rb +8 -8
  30. data/lib/psych/omap.rb +1 -1
  31. data/lib/psych/parser.rb +14 -1
  32. data/lib/psych/scalar_scanner.rb +39 -47
  33. data/lib/psych/set.rb +1 -1
  34. data/lib/psych/stream.rb +1 -1
  35. data/lib/psych/streaming.rb +1 -1
  36. data/lib/psych/syntax_error.rb +2 -2
  37. data/lib/psych/tree_builder.rb +48 -8
  38. data/lib/psych/versions.rb +5 -4
  39. data/lib/psych/visitors/depth_first.rb +1 -1
  40. data/lib/psych/visitors/emitter.rb +1 -1
  41. data/lib/psych/visitors/json_tree.rb +2 -2
  42. data/lib/psych/visitors/to_ruby.rb +61 -31
  43. data/lib/psych/visitors/visitor.rb +18 -4
  44. data/lib/psych/visitors/yaml_tree.rb +111 -123
  45. data/lib/psych/visitors.rb +7 -7
  46. data/lib/psych/y.rb +1 -1
  47. data/lib/psych.rb +333 -96
  48. metadata +16 -52
  49. data/.gitignore +0 -14
  50. data/.travis.yml +0 -18
  51. data/CHANGELOG.rdoc +0 -576
  52. data/Gemfile +0 -3
  53. data/Mavenfile +0 -7
  54. data/Rakefile +0 -33
  55. data/bin/console +0 -7
  56. data/bin/setup +0 -6
  57. data/ext/psych/.gitignore +0 -11
  58. data/ext/psych/yaml/api.c +0 -1392
  59. data/ext/psych/yaml/config.h +0 -10
  60. data/ext/psych/yaml/dumper.c +0 -394
  61. data/ext/psych/yaml/emitter.c +0 -2329
  62. data/ext/psych/yaml/loader.c +0 -444
  63. data/ext/psych/yaml/parser.c +0 -1374
  64. data/ext/psych/yaml/reader.c +0 -469
  65. data/ext/psych/yaml/scanner.c +0 -3576
  66. data/ext/psych/yaml/writer.c +0 -141
  67. data/ext/psych/yaml/yaml.h +0 -1971
  68. data/ext/psych/yaml/yaml_private.h +0 -662
  69. data/lib/psych/deprecated.rb +0 -86
  70. data/psych.gemspec +0 -43
metadata CHANGED
@@ -1,47 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psych
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 5.1.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: 2016-11-14 00:00:00.000000000 Z
13
+ date: 2023-12-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rake-compiler
16
+ name: stringio
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.1
22
- type: :development
21
+ version: '0'
22
+ type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 0.4.1
29
- - !ruby/object:Gem::Dependency
30
- name: minitest
31
- requirement: !ruby/object:Gem::Requirement
32
- requirements:
33
- - - "~>"
34
- - !ruby/object:Gem::Version
35
- version: '5.0'
36
- type: :development
37
- prerelease: false
38
- version_requirements: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: '5.0'
28
+ version: '0'
43
29
  description: |
44
- Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
30
+ Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML]
45
31
  for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
46
32
  Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
47
33
  email:
@@ -52,19 +38,11 @@ executables: []
52
38
  extensions:
53
39
  - ext/psych/extconf.rb
54
40
  extra_rdoc_files:
55
- - CHANGELOG.rdoc
56
41
  - README.md
57
42
  files:
58
- - ".gitignore"
59
- - ".travis.yml"
60
- - CHANGELOG.rdoc
61
- - Gemfile
62
- - Mavenfile
43
+ - CONTRIBUTING.md
44
+ - LICENSE
63
45
  - README.md
64
- - Rakefile
65
- - bin/console
66
- - bin/setup
67
- - ext/psych/.gitignore
68
46
  - ext/psych/depend
69
47
  - ext/psych/extconf.rb
70
48
  - ext/psych/psych.c
@@ -77,23 +55,10 @@ files:
77
55
  - ext/psych/psych_to_ruby.h
78
56
  - ext/psych/psych_yaml_tree.c
79
57
  - ext/psych/psych_yaml_tree.h
80
- - ext/psych/yaml/LICENSE
81
- - ext/psych/yaml/api.c
82
- - ext/psych/yaml/config.h
83
- - ext/psych/yaml/dumper.c
84
- - ext/psych/yaml/emitter.c
85
- - ext/psych/yaml/loader.c
86
- - ext/psych/yaml/parser.c
87
- - ext/psych/yaml/reader.c
88
- - ext/psych/yaml/scanner.c
89
- - ext/psych/yaml/writer.c
90
- - ext/psych/yaml/yaml.h
91
- - ext/psych/yaml/yaml_private.h
92
58
  - lib/psych.rb
93
59
  - lib/psych/class_loader.rb
94
60
  - lib/psych/coder.rb
95
61
  - lib/psych/core_ext.rb
96
- - lib/psych/deprecated.rb
97
62
  - lib/psych/exception.rb
98
63
  - lib/psych/handler.rb
99
64
  - lib/psych/handlers/document_stream.rb
@@ -127,12 +92,12 @@ files:
127
92
  - lib/psych/visitors/visitor.rb
128
93
  - lib/psych/visitors/yaml_tree.rb
129
94
  - lib/psych/y.rb
130
- - psych.gemspec
131
95
  homepage: https://github.com/ruby/psych
132
96
  licenses:
133
97
  - MIT
134
- metadata: {}
135
- post_install_message:
98
+ metadata:
99
+ msys2_mingw_dependencies: libyaml
100
+ post_install_message:
136
101
  rdoc_options:
137
102
  - "--main"
138
103
  - README.md
@@ -142,16 +107,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
107
  requirements:
143
108
  - - ">="
144
109
  - !ruby/object:Gem::Version
145
- version: 1.9.2
110
+ version: 2.5.0
146
111
  required_rubygems_version: !ruby/object:Gem::Requirement
147
112
  requirements:
148
113
  - - ">="
149
114
  - !ruby/object:Gem::Version
150
115
  version: '0'
151
116
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.6.8
154
- signing_key:
117
+ rubygems_version: 3.5.1
118
+ signing_key:
155
119
  specification_version: 4
156
120
  summary: Psych is a YAML parser and emitter
157
121
  test_files: []
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- *.swp
2
- *.bundle
3
- *.jar
4
- *.class
5
- .mvn
6
- /.bundle/
7
- /.yardoc
8
- /Gemfile.lock
9
- /_yardoc/
10
- /coverage/
11
- /doc/
12
- /pkg/
13
- /spec/reports/
14
- /tmp/
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- rvm:
2
- - 2.0.0
3
- - 2.1
4
- - 2.2
5
- - 2.3.0
6
- - ruby-head
7
- - jruby-9.1.6.0
8
-
9
- matrix:
10
- allow_failures:
11
- - rvm: jruby-9.1.6.0
12
-
13
- before_install: gem install bundler --no-document
14
-
15
- addons:
16
- apt:
17
- packages:
18
- - haveged