Skip to content

Commit 7fffb1e

Browse files
committed
Drop to deprecated code related EngineManager.
Because YAML::ENGINE in ruby core repository was removed at Mar 25, 2014
1 parent 1246225 commit 7fffb1e

2 files changed

Lines changed: 7 additions & 83 deletions

File tree

lib/syck.rb

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
#
88

99
require 'yaml/syck'
10-
if defined?(YAML::ENGINE)
11-
require File.expand_path('../yaml/engine_manager', __FILE__)
12-
else
13-
Object.class_eval <<-eorb, __FILE__, __LINE__ + 1
14-
remove_const 'YAML' if defined? YAML
15-
YAML = Syck
16-
remove_method :to_yaml
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
2017

2118
# == YAML
2219
#
@@ -453,5 +450,3 @@ def y( object, *objects )
453450
end
454451
private :y
455452
end
456-
457-

lib/yaml/engine_manager.rb

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)