ldbws 1.0.3 → 1.0.4

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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/Gemfile.lock +147 -49
  4. data/LICENSE +1 -1
  5. data/README.md +2 -2
  6. data/doc/LICENSE.html +403 -47
  7. data/doc/Ldbws/Request/GetDeparturesBoard.html +487 -54
  8. data/doc/Ldbws/Request/GetDeparturesBoardWithDetails.html +487 -54
  9. data/doc/Ldbws/Request/GetServiceDetails.html +484 -51
  10. data/doc/Ldbws/Request/GetStationBoard.html +489 -56
  11. data/doc/Ldbws/Request/GetStationBoardWithDetails.html +489 -56
  12. data/doc/Ldbws/Request/ParamValidationError.html +538 -69
  13. data/doc/Ldbws/Request.html +470 -47
  14. data/doc/Ldbws/RequestError.html +535 -72
  15. data/doc/Ldbws/ResponseParsingError.html +475 -49
  16. data/doc/Ldbws/ResponseTypes/BaseStationBoard.html +565 -56
  17. data/doc/Ldbws/ResponseTypes/CallingPoint.html +498 -65
  18. data/doc/Ldbws/ResponseTypes/Coach.html +487 -54
  19. data/doc/Ldbws/ResponseTypes/DepartureItem.html +485 -52
  20. data/doc/Ldbws/ResponseTypes/DepartureItemWithDetails.html +485 -52
  21. data/doc/Ldbws/ResponseTypes/DeparturesBoard.html +484 -51
  22. data/doc/Ldbws/ResponseTypes/DeparturesBoardWithDetails.html +484 -51
  23. data/doc/Ldbws/ResponseTypes/Formation.html +485 -52
  24. data/doc/Ldbws/ResponseTypes/LoadingCategory.html +486 -53
  25. data/doc/Ldbws/ResponseTypes/Location.html +486 -53
  26. data/doc/Ldbws/ResponseTypes/ServiceDetails.html +510 -77
  27. data/doc/Ldbws/ResponseTypes/ServiceItem.html +503 -70
  28. data/doc/Ldbws/ResponseTypes/ServiceItemWithCallingPoints.html +485 -52
  29. data/doc/Ldbws/ResponseTypes/StationBoard.html +486 -53
  30. data/doc/Ldbws/ResponseTypes/StationBoardWithDetails.html +486 -53
  31. data/doc/Ldbws/ResponseTypes/ToiletAvailability.html +485 -52
  32. data/doc/Ldbws/ResponseTypes.html +470 -47
  33. data/doc/Ldbws/Service.html +1083 -245
  34. data/doc/Ldbws.html +520 -73
  35. data/doc/created.rid +19 -20
  36. data/doc/css/rdoc.css +1926 -378
  37. data/doc/index.html +434 -104
  38. data/doc/js/aliki.js +489 -0
  39. data/doc/js/bash_highlighter.js +167 -0
  40. data/doc/js/c_highlighter.js +299 -0
  41. data/doc/js/search_controller.js +129 -0
  42. data/doc/js/search_data.js +1 -0
  43. data/doc/js/search_navigation.js +105 -0
  44. data/doc/js/search_ranker.js +239 -0
  45. data/doc/js/theme-toggle.js +112 -0
  46. data/ldbws.gemspec +7 -6
  47. data/lib/ldbws/request/base.rb +0 -3
  48. data/lib/ldbws/request/get_departures_board.rb +3 -1
  49. data/lib/ldbws/request/get_service_details.rb +2 -0
  50. data/lib/ldbws/request/get_station_board.rb +12 -2
  51. data/lib/ldbws/response_types/calling_point.rb +2 -2
  52. data/lib/ldbws/response_types/station_board.rb +6 -0
  53. data/lib/ldbws/version.rb +1 -1
  54. data/spec/helpers/request_helper.rb +27 -0
  55. data/spec/request/get_departures_board_spec.rb +55 -0
  56. data/spec/request/get_service_details_spec.rb +16 -0
  57. data/spec/request/get_station_board_spec.rb +73 -0
  58. metadata +29 -21
  59. data/.envrc +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03b396b42b0cd40bc4324244fa97031f12777ed56c0a92b93a089a2f9e0d3ec1
4
- data.tar.gz: b7f6dd9e7d172c12463bfa8af20278361482e19cd803f7125a644e4e2fceb408
3
+ metadata.gz: 5f52880f54f67856e0bb04ee10d2378a4ba3e383f05218fa59bd855890456081
4
+ data.tar.gz: 76d452a95c6ababa406b8b9ad605da33ac237622de906ccc4daf13b2efb6d7bf
5
5
  SHA512:
