syck 1.1.0 → 1.4.1
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 +5 -5
- data/CHANGELOG.rdoc +18 -1
- data/README.rdoc +1 -1
- data/Rakefile +1 -2
- data/ext/syck/emitter.c +1 -1
- data/ext/syck/extconf.rb +0 -1
- data/ext/syck/rubyext.c +6 -3
- data/ext/syck/syck.h +1 -1
- data/lib/syck/constants.rb +1 -1
- data/lib/syck.rb +8 -13
- data/syck.gemspec +8 -8
- metadata +19 -35
- data/Gemfile.lock +0 -30
- data/lib/yaml/engine_manager.rb +0 -71
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fc1f7d5cf4a2512fd82d2c4c625448743fbf73ab8e2a2cf1f4b8b807a37bd73c
|
4
|
+
data.tar.gz: 1114db34056f6269b9be528905bdd1618d4a88c9c92dec72edd90e8aae3689ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37776c4a46fdd7cf547af2c9a973b324f7a5d1eadb11ca546f12db65af66abae015f75aa417a229b14a7db764feac7a458555d96d441c4415a94c1d1a140b7c1
|
7
|
+
data.tar.gz: 97fb9f40fe613a3c9fc6d5dd3db097388ae1943c35ed67170518636420702ae6f7a444cc39997613af4b96e51737c0fc14d5cfc44cfd7531e583afd7d3e69ac8
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
=== 1.4.0 / 2019-01-04
|
2
|
+
|
3
|
+
* Support to build with Ruby 2.6.
|
4
|
+
|
5
|
+
=== 1.3.0 / 2017-05-02
|
6
|
+
|
7
|
+
Compatibility Changes:
|
8
|
+
|
9
|
+
* Removed `YAML::EngineManager`. It's not working after Ruby 2.2.
|
10
|
+
We completely gave up to support it.
|
11
|
+
|
12
|
+
=== 1.2.0 / 2016-11-12
|
13
|
+
|
14
|
+
Bug fixes:
|
15
|
+
|
16
|
+
* Fix build error with Ruby 2.4.0
|
17
|
+
|
1
18
|
=== 1.1.0 / 2016-03-22
|
2
19
|
|
3
20
|
Bug fixes:
|
@@ -6,7 +23,7 @@ Bug fixes:
|
|
6
23
|
|
7
24
|
Enhancements:
|
8
25
|
|
9
|
-
* Skipped Syck specific methods on Psych engine.
|
26
|
+
* Skipped Syck specific methods on Psych engine.
|
10
27
|
|
11
28
|
Known issues:
|
12
29
|
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -2,11 +2,10 @@ require 'bundler/gem_tasks'
|
|
2
2
|
require 'rake/extensiontask'
|
3
3
|
require 'rake/testtask'
|
4
4
|
|
5
|
-
CLEAN
|
5
|
+
CLEAN << "lib/syck.bundle" << "tmp"
|
6
6
|
|
7
7
|
Rake::TestTask.new(:test) do |t|
|
8
8
|
t.libs << "test"
|
9
|
-
t.libs << "lib"
|
10
9
|
t.test_files = FileList['test/**/test_*.rb']
|
11
10
|
end
|
12
11
|
Rake::ExtensionTask.new('syck')
|
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/ext/syck/extconf.rb
CHANGED
data/ext/syck/rubyext.c
CHANGED
@@ -23,14 +23,14 @@ typedef struct RVALUE {
|
|
23
23
|
#endif
|
24
24
|
struct RBasic basic;
|
25
25
|
struct RObject object;
|
26
|
-
struct RClass klass
|
26
|
+
/*struct RClass klass;*/
|
27
27
|
/*struct RFloat flonum;*/
|
28
28
|
/*struct RString string;*/
|
29
29
|
struct RArray array;
|
30
30
|
/*struct RRegexp regexp;*/
|
31
31
|
/*struct RHash hash;*/
|
32
32
|
/*struct RData data;*/
|
33
|
-
struct RStruct rstruct
|
33
|
+
/*struct RStruct rstruct;*/
|
34
34
|
/*struct RBignum bignum;*/
|
35
35
|
/*struct RFile file;*/
|
36
36
|
} as;
|
@@ -1162,7 +1162,11 @@ syck_resolver_transfer(VALUE self, VALUE type, VALUE val)
|
|
1162
1162
|
}
|
1163
1163
|
else if ( !NIL_P( target_class ) )
|
1164
1164
|
{
|
1165
|
+
#ifdef RUBY_INTEGER_UNIFICATION
|
1166
|
+
if ( subclass == rb_cInteger )
|
1167
|
+
#else
|
1165
1168
|
if ( subclass == rb_cBignum )
|
1169
|
+
#endif
|
1166
1170
|
{
|
1167
1171
|
obj = rb_str2inum( val, 10 ); /* for yaml dumped by 1.8.3 [ruby-core:6159] */
|
1168
1172
|
}
|
@@ -2325,4 +2329,3 @@ Init_syck()
|
|
2325
2329
|
rb_define_method( cEmitter, "set_resolver", syck_emitter_set_resolver, 1);
|
2326
2330
|
rb_define_method( cEmitter, "node_export", syck_emitter_node_export, 1);
|
2327
2331
|
}
|
2328
|
-
|
data/ext/syck/syck.h
CHANGED
data/lib/syck/constants.rb
CHANGED
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
|
-
|
data/syck.gemspec
CHANGED
@@ -2,25 +2,25 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "syck"
|
5
|
-
s.version = "1.1
|
5
|
+
s.version = "1.4.1"
|
6
6
|
|
7
7
|
s.summary = "A gemified version of Syck from Ruby's stdlib"
|
8
8
|
s.description = "A gemified version of Syck from Ruby's stdlib. Syck has been removed from\nRuby's stdlib, and this gem is meant to bridge the gap for people that haven't\nupdated their YAML yet."
|
9
9
|
s.authors = ["Hiroshi SHIBATA", "Aaron Patterson", "Mat Brown"]
|
10
10
|
s.email = ["hsbt@ruby-lang.org", "aaron@tenderlovemaking.com"]
|
11
|
-
s.homepage = "https://github.com/
|
11
|
+
s.homepage = "https://github.com/ruby/syck"
|
12
|
+
s.license = "MIT"
|
12
13
|
s.require_paths = ["lib"]
|
13
14
|
s.extensions = ["ext/syck/extconf.rb"]
|
14
|
-
s.files = Dir["[A-Z]*", "ext/**/*", "lib/**/*.rb", "test/**/*.rb"]
|
15
|
-
s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc"
|
15
|
+
s.files = Dir["[A-Z]*", "ext/**/*", "lib/**/*.rb", "test/**/*.rb"] - %w[Gemfile.lock]
|
16
|
+
s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc"]
|
16
17
|
s.test_files = Dir["test/**/*.rb"]
|
17
18
|
s.rdoc_options = ["--main", "README.rdoc"]
|
18
19
|
s.required_ruby_version = Gem::Requirement.new(">= 2.0.0")
|
19
20
|
s.required_rubygems_version = Gem::Requirement.new(">= 0.9.5")
|
20
21
|
s.rubygems_version = "2.0.3"
|
21
22
|
|
22
|
-
s.add_development_dependency(%q<bundler
|
23
|
-
s.add_development_dependency(%q<
|
24
|
-
s.add_development_dependency(%q<
|
25
|
-
s.add_development_dependency(%q<rake-compiler>, [">= 0.4.1"])
|
23
|
+
s.add_development_dependency(%q<bundler>)
|
24
|
+
s.add_development_dependency(%q<test-unit>)
|
25
|
+
s.add_development_dependency(%q<rake-compiler>)
|
26
26
|
end
|
metadata
CHANGED
@@ -1,73 +1,59 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi SHIBATA
|
8
8
|
- Aaron Patterson
|
9
9
|
- Mat Brown
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '1.11'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
requirements:
|
26
|
-
- - "~>"
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: '1.11'
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rdoc
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - "~>"
|
19
|
+
- - ">="
|
34
20
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
21
|
+
version: '0'
|
36
22
|
type: :development
|
37
23
|
prerelease: false
|
38
24
|
version_requirements: !ruby/object:Gem::Requirement
|
39
25
|
requirements:
|
40
|
-
- - "
|
26
|
+
- - ">="
|
41
27
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
28
|
+
version: '0'
|
43
29
|
- !ruby/object:Gem::Dependency
|
44
30
|
name: test-unit
|
45
31
|
requirement: !ruby/object:Gem::Requirement
|
46
32
|
requirements:
|
47
|
-
- - "
|
33
|
+
- - ">="
|
48
34
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
35
|
+
version: '0'
|
50
36
|
type: :development
|
51
37
|
prerelease: false
|
52
38
|
version_requirements: !ruby/object:Gem::Requirement
|
53
39
|
requirements:
|
54
|
-
- - "
|
40
|
+
- - ">="
|
55
41
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
42
|
+
version: '0'
|
57
43
|
- !ruby/object:Gem::Dependency
|
58
44
|
name: rake-compiler
|
59
45
|
requirement: !ruby/object:Gem::Requirement
|
60
46
|
requirements:
|
61
47
|
- - ">="
|
62
48
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0
|
49
|
+
version: '0'
|
64
50
|
type: :development
|
65
51
|
prerelease: false
|
66
52
|
version_requirements: !ruby/object:Gem::Requirement
|
67
53
|
requirements:
|
68
54
|
- - ">="
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0
|
56
|
+
version: '0'
|
71
57
|
description: |-
|
72
58
|
A gemified version of Syck from Ruby's stdlib. Syck has been removed from
|
73
59
|
Ruby's stdlib, and this gem is meant to bridge the gap for people that haven't
|
@@ -84,7 +70,6 @@ extra_rdoc_files:
|
|
84
70
|
files:
|
85
71
|
- CHANGELOG.rdoc
|
86
72
|
- Gemfile
|
87
|
-
- Gemfile.lock
|
88
73
|
- README.rdoc
|
89
74
|
- Rakefile
|
90
75
|
- ext/syck/bytecode.c
|
@@ -117,7 +102,6 @@ files:
|
|
117
102
|
- lib/syck/types.rb
|
118
103
|
- lib/syck/yamlnode.rb
|
119
104
|
- lib/syck/ypath.rb
|
120
|
-
- lib/yaml/engine_manager.rb
|
121
105
|
- lib/yaml/syck.rb
|
122
106
|
- syck.gemspec
|
123
107
|
- test/helper.rb
|
@@ -135,10 +119,11 @@ files:
|
|
135
119
|
- test/test_time.rb
|
136
120
|
- test/test_yaml.rb
|
137
121
|
- test/test_yaml_properties.rb
|
138
|
-
homepage: https://github.com/
|
139
|
-
licenses:
|
122
|
+
homepage: https://github.com/ruby/syck
|
123
|
+
licenses:
|
124
|
+
- MIT
|
140
125
|
metadata: {}
|
141
|
-
post_install_message:
|
126
|
+
post_install_message:
|
142
127
|
rdoc_options:
|
143
128
|
- "--main"
|
144
129
|
- README.rdoc
|
@@ -155,9 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
140
|
- !ruby/object:Gem::Version
|
156
141
|
version: 0.9.5
|
157
142
|
requirements: []
|
158
|
-
|
159
|
-
|
160
|
-
signing_key:
|
143
|
+
rubygems_version: 3.4.0.dev
|
144
|
+
signing_key:
|
161
145
|
specification_version: 4
|
162
146
|
summary: A gemified version of Syck from Ruby's stdlib
|
163
147
|
test_files:
|
data/Gemfile.lock
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
syck (1.0.5)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
json (1.8.3)
|
10
|
-
power_assert (0.2.7)
|
11
|
-
rake (11.1.1)
|
12
|
-
rake-compiler (0.9.7)
|
13
|
-
rake
|
14
|
-
rdoc (4.2.2)
|
15
|
-
json (~> 1.4)
|
16
|
-
test-unit (3.1.7)
|
17
|
-
power_assert
|
18
|
-
|
19
|
-
PLATFORMS
|
20
|
-
ruby
|
21
|
-
|
22
|
-
DEPENDENCIES
|
23
|
-
bundler (~> 1.11)
|
24
|
-
rake-compiler (>= 0.4.1)
|
25
|
-
rdoc (~> 4.0)
|
26
|
-
syck!
|
27
|
-
test-unit (~> 3.1)
|
28
|
-
|
29
|
-
BUNDLED WITH
|
30
|
-
1.11.2
|
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
|