psych 2.2.1-java → 2.2.2-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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b4abaedecb21703f73add798b6dec33287c62eb
4
- data.tar.gz: e96b021dfca8edb466f52e2044ae36eb851256cd
3
+ metadata.gz: c0a58d2ed5dca183df559e687f117c2ae9865945
4
+ data.tar.gz: b9c599dc17508b3ff061ed208befa1e16f3414e6
5
5
  SHA512:
6
- metadata.gz: 1052fbfc6c835d820f802d4df316dbf28d690f1f49b0d42a74ea7f04d6de09930e609d41767d39cce9fa82f48af00d57204bc005cf0530fb61166bec56cccf6a
7
- data.tar.gz: 5dc998f128e535dfb29bd21864b6759b60a41f592174d248b804bb2fb7ecc573335d34489224f47fb685f9947161931f19cfa5bba84165dc579bb3c930a9f573
6
+ metadata.gz: 5c48c9fe83330515c8ac2412db786be62c12e6976597e7e6c170f6246af520ddbbef3c45d19cc7d8e295c4597b7b319bf716c2bf4a868f960596eef76107d018
7
+ data.tar.gz: c4a73ccd603f874b65e98c0db1052c81bd795dd9e4fa5a86aa0f650124996bcc526221b4e795a0aece2bed9aef55e27310c0dcb47a062f5bef781d2846e1ea96
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 2.0.0
3
2
  - 2.1
4
3
  - 2.2
5
4
  - 2.3.0
@@ -12,6 +11,8 @@ matrix:
12
11
 
13
12
  before_install: gem install bundler --no-document
14
13
 
14
+ script: rake
15
+
15
16
  addons:
16
17
  apt:
17
18
  packages:
data/Rakefile CHANGED
@@ -7,6 +7,8 @@ Rake::TestTask.new(:test) do |t|
7
7
  t.libs << "test"
8
8
  t.libs << "lib"
9
9
  t.test_files = FileList['test/**/test_*.rb']
10
+ t.verbose = true
11
+ t.warning = true
10
12
  end
11
13
 
12
14
  if RUBY_PLATFORM =~ /java/
@@ -17,7 +19,7 @@ if RUBY_PLATFORM =~ /java/
17
19
  # and tell maven via system properties the snakeyaml version
18
20
  # this is basically the same as running from the commandline:
19
21
  # rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
20
- Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')
22
+ Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=1.17", '-Dverbose=true')
21
23
  ext.source_version = '1.7'
22
24
  ext.target_version = '1.7'
23
25
  ext.classpath = File.read('pkg/classpath')
@@ -241,10 +241,9 @@ public class PsychParser extends RubyObject {
241
241
  private void handleDocumentStart(ThreadContext context, DocumentStartEvent dse, boolean tainted, IRubyObject handler) {
242
242
  Ruby runtime = context.runtime;
243
243
  DumperOptions.Version _version = dse.getVersion();
244
- Integer[] versionInts = _version == null ? null : _version.getArray();
245
- IRubyObject version = versionInts == null ?
244
+ IRubyObject version = _version == null ?
246
245
  RubyArray.newArray(runtime) :
247
- RubyArray.newArray(runtime, runtime.newFixnum(versionInts[0]), runtime.newFixnum(versionInts[1]));
246
+ RubyArray.newArray(runtime, runtime.newFixnum(_version.major()), runtime.newFixnum(_version.minor()));
248
247
 
249
248
  Map<String, String> tagsMap = dse.getTags();
250
249
  RubyArray tags = RubyArray.newArray(runtime);
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
  module Psych
3
3
  # The version is Psych you're using
4
- VERSION = '2.2.1'
4
+ VERSION = '2.2.2'
5
5
 
6
6
  if RUBY_ENGINE == 'jruby'
7
7
  DEFAULT_SNAKEYAML_VERSION = '1.17'.freeze
@@ -1,10 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $LOAD_PATH.unshift './lib'
3
- load 'psych/versions.rb'
2
+ $:.unshift File.expand_path("../lib", __FILE__)
3
+ require 'psych'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "psych"
7
- s.version = Psych::VERSION
7
+ s.version = "2.2.2"
8
8
  s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter"]
9
9
  s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com"]
10
10
  s.date = "2016-11-14"
@@ -34,7 +34,7 @@ DESCRIPTION
34
34
  if RUBY_ENGINE == 'jruby'
35
35
  s.platform = 'java'
36
36
  s.files.concat ["ext/java/PsychEmitter.java", "ext/java/PsychLibrary.java", "ext/java/PsychParser.java", "ext/java/PsychToRuby.java", "ext/java/PsychYamlTree.java", "lib/psych_jars.rb", "lib/psych.jar"]
37
- s.requirements = "jar org.yaml:snakeyaml, #{Psych::DEFAULT_SNAKEYAML_VERSION}"
37
+ s.requirements = "jar org.yaml:snakeyaml, 1.17"
38
38
  s.add_dependency 'jar-dependencies', '>= 0.1.7'
39
39
  s.add_development_dependency 'ruby-maven'
40
40
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psych
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson