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 CHANGED
@@ -5,7 +5,7 @@ require 'yaml'
5
5
 
6
6
 
7
7
  module Infusion
8
- config = YAML.load_file("../config/config.yml")
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)
data/lib/infusion.rb~ CHANGED
@@ -5,7 +5,7 @@ require 'yaml'
5
5
 
6
6
 
7
7
  module Infusion
8
- config = YAML.load_file("#{RAILS_ROOT}/config/config.yml")
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
- def method_missing(method, *args, &block)
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
@@ -1,3 +1,3 @@
1
1
  module Infusion
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infusion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: