booking_locations 0.21.0 → 0.22.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: 0da30cea1fb928705cd62614e37f029fd411417fad8d84031831e2360b3c9bc6
4
- data.tar.gz: 9cfc9ca2f0bf50a6e09f8607dc416bff04a31e3cd7c0eab298e6641260eb006a
3
+ metadata.gz: b657a28dac4fa006ead401a06b2b3219b872f122e8d31ecf092880a29d33ece2
4
+ data.tar.gz: 1973a452daa8c5ba97d7726ce3dec709399580992007dee757c789a1926d8280
5
5
  SHA512:
6
- metadata.gz: 4c666938a789a6870347cb3ca74c480cc6177c6e173035d46bcf437a7e49da548dfa56266b185ee29e8c6353b54a93e03b69d90f2a852ddd00d6f5f96bf725e7
7
- data.tar.gz: 967bca7f7f4d923d60372bbd36fb00d70622280f0b8e479014f9660a8140e93b646aaa6a6cba3a21c4413bd42f810e15f2ac955b4697d228e33e8b08ad510a79
6
+ metadata.gz: 32e9bc8f1fed80d45dbdb1eecfce2e706f7e79a0ff8d84e683239550ca4b6f2b77aac335e411353f22a70422c7c150f83c75dc023bafff0b3125cce96497675b
7
+ data.tar.gz: cf9041afbac2ada7bfe1409908e7cebd013d0fb9e510d3e34293e917459c7bc166385cfe870bad4cbe70326dd924fc22155a2c0486459b597719331439f29116
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.22.0
2
+
3
+ * Added `realtime` flag to locations to signify realtime pilot enrolment
4
+
1
5
  ## 0.21.0
2
6
 
3
7
  * Added a stubbed, inactive guider
@@ -47,6 +47,11 @@ module BookingLocations
47
47
  end
48
48
  alias :hidden? :hidden
49
49
 
50
+ def realtime
51
+ @data['realtime']
52
+ end
53
+ alias :realtime? :realtime
54
+
50
55
  def locations
51
56
  @locations ||= @data['locations'].map { |child_data| Location.new(child_data) }
52
57
  end
@@ -7,6 +7,7 @@
7
7
  "online_booking_reply_to": "dave@example.com",
8
8
  "online_booking_weekends": false,
9
9
  "hidden": false,
10
+ "realtime": true,
10
11
  "locations": [
11
12
  {
12
13
  "uid": "183080c6-642b-4b8f-96fd-891f5cd9f9c7",
@@ -16,6 +17,7 @@
16
17
  "online_booking_reply_to": "dave@example.com",
17
18
  "online_booking_weekends": true,
18
19
  "hidden": false,
20
+ "realtime": false,
19
21
  "slots": [
20
22
  {
21
23
  "date": "2016-06-20",
@@ -37,6 +39,7 @@
37
39
  "online_booking_twilio_number": "+44800321456",
38
40
  "online_booking_weekends": false,
39
41
  "hidden": true,
42
+ "realtime": false,
40
43
  "locations": []
41
44
  },
42
45
  {
@@ -46,6 +49,7 @@
46
49
  "online_booking_twilio_number": "+44800321654",
47
50
  "online_booking_weekends": false,
48
51
  "hidden": false,
52
+ "realtime": false,
49
53
  "locations": []
50
54
  },
51
55
  {
@@ -56,6 +60,7 @@
56
60
  "online_booking_weekends": false,
57
61
  "online_booking_reply_to": "dave@example.com",
58
62
  "hidden": false,
63
+ "realtime": false,
59
64
  "locations": []
60
65
  },
61
66
  {
@@ -66,6 +71,7 @@
66
71
  "online_booking_weekends": false,
67
72
  "online_booking_reply_to": "dave@example.com",
68
73
  "hidden": false,
74
+ "realtime": false,
69
75
  "locations": []
70
76
  }
71
77
  ],
@@ -1,3 +1,3 @@
1
1
  module BookingLocations
2
- VERSION = '0.21.0'.freeze
2
+ VERSION = '0.22.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booking_locations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lovell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-17 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.7.6
161
+ rubygems_version: 2.7.7
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Pension Guidance Booking Locations API adapter