mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
update file layout
This commit is contained in:
parent
409d573819
commit
b935cec7fe
7 changed files with 13 additions and 13 deletions
22
lib/opencv/psyched_yaml.rb
Normal file
22
lib/opencv/psyched_yaml.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: ruby; coding: utf-8-unix -*-
|
||||
# Psych loader for avoiding loading problem
|
||||
# (borrowed from Bundler 1.1.rc.7 https://github.com/carlhuda/bundler/blob/v1.1.rc.7/lib/bundler/psyched_yaml.rb )
|
||||
#
|
||||
# See: https://github.com/ruby-opencv/ruby-opencv/pull/6
|
||||
|
||||
# Psych could be a gem
|
||||
begin
|
||||
gem 'psych'
|
||||
rescue Gem::LoadError
|
||||
end if defined?(Gem)
|
||||
|
||||
# Psych could be a stdlib
|
||||
begin
|
||||
# it's too late if Syck is already loaded
|
||||
require 'psych' unless defined?(Syck)
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
# Psych might NOT EXIST AT ALL
|
||||
require 'yaml'
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue