gillbus 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gillbus/search_trips.rb +6 -0
- data/lib/gillbus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54e47ea904a8755c00a4576845ae6779abea4cc3
|
4
|
+
data.tar.gz: c6d830de157b234b145ae9b130c8152d712b5cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a71b4974da670c7ff4a4ca2e63522c81a3835ec7b8eb4a58a0b823bd3b63db1c4cf9ac180776cedef74e6d791e8d3145fe9cd1a5a6013cbae1f90ab1acf61b6
|
7
|
+
data.tar.gz: 1719fa183ae15163244f3d35da7e10be74ba180ffcbddfb6e2d6cef3a71262489eb085077265c97a80eae08aff98666e025e7c5037d982c9b273dea6e2bb059d
|
data/lib/gillbus/search_trips.rb
CHANGED
@@ -68,6 +68,11 @@ class Gillbus
|
|
68
68
|
# Параметр игнорируется, при fullSearch = true.
|
69
69
|
attr_accessor :wait_timeout
|
70
70
|
|
71
|
+
# onlyBranded
|
72
|
+
# Признак отображения в результате поиска только фирменных рейсов.
|
73
|
+
# По умолчанию отображаются все рейсы.
|
74
|
+
attr_accessor :only_branded
|
75
|
+
|
71
76
|
def params
|
72
77
|
pax = (passengers || []).map.with_index { |p, i| PassengerDiscount.wrap(p).params("passenger#{i}") }.reduce({}, :merge)
|
73
78
|
compact(
|
@@ -82,6 +87,7 @@ class Gillbus
|
|
82
87
|
backStartDateSearch: date(back_start_date_search),
|
83
88
|
ticketCount: ticket_count,
|
84
89
|
waitTimeout: wait_timeout,
|
90
|
+
onlyBranded: bool(only_branded),
|
85
91
|
**pax
|
86
92
|
)
|
87
93
|
end
|
data/lib/gillbus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_xml
|