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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec89ed41931c96b9df3763724bd0334a0249846b
4
- data.tar.gz: 5f8e39d2906ec0b5fb2364c00a0d521d58046c9f
3
+ metadata.gz: 21b5af8f236816605f77e809c7cb96a06661b2cc
4
+ data.tar.gz: ba60b073e141a626e91637e12eb4f04055bc6ee5
5
5
  SHA512:
6
- metadata.gz: e539aff53041d374b1380324046710ed621343678d2bc688f7c62c10a7a3f95d95d18c2874e859bc841b3d00d7159013d72d37bbb8f38365b8147be38e88fc46
7
- data.tar.gz: e50d3d4c7efcc2b589862c829a9b55511c30a413e91091d3b5259745281529437260c1964974f336145123d1c6bf8edcfd67c6513d38477c8eccb0b5f14b3bf8
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 '~> 4.0'
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', '~> 4.0'
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', '~> 4.0']
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
- Maven::Ruby::Maven.new.exec( 'dependency:build-classpath')#, '--quiet' )
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')
@@ -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 TypedData_Wrap_Struct(klass, &psych_emitter_type, emitter);
59
+ return obj;
61
60
  }
62
61
 
63
62
  /* call-seq: Psych::Emitter.new(io, options = Psych::Emitter::OPTIONS)
@@ -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 TypedData_Wrap_Struct(klass, &psych_parser_type, parser);
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
@@ -223,7 +223,7 @@ require 'psych/class_loader'
223
223
 
224
224
  module Psych
225
225
  # The version is Psych you're using
226
- VERSION = '2.0.14.pre1'
226
+ VERSION = '2.0.15'
227
227
 
228
228
  # The version of libyaml Psych is using
229
229
  LIBYAML_VERSION = Psych.libyaml_version.join '.'
@@ -156,7 +156,7 @@ module Psych
156
156
  end
157
157
 
158
158
  def visit_Psych_Omap o
159
- seq = @emitter.start_sequence(nil, '!omap', false, Nodes::Sequence::BLOCK)
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.14.pre1
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-04-30 00:00:00.000000000 Z
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: '4.0'
61
+ version: '5.0'
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: '4.0'
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: 1.3.1
232
+ version: '0'
233
233
  requirements:
234
234
  - jar org.yaml:snakeyaml, 1.14
235
235
  rubyforge_project:
236
- rubygems_version: 2.4.5
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