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

Commit

Permalink
Merge pull request #229 from winebarrel/fix_load_ox_error
Browse files Browse the repository at this point in the history
Fix ox load error
  • Loading branch information
dtan4 authored Jun 17, 2016
2 parents 5aa5c5a + 37ae66c commit 67fdd83
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 67fdd83

Please sign in to comment.