6
- metadata.gz: 3e0084d93616722c13e03538d6d15eaf7148316aee5f8d20dd77fe1c165c9b1426514609e5c8856d39efc7219d3f86efffdaeb13de6795114968089f88d7f360
7
- data.tar.gz: c8023c556980bea9cc084994aa9ee39abaddecdf4e74ddbb8bf1dbe2d3f1ff9c40cdaa078de31124aaea2b559aef9f51363befabe1716a0dc6460cd6998990fc
6
+ metadata.gz: f03cc5245469d5ddb6626736657e2f7a1097f55acf747066580407bb16f1783761c7ca6840bcb2f35a53386e2dbcf89736b7d717abb530d2118f6f8bc4cea2e3
7
+ data.tar.gz: a84221d155a5878b5811db82d0fc441dc1618d5472258438a526fc2050562807ff0545990b30d0bbf6bb83c91ca40ce68dd07145b3c12a5845857d649e602cff
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 4.0.7
data/Gemfile.lock CHANGED
@@ -1,79 +1,177 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ldbws (1.0.3)
5
- dry-schema (~> 1.13)
6
- faraday (~> 2.7)
7
- nokogiri (~> 1.14)
4
+ ldbws (1.0.4)
5
+ dry-schema (~> 1.16)
6
+ faraday (~> 2.15)
7
+ nokogiri (~> 1.19)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- concurrent-ruby (1.2.2)
13
- diff-lcs (1.5.0)
14
- dry-configurable (1.0.1)
15
- dry-core (~> 1.0, < 2)
12
+ bigdecimal (4.1.3)
13
+ concurrent-ruby (1.3.8)
14
+ diff-lcs (1.6.2)
15
+ dry-configurable (1.4.0)
16
+ dry-core (~> 1.0)
16
17
  zeitwerk (~> 2.6)
17
- dry-core (1.0.0)
18
+ dry-core (1.2.0)
18
19
  concurrent-ruby (~> 1.0)
20
+ logger
19
21
  zeitwerk (~> 2.6)
20
- dry-inflector (1.0.0)
21
- dry-initializer (3.1.1)
22
- dry-logic (1.5.0)
22
+ dry-inflector (1.3.1)
23
+ dry-initializer (3.2.0)
24
+ dry-logic (1.6.0)
25
+ bigdecimal
23
26
  concurrent-ruby (~> 1.0)
24
- dry-core (~> 1.0, < 2)
27
+ dry-core (~> 1.1)
25
28
  zeitwerk (~> 2.6)
26
- dry-schema (1.13.1)
29
+ dry-schema (1.16.0)
27
30
  concurrent-ruby (~> 1.0)
28
31
  dry-configurable (~> 1.0, >= 1.0.1)
29
- dry-core (~> 1.0, < 2)
30
- dry-initializer (~> 3.0)
31
- dry-logic (>= 1.4, < 2)
32
- dry-types (>= 1.7, < 2)
32
+ dry-core (~> 1.1)
33
+ dry-initializer (~> 3.2)
34
+ dry-logic (~> 1.6)
35
+ dry-types (~> 1.9, >= 1.9.1)
33
36
  zeitwerk (~> 2.6)
34
- dry-types (1.7.1)
37
+ dry-types (1.9.1)
38
+ bigdecimal (>= 3.0)
35
39
  concurrent-ruby (~> 1.0)
36
40
  dry-core (~> 1.0)
37
41
  dry-inflector (~> 1.0)
38
42
  dry-logic (~> 1.4)
39
43
  zeitwerk (~> 2.6)
40
- faraday (2.7.4)
41
- faraday-net_http (>= 2.0, < 3.1)
42
- ruby2_keywords (>= 0.0.4)
43
- faraday-net_http (3.0.2)
44
- nokogiri (1.14.3-arm64-darwin)
44
+ erb (6.0.7)
45
+ faraday (2.15.0)
46
+ faraday-net_http (>= 2.0, < 3.6)
47
+ json
48
+ logger
49
+ faraday-net_http (3.5.0)
50
+ net-http (~> 0.5)
51
+ json (3.1.0)
52
+ logger (1.7.0)
53
+ net-http (0.10.0)
54
+ net-protocol (>= 0.3.0)
55
+ uri (>= 0.11.1)
56
+ net-protocol (0.4.0)
57
+ timeout
58
+ nokogiri (1.19.4-aarch64-linux-gnu)
59
+ racc (~> 1.4)
60
+ nokogiri (1.19.4-aarch64-linux-musl)
61
+ racc (~> 1.4)
62
+ nokogiri (1.19.4-arm-linux-gnu)
63
+ racc (~> 1.4)
64
+ nokogiri (1.19.4-arm-linux-musl)
65
+ racc (~> 1.4)
66
+ nokogiri (1.19.4-arm64-darwin)
45
67
  racc (~> 1.4)
