quicktravel_client 4.5.0 → 4.7.0

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
  SHA256:
3
- metadata.gz: e0325799c230cd8fe94a4f7454f8ff7ccb5fddb27ab18a67b9f3096d72aada02
4
- data.tar.gz: 427ad145f755aa347c5ceb6d1c558b9e47392d1e61f48daeac074b933d7ded30
3
+ metadata.gz: d23f17728aed01dfc1ca9f8a4f83ad8f24fa7d8e17af52f955ecf09742e18c41
4
+ data.tar.gz: 1e0ce9252b294ae8a27f3f6c7034710dbc40ee159dca0a414d28b70ceea3e802
5
5
  SHA512:
6
- metadata.gz: 744fc85a1f7bf032a494eb394c1573f06c0a1094608da175f7fc20c053babf78a8950bf038ff0b6dff97a0926f70492b96db2481083aa9055590f9fd8bdd33ac
7
- data.tar.gz: 42f9a4aefc2150631c807a96bfaad03b8a0b6ff9c1427980435bd5a35818dadb84929b715199c47c2f02093be211b5f1565ef9957087129f5feed7398768bbae
6
+ metadata.gz: 9a1e06944431ac4405706e7d50c8b80ce9b9df1d77340bd211994a353d7edb39f0ed3d7e0cd274c675700babd6cf6c659c5dde6c562529c47b5389142d01cbab
7
+ data.tar.gz: 33023f1ceb02501b737b39970fc163dca3c101c46517bac26ef7205750d1dad1a641b3b2af95a2c30b5d4776212208977b3ba8ce45218545d8d85836a78a4283
@@ -5,8 +5,8 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- gemfile: [rails60, rails61]
9
- ruby: ["2.6", "2.7", "3.0"]
8
+ gemfile: [rails60, rails61, rails70]
9
+ ruby: ["3.0", "3.1", "3.2"]
10
10
  runs-on: ubuntu-latest
11
11
  env:
