fat_zebra 2.0.12 → 2.0.13

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
- NzVlYjI2NzMyYmMwYjQzZWQ2N2EwY2I1ZTRlMjUyNDYxMGI2OTNkOA==
4
+ MWFkOTI1MGY3NWY2YmUxN2E5ZGEzMGFjN2YxM2I0ZjI5MmRhNTA0MA==
5
5
  data.tar.gz: !binary |-
6
- NjI3ZDZiNTQyMzZiYzcwMjVmYWMxODdlZTkzMjZiNTZmMDUzOTEyNg==
6
+ OGExZDFlYzVkODNlYWFhZDkwY2ZkZGQ3MzE1NDRmODFjYzNjODE1NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmE1NTQyMTdlYWNmZWM3YTQxNGI5NjA1ZWUyNDkyMGUyOWQ4M2VmNzJkMTk2
10
- M2Y0MWEwNGVlNDRjMzgxZWRiNzhmYmUwZDM4ZmFmMTdhOGJhNzI1MjhiNzM3
11
- ZGUxMmUxMWNiYzdmMDM3ODZhYjI3NjQwZmJlNTA0ODUxNjI3YjE=
9
+ ODk5MmI4ODFkZjY2NzIwYzkzMGNiOGJiM2Y2Y2I2MzcxNGJmZTA0N2YxMjJm
10
+ YTAxMGRkOGE2N2FjNjU0M2FjNjMxZjA4MzE5MzI4ZmYyNzlhODNlNDY1ODVj
11
+ ODJkOTUzOGE2NTVmMmZhY2Y3YjMwNTk1MzIzMjVjNjU2NGJmNGM=
12
12
  data.tar.gz: !binary |-
13
- N2ExMGIxM2FmNzBjMDg2MDMxZjgwMzlhNWVmZDgyOGY1NmI0ZjViOTYzZTUw
14
- M2E1NGM5ODU0YjBiYWMyMDQ4NGJiMTQ4MmVkOWJjMjQ3ODY3NjQwMWFiYTMw
15
- NjVlYWRhOGQ2YWIzZGE1NDA5ODYxYTJmMTZkNGUzNmMyMWJhZGU=
13
+ ZjE3NDVhNmIyNWVjNjNkOTNmOTBmZWY0OTVlNDAxOTkzOGYxNTRlOWQwMTkz
14
+ MjM3ZDk5OWU5ZjllYTcxMWM2Y2I1ZWQ1MzkxNjhiYWYyM2RhNTM3NmM4MmI3
15
+ NzQ5NmU4MmMyMzJmNmIzNTE5YzNhNDBhYWZiMWZjY2Q3ZGU5NDM=
@@ -172,7 +172,7 @@ module FatZebra
172
172
  def validate_params!(params)
173
173
  @errors = []
174
174
  @errors << 'number or token must be provided' unless params[:card_number].present? || params[:card_token].present? || params[:wallet].present?
175
- @errors << 'amount must be provided or greater then 0' unless params[:amount].present? && params[:amount].to_f > 0
175
+ @errors << 'amount must be provided' unless params[:amount].present? && params[:amount].to_f >= 0
176
176
  @errors << 'expiry must be provided' unless params[:card_token].present? || params[:card_expiry].present? || params[:wallet].present?
177
177
  @errors << 'reference must be provided' unless params[:reference].present?
178
178
  @errors << 'customer_ip must be provided' unless params[:customer_ip].present?
@@ -182,4 +182,4 @@ module FatZebra
182
182
  end
183
183
  end
184
184
  end
185
- end
185
+ end
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = "2.0.12"
2
+ VERSION = "2.0.13"
3
3
  end
data/spec/gateway_spec.rb CHANGED
@@ -10,7 +10,7 @@ describe FatZebra::Gateway do
10
10
 
11
11
  before :each do
12
12
  # Setup the gateway for testing
13
- server = TEST_LOCAL == true ? "fatapi.dev" : "gateway.sandbox.fatzebra.com.au"
13
+ server = TEST_LOCAL == true ? "fatapi.dev" : "gateway-sandbox.ipsi.com.au"
14
14
  FatZebra.configure do
15
15
  username TEST_USER
16
16
  token TEST_TOKEN
@@ -117,4 +117,4 @@ describe FatZebra::Gateway do
117
117
  result.errors.should be_empty
118
118
  result.result.currency.should == 'USD'
119
119
  end
120
- end
120
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_zebra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.12
4
+ version: 2.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-17 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec