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 +4 -4
- data/ext/java/PsychEmitter.java +4 -2
- data/lib/psych/versions.rb +1 -1
- data/psych.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 462fdd22e9e9b7049177e6fc24a1ba8f6dd40bfb
|
4
|
+
data.tar.gz: aac6857311058164a21001bc67e3feacb854fe71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6845cff97c809faf85eb0948bcebc3bea23db688fdd4f8de53116dbe89af250be1c624562c7b3c5013bc18bba309b9577310e06adf8f73fe283ba4e93a028bd4
|
7
|
+
data.tar.gz: 51db7cdcd70731288d13f775fd9bb504e87e86b43e6d578cc7af5b454ce0883872782be399969e1ae61e0aee1c11153a3b7bb9c0a01b175c72cc589a09222783
|
data/ext/java/PsychEmitter.java
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
|
data/lib/psych/versions.rb
CHANGED
data/psych.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "psych"
|
5
|
-
s.version = "2.2.
|
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"
|