syck 1.2.0 → 1.3.0
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 +4 -4
- data/CHANGELOG.rdoc +7 -0
- data/ext/syck/emitter.c +1 -1
- data/lib/syck.rb +8 -13
- metadata +3 -5
- data/Gemfile.lock +0 -26
- data/lib/yaml/engine_manager.rb +0 -71
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3695b0bc7d3ca212a189b5884abf4b9a3ed97ac6
|
4
|
+
data.tar.gz: d39d278600e6e49a7bf016d3bf9195eb0eda8bc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9e72a1c8efe882c4d6275f4e06bd3219741eeeb46b22032477335b9f2764d5486d4789501131f6f482cb557696e1e12e6380d2bd8bd04f0f0c0ca4dd68d2b2
|
7
|
+
data.tar.gz: d9c1e7c5528fbb3b190f5fd327a94cfdabc4d47af1631b1e56720cb217d7f92c3dabe8521e5916a72b59e68903369016f127d0563d6f3ef339ded9e091953786
|
data/CHANGELOG.rdoc
CHANGED
data/ext/syck/emitter.c
CHANGED
@@ -1050,7 +1050,7 @@ void syck_emit_item( SyckEmitter *e, st_data_t n )
|
|
1050
1050
|
{
|
1051
1051
|
SyckLevel *parent = syck_emitter_parent_level( e );
|
1052
1052
|
|
1053
|
-
/* seq-in-map shortcut -- the lvl->anctag check should be
|
1053
|
+
/* seq-in-map shortcut -- the lvl->anctag check should be unnecessary but
|
1054
1054
|
* there is a nasty shift/reduce in the parser on this point and
|
1055
1055
|
* i'm not ready to tickle it. */
|
1056
1056
|
if ( lvl->anctag == 0 && parent->status == syck_lvl_map && lvl->ncount == 0 ) {
|
data/lib/syck.rb
CHANGED
@@ -7,16 +7,13 @@
|
|
7
7
|
#
|
8
8
|
|
9
9
|
require 'yaml/syck'
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
alias :to_yaml :syck_to_yaml
|
18
|
-
eorb
|
19
|
-
end
|
10
|
+
|
11
|
+
Object.class_eval <<-eorb, __FILE__, __LINE__ + 1
|
12
|
+
remove_const 'YAML' if defined? YAML
|
13
|
+
YAML = Syck
|
14
|
+
remove_method :to_yaml
|
15
|
+
alias :to_yaml :syck_to_yaml
|
16
|
+
eorb
|
20
17
|
|
21
18
|
# == YAML
|
22
19
|
#
|
@@ -371,7 +368,7 @@ module Syck
|
|
371
368
|
end
|
372
369
|
|
373
370
|
#
|
374
|
-
# Method to extract colon-
|
371
|
+
# Method to extract colon-separated type and class, returning
|
375
372
|
# the type and the constant of the class
|
376
373
|
#
|
377
374
|
def self.read_type_class( type, obj_class )
|
@@ -453,5 +450,3 @@ module Kernel
|
|
453
450
|
end
|
454
451
|
private :y
|
455
452
|
end
|
456
|
-
|
457
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi SHIBATA
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -70,7 +70,6 @@ extra_rdoc_files:
|
|
70
70
|
files:
|
71
71
|
- CHANGELOG.rdoc
|
72
72
|
- Gemfile
|
73
|
-
- Gemfile.lock
|
74
73
|
- README.rdoc
|
75
74
|
- Rakefile
|
76
75
|
- ext/syck/bytecode.c
|
@@ -103,7 +102,6 @@ files:
|
|
103
102
|
- lib/syck/types.rb
|
104
103
|
- lib/syck/yamlnode.rb
|
105
104
|
- lib/syck/ypath.rb
|
106
|
-
- lib/yaml/engine_manager.rb
|
107
105
|
- lib/yaml/syck.rb
|
108
106
|
- test/helper.rb
|
109
107
|
- test/test_array.rb
|
@@ -142,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
140
|
version: 0.9.5
|
143
141
|
requirements: []
|
144
142
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.6.
|
143
|
+
rubygems_version: 2.6.11
|
146
144
|
signing_key:
|
147
145
|
specification_version: 4
|
148
146
|
summary: A gemified version of Syck from Ruby's stdlib
|
data/Gemfile.lock
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
syck (1.1.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
power_assert (0.3.1)
|
10
|
-
rake (11.3.0)
|
11
|
-
rake-compiler (1.0.1)
|
12
|
-
rake
|
13
|
-
test-unit (3.2.2)
|
14
|
-
power_assert
|
15
|
-
|
16
|
-
PLATFORMS
|
17
|
-
ruby
|
18
|
-
|
19
|
-
DEPENDENCIES
|
20
|
-
bundler
|
21
|
-
rake-compiler
|
22
|
-
syck!
|
23
|
-
test-unit
|
24
|
-
|
25
|
-
BUNDLED WITH
|
26
|
-
1.13.6
|
data/lib/yaml/engine_manager.rb
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# The YAML module allows you to use one of the two YAML engines that ship with
|
3
|
-
# ruby. By default Psych is used but the old and unmaintained Syck may be
|
4
|
-
# chosen.
|
5
|
-
#
|
6
|
-
# See Psych or Syck for usage and documentation.
|
7
|
-
#
|
8
|
-
# To set the YAML engine to syck:
|
9
|
-
#
|
10
|
-
# YAML::ENGINE.yamler = 'syck'
|
11
|
-
#
|
12
|
-
# To set the YAML engine back to psych:
|
13
|
-
#
|
14
|
-
# YAML::ENGINE.yamler = 'psych'
|
15
|
-
|
16
|
-
module YAML
|
17
|
-
class EngineManager # :nodoc:
|
18
|
-
attr_reader :yamler
|
19
|
-
|
20
|
-
def initialize
|
21
|
-
@yamler = nil
|
22
|
-
end
|
23
|
-
|
24
|
-
def syck?
|
25
|
-
'syck' == @yamler
|
26
|
-
end
|
27
|
-
|
28
|
-
def yamler= engine
|
29
|
-
raise(ArgumentError, "bad engine") unless %w{syck psych}.include?(engine)
|
30
|
-
|
31
|
-
require engine unless (engine == 'syck' ? Syck : Psych).const_defined?(:VERSION)
|
32
|
-
|
33
|
-
Object.class_eval <<-eorb, __FILE__, __LINE__ + 1
|
34
|
-
remove_const 'YAML'
|
35
|
-
YAML = #{engine.capitalize}
|
36
|
-
remove_method :to_yaml
|
37
|
-
alias :to_yaml :#{engine}_to_yaml
|
38
|
-
eorb
|
39
|
-
|
40
|
-
@yamler = engine
|
41
|
-
engine
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
##
|
46
|
-
# Allows changing the current YAML engine. See YAML for details.
|
47
|
-
|
48
|
-
remove_const :ENGINE if defined? ENGINE
|
49
|
-
ENGINE = YAML::EngineManager.new
|
50
|
-
end
|
51
|
-
|
52
|
-
if defined?(Psych)
|
53
|
-
engine = 'psych'
|
54
|
-
elsif defined?(Syck)
|
55
|
-
engine = 'syck'
|
56
|
-
else
|
57
|
-
begin
|
58
|
-
require 'psych'
|
59
|
-
engine = 'psych'
|
60
|
-
rescue LoadError
|
61
|
-
warn "#{caller[0]}:"
|
62
|
-
warn "It seems your ruby installation is missing psych (for YAML output)."
|
63
|
-
warn "To eliminate this warning, please install libyaml and reinstall your ruby."
|
64
|
-
require 'syck'
|
65
|
-
engine = 'syck'
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
module Syck
|
70
|
-
ENGINE = YAML::ENGINE
|
71
|
-
end
|