infusion-api 1.0.1 → 1.0.2

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.
@@ -0,0 +1,26 @@
1
+ require 'infusion-api/api'
2
+ require 'infusion-api/client'
3
+ require 'infusion-api/configuration'
4
+
5
+ module Infusionsoft
6
+ extend Configuration
7
+ class << self
8
+ # Alias for Infusionsoft::Client.new
9
+ #
10
+ # @return [Infusionsoft::Client]
11
+ def new(options={})
12
+ Infusionsoft::Client.new(options)
13
+ end
14
+
15
+ # Delegate to ApiInfusionsoft::Client
16
+ def method_missing(method, *args, &block)
17
+ return super unless new.respond_to?(method)
18
+ new.send(method, *args, &block)
19
+ end
20
+
21
+ def respond_to?(method, include_private = false)
22
+ new.respond_to?(method, include_private) || super(method, include_private)
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,8 @@
1
+ require 'test/unit'
2
+
3
+ class ApiInfusionTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_this_plugin
6
+ flunk # will implement later :(
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infusion-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Updated by Raj Shah
@@ -16,7 +16,29 @@ email:
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
- files: []
19
+ files:
20
+ - .gitignore
21
+ - LICENSE.md
22
+ - README.md
23
+ - infusion-api.gemspec
24
+ - lib/infusion-api.rb
25
+ - lib/infusion-api/api.rb
26
+ - lib/infusion-api/client.rb
27
+ - lib/infusion-api/client/affiliate.rb
28
+ - lib/infusion-api/client/contact.rb
29
+ - lib/infusion-api/client/credit_card.rb
30
+ - lib/infusion-api/client/data.rb
31
+ - lib/infusion-api/client/email.rb
32
+ - lib/infusion-api/client/file.rb
33
+ - lib/infusion-api/client/invoice.rb
34
+ - lib/infusion-api/client/search.rb
35
+ - lib/infusion-api/client/ticket.rb
36
+ - lib/infusion-api/client/version.rb
37
+ - lib/infusion-api/configuration.rb
38
+ - lib/infusion-api/connection.rb
39
+ - lib/infusion-api/request.rb
40
+ - lib/infusion-api/version.rb
41
+ - test/api_infusion_test.rb
20
42
  homepage: http://rubygems.org/gems/infusion-api
21
43
  licenses: []
22
44
  metadata: {}