ldbws 1.0.0
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.
- checksums.yaml +7 -0
- data/.editorconfig +14 -0
- data/.envrc +1 -0
- data/.gitignore +8 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +79 -0
- data/LICENSE +21 -0
- data/Makefile +8 -0
- data/README.md +47 -0
- data/doc/LICENSE.html +93 -0
- data/doc/Ldbws/Request/GetDeparturesBoard.html +114 -0
- data/doc/Ldbws/Request/GetDeparturesBoardWithDetails.html +116 -0
- data/doc/Ldbws/Request/GetServiceDetails.html +105 -0
- data/doc/Ldbws/Request/GetStationBoard.html +120 -0
- data/doc/Ldbws/Request/GetStationBoardWithDetails.html +120 -0
- data/doc/Ldbws/Request.html +91 -0
- data/doc/Ldbws/ResponseTypes/BaseStationBoard.html +108 -0
- data/doc/Ldbws/ResponseTypes/CallingPoint.html +129 -0
- data/doc/Ldbws/ResponseTypes/Coach.html +114 -0
- data/doc/Ldbws/ResponseTypes/DepartureItem.html +108 -0
- data/doc/Ldbws/ResponseTypes/DepartureItemWithDetails.html +108 -0
- data/doc/Ldbws/ResponseTypes/DeparturesBoard.html +105 -0
- data/doc/Ldbws/ResponseTypes/DeparturesBoardWithDetails.html +105 -0
- data/doc/Ldbws/ResponseTypes/Formation.html +108 -0
- data/doc/Ldbws/ResponseTypes/LoadingCategory.html +105 -0
- data/doc/Ldbws/ResponseTypes/Location.html +105 -0
- data/doc/Ldbws/ResponseTypes/ServiceDetails.html +143 -0
- data/doc/Ldbws/ResponseTypes/ServiceItem.html +132 -0
- data/doc/Ldbws/ResponseTypes/ServiceItemWithCallingPoints.html +106 -0
- data/doc/Ldbws/ResponseTypes/StationBoard.html +107 -0
- data/doc/Ldbws/ResponseTypes/StationBoardWithDetails.html +107 -0
- data/doc/Ldbws/ResponseTypes/ToiletAvailability.html +108 -0
- data/doc/Ldbws/ResponseTypes.html +91 -0
- data/doc/Ldbws/Service.html +538 -0
- data/doc/Ldbws.html +149 -0
- data/doc/README_md.html +159 -0
- data/doc/created.rid +19 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +662 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +165 -0
- data/doc/js/darkfish.js +84 -0
- data/doc/js/navigation.js +105 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +110 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +229 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +299 -0
- data/ldbws.gemspec +25 -0
- data/lib/ldbws/request/base.rb +69 -0
- data/lib/ldbws/request/get_departures_board.rb +54 -0
- data/lib/ldbws/request/get_service_details.rb +29 -0
- data/lib/ldbws/request/get_station_board.rb +60 -0
- data/lib/ldbws/response_types/base.rb +34 -0
- data/lib/ldbws/response_types/calling_point.rb +40 -0
- data/lib/ldbws/response_types/departures_board.rb +39 -0
- data/lib/ldbws/response_types/formation.rb +49 -0
- data/lib/ldbws/response_types/parsing_functions.rb +177 -0
- data/lib/ldbws/response_types/service_details.rb +69 -0
- data/lib/ldbws/response_types/service_item.rb +77 -0
- data/lib/ldbws/response_types/station_board.rb +50 -0
- data/lib/ldbws/service.rb +218 -0
- data/lib/ldbws/utils.rb +60 -0
- data/lib/ldbws/version.rb +4 -0
- data/lib/ldbws.rb +13 -0
- data/spec/response_types/parsing_spec.rb +46 -0
- data/spec/spec_helper.rb +4 -0
- metadata +224 -0
data/doc/Ldbws.html
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>module Ldbws - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<script type="text/javascript">
|
|
10
|
+
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
|
15
|
+
<script src="./js/search.js" defer></script>
|
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
|
19
|
+
|
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<body id="top" role="document" class="module">
|
|
25
|
+
<nav role="navigation">
|
|
26
|
+
<div id="project-navigation">
|
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
28
|
+
<h2>
|
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
|
30
|
+
</h2>
|
|
31
|
+
|
|
32
|
+
<div id="table-of-contents-navigation">
|
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
41
|
+
<div id="search-field-wrapper">
|
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
|
49
|
+
aria-busy="false" aria-expanded="false"
|
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
51
|
+
</form>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<div id="class-metadata">
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<!-- Method Quickref -->
|
|
65
|
+
<div id="method-list-section" class="nav-section">
|
|
66
|
+
<h3>Methods</h3>
|
|
67
|
+
|
|
68
|
+
<ul class="link-list" role="directory">
|
|
69
|
+
<li ><a href="#method-c-service">::service</a>
|
|
70
|
+
</ul>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
</div>
|
|
74
|
+
</nav>
|
|
75
|
+
|
|
76
|
+
<main role="main" aria-labelledby="module-Ldbws">
|
|
77
|
+
<h1 id="module-Ldbws" class="module">
|
|
78
|
+
module Ldbws
|
|
79
|
+
</h1>
|
|
80
|
+
|
|
81
|
+
<section class="description">
|
|
82
|
+
|
|
83
|
+
<p>Provides a Ruby abstraction around the UK’s Network Rail live departure board webservice (LDBWS). See <a href="Ldbws/Service.html">Service</a> for more information.</p>
|
|
84
|
+
|
|
85
|
+
<p>Utility functions for use within the library.</p>
|
|
86
|
+
|
|
87
|
+
</section>
|
|
88
|
+
|
|
89
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
<section class="constants-list">
|
|
93
|
+
<header>
|
|
94
|
+
<h3>Constants</h3>
|
|
95
|
+
</header>
|
|
96
|
+
<dl>
|
|
97
|
+
<dt id="VERSION">VERSION
|
|
98
|
+
<dd><p>The current gem version.</p>
|
|
99
|
+
</dl>
|
|
100
|
+
</section>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
105
|
+
<header>
|
|
106
|
+
<h3>Public Class Methods</h3>
|
|
107
|
+
</header>
|
|
108
|
+
|
|
109
|
+
<div id="method-c-service" class="method-detail ">
|
|
110
|
+
<div class="method-header">
|
|
111
|
+
<div class="method-heading">
|
|
112
|
+
<span class="method-name">service</span><span
|
|
113
|
+
class="method-args">(token)</span>
|
|
114
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<div class="method-description">
|
|
119
|
+
<p>Helper method that returns an instance of [<a href="Ldbws/Service.html"><code>Service</code></a>].</p>
|
|
120
|
+
|
|
121
|
+
<h3 id="method-c-service-label-Parameters">Parameters<span><a href="#method-c-service-label-Parameters">¶</a> <a href="#top">↑</a></span></h3>
|
|
122
|
+
<dl class="rdoc-list note-list"><dt>token
|
|
123
|
+
<dd>
|
|
124
|
+
<p>the API token used to connect to the service</p>
|
|
125
|
+
</dd></dl>
|
|
126
|
+
|
|
127
|
+
<div class="method-source-code" id="service-source">
|
|
128
|
+
<pre><span class="ruby-comment"># File lib/ldbws.rb, line 10</span>
|
|
129
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">service</span>(<span class="ruby-identifier">token</span>)
|
|
130
|
+
<span class="ruby-constant">Service</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">token</span>)
|
|
131
|
+
<span class="ruby-keyword">end</span></pre>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
</section>
|
|
139
|
+
|
|
140
|
+
</section>
|
|
141
|
+
</main>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<footer id="validator-badges" role="contentinfo">
|
|
145
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
146
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.5.0.
|
|
147
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
148
|
+
</footer>
|
|
149
|
+
|
data/doc/README_md.html
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>README - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<script type="text/javascript">
|
|
10
|
+
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
|
15
|
+
<script src="./js/search.js" defer></script>
|
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
|
19
|
+
|
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<body id="top" role="document" class="file">
|
|
25
|
+
<nav role="navigation">
|
|
26
|
+
<div id="project-navigation">
|
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
28
|
+
<h2>
|
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
|
30
|
+
</h2>
|
|
31
|
+
|
|
32
|
+
<div id="table-of-contents-navigation">
|
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
41
|
+
<div id="search-field-wrapper">
|
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
|
49
|
+
aria-busy="false" aria-expanded="false"
|
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
51
|
+
</form>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<div class="nav-section">
|
|
58
|
+
<h3>Table of Contents</h3>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
<ul class="link-list" role="directory">
|
|
63
|
+
<li>
|
|
64
|
+
<details open>
|
|
65
|
+
<summary> <a href="#label-ldbws-ruby">ldbws-ruby</a>
|
|
66
|
+
</summary>
|
|
67
|
+
<ul class="link-list" role="directory">
|
|
68
|
+
<li>
|
|
69
|
+
<details open>
|
|
70
|
+
<summary> <a href="#label-HOWTO">HOWTO</a>
|
|
71
|
+
</summary>
|
|
72
|
+
<ul class="link-list" role="directory">
|
|
73
|
+
<li> <a href="#label-A+note+about+rate+limiting">A note about rate limiting</a>
|
|
74
|
+
|
|
75
|
+
</ul>
|
|
76
|
+
</details>
|
|
77
|
+
</li>
|
|
78
|
+
<li> <a href="#label-Caveats">Caveats</a>
|
|
79
|
+
|
|
80
|
+
</ul>
|
|
81
|
+
</details>
|
|
82
|
+
</li>
|
|
83
|
+
|
|
84
|
+
</ul>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
<div id="project-metadata">
|
|
89
|
+
|
|
90
|
+
<div id="fileindex-section" class="nav-section">
|
|
91
|
+
<h3>Pages</h3>
|
|
92
|
+
|
|
93
|
+
<ul class="link-list">
|
|
94
|
+
<li><a href="./LICENSE.html">LICENSE</a>
|
|
95
|
+
<li><a href="./README_md.html">README</a>
|
|
96
|
+
</ul>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
</div>
|
|
100
|
+
</nav>
|
|
101
|
+
|
|
102
|
+
<main role="main" aria-label="Page README.md">
|
|
103
|
+
|
|
104
|
+
<h1 id="label-ldbws-ruby">ldbws-ruby<span><a href="#label-ldbws-ruby">¶</a> <a href="#top">↑</a></span></h1>
|
|
105
|
+
|
|
106
|
+
<p>I’ll write a proper readme/howto at some point, but short version is that this is a Ruby wrapper around <a href="https://lite.realtime.nationalrail.co.uk/OpenLDBWS/">Network Rail‘s Live Departure Board web service</a> (LDBWS/OpenLDBWS)—I’ve trawled through their XSD files so you don’t have to =)</p>
|
|
107
|
+
|
|
108
|
+
<p>I built it for a project I’m hacking at + thought I’d release it into the world. It’s rough and ready right now, but it should be somewhat functional.</p>
|
|
109
|
+
|
|
110
|
+
<h2 id="label-HOWTO">HOWTO<span><a href="#label-HOWTO">¶</a> <a href="#top">↑</a></span></h2>
|
|
111
|
+
|
|
112
|
+
<p>All operations are supported, in <code>snake_case</code>, thus:</p>
|
|
113
|
+
|
|
114
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">"path/to/ldbws"</span>
|
|
115
|
+
|
|
116
|
+
<span class="ruby-identifier">service</span> = <span class="ruby-constant">Ldbws</span>.<span class="ruby-identifier">service</span>(<span class="ruby-constant">YOUR_API_TOKEN</span>)
|
|
117
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">service</span>.<span class="ruby-identifier">get_departure_board</span>(<span class="ruby-value">crs:</span> <span class="ruby-string">"CDF"</span>)
|
|
118
|
+
|
|
119
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">"TIME PLAT TO"</span>
|
|
120
|
+
<span class="ruby-identifier">result</span>.<span class="ruby-identifier">train_services</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">service</span><span class="ruby-operator">|</span>
|
|
121
|
+
<span class="ruby-identifier">printf</span>(
|
|
122
|
+
<span class="ruby-string">"%s %-2s %s (%s)\n"</span>,
|
|
123
|
+
<span class="ruby-identifier">service</span>.<span class="ruby-identifier">std</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">"%H:%M"</span>),
|
|
124
|
+
<span class="ruby-identifier">service</span>.<span class="ruby-identifier">platform</span> <span class="ruby-operator">||</span> <span class="ruby-string">"-"</span>,
|
|
125
|
+
<span class="ruby-identifier">service</span>.<span class="ruby-identifier">destination</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">name</span>,
|
|
126
|
+
<span class="ruby-identifier">service</span>.<span class="ruby-identifier">operator</span>
|
|
127
|
+
)
|
|
128
|
+
<span class="ruby-keyword">end</span>
|
|
129
|
+
|
|
130
|
+
<span class="ruby-comment"># TIME PLAT TO</span>
|
|
131
|
+
<span class="ruby-comment"># 17:32 - Penarth (Transport for Wales)</span>
|
|
132
|
+
<span class="ruby-comment"># 17:39 3 Swansea (Great Western Railway)</span>
|
|
133
|
+
<span class="ruby-comment"># 17:55 8 Barry (Transport for Wales)</span>
|
|
134
|
+
<span class="ruby-comment"># 17:56 2A Manchester Piccadilly (Transport for Wales)</span>
|
|
135
|
+
<span class="ruby-comment"># 18:01 6 Bargoed (Transport for Wales)</span>
|
|
136
|
+
<span class="ruby-comment"># [etc]</span>
|
|
137
|
+
</pre>
|
|
138
|
+
|
|
139
|
+
<h3 id="label-A+note+about+rate+limiting">A note about rate limiting<span><a href="#label-A+note+about+rate+limiting">¶</a> <a href="#top">↑</a></span></h3>
|
|
140
|
+
|
|
141
|
+
<p>LDBWS uses rate-limiting for free access: while this <em>probably</em> isn’t going to be an issue for the casual user, you may want to consider using a cache in front of this gem, just in case.</p>
|
|
142
|
+
|
|
143
|
+
<h2 id="label-Caveats">Caveats<span><a href="#label-Caveats">¶</a> <a href="#top">↑</a></span></h2>
|
|
144
|
+
|
|
145
|
+
<p>This is released into the world as-is. If you use it for something and end up missing your train, or do something that falls foul of the LDBWS terms of use, it’s not my fault :)</p>
|
|
146
|
+
<hr>
|
|
147
|
+
|
|
148
|
+
<p>Share and enjoy!</p>
|
|
149
|
+
|
|
150
|
+
</main>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<footer id="validator-badges" role="contentinfo">
|
|
155
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
156
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.5.0.
|
|
157
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
158
|
+
</footer>
|
|
159
|
+
|
data/doc/created.rid
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Sat, 01 Apr 2023 18:57:36 +0100
|
|
2
|
+
LICENSE Thu, 06 Oct 2022 18:25:44 +0100
|
|
3
|
+
README.md Sat, 01 Apr 2023 18:57:09 +0100
|
|
4
|
+
lib/ldbws/request/base.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
5
|
+
lib/ldbws/request/get_departures_board.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
6
|
+
lib/ldbws/request/get_service_details.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
7
|
+
lib/ldbws/request/get_station_board.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
8
|
+
lib/ldbws/response_types/base.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
9
|
+
lib/ldbws/response_types/calling_point.rb Sat, 01 Apr 2023 18:56:26 +0100
|
|
10
|
+
lib/ldbws/response_types/departures_board.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
11
|
+
lib/ldbws/response_types/formation.rb Sat, 01 Apr 2023 18:56:26 +0100
|
|
12
|
+
lib/ldbws/response_types/parsing_functions.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
13
|
+
lib/ldbws/response_types/service_details.rb Sat, 01 Apr 2023 18:56:26 +0100
|
|
14
|
+
lib/ldbws/response_types/service_item.rb Sat, 01 Apr 2023 18:56:26 +0100
|
|
15
|
+
lib/ldbws/response_types/station_board.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
16
|
+
lib/ldbws/service.rb Sat, 01 Apr 2023 18:57:09 +0100
|
|
17
|
+
lib/ldbws/utils.rb Sat, 01 Apr 2023 18:57:09 +0100
|
|
18
|
+
lib/ldbws/version.rb Sat, 01 Apr 2023 18:55:20 +0100
|
|
19
|
+
lib/ldbws.rb Sat, 01 Apr 2023 18:55:20 +0100
|
data/doc/css/fonts.css
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
|
3
|
+
* with Reserved Font Name "Source". All Rights Reserved. Source is a
|
|
4
|
+
* trademark of Adobe Systems Incorporated in the United States and/or other
|
|
5
|
+
* countries.
|
|
6
|
+
*
|
|
7
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
|
8
|
+
* 1.1.
|
|
9
|
+
*
|
|
10
|
+
* This license is copied below, and is also available with a FAQ at:
|
|
11
|
+
* http://scripts.sil.org/OFL
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: "Source Code Pro";
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
src: local("Source Code Pro"),
|
|
19
|
+
local("SourceCodePro-Regular"),
|
|
20
|
+
url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: "Source Code Pro";
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
src: local("Source Code Pro Bold"),
|
|
28
|
+
local("SourceCodePro-Bold"),
|
|
29
|
+
url("../fonts/SourceCodePro-Bold.ttf") format("truetype");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
|
|
34
|
+
* with Reserved Font Name Lato.
|
|
35
|
+
*
|
|
36
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
|
37
|
+
* 1.1.
|
|
38
|
+
*
|
|
39
|
+
* This license is copied below, and is also available with a FAQ at:
|
|
40
|
+
* http://scripts.sil.org/OFL
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: "Lato";
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 300;
|
|
47
|
+
src: local("Lato Light"),
|
|
48
|
+
local("Lato-Light"),
|
|
49
|
+
url("../fonts/Lato-Light.ttf") format("truetype");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: "Lato";
|
|
54
|
+
font-style: italic;
|
|
55
|
+
font-weight: 300;
|
|
56
|
+
src: local("Lato Light Italic"),
|
|
57
|
+
local("Lato-LightItalic"),
|
|
58
|
+
url("../fonts/Lato-LightItalic.ttf") format("truetype");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@font-face {
|
|
62
|
+
font-family: "Lato";
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-weight: 700;
|
|
65
|
+
src: local("Lato Regular"),
|
|
66
|
+
local("Lato-Regular"),
|
|
67
|
+
url("../fonts/Lato-Regular.ttf") format("truetype");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@font-face {
|
|
71
|
+
font-family: "Lato";
|
|
72
|
+
font-style: italic;
|
|
73
|
+
font-weight: 700;
|
|
74
|
+
src: local("Lato Italic"),
|
|
75
|
+
local("Lato-Italic"),
|
|
76
|
+
url("../fonts/Lato-RegularItalic.ttf") format("truetype");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/*
|
|
80
|
+
* -----------------------------------------------------------
|
|
81
|
+
* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
82
|
+
* -----------------------------------------------------------
|
|
83
|
+
*
|
|
84
|
+
* PREAMBLE
|
|
85
|
+
* The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
86
|
+
* development of collaborative font projects, to support the font creation
|
|
87
|
+
* efforts of academic and linguistic communities, and to provide a free and
|
|
88
|
+
* open framework in which fonts may be shared and improved in partnership
|
|
89
|
+
* with others.
|
|
90
|
+
*
|
|
91
|
+
* The OFL allows the licensed fonts to be used, studied, modified and
|
|
92
|
+
* redistributed freely as long as they are not sold by themselves. The
|
|
93
|
+
* fonts, including any derivative works, can be bundled, embedded,
|
|
94
|
+
* redistributed and/or sold with any software provided that any reserved
|
|
95
|
+
* names are not used by derivative works. The fonts and derivatives,
|
|
96
|
+
* however, cannot be released under any other type of license. The
|
|
97
|
+
* requirement for fonts to remain under this license does not apply
|
|
98
|
+
* to any document created using the fonts or their derivatives.
|
|
99
|
+
*
|
|
100
|
+
* DEFINITIONS
|
|
101
|
+
* "Font Software" refers to the set of files released by the Copyright
|
|
102
|
+
* Holder(s) under this license and clearly marked as such. This may
|
|
103
|
+
* include source files, build scripts and documentation.
|
|
104
|
+
*
|
|
105
|
+
* "Reserved Font Name" refers to any names specified as such after the
|
|
106
|
+
* copyright statement(s).
|
|
107
|
+
*
|
|
108
|
+
* "Original Version" refers to the collection of Font Software components as
|
|
109
|
+
* distributed by the Copyright Holder(s).
|
|
110
|
+
*
|
|
111
|
+
* "Modified Version" refers to any derivative made by adding to, deleting,
|
|
112
|
+
* or substituting -- in part or in whole -- any of the components of the
|
|
113
|
+
* Original Version, by changing formats or by porting the Font Software to a
|
|
114
|
+
* new environment.
|
|
115
|
+
*
|
|
116
|
+
* "Author" refers to any designer, engineer, programmer, technical
|
|
117
|
+
* writer or other person who contributed to the Font Software.
|
|
118
|
+
*
|
|
119
|
+
* PERMISSION & CONDITIONS
|
|
120
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
121
|
+
* a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
122
|
+
* redistribute, and sell modified and unmodified copies of the Font
|
|
123
|
+
* Software, subject to the following conditions:
|
|
124
|
+
*
|
|
125
|
+
* 1) Neither the Font Software nor any of its individual components,
|
|
126
|
+
* in Original or Modified Versions, may be sold by itself.
|
|
127
|
+
*
|
|
128
|
+
* 2) Original or Modified Versions of the Font Software may be bundled,
|
|
129
|
+
* redistributed and/or sold with any software, provided that each copy
|
|
130
|
+
* contains the above copyright notice and this license. These can be
|
|
131
|
+
* included either as stand-alone text files, human-readable headers or
|
|
132
|
+
* in the appropriate machine-readable metadata fields within text or
|
|
133
|
+
* binary files as long as those fields can be easily viewed by the user.
|
|
134
|
+
*
|
|
135
|
+
* 3) No Modified Version of the Font Software may use the Reserved Font
|
|
136
|
+
* Name(s) unless explicit written permission is granted by the corresponding
|
|
137
|
+
* Copyright Holder. This restriction only applies to the primary font name as
|
|
138
|
+
* presented to the users.
|
|
139
|
+
*
|
|
140
|
+
* 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
141
|
+
* Software shall not be used to promote, endorse or advertise any
|
|
142
|
+
* Modified Version, except to acknowledge the contribution(s) of the
|
|
143
|
+
* Copyright Holder(s) and the Author(s) or with their explicit written
|
|
144
|
+
* permission.
|
|
145
|
+
*
|
|
146
|
+
* 5) The Font Software, modified or unmodified, in part or in whole,
|
|
147
|
+
* must be distributed entirely under this license, and must not be
|
|
148
|
+
* distributed under any other license. The requirement for fonts to
|
|
149
|
+
* remain under this license does not apply to any document created
|
|
150
|
+
* using the Font Software.
|
|
151
|
+
*
|
|
152
|
+
* TERMINATION
|
|
153
|
+
* This license becomes null and void if any of the above conditions are
|
|
154
|
+
* not met.
|
|
155
|
+
*
|
|
156
|
+
* DISCLAIMER
|
|
157
|
+
* THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
158
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
159
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
160
|
+
* OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
161
|
+
* COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
162
|
+
* INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
163
|
+
* DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
164
|
+
* FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
165
|
+
* OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
166
|
+
*/
|
|
167
|
+
|