Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Fix ox load error
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Jun 17, 2016
1 parent 5aa5c5a commit 37ae66c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/terraforming.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
require "oj"
require "ox"

begin
require "ox"
rescue NameError => e
spec = Gem::Specification.stubs.find {|s| s.name == 'ox' }
raise e unless spec
require File.join(spec.gem_dir, "lib/ox")
end

require "aws-sdk-core"
require "erb"
Expand Down

0 comments on commit 37ae66c

Please sign in to comment.