psych 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +14 -0
- data/.travis.yml +1 -10
- data/Gemfile +3 -0
- data/Mavenfile +7 -0
- data/Rakefile +27 -119
- data/bin/console +7 -0
- data/bin/setup +6 -0
- data/ext/java/PsychEmitter.java +345 -0
- data/ext/java/PsychLibrary.java +93 -0
- data/ext/java/PsychParser.java +399 -0
- data/ext/java/PsychToRuby.java +79 -0
- data/ext/java/PsychYamlTree.java +55 -0
- data/ext/psych/.gitignore +11 -0
- data/lib/psych.rb +2 -2
- data/lib/psych/scalar_scanner.rb +1 -1
- data/lib/psych/visitors/to_ruby.rb +2 -2
- data/psych.gemspec +39 -0
- metadata +21 -84
- data/.autotest +0 -18
- data/Manifest.txt +0 -114
- data/test/psych/handlers/test_recorder.rb +0 -26
- data/test/psych/helper.rb +0 -122
- data/test/psych/json/test_stream.rb +0 -110
- data/test/psych/nodes/test_enumerable.rb +0 -44
- data/test/psych/test_alias_and_anchor.rb +0 -97
- data/test/psych/test_array.rb +0 -58
- data/test/psych/test_boolean.rb +0 -37
- data/test/psych/test_class.rb +0 -37
- data/test/psych/test_coder.rb +0 -207
- data/test/psych/test_date_time.rb +0 -39
- data/test/psych/test_deprecated.rb +0 -215
- data/test/psych/test_document.rb +0 -47
- data/test/psych/test_emitter.rb +0 -111
- data/test/psych/test_encoding.rb +0 -269
- data/test/psych/test_exception.rb +0 -158
- data/test/psych/test_hash.rb +0 -95
- data/test/psych/test_json_tree.rb +0 -66
- data/test/psych/test_merge_keys.rb +0 -181
- data/test/psych/test_nil.rb +0 -19
- data/test/psych/test_null.rb +0 -20
- data/test/psych/test_numeric.rb +0 -46
- data/test/psych/test_object.rb +0 -45
- data/test/psych/test_object_references.rb +0 -72
- data/test/psych/test_omap.rb +0 -76
- data/test/psych/test_parser.rb +0 -340
- data/test/psych/test_psych.rb +0 -184
- data/test/psych/test_safe_load.rb +0 -98
- data/test/psych/test_scalar.rb +0 -12
- data/test/psych/test_scalar_scanner.rb +0 -107
- data/test/psych/test_serialize_subclasses.rb +0 -39
- data/test/psych/test_set.rb +0 -50
- data/test/psych/test_stream.rb +0 -94
- data/test/psych/test_string.rb +0 -227
- data/test/psych/test_struct.rb +0 -50
- data/test/psych/test_symbol.rb +0 -26
- data/test/psych/test_tainted.rb +0 -131
- data/test/psych/test_to_yaml_properties.rb +0 -64
- data/test/psych/test_tree_builder.rb +0 -80
- data/test/psych/test_yaml.rb +0 -1293
- data/test/psych/test_yamldbm.rb +0 -193
- data/test/psych/test_yamlstore.rb +0 -86
- data/test/psych/visitors/test_depth_first.rb +0 -50
- data/test/psych/visitors/test_emitter.rb +0 -145
- data/test/psych/visitors/test_to_ruby.rb +0 -332
- data/test/psych/visitors/test_yaml_tree.rb +0 -180
@@ -0,0 +1,79 @@
|
|
1
|
+
/***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Version: EPL 1.0/GPL 2.0/LGPL 2.1
|
3
|
+
*
|
4
|
+
* The contents of this file are subject to the Eclipse Public
|
5
|
+
* License Version 1.0 (the "License"); you may not use this file
|
6
|
+
* except in compliance with the License. You may obtain a copy of
|
7
|
+
* the License at http://www.eclipse.org/legal/epl-v10.html
|
8
|
+
*
|
9
|
+
* Software distributed under the License is distributed on an "AS
|
10
|
+
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
11
|
+
* implied. See the License for the specific language governing
|
12
|
+
* rights and limitations under the License.
|
13
|
+
*
|
14
|
+
* Copyright (C) 2010 Charles O Nutter <headius@headius.com>
|
15
|
+
*
|
16
|
+
* Alternatively, the contents of this file may be used under the terms of
|
17
|
+
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
18
|
+
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
19
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
20
|
+
* of those above. If you wish to allow use of your version of this file only
|
21
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
22
|
+
* use your version of this file under the terms of the EPL, indicate your
|
23
|
+
* decision by deleting the provisions above and replace them with the notice
|
24
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
25
|
+
* the provisions above, a recipient may use your version of this file under
|
26
|
+
* the terms of any one of the EPL, the GPL or the LGPL.
|
27
|
+
***** END LICENSE BLOCK *****/
|
28
|
+
package org.jruby.ext.psych;
|
29
|
+
|
30
|
+
import org.jruby.Ruby;
|
31
|
+
import org.jruby.RubyClass;
|
32
|
+
import org.jruby.RubyModule;
|
33
|
+
import org.jruby.RubyObject;
|
34
|
+
import org.jruby.RubyException;
|
35
|
+
import org.jruby.anno.JRubyMethod;
|
36
|
+
import org.jruby.exceptions.RaiseException;
|
37
|
+
import org.jruby.runtime.ThreadContext;
|
38
|
+
import org.jruby.runtime.builtin.IRubyObject;
|
39
|
+
import static org.jruby.runtime.Visibility.*;
|
40
|
+
|
41
|
+
public class PsychToRuby {
|
42
|
+
public static void initPsychToRuby(Ruby runtime, RubyModule psych) {
|
43
|
+
RubyClass classLoader = runtime.defineClassUnder("ClassLoader", runtime.getObject(), RubyObject.OBJECT_ALLOCATOR, psych);
|
44
|
+
|
45
|
+
RubyModule visitors = runtime.defineModuleUnder("Visitors", psych);
|
46
|
+
RubyClass visitor = runtime.defineClassUnder("Visitor", runtime.getObject(), runtime.getObject().getAllocator(), visitors);
|
47
|
+
RubyClass psychToRuby = runtime.defineClassUnder("ToRuby", visitor, RubyObject.OBJECT_ALLOCATOR, visitors);
|
48
|
+
|
49
|
+
psychToRuby.defineAnnotatedMethods(ToRuby.class);
|
50
|
+
classLoader.defineAnnotatedMethods(ClassLoader.class);
|
51
|
+
}
|
52
|
+
|
53
|
+
public static class ToRuby {
|
54
|
+
@JRubyMethod(visibility = PRIVATE)
|
55
|
+
public static IRubyObject build_exception(ThreadContext context, IRubyObject self, IRubyObject klass, IRubyObject message) {
|
56
|
+
if (klass instanceof RubyClass) {
|
57
|
+
IRubyObject exception = ((RubyClass)klass).allocate();
|
58
|
+
((RubyException)exception).message = message;
|
59
|
+
return exception;
|
60
|
+
} else {
|
61
|
+
throw context.runtime.newTypeError(klass, context.runtime.getClassClass());
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
public static class ClassLoader {
|
67
|
+
@JRubyMethod(visibility = PRIVATE)
|
68
|
+
public static IRubyObject path2class(ThreadContext context, IRubyObject self, IRubyObject path) {
|
69
|
+
try {
|
70
|
+
return context.runtime.getClassFromPath(path.asJavaString());
|
71
|
+
} catch (RaiseException re) {
|
72
|
+
if (re.getException().getMetaClass() == context.runtime.getNameError()) {
|
73
|
+
throw context.runtime.newArgumentError("undefined class/module " + path);
|
74
|
+
}
|
75
|
+
throw re;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
/***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Version: EPL 1.0/GPL 2.0/LGPL 2.1
|
3
|
+
*
|
4
|
+
* The contents of this file are subject to the Eclipse Public
|
5
|
+
* License Version 1.0 (the "License"); you may not use this file
|
6
|
+
* except in compliance with the License. You may obtain a copy of
|
7
|
+
* the License at http://www.eclipse.org/legal/epl-v10.html
|
8
|
+
*
|
9
|
+
* Software distributed under the License is distributed on an "AS
|
10
|
+
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
11
|
+
* implied. See the License for the specific language governing
|
12
|
+
* rights and limitations under the License.
|
13
|
+
*
|
14
|
+
* Copyright (C) 2010 Charles O Nutter <headius@headius.com>
|
15
|
+
*
|
16
|
+
* Alternatively, the contents of this file may be used under the terms of
|
17
|
+
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
18
|
+
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
19
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
20
|
+
* of those above. If you wish to allow use of your version of this file only
|
21
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
22
|
+
* use your version of this file under the terms of the EPL, indicate your
|
23
|
+
* decision by deleting the provisions above and replace them with the notice
|
24
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
25
|
+
* the provisions above, a recipient may use your version of this file under
|
26
|
+
* the terms of any one of the EPL, the GPL or the LGPL.
|
27
|
+
***** END LICENSE BLOCK *****/
|
28
|
+
package org.jruby.ext.psych;
|
29
|
+
|
30
|
+
import org.jruby.Ruby;
|
31
|
+
import org.jruby.RubyClass;
|
32
|
+
import org.jruby.RubyModule;
|
33
|
+
import org.jruby.RubyObject;
|
34
|
+
import org.jruby.anno.JRubyMethod;
|
35
|
+
import org.jruby.runtime.ThreadContext;
|
36
|
+
import org.jruby.runtime.builtin.IRubyObject;
|
37
|
+
import static org.jruby.runtime.Visibility.*;
|
38
|
+
|
39
|
+
public class PsychYamlTree {
|
40
|
+
public static void initPsychYamlTree(Ruby runtime, RubyModule psych) {
|
41
|
+
RubyModule visitors = (RubyModule)psych.getConstant("Visitors");
|
42
|
+
RubyClass visitor = (RubyClass)visitors.getConstant("Visitor");
|
43
|
+
RubyClass psychYamlTree = runtime.defineClassUnder("YAMLTree", visitor, RubyObject.OBJECT_ALLOCATOR, visitors);
|
44
|
+
|
45
|
+
psychYamlTree.defineAnnotatedMethods(PsychYamlTree.class);
|
46
|
+
}
|
47
|
+
|
48
|
+
@JRubyMethod(visibility = PRIVATE)
|
49
|
+
public static IRubyObject private_iv_get(ThreadContext context, IRubyObject self, IRubyObject target, IRubyObject prop) {
|
50
|
+
IRubyObject obj = (IRubyObject)target.getInternalVariables().getInternalVariable(prop.asJavaString());
|
51
|
+
if (obj == null) obj = context.nil;
|
52
|
+
|
53
|
+
return obj;
|
54
|
+
}
|
55
|
+
}
|
data/lib/psych.rb
CHANGED
@@ -224,7 +224,7 @@ require 'psych/class_loader'
|
|
224
224
|
|
225
225
|
module Psych
|
226
226
|
# The version is Psych you're using
|
227
|
-
VERSION = '2.1.
|
227
|
+
VERSION = '2.1.1'
|
228
228
|
|
229
229
|
# The version of libyaml Psych is using
|
230
230
|
LIBYAML_VERSION = Psych.libyaml_version.join '.'
|
@@ -469,7 +469,7 @@ module Psych
|
|
469
469
|
###
|
470
470
|
# Load the document contained in +filename+. Returns the yaml contained in
|
471
471
|
# +filename+ as a Ruby object, or if the file is empty, it returns
|
472
|
-
# the specified default return value, which defaults to an empty Hash
|
472
|
+
# the specified default return value, which defaults to an empty Hash
|
473
473
|
def self.load_file filename, fallback = false
|
474
474
|
File.open(filename, 'r:bom|utf-8') { |f|
|
475
475
|
self.load f, filename, FALLBACK.new(fallback)
|
data/lib/psych/scalar_scanner.rb
CHANGED
@@ -70,11 +70,11 @@ module Psych
|
|
70
70
|
o.value
|
71
71
|
end
|
72
72
|
when '!ruby/object:BigDecimal'
|
73
|
-
require 'bigdecimal'
|
73
|
+
require 'bigdecimal' unless defined? BigDecimal
|
74
74
|
class_loader.big_decimal._load o.value
|
75
75
|
when "!ruby/object:DateTime"
|
76
76
|
class_loader.date_time
|
77
|
-
require 'date'
|
77
|
+
require 'date' unless defined? DateTime
|
78
78
|
@ss.parse_time(o.value).to_datetime
|
79
79
|
when '!ruby/encoding'
|
80
80
|
::Encoding.find o.value
|
data/psych.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "psych"
|
5
|
+
s.version = "2.1.1"
|
6
|
+
s.authors = ["Aaron Patterson", "SHIBATA Hiroshi"]
|
7
|
+
s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org"]
|
8
|
+
s.date = "2016-09-07"
|
9
|
+
s.summary = "Psych is a YAML parser and emitter"
|
10
|
+
s.description = <<-DESCRIPTION
|
11
|
+
Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
|
12
|
+
for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
|
13
|
+
Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
|
14
|
+
DESCRIPTION
|
15
|
+
s.homepage = "http://github.com/tenderlove/psych"
|
16
|
+
s.licenses = ["MIT"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
|
20
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
21
|
+
s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc", "CHANGELOG.rdoc", "README.rdoc"]
|
22
|
+
|
23
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
|
24
|
+
s.rubygems_version = "2.5.1"
|
25
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0")
|
26
|
+
|
27
|
+
s.add_development_dependency(%q<rake-compiler>, [">= 0.4.1"])
|
28
|
+
s.add_development_dependency(%q<minitest>, ["~> 5.0"])
|
29
|
+
|
30
|
+
if RUBY_PLATFORM =~ /java/
|
31
|
+
require 'psych/versions'
|
32
|
+
s.platform = 'java'
|
33
|
+
s.requirements = "jar org.yaml:snakeyaml, #{Psych::DEFAULT_SNAKEYAML_VERSION}"
|
34
|
+
s.add_dependency 'jar-dependencies', '>= 0.1.7'
|
35
|
+
s.add_development_dependency 'ruby-maven'
|
36
|
+
else
|
37
|
+
s.extensions = ["ext/psych/extconf.rb"]
|
38
|
+
end
|
39
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: psych
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
8
|
+
- SHIBATA Hiroshi
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-
|
12
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rdoc
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '4.0'
|
27
14
|
- !ruby/object:Gem::Dependency
|
28
15
|
name: rake-compiler
|
29
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,41 +39,35 @@ dependencies:
|
|
52
39
|
- - "~>"
|
53
40
|
- !ruby/object:Gem::Version
|
54
41
|
version: '5.0'
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.15'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.15'
|
69
|
-
description: |-
|
70
|
-
Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
|
71
|
-
for its YAML parsing and emitting capabilities. In addition to wrapping
|
72
|
-
libyaml, Psych also knows how to serialize and de-serialize most Ruby objects
|
73
|
-
to and from the YAML format.
|
42
|
+
description: |
|
43
|
+
Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
|
44
|
+
for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
|
45
|
+
Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
|
74
46
|
email:
|
75
47
|
- aaron@tenderlovemaking.com
|
48
|
+
- hsbt@ruby-lang.org
|
76
49
|
executables: []
|
77
50
|
extensions:
|
78
51
|
- ext/psych/extconf.rb
|
79
52
|
extra_rdoc_files:
|
80
53
|
- CHANGELOG.rdoc
|
81
|
-
- Manifest.txt
|
82
54
|
- README.rdoc
|
83
55
|
files:
|
84
|
-
- ".
|
56
|
+
- ".gitignore"
|
85
57
|
- ".travis.yml"
|
86
58
|
- CHANGELOG.rdoc
|
87
|
-
-
|
59
|
+
- Gemfile
|
60
|
+
- Mavenfile
|
88
61
|
- README.rdoc
|
89
62
|
- Rakefile
|
63
|
+
- bin/console
|
64
|
+
- bin/setup
|
65
|
+
- ext/java/PsychEmitter.java
|
66
|
+
- ext/java/PsychLibrary.java
|
67
|
+
- ext/java/PsychParser.java
|
68
|
+
- ext/java/PsychToRuby.java
|
69
|
+
- ext/java/PsychYamlTree.java
|
70
|
+
- ext/psych/.gitignore
|
90
71
|
- ext/psych/depend
|
91
72
|
- ext/psych/extconf.rb
|
92
73
|
- ext/psych/psych.c
|
@@ -150,51 +131,7 @@ files:
|
|
150
131
|
- lib/psych/visitors/yaml_tree.rb
|
151
132
|
- lib/psych/y.rb
|
152
133
|
- lib/psych_jars.rb
|
153
|
-
-
|
154
|
-
- test/psych/helper.rb
|
155
|
-
- test/psych/json/test_stream.rb
|
156
|
-
- test/psych/nodes/test_enumerable.rb
|
157
|
-
- test/psych/test_alias_and_anchor.rb
|
158
|
-
- test/psych/test_array.rb
|
159
|
-
- test/psych/test_boolean.rb
|
160
|
-
- test/psych/test_class.rb
|
161
|
-
- test/psych/test_coder.rb
|
162
|
-
- test/psych/test_date_time.rb
|
163
|
-
- test/psych/test_deprecated.rb
|
164
|
-
- test/psych/test_document.rb
|
165
|
-
- test/psych/test_emitter.rb
|
166
|
-
- test/psych/test_encoding.rb
|
167
|
-
- test/psych/test_exception.rb
|
168
|
-
- test/psych/test_hash.rb
|
169
|
-
- test/psych/test_json_tree.rb
|
170
|
-
- test/psych/test_merge_keys.rb
|
171
|
-
- test/psych/test_nil.rb
|
172
|
-
- test/psych/test_null.rb
|
173
|
-
- test/psych/test_numeric.rb
|
174
|
-
- test/psych/test_object.rb
|
175
|
-
- test/psych/test_object_references.rb
|
176
|
-
- test/psych/test_omap.rb
|
177
|
-
- test/psych/test_parser.rb
|
178
|
-
- test/psych/test_psych.rb
|
179
|
-
- test/psych/test_safe_load.rb
|
180
|
-
- test/psych/test_scalar.rb
|
181
|
-
- test/psych/test_scalar_scanner.rb
|
182
|
-
- test/psych/test_serialize_subclasses.rb
|
183
|
-
- test/psych/test_set.rb
|
184
|
-
- test/psych/test_stream.rb
|
185
|
-
- test/psych/test_string.rb
|
186
|
-
- test/psych/test_struct.rb
|
187
|
-
- test/psych/test_symbol.rb
|
188
|
-
- test/psych/test_tainted.rb
|
189
|
-
- test/psych/test_to_yaml_properties.rb
|
190
|
-
- test/psych/test_tree_builder.rb
|
191
|
-
- test/psych/test_yaml.rb
|
192
|
-
- test/psych/test_yamldbm.rb
|
193
|
-
- test/psych/test_yamlstore.rb
|
194
|
-
- test/psych/visitors/test_depth_first.rb
|
195
|
-
- test/psych/visitors/test_emitter.rb
|
196
|
-
- test/psych/visitors/test_to_ruby.rb
|
197
|
-
- test/psych/visitors/test_yaml_tree.rb
|
134
|
+
- psych.gemspec
|
198
135
|
homepage: http://github.com/tenderlove/psych
|
199
136
|
licenses:
|
200
137
|
- MIT
|
@@ -217,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
154
|
version: '0'
|
218
155
|
requirements: []
|
219
156
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.6.6
|
221
158
|
signing_key:
|
222
159
|
specification_version: 4
|
223
160
|
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/Manifest.txt
DELETED
@@ -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
|