test/fixtures/hello.rb in code_rippa-0.0.7 vs test/fixtures/hello.rb in code_rippa-1.0.0
- old
+ new
@@ -4,13 +4,15 @@
require 'code_rippa/version'
require 'ansi/progressbar'
require 'rainbow'
include ANSI
+if defined? Syck
+ YAML::ENGINE.yamler = 'syck'
+else
+ YAML::ENGINE.yamler = 'psych'
-YAML::ENGINE.yamler = 'syck'
-
module CodeRippa
@@supported_syntax = nil
@@supported_ext = nil
@@ -118,6 +120,6 @@
def self.heading_color(theme)
f = YAML.load(File.read("#{Uv.render_path}/latex/#{theme}.render"))
/([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/.match(f['listing']['begin'].split('\\')[2]).to_s
end
-end
\ No newline at end of file
+end