activewepay 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjI3ZWM3YjBiZjUyZDFjZWRhOTlkMjNmOTk5NTk0ZmU3NTNhZmU5ZA==
4
+ NWYxZTg1NzNiMGI2MDJkYzljOTMyNDhhOGU4M2U5NzdkMGI4OGZiOA==
5
5
  data.tar.gz: !binary |-
6
- MjNjYmZiMGRmZDg0NjMwNzQ4ZTFjMmU0MWUxZDU2NDk2Mzg3N2NmZg==
6
+ YWQwMzk1OGEzNjIyMDI5ZTY5N2E1MmM4MjM1MGRlZGFlMmQwOWE4Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmI1MzliNjIzNGJiOWYxNWZhMWQwMmNjZjViNzlmZjM3MjNjZjE4NjhmYWU0
10
- ZjhhMzQxYTVkNTZmOWJiZTQxMzZiYjhlNzU1M2RlMzhjOTUxZjI5NDQwYzhm
11
- Y2VhMDg4NWY1NzNiOTdjNzEzZWRjYTQyZDUxODVhYTQ5MDE5OWM=
9
+ Yjk3ZDE4ZTlmYWQ2MTliZjc1ZDNjYmJjNTI5NjE5Njk0YzViMmRiYTIxYmVh
10
+ OTYwZmU0ZDYzM2IxZDFjZjRkM2NiNjkwZGFlOGFiMmUzNzJmMzRiZjRhYjMy
11
+ OWYyNzI3NDhjNWQ1ZjgyOGY4OTZhYWRjMDJkZjMyNGRlOWE0OTY=
12
12
  data.tar.gz: !binary |-
13
- Zjk2MjBkM2Q4MGQ1MjQwYjI0NDE2ZTkxYTlhZjg5YWU0ZmYzZTA4YWYyNzIz
14
- NmM2MzI3NmY2YTJkOGE3NjA2OGM2ZTQ2YWU0M2IwODIwZmY2ODk4M2NlYzhk
15
- MGU4YTRkMjBjMzAxY2I3ZDdkOGRiZDZkMTQwZjEyYjFlNGY2MWU=
13
+ YWMyODI3YTQ4ZTViMTYyYjBmZDVmNzMwYTcxYjRhYjAyY2VjZThkY2Q1ZmE4
14
+ OWY2YmE3NTY3NDI1OGE4NDU3MWRlMzkzZmM1YTJkMTI1Yjk1OWQzNTZhMjBl
15
+ NmFlMTQ2MDAzZmNkOGU5N2MyNzEzOGFhOTg3NTdiOWIwNDA5MTM=
@@ -1,3 +1,3 @@
1
1
  module Activewepay
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/lib/activewepay.rb CHANGED
@@ -15,7 +15,7 @@ module ActiveWepay
15
15
 
16
16
  validate :validate_response
17
17
 
18
- attr_reader :errors, :oauth_token, :id, :amount, :account_id, :redirect_uri, :callback_uri, :response
18
+ attr_reader :errors, :oauth_token, :id, :amount, :account_id, :redirect_uri, :callback_uri, :response, :name
19
19
 
20
20
 
21
21
  STAGE_API_ENDPOINT = "https://stage.wepayapi.com/v2"
@@ -33,7 +33,7 @@ module ActiveWepay
33
33
  options[:redirect_uri] ? @redirect_uri = options[:redirect_uri] : false
34
34
  options[:callback_uri] ? @callback_uri = options[:callback_uri] : false
35
35
  options[:id] ? @id = options[:id] : false
36
- options[:name] ? @name = options[:name] :false
36
+ options[:name] ? @name = options[:name] : false
37
37
  end
38
38
 
39
39
  # make a call to the WePay API
@@ -85,14 +85,14 @@ module ActiveWepay
85
85
 
86
86
  class Account < Base
87
87
 
88
- validates_presence_of :oauth_token, :name
88
+ validates_presence_of :oauth_token
89
89
 
90
90
  def self.create(options)
91
91
  @account = self.new(options)
92
92
 
93
93
  theme = { name: 'Black and White', primary_color: 'FFFFFF', secondary_color: '000000', background_color: 'FFFFFF', button_color: 'FFFFFF' }
94
94
  @account.call('/account/create', @account.oauth_token, {
95
- :name => @name,
95
+ :name => @account.name,
96
96
  :description => 'Automatically generated by Vocalem',
97
97
  :theme_object => theme
98
98
  })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activewepay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asher Cohen