psych 2.0.17-java → 2.1.0-java

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 (95) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -11
  3. data/Rakefile +27 -119
  4. data/ext/psych/extconf.rb +1 -0
  5. data/ext/psych/yaml/loader.c +2 -2
  6. data/ext/psych/yaml/scanner.c +17 -17
  7. data/lib/psych.rb +14 -8
  8. data/lib/psych/class_loader.rb +1 -0
  9. data/lib/psych/coder.rb +1 -0
  10. data/lib/psych/core_ext.rb +1 -0
  11. data/lib/psych/deprecated.rb +1 -0
  12. data/lib/psych/exception.rb +1 -0
  13. data/lib/psych/handler.rb +1 -0
  14. data/lib/psych/handlers/document_stream.rb +1 -0
  15. data/lib/psych/handlers/recorder.rb +1 -0
  16. data/lib/psych/json/ruby_events.rb +1 -0
  17. data/lib/psych/json/stream.rb +1 -0
  18. data/lib/psych/json/tree_builder.rb +1 -0
  19. data/lib/psych/json/yaml_events.rb +1 -0
  20. data/lib/psych/nodes.rb +1 -0
  21. data/lib/psych/nodes/alias.rb +1 -0
  22. data/lib/psych/nodes/document.rb +1 -0
  23. data/lib/psych/nodes/mapping.rb +1 -0
  24. data/lib/psych/nodes/node.rb +1 -0
  25. data/lib/psych/nodes/scalar.rb +1 -0
  26. data/lib/psych/nodes/sequence.rb +1 -0
  27. data/lib/psych/nodes/stream.rb +1 -0
  28. data/lib/psych/omap.rb +1 -0
  29. data/lib/psych/parser.rb +1 -0
  30. data/lib/psych/scalar_scanner.rb +2 -1
  31. data/lib/psych/set.rb +1 -0
  32. data/lib/psych/stream.rb +1 -0
  33. data/lib/psych/streaming.rb +1 -0
  34. data/lib/psych/syntax_error.rb +1 -0
  35. data/lib/psych/tree_builder.rb +1 -0
  36. data/lib/psych/versions.rb +1 -0
  37. data/lib/psych/visitors.rb +1 -0
  38. data/lib/psych/visitors/depth_first.rb +1 -0
  39. data/lib/psych/visitors/emitter.rb +1 -0
  40. data/lib/psych/visitors/json_tree.rb +1 -0
  41. data/lib/psych/visitors/to_ruby.rb +1 -0
  42. data/lib/psych/visitors/visitor.rb +1 -0
  43. data/lib/psych/visitors/yaml_tree.rb +3 -2
  44. data/lib/psych/y.rb +1 -0
  45. data/lib/psych_jars.rb +1 -0
  46. data/test/psych/handlers/test_recorder.rb +1 -0
  47. data/test/psych/helper.rb +1 -0
  48. data/test/psych/json/test_stream.rb +1 -0
  49. data/test/psych/nodes/test_enumerable.rb +1 -0
  50. data/test/psych/test_alias_and_anchor.rb +1 -0
  51. data/test/psych/test_array.rb +1 -0
  52. data/test/psych/test_boolean.rb +1 -0
  53. data/test/psych/test_class.rb +1 -0
  54. data/test/psych/test_coder.rb +1 -0
  55. data/test/psych/test_date_time.rb +1 -0
  56. data/test/psych/test_deprecated.rb +1 -0
  57. data/test/psych/test_document.rb +1 -0
  58. data/test/psych/test_emitter.rb +19 -0
  59. data/test/psych/test_encoding.rb +1 -0
  60. data/test/psych/test_exception.rb +1 -0
  61. data/test/psych/test_hash.rb +1 -0
  62. data/test/psych/test_json_tree.rb +1 -0
  63. data/test/psych/test_merge_keys.rb +1 -0
  64. data/test/psych/test_nil.rb +1 -0
  65. data/test/psych/test_null.rb +1 -0
  66. data/test/psych/test_numeric.rb +1 -0
  67. data/test/psych/test_object.rb +1 -0
  68. data/test/psych/test_object_references.rb +1 -0
  69. data/test/psych/test_omap.rb +1 -0
  70. data/test/psych/test_parser.rb +1 -0
  71. data/test/psych/test_psych.rb +6 -0
  72. data/test/psych/test_safe_load.rb +1 -0
  73. data/test/psych/test_scalar.rb +1 -0
  74. data/test/psych/test_scalar_scanner.rb +5 -0
  75. data/test/psych/test_serialize_subclasses.rb +1 -0
  76. data/test/psych/test_set.rb +1 -0
  77. data/test/psych/test_stream.rb +1 -0
  78. data/test/psych/test_string.rb +5 -0
  79. data/test/psych/test_struct.rb +1 -0
  80. data/test/psych/test_symbol.rb +1 -0
  81. data/test/psych/test_tainted.rb +1 -0
  82. data/test/psych/test_to_yaml_properties.rb +1 -0
  83. data/test/psych/test_tree_builder.rb +1 -0
  84. data/test/psych/test_yaml.rb +1 -0
  85. data/test/psych/test_yamldbm.rb +1 -0
  86. data/test/psych/test_yamlstore.rb +1 -0
  87. data/test/psych/visitors/test_depth_first.rb +1 -0
  88. data/test/psych/visitors/test_emitter.rb +1 -0
  89. data/test/psych/visitors/test_to_ruby.rb +1 -0
  90. data/test/psych/visitors/test_yaml_tree.rb +7 -0
  91. metadata +27 -44
  92. data/.autotest +0 -18
  93. data/.gemtest +0 -0
  94. data/Manifest.txt +0 -114
  95. data/lib/psych.jar +0 -0
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require_relative 'helper'
2
3
 
