psych-with-location 3.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.travis.yml +20 -0
  4. data/CHANGELOG.rdoc +576 -0
  5. data/Gemfile +3 -0
  6. data/Mavenfile +7 -0
  7. data/README.md +73 -0
  8. data/Rakefile +46 -0
  9. data/bin/console +7 -0
  10. data/bin/setup +6 -0
  11. data/ext/psych/.gitignore +11 -0
  12. data/ext/psych/depend +3 -0
  13. data/ext/psych/extconf.rb +39 -0
  14. data/ext/psych/psych.c +34 -0
  15. data/ext/psych/psych.h +17 -0
  16. data/ext/psych/psych_emitter.c +554 -0
  17. data/ext/psych/psych_emitter.h +8 -0
  18. data/ext/psych/psych_parser.c +591 -0
  19. data/ext/psych/psych_parser.h +6 -0
  20. data/ext/psych/psych_to_ruby.c +39 -0
  21. data/ext/psych/psych_to_ruby.h +8 -0
  22. data/ext/psych/psych_yaml_tree.c +24 -0
  23. data/ext/psych/psych_yaml_tree.h +8 -0
  24. data/ext/psych/yaml/LICENSE +19 -0
  25. data/ext/psych/yaml/api.c +1392 -0
  26. data/ext/psych/yaml/config.h +10 -0
  27. data/ext/psych/yaml/dumper.c +394 -0
  28. data/ext/psych/yaml/emitter.c +2329 -0
  29. data/ext/psych/yaml/loader.c +444 -0
  30. data/ext/psych/yaml/parser.c +1374 -0
  31. data/ext/psych/yaml/reader.c +469 -0
  32. data/ext/psych/yaml/scanner.c +3576 -0
  33. data/ext/psych/yaml/writer.c +141 -0
  34. data/ext/psych/yaml/yaml.h +1971 -0
  35. data/ext/psych/yaml/yaml_private.h +662 -0
  36. data/lib/psych.rb +511 -0
  37. data/lib/psych/class_loader.rb +102 -0
  38. data/lib/psych/coder.rb +95 -0
  39. data/lib/psych/core_ext.rb +19 -0
  40. data/lib/psych/exception.rb +14 -0
  41. data/lib/psych/handler.rb +255 -0
  42. data/lib/psych/handlers/document_stream.rb +23 -0
  43. data/lib/psych/handlers/recorder.rb +40 -0
  44. data/lib/psych/json/ruby_events.rb +20 -0
  45. data/lib/psych/json/stream.rb +17 -0
  46. data/lib/psych/json/tree_builder.rb +13 -0
  47. data/lib/psych/json/yaml_events.rb +30 -0
  48. data/lib/psych/nodes.rb +78 -0
  49. data/lib/psych/nodes/alias.rb +19 -0
  50. data/lib/psych/nodes/document.rb +61 -0
  51. data/lib/psych/nodes/mapping.rb +57 -0
  52. data/lib/psych/nodes/node.rb +68 -0
  53. data/lib/psych/nodes/scalar.rb +68 -0
  54. data/lib/psych/nodes/sequence.rb +82 -0
  55. data/lib/psych/nodes/stream.rb +38 -0
  56. data/lib/psych/omap.rb +5 -0
  57. data/lib/psych/parser.rb +52 -0
  58. data/lib/psych/scalar_scanner.rb +149 -0
  59. data/lib/psych/set.rb +5 -0
  60. data/lib/psych/stream.rb +38 -0
  61. data/lib/psych/streaming.rb +28 -0
  62. data/lib/psych/syntax_error.rb +22 -0
  63. data/lib/psych/tree_builder.rb +137 -0
  64. data/lib/psych/versions.rb +9 -0
  65. data/lib/psych/visitors.rb +7 -0
  66. data/lib/psych/visitors/depth_first.rb +27 -0
  67. data/lib/psych/visitors/emitter.rb +52 -0
  68. data/lib/psych/visitors/json_tree.rb +25 -0
  69. data/lib/psych/visitors/to_ruby.rb +401 -0
  70. data/lib/psych/visitors/visitor.rb +20 -0
  71. data/lib/psych/visitors/yaml_tree.rb +551 -0
  72. data/lib/psych/y.rb +10 -0
  73. data/psych-with-location.gemspec +66 -0
  74. metadata +174 -0
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+ module Kernel
3
+ ###
4
+ # An alias for Psych.dump_stream meant to be used with IRB.
5
+ def y *objects
6
+ puts Psych.dump_stream(*objects)
7
+ end
8
+ private :y
9
+ end
10
+
@@ -0,0 +1,66 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # frozen_string_literal: true
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "psych-with-location"
6
+ s.version = "3.0.0.beta3"
7
+ s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter", "Ary Borenszweig"]
8
+ s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com", "asterite@gmail.com"]
9
+ s.date = "2017-08-02"
10
+ s.summary = "Psych is a YAML parser and emitter"
11
+ s.description = <<-DESCRIPTION
12
+ Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
13
+ for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
14
+ Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
15
+
16
+ This fork provides precise location information to Psych::Handler and Psych::Nodes::Node.
17
+ DESCRIPTION
18
+ s.homepage = "https://github.com/ruby/psych"
19
+ s.licenses = ["MIT"]
20
+ s.require_paths = ["lib"]
21
+
22
+ # for ruby core repository. It was generated by `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ s.files = [
24
+ ".gitignore", ".travis.yml", "CHANGELOG.rdoc", "Gemfile", "Mavenfile", "README.md", "Rakefile", "bin/console",
25
+ "bin/setup", "ext/psych/.gitignore", "ext/psych/depend", "ext/psych/extconf.rb", "ext/psych/psych.c", "ext/psych/psych.h",
26
+ "ext/psych/psych_emitter.c", "ext/psych/psych_emitter.h", "ext/psych/psych_parser.c", "ext/psych/psych_parser.h",
27
+ "ext/psych/psych_to_ruby.c", "ext/psych/psych_to_ruby.h", "ext/psych/psych_yaml_tree.c", "ext/psych/psych_yaml_tree.h",
28
+ "ext/psych/yaml/LICENSE", "ext/psych/yaml/api.c", "ext/psych/yaml/config.h", "ext/psych/yaml/dumper.c",
29
+ "ext/psych/yaml/emitter.c", "ext/psych/yaml/loader.c", "ext/psych/yaml/parser.c", "ext/psych/yaml/reader.c",
30
+ "ext/psych/yaml/scanner.c", "ext/psych/yaml/writer.c", "ext/psych/yaml/yaml.h", "ext/psych/yaml/yaml_private.h",
31
+ "lib/psych.rb", "lib/psych/class_loader.rb", "lib/psych/coder.rb", "lib/psych/core_ext.rb", "lib/psych/exception.rb",
32
+ "lib/psych/handler.rb", "lib/psych/handlers/document_stream.rb", "lib/psych/handlers/recorder.rb",
33
+ "lib/psych/json/ruby_events.rb", "lib/psych/json/stream.rb", "lib/psych/json/tree_builder.rb",
34
+ "lib/psych/json/yaml_events.rb", "lib/psych/nodes.rb", "lib/psych/nodes/alias.rb", "lib/psych/nodes/document.rb",
35
+ "lib/psych/nodes/mapping.rb", "lib/psych/nodes/node.rb", "lib/psych/nodes/scalar.rb", "lib/psych/nodes/sequence.rb",
36
+ "lib/psych/nodes/stream.rb", "lib/psych/omap.rb", "lib/psych/parser.rb", "lib/psych/scalar_scanner.rb",
37
+ "lib/psych/set.rb", "lib/psych/stream.rb", "lib/psych/streaming.rb", "lib/psych/syntax_error.rb",
38
+ "lib/psych/tree_builder.rb", "lib/psych/versions.rb", "lib/psych/visitors.rb","lib/psych/visitors/depth_first.rb",
39
+ "lib/psych/visitors/emitter.rb", "lib/psych/visitors/json_tree.rb", "lib/psych/visitors/to_ruby.rb",
40
+ "lib/psych/visitors/visitor.rb", "lib/psych/visitors/yaml_tree.rb", "lib/psych/y.rb", "psych-with-location.gemspec"
41
+ ]
42
+
43
+ s.rdoc_options = ["--main", "README.md"]
44
+ s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.md"]
45
+
46
+ s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
47
+ s.rubygems_version = "2.5.1"
48
+ s.required_rubygems_version = Gem::Requirement.new(">= 0")
49
+
50
+ s.add_development_dependency 'rake-compiler', ">= 0.4.1"
51
+ s.add_development_dependency 'minitest', "~> 5.0"
52
+
53
+ if RUBY_ENGINE == 'jruby'
54
+ s.platform = 'java'
55
+ s.files.concat [
56
+ "ext/java/PsychEmitter.java", "ext/java/PsychLibrary.java", "ext/java/PsychParser.java", "ext/java/PsychToRuby.java",
57
+ "ext/java/PsychYamlTree.java", "lib/psych_jars.rb", "lib/psych.jar"
58
+ ]
59
+ s.requirements = "jar org.yaml:snakeyaml, 1.18"
60
+ s.add_dependency 'jar-dependencies', '>= 0.1.7'
61
+ s.add_development_dependency 'ruby-maven'
62
+ else
63
+ s.extensions = ["ext/psych/extconf.rb"]
64
+ s.add_development_dependency 'rake-compiler-dock', ">= 0.6.1"
65
+ end
66
+ end
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: psych-with-location
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.0.beta3
5
+ platform: ruby
6
+ authors:
7
+ - Aaron Patterson
8
+ - SHIBATA Hiroshi
9
+ - Charles Oliver Nutter
10
+ - Ary Borenszweig
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2017-08-02 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rake-compiler
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.4.1
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.4.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: minitest
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '5.0'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '5.0'
44
+ - !ruby/object:Gem::Dependency
45
+ name: rake-compiler-dock
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.6.1
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 0.6.1
58
+ description: |
59
+ Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
60
+ for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
61
+ Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
62
+
63
+ This fork provides precise location information to Psych::Handler and Psych::Nodes::Node.
64
+ email:
65
+ - aaron@tenderlovemaking.com
66
+ - hsbt@ruby-lang.org
67
+ - headius@headius.com
68
+ - asterite@gmail.com
69
+ executables: []
70
+ extensions:
71
+ - ext/psych/extconf.rb
72
+ extra_rdoc_files:
73
+ - CHANGELOG.rdoc
74
+ - README.md
75
+ files:
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
+ - CHANGELOG.rdoc
79
+ - Gemfile
80
+ - Mavenfile
81
+ - README.md
82
+ - Rakefile
83
+ - bin/console
84
+ - bin/setup
85
+ - ext/psych/.gitignore
86
+ - ext/psych/depend
87
+ - ext/psych/extconf.rb
88
+ - ext/psych/psych.c
89
+ - ext/psych/psych.h
90
+ - ext/psych/psych_emitter.c
91
+ - ext/psych/psych_emitter.h
92
+ - ext/psych/psych_parser.c
93
+ - ext/psych/psych_parser.h
94
+ - ext/psych/psych_to_ruby.c
95
+ - ext/psych/psych_to_ruby.h
96
+ - ext/psych/psych_yaml_tree.c
97
+ - ext/psych/psych_yaml_tree.h
98
+ - ext/psych/yaml/LICENSE
99
+ - ext/psych/yaml/api.c
100
+ - ext/psych/yaml/config.h
101
+ - ext/psych/yaml/dumper.c
102
+ - ext/psych/yaml/emitter.c
103
+ - ext/psych/yaml/loader.c
104
+ - ext/psych/yaml/parser.c
105
+ - ext/psych/yaml/reader.c
106
+ - ext/psych/yaml/scanner.c
107
+ - ext/psych/yaml/writer.c
108
+ - ext/psych/yaml/yaml.h
109
+ - ext/psych/yaml/yaml_private.h
110
+ - lib/psych.rb
111
+ - lib/psych/class_loader.rb
112
+ - lib/psych/coder.rb
113
+ - lib/psych/core_ext.rb
114
+ - lib/psych/exception.rb
115
+ - lib/psych/handler.rb
116
+ - lib/psych/handlers/document_stream.rb
117
+ - lib/psych/handlers/recorder.rb
118
+ - lib/psych/json/ruby_events.rb
119
+ - lib/psych/json/stream.rb
120
+ - lib/psych/json/tree_builder.rb
121
+ - lib/psych/json/yaml_events.rb
122
+ - lib/psych/nodes.rb
123
+ - lib/psych/nodes/alias.rb
124
+ - lib/psych/nodes/document.rb
125
+ - lib/psych/nodes/mapping.rb
126
+ - lib/psych/nodes/node.rb
127
+ - lib/psych/nodes/scalar.rb
128
+ - lib/psych/nodes/sequence.rb
129
+ - lib/psych/nodes/stream.rb
130
+ - lib/psych/omap.rb
131
+ - lib/psych/parser.rb
132
+ - lib/psych/scalar_scanner.rb
133
+ - lib/psych/set.rb
134
+ - lib/psych/stream.rb
135
+ - lib/psych/streaming.rb
136
+ - lib/psych/syntax_error.rb
137
+ - lib/psych/tree_builder.rb
138
+ - lib/psych/versions.rb
139
+ - lib/psych/visitors.rb
140
+ - lib/psych/visitors/depth_first.rb
141
+ - lib/psych/visitors/emitter.rb
142
+ - lib/psych/visitors/json_tree.rb
143
+ - lib/psych/visitors/to_ruby.rb
144
+ - lib/psych/visitors/visitor.rb
145
+ - lib/psych/visitors/yaml_tree.rb
146
+ - lib/psych/y.rb
147
+ - psych-with-location.gemspec
148
+ homepage: https://github.com/ruby/psych
149
+ licenses:
150
+ - MIT
151
+ metadata: {}
152
+ post_install_message:
153
+ rdoc_options:
154
+ - "--main"
155
+ - README.md
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 1.9.2
163
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ requirements: []
169
+ rubyforge_project:
170
+ rubygems_version: 2.6.11
171
+ signing_key:
172
+ specification_version: 4
173
+ summary: Psych is a YAML parser and emitter
174
+ test_files: []