activewepay 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDRiNzM5ODI1ZmRiZmY0YWMwZjM4MDVhYzM0N2RhNTI4YjM1ZGVmOQ==
5
- data.tar.gz: !binary |-
6
- NjJjNmI5OGFlNjc1MjFhM2YzYzhiNTRhNjFjNjAxYWViNzBiMTVjZg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NDZkZWVlZmFjZDA1NWRmZTRiNDAxNGE4MjcyZTMzNjAzYWNhNzg4YzllZTJm
10
- YzllZDI0OWI4Y2NiOTE5MTQ1MjhmYzc5ODAxZDM4NjVmMzQyMmQ3YTUzZjEw
11
- MzQ0YmZmZjZhNDEwYjBhM2Y0NDk3N2YyMzYyNTI4OTEzOGQyMjI=
12
- data.tar.gz: !binary |-
13
- N2I0OTdiNWU1MmJhMDQ3OGU4NjNhMGFkMGZmOWVkY2U0YTY2MzVmODdlMmI1
14
- NzE5YjIwMjZiNzY2MDY4OTFiOTRiOGI4ODJlMzMwMDRkMzMxMWQ1YWVlNDE2
15
- YzAwNTc4ODBjZDQwNmVlZmFlNzc5YmMwNjYzZmNmYTM2ODU1ZmU=
2
+ SHA1:
3
+ metadata.gz: 93b5fb5fe6adf5ed7d9d878d12161f56c724d0ba
4
+ data.tar.gz: 5906da096c32e2e2e0bf84c03d356e9a72f6dc7f
5
+ SHA512:
6
+ metadata.gz: e5c74204c50f667a98456e617856a3a214d628bdc2b98a50a2838e23e53d946c8c8f5de19c3e306957ea544d5dff712d71f3d9825bb8d877c6071d734e873186
7
+ data.tar.gz: 4a5c389899105232e25b77fad1fffb9bf754f80eba7a0e1e28efa236d995f8b35d6609362494c84b1b1c1f0f7d4c789ffa3d8777ddd0a30e3dbb3c3ea464c1c2
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, :name
18
+ attr_reader :errors, :oauth_token, :id, :amount, :redirect_uri, :callback_uri, :response, :name
19
19
 
20
20
 
21
21
  STAGE_API_ENDPOINT = "https://stage.wepayapi.com/v2"
@@ -26,6 +26,7 @@ module ActiveWepay
26
26
 
27
27
  def initialize(options)
28
28
  @errors = ActiveModel::Errors.new(self)
29
+ @options = options
29
30
 
30
31
  options[:oauth_token] ? @oauth_token = options[:oauth_token] : false
31
32
  options[:amount] ? @amount = options[:amount] : false
@@ -85,8 +86,10 @@ module ActiveWepay
85
86
  def method_missing(method_name, *args, &block)
86
87
  if @response and @response.keys.include? method_name.to_sym
87
88
  @response[method_name.to_sym]
88
- else
89
- super
89
+ elsif @options.keys.include? method_name.to_sym
90
+ @options[method_name.to_sym]
91
+ else
92
+ super
90
93
  end
91
94
  end
92
95
  end
@@ -1,3 +1,3 @@
1
1
  module Activewepay
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activewepay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asher Cohen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-08 00:00:00.000000000 Z
11
+ date: 2013-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: ActiveModel style WePay interface.
@@ -77,12 +77,12 @@ require_paths:
77
77
  - lib
78
78
  required_ruby_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ! '>='
85
+ - - '>='
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
@@ -90,5 +90,5 @@ rubyforge_project:
90
90
  rubygems_version: 2.0.3
91
91
  signing_key:
92
92
  specification_version: 4
93
- summary: ! '{ActiveModel style WePay interface.}'
93
+ summary: '{ActiveModel style WePay interface.}'
94
94
  test_files: []