zaui_zapi 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/version.rb +1 -1
  3. data/lib/zapi_xml.rb +4 -0
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cba204364fcee1842b430552d3197106ebc62555
4
- data.tar.gz: d6e34db8a91f7efa0f823470e334a2f2440527be
3
+ metadata.gz: 01027f409143000c226dab07a58e57a82242825d
4
+ data.tar.gz: 6d41e3205a2431159fa675d66f2927339d415a82
5
5
  SHA512:
6
- metadata.gz: 29409baf9fa3d7f68397cf66536f5a69cfe25ebe835e6a665392985a180af0eaa42b415d3f1ac701a113885e7babe6568416bc48cb7d73f6fe08b5fef35406d4
7
- data.tar.gz: d22ffacad53ff19134513d2f60b14131f044b28bd3511df093b41923e78edf1541360880b7d9e03ee7d1d2cbf1ac176ae703edee660978b4fb01b22d014642b0
6
+ metadata.gz: 7c6f7ad19f38254954f64eaab6f20de7bd8628277032a128d3fb7853d784fd63545e0ae822cd3957b2f89b3ed5b6f8f04d950b88d922ae34a2846f09939645ec
7
+ data.tar.gz: db2de8c80f79386aca4a50b4ea968b2c1637c0cbef952c4552737d934fdee8e5dcc71b200658282b10b34697972517eec739eb376b9e4c2431af7b378e086188
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = '0.3.0'
1
+ VERSION = '0.3.1'
data/lib/zapi_xml.rb CHANGED
@@ -194,6 +194,7 @@ class ZapiXML
194
194
  "pricingOptions" => nil,
195
195
  "passengers" => {
196
196
  },
197
+ "checkOnlineThresholds" => nil,
197
198
  "activityTime" => hash[:activity_time],
198
199
  "pickupLocationId" => nil,
199
200
  "dropOffLocationId" => hash[:dropoff_location_id]
@@ -205,6 +206,9 @@ class ZapiXML
205
206
  for_xml['passengers']['infants'] = hash[:infants].to_i unless hash[:infants].to_i == 0
206
207
  for_xml['pickupLocationId'] = hash[:pickup_location_id].to_i unless hash[:pickup_location_id].blank?
207
208
 
209
+ #new undocumented flag so Zaui validates the activity time against the thresholds (defaulting to 1 for true)
210
+ for_xml['checkOnlineThresholds'] = hash[:check_online_thresholds].to_i || 1
211
+
208
212
  _wrap_xml_request(for_xml)
209
213
  end
210
214
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaui_zapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Kretzmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-25 00:00:00.000000000 Z
11
+ date: 2022-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.2.3
97
+ rubygems_version: 2.5.1
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Zaui.com zAPI interface gem