Recharge 1.0.2 → 1.1.0

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.
@@ -2,8 +2,9 @@
2
2
  # Charge Resource
3
3
 
4
4
  # Only 2 lines are required to get started:
5
- # Require the recharge.rb file
6
- require '../lib/recharge'
5
+ # Require the recharge gem
6
+ require 'rubygems'
7
+ require 'recharge'
7
8
 
8
9
  # Set your API key here, found in Recharge Settings > API Settings > API Private Key
9
10
  # If incorrect or blank, any calls will raise a Response::NotAuthorized
@@ -2,8 +2,9 @@
2
2
  # Customer Resource
3
3
 
4
4
  # Only 2 lines are required to get started:
5
- # Require the recharge.rb file
6
- require '../lib/recharge'
5
+ # Require the recharge gem
6
+ require 'rubygems'
7
+ require 'recharge'
7
8
 
8
9
  # Set your API key here, found in Recharge Settings > API Settings > API Private Key
9
10
  # If incorrect or blank, any calls will raise a Response::NotAuthorized
@@ -14,6 +15,8 @@ Recharge.api_key = "92ec3e4d8b623dd9baaaf1575b7c557cd113e3e8"
14
15
  # Get a list of all active customers
15
16
  puts "Find All Customers",''
16
17
 
18
+ customerID = ""
19
+
17
20
  begin
18
21
  # call find_all to get a list of all customers
19
22
  Recharge::Customer.find_all.each do |customer|
@@ -1,9 +1,10 @@
1
1
  # Examples for the Recharge API Gem
2
- # Payment Method Resource
2
+ # Payment Method Resource
3
3
 
4
4
  # Only 2 lines are required to get started:
5
- # Require the recharge.rb file
6
- require '../lib/recharge'
5
+ # Require the recharge gem
6
+ require 'rubygems'
7
+ require 'recharge'
7
8
 
8
9
  # Set your API key here, found in Recharge Settings > API Settings > API Private Key
9
10
  # If incorrect or blank, any calls will raise a Response::NotAuthorized
@@ -2,8 +2,9 @@
2
2
  # Product Resource
3
3
 
4
4
  # Only 2 lines are required to get started:
5
- # Require the recharge.rb file
6
- require '../lib/recharge'
5
+ # Require the recharge gem
6
+ require 'rubygems'
7
+ require 'recharge'
7
8
 
8
9
  # Set your API key here, found in Recharge Settings > API Settings > API Private Key
9
10
  # If incorrect or blank, any calls will raise a Response::NotAuthorized
@@ -14,6 +15,8 @@ Recharge.api_key = "92ec3e4d8b623dd9baaaf1575b7c557cd113e3e8"
14
15
  # Get a list of all products
15
16
  puts "Find All Products",''
16
17
 
18
+ productID = ""
19
+
17
20
  begin
18
21
  # call find_all to get a list of all products
19
22
  Recharge::Product.find_all.each do |product|
@@ -3,8 +3,9 @@
3
3
  # Lets you easily perform one-time credit card charges
4
4
 
5
5
  # Only 2 lines are required to get started:
6
- # Require the recharge.rb file
7
- require '../lib/recharge'
6
+ # Require the recharge gem
7
+ require 'rubygems'
8
+ require 'recharge'
8
9
 
9
10
  # Set your API key here, found in Recharge Settings > API Settings > API Private Key
10
11
  # If incorrect or blank, any calls will raise a Response::NotAuthorized
@@ -1,6 +1,4 @@
1
1
  module Recharge
2
- require File.dirname(__FILE__) + '/happymapper'
3
-
4
2
  require File.dirname(__FILE__) + '/recharge/base'
5
3
  require File.dirname(__FILE__) + '/recharge/paymethod'
6
4
  require File.dirname(__FILE__) + '/recharge/charge'
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 2
10
- version: 1.0.2
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Recharge
@@ -16,8 +16,23 @@ bindir: bin
16
16
  cert_chain: []
17
17
 
18
18
  date: 2012-02-15 00:00:00 Z
19
- dependencies: []
20
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: happymapper
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 15
29
+ segments:
30
+ - 0
31
+ - 4
32
+ - 0
33
+ version: 0.4.0
34
+ type: :runtime
35
+ version_requirements: *id001
21
36
  description: An API client library for Recharge http://rechargebilling.com
22
37
  email: help@rechargebilling.com
23
38
  executables: []