46
- psych (5.1.0)
47
- stringio
48
- racc (1.6.2)
49
- rdoc (6.5.0)
50
- psych (>= 4.0.0)
51
- rspec (3.12.0)
52
- rspec-core (~> 3.12.0)
53
- rspec-expectations (~> 3.12.0)
54
- rspec-mocks (~> 3.12.0)
55
- rspec-core (3.12.1)
56
- rspec-support (~> 3.12.0)
57
- rspec-expectations (3.12.2)
68
+ nokogiri (1.19.4-x86_64-darwin)
69
+ racc (~> 1.4)
70
+ nokogiri (1.19.4-x86_64-linux-gnu)
71
+ racc (~> 1.4)
72
+ nokogiri (1.19.4-x86_64-linux-musl)
73
+ racc (~> 1.4)
74
+ prism (2.0.0-aarch64-linux-gnu)
75
+ prism (2.0.0-aarch64-linux-musl)
76
+ prism (2.0.0-arm-linux-gnu)
77
+ prism (2.0.0-arm-linux-musl)
78
+ prism (2.0.0-arm64-darwin)
79
+ prism (2.0.0-x86_64-darwin)
80
+ prism (2.0.0-x86_64-linux-gnu)
81
+ prism (2.0.0-x86_64-linux-musl)
82
+ racc (1.8.1)
83
+ rbs (4.2.0)
84
+ logger
85
+ prism (>= 1.6.0)
86
+ tsort
87
+ rdoc (8.1.0)
88
+ erb
89
+ prism (>= 1.6.0)
90
+ rbs (>= 4.0.0)
91
+ tsort
92
+ rspec (3.13.2)
93
+ rspec-core (~> 3.13.0)
94
+ rspec-expectations (~> 3.13.0)
95
+ rspec-mocks (~> 3.13.0)
96
+ rspec-core (3.13.6)
97
+ rspec-support (~> 3.13.0)
98
+ rspec-expectations (3.13.5)
58
99
  diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.12.0)
60
- rspec-mocks (3.12.5)
100
+ rspec-support (~> 3.13.0)
101
+ rspec-mocks (3.13.8)
61
102
  diff-lcs (>= 1.2.0, < 2.0)
62
- rspec-support (~> 3.12.0)
63
- rspec-support (3.12.0)
64
- ruby2_keywords (0.0.5)
65
- rufo (0.13.0)
66
- stringio (3.0.5)
67
- zeitwerk (2.6.7)
103
+ rspec-support (~> 3.13.0)
104
+ rspec-support (3.13.7)
105
+ rufo (0.18.2)
106
+ timeout (0.6.1)
107
+ tsort (0.2.0)
108
+ uri (1.1.2)
109
+ zeitwerk (2.8.3)
68
110
 
69
111
  PLATFORMS
70
- arm64-darwin-22
112
+ aarch64-linux-gnu
113
+ aarch64-linux-musl
114
+ arm-linux-gnu
115
+ arm-linux-musl
116
+ arm64-darwin
117
+ x86_64-darwin
118
+ x86_64-linux-gnu
119
+ x86_64-linux-musl
71
120
 
72
121
  DEPENDENCIES
73
122
  ldbws!
74
- rdoc (~> 6.5.0)
75
- rspec (~> 3.11)
76
- rufo (~> 0.13.0)
123
+ rdoc (~> 8.1)
124
+ rspec (~> 3.13)
125
+ rufo (~> 0.18)
126
+
127
+ CHECKSUMS
128
+ bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
129
+ concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
130
+ diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
131
+ dry-configurable (1.4.0) sha256=e35d1b5f3c081753ef361f564919db79000f32cfa6f20ee3a3ba5921b41b73ce
132
+ dry-core (1.2.0) sha256=0cc5a7da88df397f153947eeeae42e876e999c1e30900f3c536fb173854e96a1
133
+ dry-inflector (1.3.1) sha256=7fb0c2bb04f67638f25c52e7ba39ab435d922a3a5c3cd196120f63accb682dcc
134
+ dry-initializer (3.2.0) sha256=37d59798f912dc0a1efe14a4db4a9306989007b302dcd5f25d0a2a20c166c4e3
135
+ dry-logic (1.6.0) sha256=da6fedbc0f90fc41f9b0cc7e6f05f5d529d1efaef6c8dcc8e0733f685745cea2
136
+ dry-schema (1.16.0) sha256=cd3aaeabc0f1af66ec82a29096d4c4fb92a0a58b9dae29a22b1bbceb78985727
137
+ dry-types (1.9.1) sha256=baebeecdb9f8395d6c9d227b62011279440943e3ef2468fe8ccc1ba11467f178
138
+ erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
139
+ faraday (2.15.0) sha256=3be0eff0187ed913a1b4f679e9fcfe845b542cdd4f75b76cd6181a4ae1335fff
140
+ faraday-net_http (3.5.0) sha256=2e7094c34e38754ee048cc3df47376f8657005d9375f8473bce1c3b526a22e36
141
+ json (3.1.0) sha256=3ce7ccf8fde58960177a3a756c31f292a4c1e1dedee884547096a5b0604e3bd8
142
+ ldbws (1.0.4)
143
+ logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
144
+ net-http (0.10.0) sha256=1a2ff6e37a05724973c43f2bf7bf105f59c36a4cd0a7e9b1c021a0a566987c27
145
+ net-protocol (0.4.0) sha256=f9f90c8c6f64794a45160bf422177a336db12809de3beeeaa26b88fcd2e8c853
146
+ nokogiri (1.19.4-aarch64-linux-gnu) sha256=1269fb644a6de405057a53dd5c762b1209b43ca7424f839454d3dbc677c31a8f
147
+ nokogiri (1.19.4-aarch64-linux-musl) sha256=35c65b9ce72b3bb03207bdbe7067915019dc18c1b9b59139684bd6690fdd01af
148
+ nokogiri (1.19.4-arm-linux-gnu) sha256=a301313e38bb065d68239e79734bcd6f56fb6efaacebde29e9abf2a4735340ca
149
+ nokogiri (1.19.4-arm-linux-musl) sha256=588923c101bcfa78869734d247d25b598674323e7f22474fc468f6e5647311eb
150
+ nokogiri (1.19.4-arm64-darwin) sha256=a46db9853286e6597b36ebc6953817d15acf3a299583eb3f89fdc6f91dd63527
151
+ nokogiri (1.19.4-x86_64-darwin) sha256=7fd17057d3e1f00e9954a74b3cd76595d3d4a5ef233b7ed9599047c204f70551
152
+ nokogiri (1.19.4-x86_64-linux-gnu) sha256=379fae440b28915e3f19d752ce2dcf8465ed2b2fbefd2a7ca0dd497bc981a06a
153
+ nokogiri (1.19.4-x86_64-linux-musl) sha256=17dfb7c1fa194ae02fbf7c51a7afc8d278045ab3fdacfd86f91d02d7b274470b
154
+ prism (2.0.0-aarch64-linux-gnu) sha256=7df16d47ce2b1f771eaf63137213d84e98495e3f325043bcc09202d7e5730900
155
+ prism (2.0.0-aarch64-linux-musl) sha256=3140d10be2ea36122af23c1b8af946ca2f09c8f9e7b13f11d77ae13fe68e2681
156
+ prism (2.0.0-arm-linux-gnu) sha256=2712f462524a202f98c1fd0a59a609fa94937aa53347371726f72a7a8309a13c
157
+ prism (2.0.0-arm-linux-musl) sha256=d4fb8f775bf940230d5d0057886dac6437b99a6b77395dbe24b154bdfa66f5e9
158
+ prism (2.0.0-arm64-darwin) sha256=edebbfcc16f6a879f47dac9501b20a7cd95abe96397bb485106d6670541abeb1
159
+ prism (2.0.0-x86_64-darwin) sha256=9600064b7637a867bdb788dd45d5f5366d4acff2d0884cfe936463d7ab4a250d
160
+ prism (2.0.0-x86_64-linux-gnu) sha256=e0b4830c94d9dc59e80ad34d98096797f514c9e097b677c4947d89598c7f5cd1
161
+ prism (2.0.0-x86_64-linux-musl) sha256=69a76ee43c2a671dca88d97658a619b1bd4ec743dd903ccded70fd8f7897eec5
162
+ racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
163
+ rbs (4.2.0) sha256=51f7b886dcc05bc09e10b901daa6a81829f6adc03101d6ca9ea4aac6103e0674
164
+ rdoc (8.1.0) sha256=befc37880a5cfd36dcb176c748b5fd5ee39dd3536a75e81824e4972ce230f60a
165
+ rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
166
+ rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
167
+ rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
168
+ rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
169
+ rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
170
+ rufo (0.18.2) sha256=f279bea838aae7cd51149413a2dfa3383044b1c93f1469ceaddd1ca3824fc46f
171
+ timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
172
+ tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
173
+ uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb
174
+ zeitwerk (2.8.3) sha256=2c85125a8467ce069e20123d1e709a08955c9d29c118c25b46b7b7fafdbb92e5
77
175
 
78
176
  BUNDLED WITH
79
- 2.3.22
177
+ 4.0.20
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Jon Pearse
3
+ Copyright (c) 2022–2026 Jon Pearse
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -54,9 +54,9 @@ This is raised when parameter validation fails. Details about exactly which para
54
54
 
55
55
  ```ruby
56
56
  begin
57
- service.get_departure_board
57
+ service.get_departure_board
58
58
  rescue Ldbws::Request::ParamValidationError => e
59
- # e = { crs: "is missing" }
59
+ # e = { crs: "is missing" }
60
60
  end
61
61
  ```
62
62