lib/mymoip.rb in mymoip-0.2.1 vs lib/mymoip.rb in mymoip-0.2.2
- old
+ new
@@ -16,9 +16,15 @@
end
end
end
$LOAD_PATH << "./lib/mymoip"
-Dir[File.dirname(__FILE__) + "/mymoip/*.rb"].each { |file| require file }
+require 'mymoip/request'
+
+files = Dir[File.dirname(__FILE__) + "/mymoip/*.rb"]
+after_request = files.reject! { |f| f.include?('/request.rb') }
+
+after_request.each { |f| require f }
+
MyMoip.environment = "sandbox"
MyMoip.logger = Logger.new(STDOUT)