psych 2.2.3-java → 2.2.4-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: a28e7d62abd69d7be998c8cf96e89b10f104d1ca
4
- data.tar.gz: f71d49d89806a1afd790d0e44eddf8a83088990e
3
+ metadata.gz: 462fdd22e9e9b7049177e6fc24a1ba8f6dd40bfb
4
+ data.tar.gz: aac6857311058164a21001bc67e3feacb854fe71
5
5
  SHA512:
6
- metadata.gz: afeaf8b677eeb782fc846f434e7f39cd1594917478aa81a6e531d351e8824683e45753baf1b030cb2a628cbae4ff2f4e66b0aa29663fda62d6e5a69bd1803f58
7
- data.tar.gz: b479be0066a073f35514210ee524baa54a17af633e28ea7bc6fe271f653c500b7ee9e19a542cc0c53097a01a03f6152ef3cc0e42d6a705446f2c5efa26292ccb
6
+ metadata.gz: 6845cff97c809faf85eb0948bcebc3bea23db688fdd4f8de53116dbe89af250be1c624562c7b3c5013bc18bba309b9577310e06adf8f73fe283ba4e93a028bd4
7
+ data.tar.gz: 51db7cdcd70731288d13f775fd9bb504e87e86b43e6d578cc7af5b454ce0883872782be399969e1ae61e0aee1c11153a3b7bb9c0a01b175c72cc589a09222783
@@ -101,7 +101,7 @@ public class PsychEmitter extends RubyObject {
101
101
 
102
102
  options.setCanonical(canonical.isTrue());
103
103
  options.setIndent((int)level.convertToInteger().getLongValue());
104
- options.setWidth((int)width.convertToInteger().getLongValue());
104
+ line_width_set(context, width);
105
105
 
106
106
  this.io = io;
107
107
 
@@ -296,7 +296,9 @@ public class PsychEmitter extends RubyObject {
296
296
 
297
297
  @JRubyMethod(name = "line_width=")
298
298
  public IRubyObject line_width_set(ThreadContext context, IRubyObject width) {
299
- options.setWidth((int)width.convertToInteger().getLongValue());
299
+ int newWidth = (int)width.convertToInteger().getLongValue();
300
+ if (newWidth <= 0) newWidth = Integer.MAX_VALUE;
301
+ options.setWidth(newWidth);
300
302
  return width;
301
303
  }
302
304
 
@@ -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.3'
4
+ VERSION = '2.2.4'
5
5
 
6
6
  if RUBY_ENGINE == 'jruby'
7
7
  DEFAULT_SNAKEYAML_VERSION = '1.18'.freeze
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "psych"
5
- s.version = "2.2.3"
5
+ s.version = "2.2.4"
6
6
  s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter"]
7
7
  s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com"]
8
8
  s.date = "2016-11-14"
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.3
4
+ version: 2.2.4
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson