quicktravel_client 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/quick_travel/route.rb +4 -0
- data/lib/quick_travel/version.rb +1 -1
- data/spec/route_spec.rb +1 -0
- 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: a2cac26c2edf8fba72ac0bcf645f02961cde890d
|
4
|
+
data.tar.gz: 8180a537121d608b97ef7e07bd28575edb9d2ac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f7d197ac3d6fb0abec11aee40dc726e40c63b29350c94d72af112e825cc4acd8112f3dda851b736ac8056fcca05399769af3b2309c3c3a49928ad9a3e663fc4
|
7
|
+
data.tar.gz: 12c99db16e03e83404d4de10c4144bc502c2383073a2e3f4744c505c766c7bf943b8d0660384e4a1827edd72695eb88d74f2a68e23c94e851c05527b2a7fb3b6
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/quick_travel/route.rb
CHANGED
@@ -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.'
|
data/lib/quick_travel/version.rb
CHANGED
data/spec/route_spec.rb
CHANGED
@@ -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.
|
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:
|
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.
|
436
|
+
rubygems_version: 2.4.5.1
|
437
437
|
signing_key:
|
438
438
|
specification_version: 4
|
439
439
|
summary: Booking process using QuickTravel API
|