paid 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/paid/alias.rb +8 -2
- data/lib/paid/api_operations/update.rb +2 -1
- data/lib/paid/version.rb +1 -1
- data/paid.gemspec +1 -1
- metadata +3 -6
- data/pkg/paid-0.0.1.gem +0 -0
- data/pkg/paid-0.0.2.gem +0 -0
- data/pkg/paid-0.0.3.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 781448b39ccb4c2aab52ebe494d54de52c88af34
|
4
|
+
data.tar.gz: aa694292016067f230da929a9c57f00bd27a199f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e2ee306fb3a2dc06ece5e48872125b2b0c1229ae7f24f79c5b58ef7b592f05debb588092979171d9eb331a5a3b1bbd58223883574acf09c1dfacf78ae8c333
|
7
|
+
data.tar.gz: 053cd30046642fbbfe0476b3a986080b7169474fa2f04761a5333f175615f43736afb9974912bb7f638724ec2c591b6769db5e58515f2b4710c40a0e1acd6e40
|
data/Gemfile.lock
CHANGED
data/lib/paid/alias.rb
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
module Paid
|
2
2
|
class Alias < APIResource
|
3
|
-
include Paid::APIOperations::
|
4
|
-
|
3
|
+
include Paid::APIOperations::Update
|
4
|
+
|
5
|
+
def self.retrieve(id, api_key=nil)
|
6
|
+
customer_alias = super(id, api_key)
|
7
|
+
instance = Paid::Customer.new(customer_alias.id, api_key)
|
8
|
+
instance.refresh
|
9
|
+
instance
|
10
|
+
end
|
5
11
|
end
|
6
12
|
end
|
@@ -11,7 +11,8 @@ module Paid
|
|
11
11
|
if values.length > 0
|
12
12
|
values.delete(:id)
|
13
13
|
|
14
|
-
|
14
|
+
pdb values
|
15
|
+
response, api_key = Paid.request(:put, api_url, @api_key, values)
|
15
16
|
refresh_from(response, api_key)
|
16
17
|
end
|
17
18
|
self
|
data/lib/paid/version.rb
CHANGED
data/paid.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.version = Paid::VERSION
|
10
10
|
s.authors = ['Ryan Jackson']
|
11
11
|
s.email = ['ryan@paidapi.com']
|
12
|
-
s.homepage = '
|
12
|
+
s.homepage = 'http://docs.paidapi.com'
|
13
13
|
s.summary = 'Ruby bindings for Paid API'
|
14
14
|
s.description = 'Paid is the programmatic way to manage payments. See https://paidapi.com for details.'
|
15
15
|
s.license = 'MIT'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -153,9 +153,6 @@ files:
|
|
153
153
|
- lib/paid/version.rb
|
154
154
|
- lib/tasks/paid_tasks.rake
|
155
155
|
- paid.gemspec
|
156
|
-
- pkg/paid-0.0.1.gem
|
157
|
-
- pkg/paid-0.0.2.gem
|
158
|
-
- pkg/paid-0.0.3.gem
|
159
156
|
- test/paid/account_test.rb
|
160
157
|
- test/paid/alias_test.rb
|
161
158
|
- test/paid/api_resource_test.rb
|
@@ -169,7 +166,7 @@ files:
|
|
169
166
|
- test/paid/util_test.rb
|
170
167
|
- test/test_data.rb
|
171
168
|
- test/test_helper.rb
|
172
|
-
homepage:
|
169
|
+
homepage: http://docs.paidapi.com
|
173
170
|
licenses:
|
174
171
|
- MIT
|
175
172
|
metadata: {}
|
data/pkg/paid-0.0.1.gem
DELETED
Binary file
|
data/pkg/paid-0.0.2.gem
DELETED
Binary file
|
data/pkg/paid-0.0.3.gem
DELETED
Binary file
|