fat_zebra 3.0.5 → 3.0.6

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: 3d86e70be70a1e2890303e751225f995664205b7
4
- data.tar.gz: daa994eae47d68c60ece674a50b986ebb796d841
3
+ metadata.gz: bdc84addf970c04ee56f7bb8be168f40ceb0482f
4
+ data.tar.gz: f28696467b1be6159a0c0d82c5e42118623c006e
5
5
  SHA512:
6
- metadata.gz: d300632c0ae03ca9cf59058b7c76b3c23e3766e4e53204e2b24cda90eeed5e7649456f6b02d1f751364665b6199075563a28d26454153926aff36f573a68db1c
7
- data.tar.gz: cb73da9eea9af7b8fa7fc78976900254dd6171fec07c7321d43ad3e107f589f2bf5f3797ec5484761cf104682d49b16b7a6364bad7ede1fa4b879e0db704f2d9
6
+ metadata.gz: 36ff239292848bd05d1707565c9cdf77708d47db9fc4ff31015bced2942984d25fe2458fb64378ebffb7456d9e55940a2d95c11516a50c5f1ab90c47f0bb7169
7
+ data.tar.gz: 30f35e347fbb3df2e6c009f866c38dabc25ca73e8353d61ed075060f88033ad294ed4a531bcd0f85a4febd050ec742a2a08fe0164f9a6cce37be0e096ad72b5a
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.0 for API version 1.0
6
+ Release 3.0.6 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
 
@@ -1,6 +1,6 @@
1
1
  module FatZebra
2
2
  ##
3
- # == FatZebra \Request \Multipart \Steam
3
+ # == FatZebra \Request \Multipart \Stream
4
4
  #
5
5
  # Steam the multipart
6
6
  class Request
@@ -37,6 +37,8 @@ module FatZebra
37
37
 
38
38
  !got_result && length ? nil : outbuf
39
39
  end
40
+ # rubocop:enable Metrics/CyclomaticComplexity
41
+ # rubocop:enable Metrics/PerceivedComplexity
40
42
 
41
43
  private
42
44
 
@@ -73,13 +73,14 @@ module FatZebra
73
73
  @request = Net::HTTP::Put.new(uri.path)
74
74
 
75
75
  setup_auth_basic if params[:basic_auth]
76
+ set_header
76
77
  request.body = params[:payload].to_json
77
78
 
78
79
  handle_request
79
80
  end
80
81
 
81
82
  def get
82
- @request = Net::HTTP::Get.new(uri)
83
+ @request = Net::HTTP::Get.new(uri.path)
83
84
 
84
85
  setup_auth_basic if params[:basic_auth]
85
86
  set_header
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = '3.0.5'.freeze
2
+ VERSION = '3.0.6'.freeze
3
3
  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: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-14 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -401,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
401
401
  version: '0'
402
402
  requirements: []
403
403
  rubyforge_project: fat_zebra
404
- rubygems_version: 2.4.5
404
+ rubygems_version: 2.6.8
405
405
  signing_key:
406
406
  specification_version: 4
407
407
  summary: Fat Zebra payments gem - integrate your ruby app with Fat Zebra