psych 2.0.14.pre1-java → 2.0.15-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Rakefile +6 -5
- data/ext/psych/psych_emitter.c +2 -3
- data/ext/psych/psych_parser.c +2 -2
- data/lib/psych.jar +0 -0
- data/lib/psych.rb +1 -1
- data/lib/psych/visitors/yaml_tree.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21b5af8f236816605f77e809c7cb96a06661b2cc
|
4
|
+
data.tar.gz: ba60b073e141a626e91637e12eb4f04055bc6ee5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50fd87911af4ff75d767ff02937fb71d6e12f44319a9d8b51aad18e59bf027d8bdfa532d1b8f80a3962940a7f5ca5d9c8d3f8a40c2f006dd09d822d5c6325cf9
|
7
|
+
data.tar.gz: a32fab58e7ac81c80df6764f19ca5811a3081ed949126523cac5533a6c3e28970070cca571d57c65805a255459379a06338e667bdd7f8c549a5104bbd002b408
|
data/.travis.yml
CHANGED
@@ -3,12 +3,13 @@ rvm:
|
|
3
3
|
- 1.9.3
|
4
4
|
- 2.0.0
|
5
5
|
- 2.1.0
|
6
|
+
- 2.2.0
|
6
7
|
- ruby-head
|
7
8
|
- rbx-2
|
8
9
|
before_script:
|
9
10
|
- gem install hoe
|
10
11
|
- gem install rake-compiler
|
11
|
-
- gem install minitest -v '~>
|
12
|
+
- gem install minitest -v '~> 5.0'
|
12
13
|
script: rake test
|
13
14
|
matrix:
|
14
15
|
allow_failures:
|
data/Rakefile
CHANGED
@@ -16,7 +16,7 @@ class Hoe
|
|
16
16
|
end
|
17
17
|
|
18
18
|
gem 'rake-compiler', '>= 0.4.1'
|
19
|
-
gem 'minitest', '~>
|
19
|
+
gem 'minitest', '~> 5.0'
|
20
20
|
require "rake/extensiontask"
|
21
21
|
|
22
22
|
Hoe.plugin :doofus, :git, :gemspec
|
@@ -31,7 +31,7 @@ $hoe = Hoe.spec 'psych' do
|
|
31
31
|
self.testlib = :minitest
|
32
32
|
|
33
33
|
extra_dev_deps << ['rake-compiler', '>= 0.4.1']
|
34
|
-
extra_dev_deps << ['minitest', '~>
|
34
|
+
extra_dev_deps << ['minitest', '~> 5.0']
|
35
35
|
|
36
36
|
self.spec_extras = {
|
37
37
|
:required_ruby_version => '>= 1.9.2'
|
@@ -48,10 +48,11 @@ $hoe = Hoe.spec 'psych' do
|
|
48
48
|
require "rake/javaextensiontask"
|
49
49
|
Rake::JavaExtensionTask.new("psych", spec) do |ext|
|
50
50
|
require 'maven/ruby/maven'
|
51
|
-
# tell maven via system properties the snakeyaml version
|
52
|
-
ENV_JAVA['snakeyaml.version'] = Psych::DEFAULT_SNAKEYAML_VERSION
|
53
51
|
# uses Mavenfile to write classpath into pkg/classpath
|
54
|
-
|
52
|
+
# and tell maven via system properties the snakeyaml version
|
53
|
+
# this is basically the same as running from the commandline:
|
54
|
+
# rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
|
55
|
+
Maven::Ruby::Maven.new.exec( 'dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')#, '--quiet' )
|
55
56
|
ext.source_version = '1.7'
|
56
57
|
ext.target_version = '1.7'
|
57
58
|
ext.classpath = File.read('pkg/classpath')
|
data/ext/psych/psych_emitter.c
CHANGED
@@ -50,14 +50,13 @@ static const rb_data_type_t psych_emitter_type = {
|
|
50
50
|
static VALUE allocate(VALUE klass)
|
51
51
|
{
|
52
52
|
yaml_emitter_t * emitter;
|
53
|
-
|
54
|
-
emitter = xmalloc(sizeof(yaml_emitter_t));
|
53
|
+
VALUE obj = TypedData_Make_Struct(klass, yaml_emitter_t, &psych_emitter_type, emitter);
|
55
54
|
|
56
55
|
yaml_emitter_initialize(emitter);
|
57
56
|
yaml_emitter_set_unicode(emitter, 1);
|
58
57
|
yaml_emitter_set_indent(emitter, 2);
|
59
58
|
|
60
|
-
return
|
59
|
+
return obj;
|
61
60
|
}
|
62
61
|
|
63
62
|
/* call-seq: Psych::Emitter.new(io, options = Psych::Emitter::OPTIONS)
|
data/ext/psych/psych_parser.c
CHANGED
@@ -70,11 +70,11 @@ static const rb_data_type_t psych_parser_type = {
|
|
70
70
|
static VALUE allocate(VALUE klass)
|
71
71
|
{
|
72
72
|
yaml_parser_t * parser;
|
73
|
+
VALUE obj = TypedData_Make_Struct(klass, yaml_parser_t, &psych_parser_type, parser);
|
73
74
|
|
74
|
-
parser = xmalloc(sizeof(yaml_parser_t));
|
75
75
|
yaml_parser_initialize(parser);
|
76
76
|
|
77
|
-
return
|
77
|
+
return obj;
|
78
78
|
}
|
79
79
|
|
80
80
|
static VALUE make_exception(yaml_parser_t * parser, VALUE path)
|
data/lib/psych.jar
CHANGED
Binary file
|
data/lib/psych.rb
CHANGED
@@ -156,7 +156,7 @@ module Psych
|
|
156
156
|
end
|
157
157
|
|
158
158
|
def visit_Psych_Omap o
|
159
|
-
seq = @emitter.start_sequence(nil, '
|
159
|
+
seq = @emitter.start_sequence(nil, 'tag:yaml.org,2002:omap', false, Nodes::Sequence::BLOCK)
|
160
160
|
register(o, seq)
|
161
161
|
|
162
162
|
o.each { |k,v| visit_Hash k => v }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: psych
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.15
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jar-dependencies
|
@@ -58,12 +58,12 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '5.0'
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '5.0'
|
67
67
|
prerelease: false
|
68
68
|
type: :development
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -227,13 +227,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: 1.9.2
|
228
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
229
|
requirements:
|
230
|
-
- - "
|
230
|
+
- - ">="
|
231
231
|
- !ruby/object:Gem::Version
|
232
|
-
version:
|
232
|
+
version: '0'
|
233
233
|
requirements:
|
234
234
|
- jar org.yaml:snakeyaml, 1.14
|
235
235
|
rubyforge_project:
|
236
|
-
rubygems_version: 2.4.
|
236
|
+
rubygems_version: 2.4.8
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: Psych is a YAML parser and emitter
|