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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6062c2c505109c0f6ba17a37be0987381587a8bf
4
- data.tar.gz: 7aaab841f57542a5340fe66cd62c1073a6c34727
3
+ metadata.gz: 781448b39ccb4c2aab52ebe494d54de52c88af34
4
+ data.tar.gz: aa694292016067f230da929a9c57f00bd27a199f
5
5
  SHA512:
6
- metadata.gz: 6349aae78e7450501f501f3cb7ec54293fd24e82179cd843c7fbdffb8bc3ee7cce721471051bdfa412462e8892ddb2cfc475a0af31a1b328f2de1be0e90fac18
7
- data.tar.gz: 0dd7773d9b5fa24bb025f396196cc2f000454e3edb202395849f0a194b76674006e20a1c7eb9318ec3a61832728ca0e200289f8267f489b7b4134e66ac99dfd3
6
+ metadata.gz: 68e2ee306fb3a2dc06ece5e48872125b2b0c1229ae7f24f79c5b58ef7b592f05debb588092979171d9eb331a5a3b1bbd58223883574acf09c1dfacf78ae8c333
7
+ data.tar.gz: 053cd30046642fbbfe0476b3a986080b7169474fa2f04761a5333f175615f43736afb9974912bb7f638724ec2c591b6769db5e58515f2b4710c40a0e1acd6e40
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paid (0.0.4)
4
+ paid (0.0.5)
5
5
  json (~> 1.8.1)
6
6
  mime-types (>= 1.25, < 3.0)
7
7
  rest-client (~> 1.4)
data/lib/paid/alias.rb CHANGED
@@ -1,6 +1,12 @@
1
1
  module Paid
2
2
  class Alias < APIResource
3
- include Paid::APIOperations::List
4
- include Paid::APIOperations::Create
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
- response, api_key = Paid.request(:post, api_url, @api_key, values)
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
@@ -1,3 +1,3 @@
1
1
  module Paid
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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 = 'https://docs.paidapi.com'
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
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-05 00:00:00.000000000 Z
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: https://docs.paidapi.com
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