3
4
  class PsychStructWithIvar < Struct.new(:foo)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require_relative 'helper'
2
3
 
3
4
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require_relative 'helper'
2
3
 
3
4
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require_relative 'helper'
2
3
 
3
4
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require_relative 'helper'
2
3
 
3
4
  module Psych
@@ -1,4 +1,5 @@
1
1
  # -*- coding: us-ascii; mode: ruby; ruby-indent-level: 4; tab-width: 4 -*-
2
+ # frozen_string_literal: false
2
3
  # vim:sw=4:ts=4
3
4
  # $Id$
4
5
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require_relative 'helper'
2
3
  require 'tmpdir'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require_relative 'helper'
2
3
  require 'yaml/store'
3
4
  require 'tmpdir'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/helper'
2
3
 
3
4
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/helper'
2
3
 
3
4
  module Psych
@@ -1,4 +1,5 @@
1
1
  # coding: US-ASCII
2
+ # frozen_string_literal: false
2
3
  require 'psych/helper'
3
4
 
4
5
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/helper'
2
3
 
3
4
  module Psych
@@ -155,6 +156,12 @@ module Psych
155
156
  assert_equal(-1, Psych.load(Psych.dump(-1 / 0.0)).infinite?)
156
157
  end
157
158
 
159
+ def test_string
160
+ assert_match(/'017'/, Psych.dump({'a' => '017'}))
161
+ assert_match(/'019'/, Psych.dump({'a' => '019'}))
162
+ assert_match(/'01818'/, Psych.dump({'a' => '01818'}))
163
+ end
164
+
158
165
  # http://yaml.org/type/null.html
159
166
  def test_nil
160
167
  assert_cycle nil
metadata CHANGED
@@ -1,85 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psych
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17
4
+ version: 2.1.0
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson
8
+ - SHIBATA Hiroshi
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
12
+ date: 2016-06-24 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: jar-dependencies
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.1.7
20
15
  requirement: !ruby/object:Gem::Requirement
21
16
  requirements:
22
17
  - - ">="
23
18
  - !ruby/object:Gem::Version
24
- version: 0.1.7
25
- prerelease: false
26
- type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: rdoc
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '4.0'
34
- requirement: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - "~>"
37
- - !ruby/object:Gem::Version
38
- version: '4.0'
19
+ version: 0.4.1
20
+ name: rake-compiler
39
21
  prerelease: false
40
22
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: rake-compiler
43
23
  version_requirements: !ruby/object:Gem::Requirement
44
24
  requirements:
45
25
  - - ">="
46
26
  - !ruby/object:Gem::Version
47
27
  version: 0.4.1
28
+ - !ruby/object:Gem::Dependency
48
29
  requirement: !ruby/object:Gem::Requirement
49
30
  requirements:
50
- - - ">="
31
+ - - "~>"
51
32
  - !ruby/object:Gem::Version