12
12
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.2.0
data/CHANGELOG.md CHANGED
@@ -1,54 +1,79 @@
1
1
  # Change Log
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
  This project adheres to [Semantic Versioning](http://semver.org/).
4
5
  This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
5
6
 
6
- ## Unreleased
7
+ ## 4.7.0
8
+
9
+ - [PLAT-1275] Drop resource locations method
10
+
11
+ ## 4.6.0
7
12
 
13
+ - [PLAT-1175] Update to Ruby 3.2
8
14
 
9
15
  ## 4.5.0
16
+
10
17
  - [TT-9346] Support injection of additional headers in requests to quicktravel
11
18
  - [TT-9331] Cache resources to reduce unnecessary API requests
12
19
 
13
20
  ## 4.4.0
21
+
14
22
  - [TT-8615] Update to build with github actions / ruby 3.0 / rails 6.1
15
23
 
16
24
  ## [4.3.2]
25
+
17
26
  ### Fixed
27
+
18
28
  - [TT-8511] Revert party lookup via the API endpoint
19
29
 
20
30
  ## [4.3.1]
31
+
21
32
  ### Fixed
33
+
22
34
  - [TT-8471] Fix missing QuickTravel:VERSION const error
23
35
 
24
36
  ## [4.3.0]
37
+
25
38
  ### Changed
39
+
26
40
  - [TT-8142] Add suitable user-agent header
27
41
  - [TT-8379] Switch to using api/parties endpoint
28
42
 
29
43
  ## [4.2.0]
44
+
30
45
  ### Changed
46
+
31
47
  - [TT-7969] Update cassettes to work with HttpParty >= 0.18.1
32
48
  - [TT-7912] Update api status endpoint to the new response format
33
49
 
34
50
  ## [4.1.0]
51
+
35
52
  ### Added
53
+
36
54
  - [TT-7788] Add API namespace to vehicle_types endpoint
37
55
 
38
56
  ## [4.0.0]
57
+
39
58
  - [TT-7385] Update Money dependency, test against Ruby 2.7 / Rails 6
40
59
 
41
60
  ## [3.9.0]
61
+
42
62
  ### Added
63
+
43
64
  - [DC-3115] Add customer comments method in booking
44
65
  - [DC-2942] Add package class to support quantity based package
45
66
 
46
67
  ## [3.8.1]
68
+
47
69
  ### Changed
70
+
48
71
  - [DC-3033] Reverse changes in checkout class to fix polipay redirection in EcomEngine
49
72
 
50
73
  ## [3.8.0]
74
+
51
75
  ### Added
76
+
52
77
  - [DC-1794] Update httparty to allow caching the whole response, also add namespace to cache key
53
78
  - [DC-1418] Port NRMA portal availability cache back to EcomEngine
54
79
  - [TT-4850] Added client templates
@@ -56,154 +81,217 @@ This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
56
81
  - [TT-6246] Remove Booking.delete_reservations method
57
82
 
58
83
  ### Changed
84
+
59
85
  - [DC-2997] Remove API key from body, and move it to header
60
86
  - [DC-1767] include long/lat changes to Stop
61
87
 
62
88
  ## [3.7.0]
89
+
63
90
  ### Added
91
+
64
92
  - [DC-1437] Add relationship accesssor methods
65
93
  - [TT-3337] Add booking.delete_reservations method
66
94
  - [TT-3780] Add tests for Opal payments
67
95
  - [TT-3780] Add tests for Opal payment using create / update workflow
68
96
 
69
97
  ### Fixed
98
+
70
99
  - [TT-3304] Handle no response in booking update API
71
100
 
72
101
  ### Changed
102
+
73
103
  - [TT-3333] URL encode data sent to booking reference lookup
74
104
  - [TT-3783] Remove deprecated FixNum
75
105
  - [TT-3812] Update cassettes
76
106
 
77
107
  ## [3.6.0]
108
+
78
109
  ###
110
+
79
111
  - [ROT-114] Add drop off details
80
112
 
81
113
  ## [3.5.0]
114
+
82
115
  ###
116
+
83
117
  - [TT-3147] Remove unused payment methods
84
118
  - [TT-3278] Add full_response option to booking update
85
119
 
86
120
  ## [3.4.0]
121
+
87
122
  ###
123
+
88
124
  - Properties now return their associated location and types
89
125
 
90
126
  ## [3.3.0]
127
+
91
128
  ### Added
129
+
92
130
  - Price change reasons are now passed as an array
93
131
 
94
132
  ## [3.2.0]
133
+
95
134
  ### Changed
135
+
96
136
  - Return status with QuickTravel::AdapterError
97
137
 
98
138
  ## [3.1.0]
139
+
99
140
  ### Added
141
+
100
142
  - API to cancel a booking
101
143
 
102
144
  ## [3.0.0]
145
+
103
146
  ### Fixed
147
+
104
148
  - Allow zero pricing for extra pick items
105
149
 
106
150
  ### Changed
151
+
107
152
  - Use new reset password url
108
153
 
109
154
  ### Added
155
+
110
156
  - Setting API
111
157
 
112
158
  ### Removed
159
+
113
160
  - Removed geocode function on address
114
161
 
115
162
  ## [2.9.0]
163
+
116
164
  ### Changed
165
+
117
166
  - Use new API login
118
167
 
119
168
  ### Removed
169
+
120
170
  - Remove unused constants and default referral code
121
171
 
122
172
  ## [2.8.0]
173
+
123
174
  ### Changed
175
+
124
176
  - @booking.accommodation_reserve now expects to be passed the adjusted last_travel_date
125
177
 
126
178
  ## [2.7.0]
179
+
127
180
  ### Added
181
+
128
182
  - can_choose_stops? to check if a route has more than two stops
129
183
 
130
184
  ## [2.6.0]
185
+
131
186
  ### Removed
187
+
132
188
  - Stop passing last_travel_date
133
189
 
134
190
  ## [2.5.0]
191
+
135
192
  ### Added
193
+
136
194
  - Add call to get client token
137
195
 
138
196
  ## [2.4.1]
197
+
139
198
  ### Changed
199
+
140
200
  - Handle nil values for empty lists
141
201
 
142
202
  ## [2.4.0]
203
+
143
204
  ### Changed
205
+
144
206
  - Improve error handling when non JSON response
145
207
  - Update test cassettes due to API changes
146
208
  - Update test data due to new bootstrap.sql
147
209
 
148
210
  ## [2.3.1]
211
+
149
212
  ### Fixed
213
+
150
214
  - Omits empty array parameters
151
215
 
152
216
  ## [2.3.0]
217
+
153
218
  ### Changed
219
+
154
220
  - Change cache expiries
155
221
  - Adds support for passing dates to Resource#all_with_price
156
222
 
157
223
  ### Fixed
224
+
158
225
  - Fixes issue with HTTParty ~> 0.14
159
226
  - Updates HTTParty dependency to ~> 0.14
160
227
 
161
228
  ## [2.2.2]
229
+
162
230
  ### Changed
231
+
163
232
  - Deprecates Booking#calculate_price_quote
164
233
  - Fix when money is nil from QT
165
234
 
166
235
  ## [2.2.1] - 2016-04-18
236
+
167
237
  ### Fixed
238
+
168
239
  - Adds missing require for PriceQuote adapter
169
240
 
170
241
  ## [2.2.0] - 2016-04-18
242
+
171
243
  ### Added
244
+
172
245
  - PriceQuote adapter
173
246
 
174
247
  ## [2.1.0] - 2016-04-13
248
+
175
249
  ### Added
250
+
176
251
  - Resource categories
177
252
  - Products
178
253
 
179
254
  ## [2.0.0] - 2016-04-08
255
+
180
256
  ### Added
257
+
181
258
  - This changelog
182
259
  - Support for new ProductType API
183
260
 
184
261
  ### Changed
262
+
185
263
  - Discount API renamed Price Change API
186
264
  - Multiple internal refactorings and cleanups
187
265
  - Changes Price Quotes API to support non segment based products
188
266
 
189
267
  ## [1.1.1] - 2015-06-22
268
+
190
269
  ### Fixed
270
+
191
271
  - Fixed issue with Checkout API
192
272
 
193
273
  ## [1.1.0] - 2015-06-19
274
+
194
275
  ### Added
276
+
195
277
  - Checkout API
196
278
 
197
279
  ## [1.0.2] - 2015-06-01
280
+
198
281
  ### Fixed
282
+
199
283
  - Fixed issue with payment type code format
200
284
 
201
285
  ### Added
286
+
202
287
  - Code attribute to passenger type
203
288
 
204
289
  ## [1.0.1] - 2015-03-04
290
+
205
291
  ### Fixed
292
+
206
293
  - Fixed conflict between active_support and facets underscore method
207
294
 
208
295
  ## [1.0.0] - 2015-03-03
296
+
209
297
  - Initial public release
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+ gemspec :path => '../'
3
+
4
+ group :development, :test do
5
+ gem 'activesupport', '~> 7.0'
6
+ gem 'activerecord', '~> 7.0'
7
+ gem 'actionpack', '~> 7.0'
8
+ end
@@ -25,10 +25,6 @@ module QuickTravel
25
25
  QuickTravel::ProductType.find(product_type_id)
26
26
  end
27
27
 
28
- def locations
29
- location_ids.map{ |id| Location.find(id) }
30
- end
31
-
32
28
  def category
33
29
  return nil if @category.nil?
34
30
  @_category ||= QuickTravel::ResourceCategory.new(@category)
@@ -1,3 +1,3 @@
1
1
  module QuickTravel
2
- VERSION = '4.5.0'
2
+ VERSION = '4.7.0'
3
3
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ['lib']
18
- spec.required_ruby_version = '>= 2.6'
18
+ spec.required_ruby_version = '>= 3.0'
19
19
 
20
20
  spec.add_dependency 'httparty', '>= 0.18.1'
21
21
  spec.add_dependency 'activesupport', '>= 5.0.0'
@@ -30,7 +30,6 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'rspec-its'
31
31
  spec.add_development_dependency 'coverage-kit'
32
32
  spec.add_development_dependency 'simplecov-rcov'
33
- spec.add_development_dependency 'coveralls'
34
33
  spec.add_development_dependency 'stamp' # Used to send appropriate dates to API's
35
34
  spec.add_development_dependency 'vcr'
36
35
  spec.add_development_dependency 'webmock'
@@ -1,4 +1,3 @@
1
1
  require 'simplecov-rcov'
2
- require 'coveralls'
3
2
  require 'coverage/kit'
4
3
  Coverage::Kit.setup(minimum_coverage: 83.7)
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: 4.5.0
4
+ version: 4.7.0
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: 2021-05-07 00:00:00.000000000 Z
13
+ date: 2023-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -180,20 +180,6 @@ dependencies:
180
180
  - - ">="
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
- - !ruby/object:Gem::Dependency
184
- name: coveralls
185
- requirement: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- type: :development
191
- prerelease: false
192
- version_requirements: !ruby/object:Gem::Requirement
193
- requirements:
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: '0'
197
183
  - !ruby/object:Gem::Dependency
198
184
  name: stamp
199
185
  requirement: !ruby/object:Gem::Requirement
@@ -286,6 +272,7 @@ files:
286
272
  - examples/login_example.rb
287
273
  - gemfiles/rails60.gemfile
288
274
  - gemfiles/rails61.gemfile
275
+ - gemfiles/rails70.gemfile
289
276
  - lib/extensions.rb
290
277
  - lib/quick_travel.rb
291
278
  - lib/quick_travel/accommodation.rb
@@ -452,14 +439,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
452
439
  requirements:
453
440
  - - ">="
454
441
  - !ruby/object:Gem::Version
455
- version: '2.6'
442
+ version: '3.0'
456
443
  required_rubygems_version: !ruby/object:Gem::Requirement
457
444
  requirements:
458
445
  - - ">="
459
446
  - !ruby/object:Gem::Version
460
447
  version: '0'
461
448
  requirements: []
462
- rubygems_version: 3.2.3
449
+ rubygems_version: 3.4.1
463
450
  signing_key:
464
451
  specification_version: 4
465
452
  summary: Booking process using QuickTravel API