psych 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -3
- data/ext/psych/yaml/emitter.c +4 -4
- data/lib/psych/versions.rb +2 -2
- data/psych.gemspec +2 -4
- 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: 29b8a3a88d7d7e74fd8c9d4981c49dc214f44143
|
4
|
+
data.tar.gz: dfda13f202d45846129e32c65c289ae36bd4174a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a77abc3fb55ee445b5c3a08e0732bd16f995f1ce44da6ebb8b0868469f988cd534d6496e6095c2a3e9e958502a4552bd8240e3508a434b5cee33340533f5344
|
7
|
+
data.tar.gz: d5475f6892d41b6e466fa5888460e2d8b20c1ef7b2ff55570d1ac9fd1a332eef930d45ce57923a6ad0e30911d6eb4002a9892e2ab61456b57954497700e902c1
|
data/Rakefile
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
$LOAD_PATH.unshift './lib'
|
2
|
-
load 'psych/versions.rb'
|
3
1
|
require "bundler/gem_tasks"
|
4
2
|
require "rake/testtask"
|
5
3
|
|
@@ -19,7 +17,7 @@ if RUBY_PLATFORM =~ /java/
|
|
19
17
|
# and tell maven via system properties the snakeyaml version
|
20
18
|
# this is basically the same as running from the commandline:
|
21
19
|
# rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
|
22
|
-
Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=1.
|
20
|
+
Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=1.18", '-Dverbose=true')
|
23
21
|
ext.source_version = '1.7'
|
24
22
|
ext.target_version = '1.7'
|
25
23
|
ext.classpath = File.read('pkg/classpath')
|
data/ext/psych/yaml/emitter.c
CHANGED
@@ -1493,7 +1493,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|
1493
1493
|
int break_space = 0;
|
1494
1494
|
int space_break = 0;
|
1495
1495
|
|
1496
|
-
int
|
1496
|
+
int preceded_by_whitespace = 0;
|
1497
1497
|
int followed_by_whitespace = 0;
|
1498
1498
|
int previous_space = 0;
|
1499
1499
|
int previous_break = 0;
|
@@ -1524,7 +1524,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|
1524
1524
|
flow_indicators = 1;
|
1525
1525
|
}
|
1526
1526
|
|
1527
|
-
|
1527
|
+
preceded_by_whitespace = 1;
|
1528
1528
|
followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
|
1529
1529
|
|
1530
1530
|
while (string.pointer != string.end)
|
@@ -1570,7 +1570,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|
1570
1570
|
}
|
1571
1571
|
}
|
1572
1572
|
|
1573
|
-
if (CHECK(string, '#') &&
|
1573
|
+
if (CHECK(string, '#') && preceded_by_whitespace) {
|
1574
1574
|
flow_indicators = 1;
|
1575
1575
|
block_indicators = 1;
|
1576
1576
|
}
|
@@ -1619,7 +1619,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|
1619
1619
|
previous_break = 0;
|
1620
1620
|
}
|
1621
1621
|
|
1622
|
-
|
1622
|
+
preceded_by_whitespace = IS_BLANKZ(string);
|
1623
1623
|
MOVE(string);
|
1624
1624
|
if (string.pointer != string.end) {
|
1625
1625
|
followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
|
data/lib/psych/versions.rb
CHANGED
data/psych.gemspec
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.unshift File.expand_path("../lib", __FILE__)
|
3
|
-
require 'psych'
|
4
2
|
|
5
3
|
Gem::Specification.new do |s|
|
6
4
|
s.name = "psych"
|
7
|
-
s.version = "2.2.
|
5
|
+
s.version = "2.2.3"
|
8
6
|
s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter"]
|
9
7
|
s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com"]
|
10
8
|
s.date = "2016-11-14"
|
@@ -34,7 +32,7 @@ DESCRIPTION
|
|
34
32
|
if RUBY_ENGINE == 'jruby'
|
35
33
|
s.platform = 'java'
|
36
34
|
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, 1.
|
35
|
+
s.requirements = "jar org.yaml:snakeyaml, 1.18"
|
38
36
|
s.add_dependency 'jar-dependencies', '>= 0.1.7'
|
39
37
|
s.add_development_dependency 'ruby-maven'
|
40
38
|
else
|