52
- version: 0.4.1
33
+ version: '5.0'
34
+ name: minitest
53
35
  prerelease: false
54
36
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
37
  version_requirements: !ruby/object:Gem::Requirement
58
38
  requirements:
59
39
  - - "~>"
60
40
  - !ruby/object:Gem::Version
61
41
  version: '5.0'
42
+ - !ruby/object:Gem::Dependency
62
43
  requirement: !ruby/object:Gem::Requirement
63
44
  requirements:
64
- - - "~>"
45
+ - - ">="
65
46
  - !ruby/object:Gem::Version
66
- version: '5.0'
47
+ version: 0.1.7
48
+ name: jar-dependencies
67
49
  prerelease: false
68
- type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: hoe
50
+ type: :runtime
71
51
  version_requirements: !ruby/object:Gem::Requirement
72
52
  requirements:
73
- - - "~>"
53
+ - - ">="
74
54
  - !ruby/object:Gem::Version
75
- version: '3.13'
55
+ version: 0.1.7
56
+ - !ruby/object:Gem::Dependency
76
57
  requirement: !ruby/object:Gem::Requirement
77
58
  requirements:
78
- - - "~>"
59
+ - - ">="
79
60
  - !ruby/object:Gem::Version
80
- version: '3.13'
61
+ version: '0'
62
+ name: ruby-maven
81
63
  prerelease: false
82
64
  type: :development
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
83
70
  description: |-
84
71
  Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
85
72
  for its YAML parsing and emitting capabilities. In addition to wrapping
@@ -87,18 +74,15 @@ description: |-
87
74
  to and from the YAML format.
88
75
  email:
89
76
  - aaron@tenderlovemaking.com
77
+ - hsbt@ruby-lang.org
90
78
  executables: []
91
79
  extensions: []
92
80
  extra_rdoc_files:
93
81
  - CHANGELOG.rdoc
94
- - Manifest.txt
95
82
  - README.rdoc
96
83
  files:
97
- - ".autotest"
98
- - ".gemtest"
99
84
  - ".travis.yml"
100
85
  - CHANGELOG.rdoc
101
- - Manifest.txt
102
86
  - README.rdoc
103
87
  - Rakefile
104
88
  - ext/psych/depend
@@ -125,7 +109,6 @@ files:
125
109
  - ext/psych/yaml/writer.c
126
110
  - ext/psych/yaml/yaml.h
127
111
  - ext/psych/yaml/yaml_private.h
128
- - lib/psych.jar
129
112
  - lib/psych.rb
130
113
  - lib/psych/class_loader.rb
131
114
  - lib/psych/coder.rb
@@ -233,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
216
  requirements:
234
217
  - jar org.yaml:snakeyaml, 1.14
235
218
  rubyforge_project:
236
- rubygems_version: 2.4.8
219
+ rubygems_version: 2.6.4
237
220
  signing_key:
238
221
  specification_version: 4
239
222
  summary: Psych is a YAML parser and emitter
