recurly 0.4.15 → 0.4.16
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/lib/patches/rails2/active_resource/base.rb +35 -0
- data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
- data/lib/recurly.rb +14 -4
- data/lib/recurly/account.rb +6 -3
- data/lib/recurly/base.rb +1 -2
- data/lib/recurly/subscription.rb +7 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/subscription_spec.rb +2 -1
- metadata +108 -220
- data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
- data/spec/vcr/account/close/1313708721.yml +0 -132
- data/spec/vcr/account/create-blank/1313708721.yml +0 -44
- data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
- data/spec/vcr/account/create-min/1313708721.yml +0 -56
- data/spec/vcr/account/create/1313708721.yml +0 -60
- data/spec/vcr/account/find/1313708721.yml +0 -137
- data/spec/vcr/account/list/1313708721.yml +0 -1307
- data/spec/vcr/account/update/1313708721.yml +0 -216
- data/spec/vcr/billing/create/1313708721.yml +0 -181
- data/spec/vcr/billing/destroy/1313708721.yml +0 -240
- data/spec/vcr/billing/errors/1313708721.yml +0 -106
- data/spec/vcr/billing/find/1313708721.yml +0 -234
- data/spec/vcr/billing/update/1313708721.yml +0 -251
- data/spec/vcr/charge/create/1313708721.yml +0 -222
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
- data/spec/vcr/charge/list-all/1313708721.yml +0 -276
- data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
- data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
- data/spec/vcr/charge/lookup/1313708721.yml +0 -152
- data/spec/vcr/coupon/create/1296774903.yml +0 -97
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
- data/spec/vcr/credit/create/1313708090.yml +0 -152
- data/spec/vcr/credit/delete/1313708090.yml +0 -211
- data/spec/vcr/credit/list/1313708090.yml +0 -276
- data/spec/vcr/credit/lookup/1313708090.yml +0 -152
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
- data/spec/vcr/invoice/create/1296674173.yml +0 -302
- data/spec/vcr/invoice/list/1296674173.yml +0 -405
- data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
- data/spec/vcr/plan/all.yml +0 -233
- data/spec/vcr/plan/find.yml +0 -136
- data/spec/vcr/plan/update.yml +0 -152
- data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
- data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
- data/spec/vcr/subscription/change1/1296674173.yml +0 -354
- data/spec/vcr/subscription/change2/1296674173.yml +0 -354
- data/spec/vcr/subscription/create/1296674173.yml +0 -192
- data/spec/vcr/subscription/find/1296674173.yml +0 -244
- data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
- data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
- data/spec/vcr/transaction/all/1311126815.yml +0 -397
- data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
- data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
- data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
- data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
- data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
- data/spec/vcr/transaction/void/1311126815.yml +0 -321
- data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
- data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -0,0 +1,35 @@
|
|
1
|
+
module ActiveResource
|
2
|
+
class Base
|
3
|
+
|
4
|
+
# Patch for Rails 3.0 and below (fixed in 3.1) to properly
|
5
|
+
# resolve resources inside nested modules, allowing for
|
6
|
+
# ActiveRecord models and other classes with the same names
|
7
|
+
# as Recurly's nested resources (CreditCard, etc)
|
8
|
+
#
|
9
|
+
# This issue was unintentially fixed in Rails 3.1 by this commit:
|
10
|
+
# https://github.com/rails/rails/commit/a962bfe47232200c20dce02047201247d24d77f7
|
11
|
+
def find_or_create_resource_for(name)
|
12
|
+
resource_name = name.to_s.camelize
|
13
|
+
|
14
|
+
const_args = RUBY_VERSION < "1.9" ? [resource_name] : [resource_name, false]
|
15
|
+
if self.class.const_defined?(*const_args)
|
16
|
+
self.class.const_get(*const_args)
|
17
|
+
else
|
18
|
+
ancestors = self.class.name.split("::")
|
19
|
+
if ancestors.size > 1
|
20
|
+
find_resource_in_modules(resource_name, ancestors)
|
21
|
+
elsif Object.const_defined?(*const_args)
|
22
|
+
Object.const_get(*const_args)
|
23
|
+
else
|
24
|
+
raise NameError
|
25
|
+
end
|
26
|
+
end
|
27
|
+
rescue NameError
|
28
|
+
resource = self.class.const_set(resource_name, Class.new(ActiveResource::Base))
|
29
|
+
resource.prefix = self.class.prefix
|
30
|
+
resource.site = self.class.site
|
31
|
+
resource
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module ActiveModel
|
2
|
+
module Serializers
|
3
|
+
module Xml
|
4
|
+
|
5
|
+
# Patch for Rails 3.0 to properly serialize nil values (without type="yaml")
|
6
|
+
#
|
7
|
+
# This issue was fixed in Rails 3.0.20 by this pull request:
|
8
|
+
# https://github.com/rails/rails/pull/8853
|
9
|
+
|
10
|
+
class Serializer
|
11
|
+
class Attribute
|
12
|
+
|
13
|
+
protected
|
14
|
+
|
15
|
+
def compute_type
|
16
|
+
return if value.nil?
|
17
|
+
type = ActiveSupport::XmlMini::TYPE_NAMES[value.class.name]
|
18
|
+
type ||= :string if value.respond_to?(:to_str)
|
19
|
+
type ||= :yaml
|
20
|
+
type
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/recurly.rb
CHANGED
@@ -5,12 +5,22 @@ require 'openssl'
|
|
5
5
|
require 'addressable/uri'
|
6
6
|
|
7
7
|
# load ActiveResource patches
|
8
|
-
if
|
8
|
+
if ::ActiveResource::VERSION::MAJOR == 3
|
9
|
+
if ::ActiveResource::VERSION::MINOR == 0 &&
|
10
|
+
::ActiveResource::VERSION::TINY < 20
|
11
|
+
require 'patches/rails3/active_model/serializers/xml'
|
12
|
+
end
|
9
13
|
require 'patches/rails3/active_resource/connection'
|
10
|
-
elsif
|
14
|
+
elsif ::ActiveResource::VERSION::MAJOR == 2
|
11
15
|
require 'patches/rails2/active_resource/connection'
|
12
16
|
end
|
13
17
|
|
18
|
+
if ::ActiveResource::VERSION::MAJOR == 2 ||
|
19
|
+
(::ActiveResource::VERSION::MAJOR == 3 &&
|
20
|
+
::ActiveResource::VERSION::MINOR == 0)
|
21
|
+
require 'patches/rails2/active_resource/base'
|
22
|
+
end
|
23
|
+
|
14
24
|
require 'recurly/version'
|
15
25
|
require 'recurly/exceptions'
|
16
26
|
require 'recurly/formats/xml_with_pagination'
|
@@ -20,7 +30,7 @@ require 'recurly/rails3/railtie' if defined?(::Rails::Railtie)
|
|
20
30
|
require 'recurly/base'
|
21
31
|
|
22
32
|
# load rails2 fixes
|
23
|
-
if
|
33
|
+
if ::ActiveResource::VERSION::MAJOR == 2
|
24
34
|
require 'recurly/rails2/compatibility'
|
25
35
|
end
|
26
36
|
|
@@ -89,7 +99,7 @@ module Recurly
|
|
89
99
|
end
|
90
100
|
end
|
91
101
|
end
|
92
|
-
|
102
|
+
|
93
103
|
def site_for_environment(environment)
|
94
104
|
if environment == :development
|
95
105
|
"http://api.lvh.me:3000"
|
data/lib/recurly/account.rb
CHANGED
@@ -47,17 +47,20 @@ module Recurly
|
|
47
47
|
}
|
48
48
|
|
49
49
|
# Lists all accounts (with optional filter)
|
50
|
+
# This method also accepts a Hash that allows you to specify a page number, etc.
|
50
51
|
#
|
51
52
|
# examples:
|
52
53
|
# Account.list(:all) #=> returns all accounts
|
53
54
|
# Account.list(:active) #=> returns active accounts
|
54
55
|
# Account.list(:pastdue) #=> returns pastdue accounts
|
55
56
|
# Account.list(:free) #=> returns the free accounts
|
57
|
+
# Account.list(:active, {:page => 3}) #=> returns the 3rd page of active accounts
|
56
58
|
#
|
57
|
-
def self.list(status = :all)
|
58
|
-
opts = {}
|
59
|
+
def self.list(status = :all, params = {})
|
60
|
+
opts = {:params => params}
|
61
|
+
|
59
62
|
if status && status != :all
|
60
|
-
|
63
|
+
params[:show] = SHOW_PARAMS[status] || status
|
61
64
|
end
|
62
65
|
find(:all, opts)
|
63
66
|
end
|
data/lib/recurly/base.rb
CHANGED
@@ -100,7 +100,6 @@ module Recurly
|
|
100
100
|
Recurly::Formats::XmlWithErrorsFormat.new.decode(xml)
|
101
101
|
)
|
102
102
|
rescue => e
|
103
|
-
logger.warn "Recurly::Base#load_errors exception parsing nested error information"
|
104
103
|
# Fallback to default errors parsing
|
105
104
|
errors.from_xml xml
|
106
105
|
raise
|
@@ -126,7 +125,7 @@ module Recurly
|
|
126
125
|
message = message[(humanized_name.size + 1)..-1] if message[0, humanized_name.size + 1].downcase == "#{humanized_name} "
|
127
126
|
|
128
127
|
# HACK: Special case nested billing errors
|
129
|
-
if self.is_a?(Recurly::BillingInfo) && Recurly::BillingInfo::CreditCard.known_attributes.include?(field)
|
128
|
+
if self.respond_to?(:credit_card) && self.credit_card && self.is_a?(Recurly::BillingInfo) && Recurly::BillingInfo::CreditCard.known_attributes.include?(field)
|
130
129
|
self.credit_card.errors.add field.to_sym, message
|
131
130
|
next
|
132
131
|
end
|
data/lib/recurly/subscription.rb
CHANGED
@@ -20,6 +20,13 @@ module Recurly
|
|
20
20
|
super
|
21
21
|
end
|
22
22
|
|
23
|
+
# API inconsistency workaround: Pull plan_code into subscription to conform to known_attributes
|
24
|
+
def load(attributes, remove_root = false)
|
25
|
+
attributes = attributes.with_indifferent_access
|
26
|
+
attributes[:plan_code] ||= attributes[:plan][:plan_code] if attributes.include?(:plan)
|
27
|
+
super
|
28
|
+
end
|
29
|
+
|
23
30
|
def self.refund(account_code, refund_type = :partial)
|
24
31
|
raise "Refund type must be :full, :partial, or :none." unless [:full, :partial, :none].include?(refund_type)
|
25
32
|
Subscription.delete(nil, {:account_code => account_code, :refund => refund_type})
|
data/lib/recurly/version.rb
CHANGED
data/spec/config/recurly.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
|
-
username:
|
3
|
-
password:
|
4
|
-
private_key:
|
5
|
-
subdomain:
|
2
|
+
username: api-test@litle.com
|
3
|
+
password: 6499f1cd3ae14875beb91417d31e91b7
|
4
|
+
private_key: 78753d36439c423aba60e581be828a2a
|
5
|
+
subdomain: litle-test
|
6
6
|
environment: :development
|
@@ -21,6 +21,7 @@ module Recurly
|
|
21
21
|
subscription = Subscription.find(account.account_code)
|
22
22
|
subscription.state.should == "active"
|
23
23
|
subscription.plan.plan_code.should == "paid"
|
24
|
+
subscription.plan_code.should == "paid"
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
@@ -217,4 +218,4 @@ module Recurly
|
|
217
218
|
|
218
219
|
end
|
219
220
|
end
|
220
|
-
end
|
221
|
+
end
|
metadata
CHANGED
@@ -1,133 +1,139 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 4
|
8
|
-
- 15
|
9
|
-
version: 0.4.15
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.16
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Isaac Hall
|
13
9
|
- Jacques Crocker
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: activeresource
|
23
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 2
|
30
|
-
- 3
|
31
|
-
version: "2.3"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.3'
|
32
23
|
type: :runtime
|
33
24
|
prerelease: false
|
34
|
-
version_requirements:
|
35
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '2.3'
|
31
|
+
- !ruby/object:Gem::Dependency
|
36
32
|
name: activesupport
|
37
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
38
34
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
- 2
|
44
|
-
- 3
|
45
|
-
version: "2.3"
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '2.3'
|
46
39
|
type: :runtime
|
47
40
|
prerelease: false
|
48
|
-
version_requirements:
|
49
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
50
48
|
name: addressable
|
51
|
-
requirement:
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
- 2
|
58
|
-
- 2
|
59
|
-
version: "2.2"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.2'
|
60
55
|
type: :runtime
|
61
56
|
prerelease: false
|
62
|
-
version_requirements:
|
63
|
-
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '2.2'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
64
|
name: nokogiri
|
65
|
-
requirement:
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
- 1
|
72
|
-
- 4
|
73
|
-
version: "1.4"
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.4'
|
74
71
|
type: :runtime
|
75
72
|
prerelease: false
|
76
|
-
version_requirements:
|
77
|
-
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '1.4'
|
79
|
+
- !ruby/object:Gem::Dependency
|
78
80
|
name: rspec
|
79
|
-
requirement:
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
80
82
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
segments:
|
85
|
-
- 2
|
86
|
-
- 0
|
87
|
-
- 0
|
88
|
-
- beta
|
89
|
-
- 22
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
90
86
|
version: 2.0.0.beta.22
|
91
87
|
type: :development
|
92
88
|
prerelease: false
|
93
|
-
version_requirements:
|
94
|
-
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 2.0.0.beta.22
|
95
|
+
- !ruby/object:Gem::Dependency
|
95
96
|
name: webmock
|
96
|
-
requirement:
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
97
98
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
- 0
|
103
|
-
version: "0"
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
104
103
|
type: :development
|
105
104
|
prerelease: false
|
106
|
-
version_requirements:
|
107
|
-
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
108
112
|
name: vcr
|
109
|
-
requirement:
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
110
114
|
none: false
|
111
|
-
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
|
115
|
-
- 0
|
116
|
-
version: "0"
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
117
119
|
type: :development
|
118
120
|
prerelease: false
|
119
|
-
version_requirements:
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
120
127
|
description: A Ruby API wrapper for Recurly. Super Simple Subscription billing.
|
121
|
-
email:
|
128
|
+
email:
|
122
129
|
- support@recurly.com
|
123
130
|
executables: []
|
124
|
-
|
125
131
|
extensions: []
|
126
|
-
|
127
132
|
extra_rdoc_files: []
|
128
|
-
|
129
|
-
|
133
|
+
files:
|
134
|
+
- lib/patches/rails2/active_resource/base.rb
|
130
135
|
- lib/patches/rails2/active_resource/connection.rb
|
136
|
+
- lib/patches/rails3/active_model/serializers/xml.rb
|
131
137
|
- lib/patches/rails3/active_resource/connection.rb
|
132
138
|
- lib/recurly/account.rb
|
133
139
|
- lib/recurly/account_base.rb
|
@@ -182,95 +188,32 @@ files:
|
|
182
188
|
- spec/unit/transaction_spec.rb
|
183
189
|
- spec/unit/transparent_spec.rb
|
184
190
|
- spec/unit/verification_spec.rb
|
185
|
-
- spec/vcr/account/accept-language-account/1313708721.yml
|
186
|
-
- spec/vcr/account/close/1313708721.yml
|
187
|
-
- spec/vcr/account/create/1313708721.yml
|
188
|
-
- spec/vcr/account/create-blank/1313708721.yml
|
189
|
-
- spec/vcr/account/create-duplicate/1313708721.yml
|
190
|
-
- spec/vcr/account/create-min/1313708721.yml
|
191
|
-
- spec/vcr/account/find/1313708721.yml
|
192
|
-
- spec/vcr/account/list/1313708721.yml
|
193
|
-
- spec/vcr/account/update/1313708721.yml
|
194
|
-
- spec/vcr/billing/create/1313708721.yml
|
195
|
-
- spec/vcr/billing/destroy/1313708721.yml
|
196
|
-
- spec/vcr/billing/errors/1313708721.yml
|
197
|
-
- spec/vcr/billing/find/1313708721.yml
|
198
|
-
- spec/vcr/billing/update/1313708721.yml
|
199
|
-
- spec/vcr/charge/create/1313708721.yml
|
200
|
-
- spec/vcr/charge/delete-uninvoiced/1313708721.yml
|
201
|
-
- spec/vcr/charge/list-all/1313708721.yml
|
202
|
-
- spec/vcr/charge/list-invoiced/1313708721.yml
|
203
|
-
- spec/vcr/charge/list-pending/1313708721.yml
|
204
|
-
- spec/vcr/charge/lookup/1313708721.yml
|
205
|
-
- spec/vcr/coupon/create/1296774903.yml
|
206
|
-
- spec/vcr/coupon/destroy/1296774903.yml
|
207
|
-
- spec/vcr/credit/create/1313708090.yml
|
208
|
-
- spec/vcr/credit/delete/1313708090.yml
|
209
|
-
- spec/vcr/credit/list/1313708090.yml
|
210
|
-
- spec/vcr/credit/lookup/1313708090.yml
|
211
|
-
- spec/vcr/invoice/create/1296674173.yml
|
212
|
-
- spec/vcr/invoice/create-no-charges/1296674173.yml
|
213
|
-
- spec/vcr/invoice/list/1296674173.yml
|
214
|
-
- spec/vcr/invoice/lookup/1296674173.yml
|
215
|
-
- spec/vcr/plan/all.yml
|
216
|
-
- spec/vcr/plan/find.yml
|
217
|
-
- spec/vcr/plan/update.yml
|
218
|
-
- spec/vcr/subscription/addons/add/1296674173.yml
|
219
|
-
- spec/vcr/subscription/addons/create/1296674173.yml
|
220
|
-
- spec/vcr/subscription/addons/remove/1296674173.yml
|
221
|
-
- spec/vcr/subscription/cancel/1296674173.yml
|
222
|
-
- spec/vcr/subscription/cancel-with-code/1296674173.yml
|
223
|
-
- spec/vcr/subscription/change1/1296674173.yml
|
224
|
-
- spec/vcr/subscription/change2/1296674173.yml
|
225
|
-
- spec/vcr/subscription/create/1296674173.yml
|
226
|
-
- spec/vcr/subscription/find/1296674173.yml
|
227
|
-
- spec/vcr/subscription/reactivate/1296674173.yml
|
228
|
-
- spec/vcr/subscription/refund-full/1296674173.yml
|
229
|
-
- spec/vcr/subscription/refund-none/1296674173.yml
|
230
|
-
- spec/vcr/subscription/refund-partial/1296674173.yml
|
231
|
-
- spec/vcr/transaction/all/1311126815.yml
|
232
|
-
- spec/vcr/transaction/create-no-account/1311126815.yml
|
233
|
-
- spec/vcr/transaction/create-with-account/1311126815.yml
|
234
|
-
- spec/vcr/transaction/list-filled/1311126815.yml
|
235
|
-
- spec/vcr/transaction/list-initial/1311126815.yml
|
236
|
-
- spec/vcr/transaction/lookup/1311126815.yml
|
237
|
-
- spec/vcr/transaction/void/1311126815.yml
|
238
|
-
- spec/vcr/transparent/post-url/1317063400.yml
|
239
|
-
- spec/vcr/transparent/post-url/1317063474.yml
|
240
|
-
has_rdoc: true
|
241
191
|
homepage: http://github.com/recurly/recurly-client-ruby
|
242
192
|
licenses: []
|
243
|
-
|
244
193
|
post_install_message:
|
245
|
-
rdoc_options:
|
194
|
+
rdoc_options:
|
246
195
|
- --charset=UTF-8
|
247
|
-
require_paths:
|
196
|
+
require_paths:
|
248
197
|
- lib
|
249
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
250
199
|
none: false
|
251
|
-
requirements:
|
252
|
-
- -
|
253
|
-
- !ruby/object:Gem::Version
|
254
|
-
|
255
|
-
|
256
|
-
- 0
|
257
|
-
version: "0"
|
258
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - ! '>='
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0'
|
204
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
205
|
none: false
|
260
|
-
requirements:
|
261
|
-
- -
|
262
|
-
- !ruby/object:Gem::Version
|
263
|
-
|
264
|
-
- 0
|
265
|
-
version: "0"
|
206
|
+
requirements:
|
207
|
+
- - ! '>='
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
266
210
|
requirements: []
|
267
|
-
|
268
211
|
rubyforge_project: recurly
|
269
|
-
rubygems_version: 1.
|
212
|
+
rubygems_version: 1.8.23
|
270
213
|
signing_key:
|
271
214
|
specification_version: 3
|
272
215
|
summary: Ruby API wrapper for Recurly
|
273
|
-
test_files:
|
216
|
+
test_files:
|
274
217
|
- spec/config/recurly.yml
|
275
218
|
- spec/config/test1.yml
|
276
219
|
- spec/config/test2.yml
|
@@ -299,58 +242,3 @@ test_files:
|
|
299
242
|
- spec/unit/transaction_spec.rb
|
300
243
|
- spec/unit/transparent_spec.rb
|
301
244
|
- spec/unit/verification_spec.rb
|
302
|
-
- spec/vcr/account/accept-language-account/1313708721.yml
|
303
|
-
- spec/vcr/account/close/1313708721.yml
|
304
|
-
- spec/vcr/account/create/1313708721.yml
|
305
|
-
- spec/vcr/account/create-blank/1313708721.yml
|
306
|
-
- spec/vcr/account/create-duplicate/1313708721.yml
|
307
|
-
- spec/vcr/account/create-min/1313708721.yml
|
308
|
-
- spec/vcr/account/find/1313708721.yml
|
309
|
-
- spec/vcr/account/list/1313708721.yml
|
310
|
-
- spec/vcr/account/update/1313708721.yml
|
311
|
-
- spec/vcr/billing/create/1313708721.yml
|
312
|
-
- spec/vcr/billing/destroy/1313708721.yml
|
313
|
-
- spec/vcr/billing/errors/1313708721.yml
|
314
|
-
- spec/vcr/billing/find/1313708721.yml
|
315
|
-
- spec/vcr/billing/update/1313708721.yml
|
316
|
-
- spec/vcr/charge/create/1313708721.yml
|
317
|
-
- spec/vcr/charge/delete-uninvoiced/1313708721.yml
|
318
|
-
- spec/vcr/charge/list-all/1313708721.yml
|
319
|
-
- spec/vcr/charge/list-invoiced/1313708721.yml
|
320
|
-
- spec/vcr/charge/list-pending/1313708721.yml
|
321
|
-
- spec/vcr/charge/lookup/1313708721.yml
|
322
|
-
- spec/vcr/coupon/create/1296774903.yml
|
323
|
-
- spec/vcr/coupon/destroy/1296774903.yml
|
324
|
-
- spec/vcr/credit/create/1313708090.yml
|
325
|
-
- spec/vcr/credit/delete/1313708090.yml
|
326
|
-
- spec/vcr/credit/list/1313708090.yml
|
327
|
-
- spec/vcr/credit/lookup/1313708090.yml
|
328
|
-
- spec/vcr/invoice/create/1296674173.yml
|
329
|
-
- spec/vcr/invoice/create-no-charges/1296674173.yml
|
330
|
-
- spec/vcr/invoice/list/1296674173.yml
|
331
|
-
- spec/vcr/invoice/lookup/1296674173.yml
|
332
|
-
- spec/vcr/plan/all.yml
|
333
|
-
- spec/vcr/plan/find.yml
|
334
|
-
- spec/vcr/plan/update.yml
|
335
|
-
- spec/vcr/subscription/addons/add/1296674173.yml
|
336
|
-
- spec/vcr/subscription/addons/create/1296674173.yml
|
337
|
-
- spec/vcr/subscription/addons/remove/1296674173.yml
|
338
|
-
- spec/vcr/subscription/cancel/1296674173.yml
|
339
|
-
- spec/vcr/subscription/cancel-with-code/1296674173.yml
|
340
|
-
- spec/vcr/subscription/change1/1296674173.yml
|
341
|
-
- spec/vcr/subscription/change2/1296674173.yml
|
342
|
-
- spec/vcr/subscription/create/1296674173.yml
|
343
|
-
- spec/vcr/subscription/find/1296674173.yml
|
344
|
-
- spec/vcr/subscription/reactivate/1296674173.yml
|
345
|
-
- spec/vcr/subscription/refund-full/1296674173.yml
|
346
|
-
- spec/vcr/subscription/refund-none/1296674173.yml
|
347
|
-
- spec/vcr/subscription/refund-partial/1296674173.yml
|
348
|
-
- spec/vcr/transaction/all/1311126815.yml
|
349
|
-
- spec/vcr/transaction/create-no-account/1311126815.yml
|
350
|
-
- spec/vcr/transaction/create-with-account/1311126815.yml
|
351
|
-
- spec/vcr/transaction/list-filled/1311126815.yml
|
352
|
-
- spec/vcr/transaction/list-initial/1311126815.yml
|
353
|
-
- spec/vcr/transaction/lookup/1311126815.yml
|
354
|
-
- spec/vcr/transaction/void/1311126815.yml
|
355
|
-
- spec/vcr/transparent/post-url/1317063400.yml
|
356
|
-
- spec/vcr/transparent/post-url/1317063474.yml
|