micropayment-rails 0.1.4 → 0.1.5

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -8,7 +8,7 @@ module Micropayment
8
8
 
9
9
 
10
10
  def id
11
- send self::IDENTIFIER
11
+ send self.class::IDENTIFIER
12
12
  end
13
13
 
14
14
 
@@ -5,7 +5,7 @@ module Micropayment
5
5
 
6
6
 
7
7
  def address=(params={})
8
- @address = Micropayment::Address.create( id, params )
8
+ @address = Micropayment::Address.create!( id, params )
9
9
  end
10
10
 
11
11
  def address
@@ -13,7 +13,7 @@ module Micropayment
13
13
  end
14
14
 
15
15
  def bank_account=(params={})
16
- @bank_account = Micropayment::BankAccount.create( id, params )
16
+ @bank_account = Micropayment::BankAccount.create!( id, params )
17
17
  end
18
18
 
19
19
  def bank_account
@@ -64,6 +64,7 @@ module Micropayment
64
64
  end
65
65
  result = Micropayment::Debit.customerCreate( create_params )
66
66
  if result["error"] == "0"
67
+ create_params[:customerId] ||= result["customerId"]
67
68
  customer = self.new( create_params )
68
69
  customer.bank_account = bank_account_params if bank_account_params
69
70
  customer.address = address_params if address_params
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "micropayment-rails"
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jan Schwenzien"]
12
- s.date = "2012-05-22"
12
+ s.date = "2012-05-23"
13
13
  s.description = "Use the micropayment API in your Rails project."
14
14
  s.email = "jan@general-scripting.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micropayment-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Schwenzien
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-22 00:00:00 Z
18
+ date: 2012-05-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime