quicktravel_client 2.6.0 → 2.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0860d761f32870c66c3db52e825b4ddd9beb3ea3
4
- data.tar.gz: b8847c60dbf07178b4f158928712ec64e7ac0c30
3
+ metadata.gz: a2cac26c2edf8fba72ac0bcf645f02961cde890d
4
+ data.tar.gz: 8180a537121d608b97ef7e07bd28575edb9d2ac2
5
5
  SHA512:
6
- metadata.gz: 89753ba3b3c560623e3677a5749e7fbc1d40a24c9feb55536b773c98b5b6d1fdf4323580e72fbcf5cecba04a802a20d1c6995bc09849ec7ee09594be77bf46b4
7
- data.tar.gz: c343dbd4ad46c89f9eae77f6d42626a735662f4fcef5835712145647de5c9866ee813d045609b72f3b5c8e4deb565bdf5f256001cac73b8687a262f0a9428b61
6
+ metadata.gz: 5f7d197ac3d6fb0abec11aee40dc726e40c63b29350c94d72af112e825cc4acd8112f3dda851b736ac8056fcca05399769af3b2309c3c3a49928ad9a3e663fc4
7
+ data.tar.gz: 12c99db16e03e83404d4de10c4144bc502c2383073a2e3f4744c505c766c7bf943b8d0660384e4a1827edd72695eb88d74f2a68e23c94e851c05527b2a7fb3b6
@@ -3,6 +3,10 @@ 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
+ ## [2.7.0]
7
+ ### Added
8
+ - can_choose_stops? to check if a route has more than two stops
9
+
6
10
  ## [2.6.0]
7
11
  ### Removed
8
12
  - Stop passing last_travel_date
@@ -30,6 +30,10 @@ module QuickTravel
30
30
  @_stops ||= @route_stops.map { |item| RouteStop.new(item) }
31
31
  end
32
32
 
33
+ def can_choose_stops?
34
+ route_stops.count > 2
35
+ end
36
+
33
37
  def get_return_route_stop!(forward_stop)
34
38
  if forward_stop.blank?
35
39
  fail AdapterError, 'Selected pick up/drop off stops have not been set up for the selected route.'
@@ -1,3 +1,3 @@
1
1
  module QuickTravel
2
- VERSION = '2.6.0'
2
+ VERSION = '2.7.0'
3
3
  end
@@ -24,6 +24,7 @@ describe QuickTravel::Route do
24
24
  its(:position) { should eq 1 }
25
25
  its(:product_type_id) { should eq 1 }
26
26
  its(:reverse_id) { should eq from_route_id }
27
+ its(:can_choose_stops?) { should eq false }
27
28
 
28
29
  context 'route stops' do
29
30
  subject(:route_stops) { route.route_stops }
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: 2.6.0
4
+ version: 2.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: 2016-12-13 00:00:00.000000000 Z
13
+ date: 2017-01-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -433,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
433
433
  version: '0'
434
434
  requirements: []
435
435
  rubyforge_project:
436
- rubygems_version: 2.4.8
436
+ rubygems_version: 2.4.5.1
437
437
  signing_key:
438
438
  specification_version: 4
439
439
  summary: Booking process using QuickTravel API