data/.autotest DELETED
@@ -1,18 +0,0 @@
1
- require "autotest/restart"
2
- require 'rbconfig'
3
-
4
- Autotest.add_hook :initialize do |at|
5
- at.find_directories = ARGV unless ARGV.empty?
6
- at.testlib = "minitest/autorun"
7
- end
8
-
9
- Autotest.add_hook :run_command do |at|
10
- at.unit_diff = 'cat'
11
- system "ruby -S rake compile"
12
- end
13
-
14
- Autotest.add_hook :ran_command do |at|
15
- File.open('/tmp/autotest.txt', 'wb') { |f|
16
- f.write(at.results.join)
17
- }
18
- end
data/.gemtest DELETED
File without changes
@@ -1,114 +0,0 @@
1
- .autotest
2
- .travis.yml
3
- CHANGELOG.rdoc
4
- Manifest.txt
5
- README.rdoc
6
- Rakefile
7
- ext/psych/depend
8
- ext/psych/extconf.rb
9
- ext/psych/psych.c
10
- ext/psych/psych.h
11
- ext/psych/psych_emitter.c
12
- ext/psych/psych_emitter.h
13
- ext/psych/psych_parser.c
14
- ext/psych/psych_parser.h
15
- ext/psych/psych_to_ruby.c
16
- ext/psych/psych_to_ruby.h
17
- ext/psych/psych_yaml_tree.c
18
- ext/psych/psych_yaml_tree.h
19
- ext/psych/yaml/LICENSE
20
- ext/psych/yaml/api.c
21
- ext/psych/yaml/config.h
22
- ext/psych/yaml/dumper.c
23
- ext/psych/yaml/emitter.c
24
- ext/psych/yaml/loader.c
25
- ext/psych/yaml/parser.c
26
- ext/psych/yaml/reader.c
27
- ext/psych/yaml/scanner.c
28
- ext/psych/yaml/writer.c
29
- ext/psych/yaml/yaml.h
30
- ext/psych/yaml/yaml_private.h
31
- lib/psych.rb
32
- lib/psych/class_loader.rb
33
- lib/psych/coder.rb
34
- lib/psych/core_ext.rb
35
- lib/psych/deprecated.rb
36
- lib/psych/exception.rb
37
- lib/psych/handler.rb
38
- lib/psych/handlers/document_stream.rb
39
- lib/psych/handlers/recorder.rb
40
- lib/psych/json/ruby_events.rb
41
- lib/psych/json/stream.rb
42
- lib/psych/json/tree_builder.rb
43
- lib/psych/json/yaml_events.rb
44
- lib/psych/nodes.rb
45
- lib/psych/nodes/alias.rb
46
- lib/psych/nodes/document.rb
47
- lib/psych/nodes/mapping.rb
48
- lib/psych/nodes/node.rb
49
- lib/psych/nodes/scalar.rb
50
- lib/psych/nodes/sequence.rb
51
- lib/psych/nodes/stream.rb
52
- lib/psych/omap.rb
53
- lib/psych/parser.rb
54
- lib/psych/scalar_scanner.rb
55
- lib/psych/set.rb
56
- lib/psych/stream.rb
57
- lib/psych/streaming.rb
58
- lib/psych/syntax_error.rb
59
- lib/psych/tree_builder.rb
60
- lib/psych/versions.rb
61
- lib/psych/visitors.rb
62
- lib/psych/visitors/depth_first.rb
63
- lib/psych/visitors/emitter.rb
64
- lib/psych/visitors/json_tree.rb
65
- lib/psych/visitors/to_ruby.rb
66
- lib/psych/visitors/visitor.rb
67
- lib/psych/visitors/yaml_tree.rb
68
- lib/psych/y.rb
69
- lib/psych_jars.rb
70
- test/psych/handlers/test_recorder.rb
71
- test/psych/helper.rb
72
- test/psych/json/test_stream.rb
73
- test/psych/nodes/test_enumerable.rb
74
- test/psych/test_alias_and_anchor.rb
75
- test/psych/test_array.rb
76
- test/psych/test_boolean.rb
77
- test/psych/test_class.rb
78
- test/psych/test_coder.rb
79
- test/psych/test_date_time.rb
80
- test/psych/test_deprecated.rb
81
- test/psych/test_document.rb
82
- test/psych/test_emitter.rb
83
- test/psych/test_encoding.rb
84
- test/psych/test_exception.rb
85
- test/psych/test_hash.rb
86
- test/psych/test_json_tree.rb
87
- test/psych/test_merge_keys.rb
88
- test/psych/test_nil.rb
89
- test/psych/test_null.rb
90
- test/psych/test_numeric.rb
91
- test/psych/test_object.rb
92
- test/psych/test_object_references.rb
93
- test/psych/test_omap.rb
94
- test/psych/test_parser.rb
95
- test/psych/test_psych.rb
96
- test/psych/test_safe_load.rb
97
- test/psych/test_scalar.rb
98
- test/psych/test_scalar_scanner.rb
99
- test/psych/test_serialize_subclasses.rb
100
- test/psych/test_set.rb
101
- test/psych/test_stream.rb
102
- test/psych/test_string.rb
103
- test/psych/test_struct.rb
104
- test/psych/test_symbol.rb
105
- test/psych/test_tainted.rb
106
- test/psych/test_to_yaml_properties.rb
107
- test/psych/test_tree_builder.rb
108
- test/psych/test_yaml.rb
109
- test/psych/test_yamldbm.rb
110
- test/psych/test_yamlstore.rb
111
- test/psych/visitors/test_depth_first.rb
112
- test/psych/visitors/test_emitter.rb
113
- test/psych/visitors/test_to_ruby.rb
114
- test/psych/visitors/test_yaml_tree.rb
Binary file