fat_zebra 3.0.8 → 3.0.9

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: 1f2329184b0e60cacc02215da4013523ab92bb73
4
- data.tar.gz: 9c51d54b355199794f37019cb844bc71bbbfb215
3
+ metadata.gz: 0e621a3a911570984d008388fc4ca7c7890a626c
4
+ data.tar.gz: c1e53ea7c17eb46741a9d2d9fceb7782c089f79e
5
5
  SHA512:
6
- metadata.gz: 3bae07687f60d964bac95cd305c5f21f3a724f0e310286b8c15007d54c176d88964f3517e8b49dacbd3b55835b4c0248a4896ea1ce8cc3071d5c0d9bb0345fd0
7
- data.tar.gz: 58bf0fd4d32eb643acb7b11464a10218afacdc8e52dc1c2d8d62fb565b500ab1975b1710026c3a9dd6e40b5bb58a4268e40022a73b2696f485f2f0c25df6046d
6
+ metadata.gz: adc6f098cd8c980fab7f916768d54908c2d6fca78bc0a61c9c5e794163a1e5a77c7fc28a8e4bb6019674ffaa856a71253fb1b820f97ebaba5f90eb9f6b038f3d
7
+ data.tar.gz: d2da31b6e51dffbdd8279470463e5befe72843be38b5c66eeccc4ade569cfc2ceb42a9ea0f4e73a620035b244059f2bfc079ba492f50a1d43cdc4f3170205cc3
data/README.md CHANGED
@@ -3,7 +3,7 @@ Ruby API Library for Fat Zebra
3
3
 
4
4
  [![Build Status](https://travis-ci.org/fatzebra/Ruby-Library.svg?branch=master)](https://travis-ci.org/fatzebra/Ruby-Library)
5
5
 
6
- Release 3.0.7 for API version 1.0
6
+ Release 3.0.9 for API version 1.0
7
7
 
8
8
  A Ruby client for the [Fat Zebra](https://www.fatzebra.com.au) Online Payment Gateway (for Australian Merchants)
9
9
 
data/fat_zebra.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  require 'fat_zebra/version'
@@ -83,7 +83,7 @@ module FatZebra
83
83
  end
84
84
 
85
85
  def get
86
- @request = Net::HTTP::Get.new(uri.path)
86
+ @request = Net::HTTP::Get.new(uri)
87
87
 
88
88
  setup_auth_basic if params[:basic_auth]
89
89
  set_header
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = '3.0.8'.freeze
2
+ VERSION = '3.0.9'.freeze
3
3
  end
@@ -44,7 +44,7 @@ describe FatZebra::Purchase do
44
44
  end
45
45
 
46
46
  describe '.search', :vcr do
47
- let!(:start) { Time.now }
47
+ let!(:start) { Date.parse('2017-07-03') }
48
48
  subject(:purchases) { FatZebra::Purchase.search(from: start) }
49
49
 
50
50
  before { 2.times { |i| FatZebra::Purchase.create(valid_purchase_payload.merge(reference: "#{SecureRandom.hex}-#{i}")) } }
@@ -95,7 +95,7 @@ describe FatZebra::Purchase do
95
95
  describe '.settlement', :vcr do
96
96
  before { 2.times { |i| FatZebra::Purchase.create(valid_purchase_payload.merge(reference: "#{SecureRandom.hex}-#{i}")) } }
97
97
 
98
- subject(:settlement) { FatZebra::Purchase.settlement(from: Time.now - (86400 * 5), to: Time.now) }
98
+ subject(:settlement) { FatZebra::Purchase.settlement(from: Date.parse('2017/06/22'), to: Date.parse('2017-06-27')) }
99
99
 
100
100
  it { is_expected.to be_accepted }
101
101
  it { expect(settlement.data.count).to be >= 2 }
data/spec/spec_helper.rb CHANGED
@@ -30,7 +30,7 @@ VCR.configure do |config|
30
30
  config.hook_into :webmock
31
31
  config.configure_rspec_metadata!
32
32
  config.allow_http_connections_when_no_cassette = true
33
- config.default_cassette_options = { match_requests_on: [:method, uri_ignoring_trailing_id] }
33
+ config.default_cassette_options = { match_requests_on: [:method, :query, uri_ignoring_trailing_id] }
34
34
  end
35
35
 
36
36
  RSpec.configure do |config|
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: 3.0.8
4
+ version: 3.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-26 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -402,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
402
  version: '0'
403
403
  requirements: []
404
404
  rubyforge_project: fat_zebra
405
- rubygems_version: 2.4.5.2
405
+ rubygems_version: 2.6.8
406
406
  signing_key:
407
407
  specification_version: 4
408
408
  summary: Fat Zebra payments gem - integrate your ruby app with Fat Zebra