Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit YAML require for recent Ruby versions #4

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -44,3 +44,5 @@ pkg
#
# For vim:
#*.swp

Gemfile.lock
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,2 +1,2 @@
source :rubygems
source 'https://rubygems.org'
gemspec
1 change: 1 addition & 0 deletions lib/genomer.rb
@@ -1,4 +1,5 @@
module Genomer
require 'yaml'
require 'genomer/error'

autoload :Runtime, 'genomer/runtime'
Expand Down
2 changes: 1 addition & 1 deletion lib/genomer/plugin.rb
Expand Up @@ -82,7 +82,7 @@ def initialize(arguments,flags)
#
# @return [Array] An array of Scaffolder::Region instances
def scaffold
YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE)
YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE) and Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
Scaffolder.new(YAML.load(File.read(scaffold_file)),sequence_file)
end

Expand Down