quicktravel_client 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/quick_travel/booking.rb +3 -2
- data/lib/quick_travel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72a489cb7817b24b10974577573ac48201ada117
|
|
4
|
+
data.tar.gz: d0588b714309e3e3cbd7425638171a32193cf615
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/quick_travel/booking.rb
CHANGED
|
@@ -60,9 +60,10 @@ module QuickTravel
|
|
|
60
60
|
|
|
61
61
|
# Update an existing booking
|
|
62
62
|
def update(attrs = {}, options = {})
|
|
63
|
-
|
|
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
|
data/lib/quick_travel/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
434
|
+
rubygems_version: 2.5.2
|
|
435
435
|
signing_key:
|
|
436
436
|
specification_version: 4
|
|
437
437
|
summary: Booking process using QuickTravel API
|