recurly 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/Manifest +1 -1
- data/Rakefile +1 -1
- data/lib/recurly/base.rb +3 -3
- data/lib/recurly/plan.rb +1 -0
- data/recurly.gemspec +4 -4
- data/test/account_test.rb +5 -5
- data/test/test_helper.rb +2 -1
- metadata +14 -6
data/Manifest
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('recurly', '0.1.
|
5
|
+
Echoe.new('recurly', '0.1.3') do |p|
|
6
6
|
p.description = "A Ruby API wrapper for Recurly. Super Simple Subscription billing."
|
7
7
|
p.url = "http://github.com/recurly/recurly-client-ruby"
|
8
8
|
p.author = "Isaac Hall"
|
data/lib/recurly/base.rb
CHANGED
@@ -30,22 +30,22 @@ end
|
|
30
30
|
|
31
31
|
module Recurly
|
32
32
|
|
33
|
-
VERSION = '0.1.
|
33
|
+
VERSION = '0.1.3'
|
34
34
|
|
35
35
|
class << self
|
36
|
-
attr_accessor :username, :password
|
36
|
+
attr_accessor :username, :password, :site
|
37
37
|
|
38
38
|
def configure
|
39
39
|
yield self
|
40
40
|
|
41
41
|
RecurlyBase.user = username
|
42
42
|
RecurlyBase.password = password
|
43
|
+
RecurlyBase.site = site || "https://app.recurly.com"
|
43
44
|
true
|
44
45
|
end
|
45
46
|
end
|
46
47
|
|
47
48
|
class RecurlyBase < ActiveResource::Base
|
48
|
-
self.site = "https://app.recurly.com"
|
49
49
|
|
50
50
|
# Add User-Agent to headers
|
51
51
|
def headers
|
data/lib/recurly/plan.rb
CHANGED
data/recurly.gemspec
CHANGED
@@ -2,20 +2,20 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{recurly}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Isaac Hall"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-03-08}
|
10
10
|
s.description = %q{A Ruby API wrapper for Recurly. Super Simple Subscription billing.}
|
11
11
|
s.email = %q{support@recurly.com}
|
12
12
|
s.extra_rdoc_files = ["LICENSE", "README.md", "lib/recurly.rb", "lib/recurly/account.rb", "lib/recurly/base.rb", "lib/recurly/billing_info.rb", "lib/recurly/charge.rb", "lib/recurly/credit.rb", "lib/recurly/invoice.rb", "lib/recurly/plan.rb", "lib/recurly/subscription.rb"]
|
13
|
-
s.files = ["LICENSE", "
|
13
|
+
s.files = ["LICENSE", "README.md", "Rakefile", "init.rb", "lib/recurly.rb", "lib/recurly/account.rb", "lib/recurly/base.rb", "lib/recurly/billing_info.rb", "lib/recurly/charge.rb", "lib/recurly/credit.rb", "lib/recurly/invoice.rb", "lib/recurly/plan.rb", "lib/recurly/subscription.rb", "test/account_test.rb", "test/billing_info_test.rb", "test/charge_test.rb", "test/credit_test.rb", "test/plan_test.rb", "test/subscription_test.rb", "test/test_helper.rb", "Manifest", "recurly.gemspec"]
|
14
14
|
s.homepage = %q{http://github.com/recurly/recurly-client-ruby}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Recurly", "--main", "README.md"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{recurly}
|
18
|
-
s.rubygems_version = %q{1.3.
|
18
|
+
s.rubygems_version = %q{1.3.6}
|
19
19
|
s.summary = %q{A Ruby API wrapper for Recurly. Super Simple Subscription billing.}
|
20
20
|
s.test_files = ["test/account_test.rb", "test/billing_info_test.rb", "test/charge_test.rb", "test/credit_test.rb", "test/plan_test.rb", "test/subscription_test.rb", "test/test_helper.rb"]
|
21
21
|
|
data/test/account_test.rb
CHANGED
@@ -19,17 +19,17 @@ class AccountTest < Test::Unit::TestCase
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test_update_account
|
22
|
-
|
22
|
+
orig_account = create_account('update')
|
23
23
|
|
24
|
-
account = Recurly::Account.find(
|
24
|
+
account = Recurly::Account.find(orig_account.account_code)
|
25
25
|
account.last_name = 'Update Test'
|
26
26
|
account.company_name = 'Recurly Ruby Gem -- Update'
|
27
27
|
account.save
|
28
28
|
|
29
|
-
updated_acct = Recurly::Account.find(
|
29
|
+
updated_acct = Recurly::Account.find(orig_account.account_code)
|
30
30
|
assert_equal account.email, updated_acct.email
|
31
|
-
assert_not_equal
|
32
|
-
assert_not_equal
|
31
|
+
assert_not_equal orig_account.last_name, updated_acct.last_name
|
32
|
+
assert_not_equal orig_account.company_name, updated_acct.company_name
|
33
33
|
end
|
34
34
|
|
35
35
|
def test_close_account
|
data/test/test_helper.rb
CHANGED
@@ -6,9 +6,10 @@ require File.dirname(__FILE__) + '/../lib/recurly'
|
|
6
6
|
Recurly.configure do |c|
|
7
7
|
c.username = ''
|
8
8
|
c.password = ''
|
9
|
+
c.site = ''
|
9
10
|
end
|
10
11
|
|
11
|
-
TEST_PLAN_CODE = '
|
12
|
+
TEST_PLAN_CODE = 'test_plan'
|
12
13
|
|
13
14
|
def create_account(account_code)
|
14
15
|
account = Recurly::Account.create(
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Isaac Hall
|
@@ -9,7 +14,7 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-03-08 00:00:00 -08:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -33,7 +38,6 @@ extra_rdoc_files:
|
|
33
38
|
- lib/recurly/subscription.rb
|
34
39
|
files:
|
35
40
|
- LICENSE
|
36
|
-
- Manifest
|
37
41
|
- README.md
|
38
42
|
- Rakefile
|
39
43
|
- init.rb
|
@@ -53,6 +57,7 @@ files:
|
|
53
57
|
- test/plan_test.rb
|
54
58
|
- test/subscription_test.rb
|
55
59
|
- test/test_helper.rb
|
60
|
+
- Manifest
|
56
61
|
- recurly.gemspec
|
57
62
|
has_rdoc: true
|
58
63
|
homepage: http://github.com/recurly/recurly-client-ruby
|
@@ -72,18 +77,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
77
|
requirements:
|
73
78
|
- - ">="
|
74
79
|
- !ruby/object:Gem::Version
|
80
|
+
segments:
|
81
|
+
- 0
|
75
82
|
version: "0"
|
76
|
-
version:
|
77
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
84
|
requirements:
|
79
85
|
- - ">="
|
80
86
|
- !ruby/object:Gem::Version
|
87
|
+
segments:
|
88
|
+
- 1
|
89
|
+
- 2
|
81
90
|
version: "1.2"
|
82
|
-
version:
|
83
91
|
requirements: []
|
84
92
|
|
85
93
|
rubyforge_project: recurly
|
86
|
-
rubygems_version: 1.3.
|
94
|
+
rubygems_version: 1.3.6
|
87
95
|
signing_key:
|
88
96
|
specification_version: 3
|
89
97
|
summary: A Ruby API wrapper for Recurly. Super Simple Subscription billing.
|