quicktravel_client 3.6.0 → 3.6.1

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: 44b3af3cee81e1eb5246479ae69ebbb9cfa164bd
4
- data.tar.gz: cbfd84dcb91743efe8650c1cf786814353f960aa
3
+ metadata.gz: 72a489cb7817b24b10974577573ac48201ada117
4
+ data.tar.gz: d0588b714309e3e3cbd7425638171a32193cf615
5
5
  SHA512:
6
- metadata.gz: 1ab112055a965214f6492aae8fd0f7f16ff1e26379e8cc01ff369a719ed1d55f6c548ddb8793755c966768504b58483fccb4f50e007c54b688ef353a4ba13ff8
7
- data.tar.gz: 372cbd33ad4100339607fae4195c4a5b8df22e5da94327bcac36093e1bd9adba9a9ada7335a6e5810d316e11555b716ebb83e248f48600de5fd80d90d0951dd9
6
+ metadata.gz: aa65860cb328ee8428b409c33c10d42c4bc2ce838c9c53ec386da17a0350d6af2c6d0d3f08e56d8074421df5a71f63d99e57759d1448e640d6c8ff94caa462ca
7
+ data.tar.gz: 246af3dc7676cd28979f6e681573b2c8a893bc8c0675095d0f118b597bc20552299bbc4b911a0ea0a15a55644d7b9cda2b3f2542faac1f6e58028b2092413502
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
5
5
 
6
+ ## [Unreleased]
7
+
8
+ ## [3.6.1]
9
+ ###
10
+ - [TT-3304] Handle no response in booking update API
11
+
6
12
  ## [3.6.0]
7
13
  ###
8
14
  - [ROT-114] Add drop off details
@@ -60,9 +60,10 @@ module QuickTravel
60
60
 
61
61
  # Update an existing booking
62
62
  def update(attrs = {}, options = {})
63
- response = put_and_validate("#{api_base}/#{@id}.json", options.merge(booking: attrs))
63
+ response_object = put_and_validate("#{api_base}/#{@id}.json", options.merge(booking: attrs), return_response_object: true)
64
+ response = response_object.parsed_response
64
65
  # id is returned if other attributes change otherwise success: true
65
- fail AdapterError.new(response) unless response['id'] || response['success']
66
+ fail AdapterError.new(response) unless response_object.no_content? || response['id'] || response['success']
66
67
 
67
68
  Booking.find(@id)
68
69
  end
@@ -1,3 +1,3 @@
1
1
  module QuickTravel
2
- VERSION = '3.6.0'
2
+ VERSION = '3.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quicktravel_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Noack
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-10-24 00:00:00.000000000 Z
13
+ date: 2017-10-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -431,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
431
431
  version: '0'
432
432
  requirements: []
433
433
  rubyforge_project:
434
- rubygems_version: 2.4.5.1
434
+ rubygems_version: 2.5.2
435
435
  signing_key:
436
436
  specification_version: 4
437
437
  summary: Booking process using QuickTravel API