lib/terraforming.rb in terraforming-0.9.0 vs lib/terraforming.rb in terraforming-0.9.1
- old
+ new
@@ -1,6 +1,13 @@
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"
require "json"
require "thor"