infusion 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/infusion.rb +1 -1
- data/lib/infusion.rb~ +5 -2
- data/lib/infusion/version.rb +1 -1
- metadata +1 -1
data/lib/infusion.rb
CHANGED
data/lib/infusion.rb~
CHANGED
@@ -5,7 +5,7 @@ require 'yaml'
|
|
5
5
|
|
6
6
|
|
7
7
|
module Infusion
|
8
|
-
config = YAML.load_file("
|
8
|
+
config = YAML.load_file("config.yml")
|
9
9
|
@key = config["config"]["key"]
|
10
10
|
server = config["config"]["server"]
|
11
11
|
@server = XMLRPC::Client.new2(server)
|
@@ -114,9 +114,12 @@ module Infusion
|
|
114
114
|
puts "ensure! #{attempts}"
|
115
115
|
end
|
116
116
|
end
|
117
|
-
|
117
|
+
|
118
|
+
# Delegate to ApiInfusionsoft::Client
|
119
|
+
def method_missing(method, *args, &block)
|
118
120
|
return super unless new.respond_to?(method)
|
119
121
|
new.send(method, *args, &block)
|
120
122
|
end
|
123
|
+
|
121
124
|
|
122
125
|
end
|
data/lib/infusion/version.rb
CHANGED