gares 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +1 -1
- data/gares.gemspec +1 -0
- data/lib/gares/base.rb +19 -2
- data/lib/gares/services.rb +16 -0
- data/lib/gares/version.rb +1 -1
- data/lib/gares.rb +1 -0
- data/spec/fixtures/frlpd +33 -49
- data/spec/fixtures/frxag +333 -0
- data/spec/gares/gare_spec.rb +16 -0
- data/spec/spec_helper.rb +4 -2
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e332aabd336aeeb7598f0c70849eab4c120c116
|
|
4
|
+
data.tar.gz: dec64ecec649d264a07b5952cd36adce07f0e44d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48cfbb9ccadb26b67c63788a458285048090cdebd91e20ac4c98c160ea6cdd327952a2262836c1372dbf544358744d49e6fb2c81215912a03b9bc7c672a6f5ee
|
|
7
|
+
data.tar.gz: 874f6402b281982f93960363de75eeb2de62139e81ab733c25609494286260697efaadfcacd49289f326880e020ae87740a9a4f481fe7a9cfd4ceb2013e31b66
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gares (en-mouvement)
|
|
2
2
|
|
|
3
|
-
[](https://travis-ci.org/paulRbr/gares) [](http://badge.fury.io/rb/gares)
|
|
3
|
+
[](https://travis-ci.org/paulRbr/gares) [](http://badge.fury.io/rb/gares) [](https://coveralls.io/r/paulRbr/gares)
|
|
4
4
|
|
|
5
5
|
## Description
|
|
6
6
|
|
data/gares.gemspec
CHANGED
data/lib/gares/base.rb
CHANGED
|
@@ -16,8 +16,25 @@ module Gares
|
|
|
16
16
|
@name = name if name
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def services
|
|
20
|
+
@services ||= Services.new(@slug).all
|
|
21
|
+
end
|
|
22
|
+
|
|
19
23
|
def horaires
|
|
20
|
-
document.
|
|
24
|
+
document.search('ul.ouverture_heure li').
|
|
25
|
+
map { |horaire| horaire.inner_html } rescue []
|
|
26
|
+
end
|
|
27
|
+
alias opening_hours horaires
|
|
28
|
+
|
|
29
|
+
# Whether the gare has a defibrillator or not
|
|
30
|
+
def defibrillateur?
|
|
31
|
+
!document.at('div.defibrillateur').nil?
|
|
32
|
+
end
|
|
33
|
+
alias defibrillator? defibrillateur?
|
|
34
|
+
|
|
35
|
+
# Whether the gare is equipped with wifi or not
|
|
36
|
+
def wifi?
|
|
37
|
+
!document.at('div.wifi').nil?
|
|
21
38
|
end
|
|
22
39
|
|
|
23
40
|
# Returns a string containing the name
|
|
@@ -36,7 +53,7 @@ module Gares
|
|
|
36
53
|
@document ||= Nokogiri::HTML(Gares::Gare.find_by_slug(@slug))
|
|
37
54
|
end
|
|
38
55
|
|
|
39
|
-
# Use HTTParty to fetch the raw HTML for this
|
|
56
|
+
# Use HTTParty to fetch the raw HTML for this gare.
|
|
40
57
|
def self.find_by_slug(slug, page = :"votre-gare")
|
|
41
58
|
open("http://www.gares-en-mouvement.com/fr/#{slug}/#{page}")
|
|
42
59
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Gares
|
|
2
|
+
class Services < Base
|
|
3
|
+
|
|
4
|
+
def all
|
|
5
|
+
document.search('#page_content_resize_true h2').
|
|
6
|
+
map { |title| title.inner_html } rescue []
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
private
|
|
10
|
+
|
|
11
|
+
def document
|
|
12
|
+
@document ||= Nokogiri::HTML(Gares::Gare.find_by_slug(
|
|
13
|
+
@slug, :"services-en-gare/service/"))
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/gares/version.rb
CHANGED
data/lib/gares.rb
CHANGED
data/spec/fixtures/frlpd
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
HTTP/1.1 200 OK
|
|
2
|
-
Date:
|
|
2
|
+
Date: Tue, 10 Feb 2015 12:56:38 GMT
|
|
3
3
|
Server: Apache
|
|
4
|
-
Set-Cookie: PHPSESSID=
|
|
4
|
+
Set-Cookie: PHPSESSID=afd59b507dd42a800ecc6230f33548d9; path=/
|
|
5
5
|
Expires: Thu, 19 Nov 1981 08:52:00 GMT
|
|
6
6
|
Pragma: no-cache
|
|
7
7
|
Vary: Accept-Encoding,User-Agent
|
|
@@ -19,9 +19,9 @@ Content-Language: fr
|
|
|
19
19
|
<meta name="google-site-verification" content="BPFtRTWIA3lilhZ5mQDkQ_4Wpp6z5AAiEdxELZB59-I" />
|
|
20
20
|
<!-- Bing -->
|
|
21
21
|
<meta name="msvalidate.01" content="8B551AF14D2565E14E06A9069D7A0091" />
|
|
22
|
-
<meta name="description" content="
|
|
23
|
-
<meta name="keywords" content="
|
|
24
|
-
<title>
|
|
22
|
+
<meta name="description" content="Site officiel de la gare SNCF de Lyon Part Dieu: Horaires d'ouverture de la gare SNCF de Lyon Part Dieu, adresse de la gare et ses coordonnées GPS" />
|
|
23
|
+
<meta name="keywords" content="adresse gare, horaires gares SNCF, adresse gare SNCF, aller gare " />
|
|
24
|
+
<title>Horaires gare SNCF de Lyon Part Dieu</title> <!-- Favicon -->
|
|
25
25
|
<link rel="icon" type="image/gif" href="http://www.gares-en-mouvement.com/favicon.gif" />
|
|
26
26
|
<link href="http://www.gares-en-mouvement.com/resources/css/reset.css" rel="stylesheet" type="text/css" media="all" />
|
|
27
27
|
<link href="http://www.gares-en-mouvement.com/resources/css/style.css" rel="stylesheet" type="text/css" media="all" />
|
|
@@ -184,15 +184,15 @@ Content-Language: fr
|
|
|
184
184
|
<a id="gare-co" href="http://www.gares-connexions.com/" target="_blank" title="La branche Gares & Connexions (nouvelle fenêtre)">La branche Gares & Connexions</a><br />
|
|
185
185
|
<div id="langue">
|
|
186
186
|
<ul>
|
|
187
|
-
<li><a href="http://www.gares-en-mouvement.com/fr/frlpd/
|
|
187
|
+
<li><a href="http://www.gares-en-mouvement.com/fr/frlpd/votre-gare/" lang="fr"><img title="Français" alt="Français" src="http://www.gares-en-mouvement.com/resources/images/langue/fr.gif" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/en/frlpd/votre-gare/" lang="en"><img title="English" src="http://www.gares-en-mouvement.com/resources/images/langue/en.gif" alt="English" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/de/frlpd/votre-gare/" lang="de"><img title="Deutsch" src="http://www.gares-en-mouvement.com/resources/images/langue/de.gif" alt="Deutsch" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/it/frlpd/votre-gare/" lang="it"><img title="Italiano" src="http://www.gares-en-mouvement.com/resources/images/langue/it.gif" alt="Italiano" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/es/frlpd/votre-gare/" lang="es"><img title="Español" src="http://www.gares-en-mouvement.com/resources/images/langue/es.gif" alt="Español" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/nl/frlpd/votre-gare/" lang="nl"><img title="Nederlands" src="http://www.gares-en-mouvement.com/resources/images/langue/nl.gif" alt="Nederlands" width="18" height="18" /></a></li> </ul>
|
|
188
188
|
</div><!-- fin div langue -->
|
|
189
189
|
<div id="heure">
|
|
190
190
|
<script type="text/javascript">
|
|
191
191
|
$(document).ready(function(){
|
|
192
|
-
WinTime(
|
|
192
|
+
WinTime(13, 56, 38,1)
|
|
193
193
|
});
|
|
194
194
|
</script>
|
|
195
|
-
<noscript><span>
|
|
195
|
+
<noscript><span>13<abbr title="Heure">:</abbr>56</span></noscript>
|
|
196
196
|
</div>
|
|
197
197
|
|
|
198
198
|
<ul id="social"><li><a href="https://www.facebook.com/GaredeLyonPartDieu" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/f_logo.gif" alt="Logo Facebook" title="Devenez fan de notre page (nouvelle fenêtre)"/></a></li><li><a href="http://twitter.com/infos_gares" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/t_logo.gif" alt="Logo Twitter" title="Suivez nous sur Twitter (nouvelle fenêtre)"/></a></li></ul>
|
|
@@ -220,8 +220,8 @@ Régulièrement, des nouvelles gares sont consultables sur le site :
|
|
|
220
220
|
|
|
221
221
|
<ul class="menu" id="menu">
|
|
222
222
|
|
|
223
|
-
<li class="accueil
|
|
224
|
-
<li><a href="http://www.gares-en-mouvement.com/fr/frlpd/votre-gare/">Votre gare</a></li>
|
|
223
|
+
<li class="accueil border_top2"><a href="http://www.gares-en-mouvement.com/fr/frlpd/accueil/">Accueil gare</a></li>
|
|
224
|
+
<li class="active_menu"><a href="http://www.gares-en-mouvement.com/fr/frlpd/votre-gare/" title="Votre gare (page actuelle)">Votre gare</a></li>
|
|
225
225
|
<li>Comment venir et repartir de la gare<ul class="tvs_sub2 border_menu"><li><a href="http://www.gares-en-mouvement.com/fr/frlpd/acces-gare/transport/" title="Comment venir et repartir de la gare - Transports en commun">Transports en commun</a></li>
|
|
226
226
|
<li><a href="http://www.gares-en-mouvement.com/fr/frlpd/acces-gare/velo_moto/" title="Comment venir et repartir de la gare - Vélos et motos">Vélos et motos</a></li>
|
|
227
227
|
<li><a href="http://www.gares-en-mouvement.com/fr/frlpd/acces-gare/taxis/" title="Comment venir et repartir de la gare - Taxis">Taxis</a></li>
|
|
@@ -253,38 +253,22 @@ Régulièrement, des nouvelles gares sont consultables sur le site :
|
|
|
253
253
|
</ul>
|
|
254
254
|
|
|
255
255
|
</div><!-- fin div list_page -->
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
<div id="
|
|
259
|
-
|
|
260
|
-
</
|
|
261
|
-
<
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
</div><div class="unlink_gauche evenement">
|
|
273
|
-
Evènements
|
|
274
|
-
</div><div class="unlink_gauche diapo">
|
|
275
|
-
Diaporama
|
|
276
|
-
</div><div class="unlink_gauche recherche_horaire">
|
|
277
|
-
Accessibilité
|
|
278
|
-
</div><div class="unlink_droite travaux">
|
|
279
|
-
Travaux
|
|
280
|
-
</div><div class="link_gauche carto">
|
|
281
|
-
<a href="http://www.gares-en-mouvement.com/fr/frlpd/plans/visite-virtuelle/">Plans</a>
|
|
282
|
-
</div></div>
|
|
283
|
-
<!-- <div id="print"><a href="impression.php?gare=frlpd">Imprimer</a></div> -->
|
|
284
|
-
</div><!-- fin div content -->
|
|
285
|
-
</div><!-- fin div content_wrapper -->
|
|
286
|
-
|
|
287
|
-
<div id="pub">
|
|
256
|
+
<div id="content_wrapper" class="page">
|
|
257
|
+
<div id="content" class="border">
|
|
258
|
+
<div id="page_content_resize_true">
|
|
259
|
+
<div class="content_left">
|
|
260
|
+
<h2>Horaires d'ouverture de la gare</h2><div class="ouverture_courant_true"><ul class="ouverture_heure"><li>du lundi au dimanche de 04:50 à 00:45</li><li class="feries">jours fériés de 04:50 à 00:45</li></ul></div><br /><hr /><h2>Adresse</h2><p><p>5, Place Charles Béraudier 69003 Lyon. Coordonnées GPS de la dépose minute : 45°45'42.7"N,4°51'33.9"E.</p></p><p><strong>Région : </strong>Rhône-Alpes<br /></p><p><strong>Département : </strong>Rhône<br /></p><p><strong>Coordonnées GPS : </strong>45.760281,4.859801</p><hr /><h2>Chef de gare voyageurs</h2><p>Bruno Davin</p><hr /><h2>Directeur de gare</h2><p>Thierry Grosbois</p><hr /><!-- infos -->
|
|
261
|
+
<h2>Informations</h2><p>36 35 (0,34 <abbr title="euros">€</abbr>/<abbr title="minute">mn</abbr>)</p><div class="wifi">Cette gare est équipée d'une borne Wifi.</div><div class="defibrillateur">Cette gare est équipée d'un défibrillateur :<br />En face du service accueil, dans le hall de la gare + à proximité de l'entrée Rhône<br /></div> </div><!-- fin div content_left -->
|
|
262
|
+
<div class="content_right">
|
|
263
|
+
</div><!-- fin div content_right -->
|
|
264
|
+
|
|
265
|
+
<div class="cls"></div>
|
|
266
|
+
</div><!-- fin div page_content_resize_true -->
|
|
267
|
+
|
|
268
|
+
<div id="print"><a href="http://www.gares-en-mouvement.com/fr/frlpd/impression/">Imprimer</a></div>
|
|
269
|
+
</div><!-- fin div content -->
|
|
270
|
+
</div><!-- fin div content_wrapper -->
|
|
271
|
+
<div id="pub">
|
|
288
272
|
<!--
|
|
289
273
|
<div class="mobile">
|
|
290
274
|
|
|
@@ -346,17 +330,17 @@ Profitez de gares-en-mouvement sur votre mobile grâce à l'applicati
|
|
|
346
330
|
<ul class="carousel_ul carousel_off"><li class="li_br"><a href="http://www.intercites.sncf.com" title="INTERCITÉS (nouvelle fenêtre)" target="_blank">INTERCITÉS</a></li><li class="li_br"><a href="http://www.eurostar.com" title="Eurostar (nouvelle fenêtre)" target="_blank">Eurostar</a></li><li class="li_br"><a href="http://www.idtgv.com" title="iDTGV (nouvelle fenêtre)" target="_blank">iDTGV</a></li><li class="li_br"><a href="http://www.tgv-lyria.com" title="TGV Lyria (nouvelle fenêtre)" target="_blank">TGV Lyria</a></li><li class="li_br"><a href="http://www.ter-sncf.com" title="TER (nouvelle fenêtre)" target="_blank">TER</a></li><li class="li_br"><a href="http://www.tgv.com" title="TGV (nouvelle fenêtre)" target="_blank">TGV</a></li><li class="li_br"><a href="http://www.thalys.com" title="Thalys (nouvelle fenêtre)" target="_blank">Thalys</a></li><li class="li_br"><a href="http://www.transilien.com" title="Transilien (nouvelle fenêtre)" target="_blank">Transilien</a></li><li class="li_br"><a href="http://www.velo.sncf.com" title="Vélo SNCF (nouvelle fenêtre)" target="_blank">Vélo SNCF</a></li><li class="li_br"><a href="http://www.thello.com/" title="Thello (nouvelle fenêtre)" target="_blank">Thello</a></li> </ul>
|
|
347
331
|
</noscript>
|
|
348
332
|
<ul class="carousel_ul" style="display:none;">
|
|
349
|
-
<li><a href="http://www.
|
|
350
|
-
<li><a href="http://www.
|
|
333
|
+
<li><a href="http://www.idtgv.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/03_logo_idtgv.gif" alt="iDTGV" title="iDTGV (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
334
|
+
<li><a href="http://www.intercites.sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/01_logo_intercites.gif" alt="INTERCITÉS" title="INTERCITÉS (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
351
335
|
<li><a href="http://www.eurostar.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/02_logo_eurostar.gif" alt="Eurostar" title="Eurostar (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
352
|
-
<li><a href="http://www.
|
|
336
|
+
<li><a href="http://www.transilien.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/08_logo_transilien.gif" alt="Transilien" title="Transilien (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
337
|
+
<li><a href="http://www.ter-sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/05_logo_ter.gif" alt="TER" title="TER (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
353
338
|
<li><a href="http://www.velo.sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/09_logo_velo.gif" alt="Vélo SNCF" title="Vélo SNCF (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
354
|
-
<li><a href="http://www.
|
|
339
|
+
<li><a href="http://www.ter-sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/05_logo_ter.gif" alt="TER" title="TER (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
355
340
|
<li><a href="http://www.velo.sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/09_logo_velo.gif" alt="Vélo SNCF" title="Vélo SNCF (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
356
|
-
<li><a href="http://www.
|
|
341
|
+
<li><a href="http://www.tgv.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/06_logo_tgv.gif" alt="TGV" title="TGV (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
357
342
|
<li><a href="http://www.tgv-lyria.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/04_logo_lyria.gif" alt="TGV Lyria" title="TGV Lyria (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
358
|
-
<li><a href="http://www.
|
|
359
|
-
<li><a href="http://www.idtgv.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/03_logo_idtgv.gif" alt="iDTGV" title="iDTGV (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
343
|
+
<li><a href="http://www.thalys.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/07_logo_thalys.gif" alt="Thalys" title="Thalys (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
360
344
|
</ul>
|
|
361
345
|
</div><!-- fin div carousel_inner -->
|
|
362
346
|
</div><!-- fin div carousel_container -->
|
data/spec/fixtures/frxag
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
HTTP/1.1 200 OK
|
|
2
|
+
Date: Tue, 10 Feb 2015 12:54:14 GMT
|
|
3
|
+
Server: Apache
|
|
4
|
+
Set-Cookie: PHPSESSID=7a8680503ab887748dc6841462d067b3; path=/
|
|
5
|
+
Expires: Thu, 19 Nov 1981 08:52:00 GMT
|
|
6
|
+
Pragma: no-cache
|
|
7
|
+
Vary: Accept-Encoding,User-Agent
|
|
8
|
+
Transfer-Encoding: chunked
|
|
9
|
+
Content-Type: text/html; charset=UTF-8
|
|
10
|
+
Content-Language: fr
|
|
11
|
+
|
|
12
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
13
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
|
|
14
|
+
<head>
|
|
15
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
16
|
+
<meta name="author" content="SNCF">
|
|
17
|
+
<meta name="robots" content="ALL" />
|
|
18
|
+
<!-- Google -->
|
|
19
|
+
<meta name="google-site-verification" content="BPFtRTWIA3lilhZ5mQDkQ_4Wpp6z5AAiEdxELZB59-I" />
|
|
20
|
+
<!-- Bing -->
|
|
21
|
+
<meta name="msvalidate.01" content="8B551AF14D2565E14E06A9069D7A0091" />
|
|
22
|
+
<meta name="description" content="Site officiel de la gare SNCF de Agde: Horaires d'ouverture de la gare SNCF de Agde, adresse de la gare et ses coordonnées GPS" />
|
|
23
|
+
<meta name="keywords" content="adresse gare, horaires gares SNCF, adresse gare SNCF, aller gare " />
|
|
24
|
+
<title>Horaires gare SNCF de Agde</title> <!-- Favicon -->
|
|
25
|
+
<link rel="icon" type="image/gif" href="http://www.gares-en-mouvement.com/favicon.gif" />
|
|
26
|
+
<link href="http://www.gares-en-mouvement.com/resources/css/reset.css" rel="stylesheet" type="text/css" media="all" />
|
|
27
|
+
<link href="http://www.gares-en-mouvement.com/resources/css/style.css" rel="stylesheet" type="text/css" media="all" />
|
|
28
|
+
<link href="http://www.gares-en-mouvement.com/resources/css/invalid.css" rel="stylesheet" type="text/css" media="all" />
|
|
29
|
+
<!--[if lt IE 7]>
|
|
30
|
+
<link href="http://www.gares-en-mouvement.com/resources/css/ie.css" rel="stylesheet" type="text/css" media="all" />
|
|
31
|
+
<![endif]-->
|
|
32
|
+
<!-- <script type="text/javascript" src="http://www.gares-en-mouvement.com/resources/scripts/ua.js"></script>
|
|
33
|
+
-->
|
|
34
|
+
<script type="text/javascript" src="http://www.gares-en-mouvement.com/resources/scripts/jquery-1.4.2.min.js"></script>
|
|
35
|
+
<script type="text/javascript">
|
|
36
|
+
<!--/*--><![CDATA[//><!--
|
|
37
|
+
function WinTime(heure,min,sec,k){sec++;if(sec>59){min++;sec=0;}if(min>59){heure++;min=0;}if(heure>23){heure=0;}sec=sec+"";min=min+"";heure=heure+"";if(heure<10){if((heure.charAt(0)=="0")&&(heure.charAt(1)!="1")&&(heure.charAt(1)!="2")&&(heure.charAt(1)!="3")&&(heure.charAt(1)!="4")&&(heure.charAt(1)!="5")&&(heure.charAt(1)!="6")&&(heure.charAt(1)!="7")&&(heure.charAt(1)!="8")&&(heure.charAt(1)!="9")){heure="00";}else if(heure.charAt(0)!="0"){heure="0"+heure;}}if(min<10){if((min.charAt(0)=="0")&&(min.charAt(1)!="1")&&(min.charAt(1)!="2")&&(min.charAt(1)!="3")&&(min.charAt(1)!="4")&&(min.charAt(1)!="5")&&(min.charAt(1)!="6")&&(min.charAt(1)!="7")&&(min.charAt(1)!="8")&&(min.charAt(1)!="9")){min="00";}else if(min.charAt(0)!="0"){min="0"+min;}}if(sec<10){if((sec.charAt(0)=="0")&&(sec.charAt(1)!="1")&&(sec.charAt(1)!="2")&&(sec.charAt(1)!="3")&&(sec.charAt(1)!="4")&&(sec.charAt(1)!="5")&&(sec.charAt(1)!="6")&&(sec.charAt(1)!="7")&&(sec.charAt(1)!="8")&&(sec.charAt(1)!="9")){sec="00";}else if(sec.charAt(0)!="0"){sec="0"+sec;}}document.getElementById('heure').innerHTML=="";document.getElementById('heure').innerHTML='<span>'+heure+'<abbr title="heure"><span id="lid">:</span></abbr>'+min+'</span>';if(k%2==0)document.getElementById('lid').style.color='#ffffff';k++;setTimeout("WinTime('"+heure+"', '"+min+"', '"+sec+"', '"+k+"')",1000);}
|
|
38
|
+
//--><!]]>
|
|
39
|
+
</script>
|
|
40
|
+
<script type="text/javascript">
|
|
41
|
+
<!--/*--><![CDATA[//><!--
|
|
42
|
+
$(document).ready(function(){
|
|
43
|
+
|
|
44
|
+
var pub_normal = $(".banniere").html();
|
|
45
|
+
var pub_anim = pub_normal.replace('pub_fixe.gif','pub.gif');
|
|
46
|
+
|
|
47
|
+
$(".banniere").html(pub_anim);
|
|
48
|
+
var showOrHide = false;
|
|
49
|
+
//On affiche la pub animée
|
|
50
|
+
//$(".banniere").toggle();
|
|
51
|
+
//Affichage du lien
|
|
52
|
+
$(".anim").append('<p id="pub_link">Stopper la publicité</p>');
|
|
53
|
+
$("#pub_link").click(function(){
|
|
54
|
+
if(showOrHide == true){
|
|
55
|
+
$(".banniere").html(pub_anim);
|
|
56
|
+
showOrHide = false;
|
|
57
|
+
}else if(showOrHide == false){
|
|
58
|
+
$(".banniere").html(pub_normal);
|
|
59
|
+
showOrHide = true;
|
|
60
|
+
}
|
|
61
|
+
$(this).text($(this).text() == 'Stopper la publicité' ? 'Activer la publicité' : 'Stopper la publicité');
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
//--><!]]>
|
|
65
|
+
</script>
|
|
66
|
+
<script type="text/javascript" src="http://www.gares-en-mouvement.com/resources/scripts/jquery.bxSlider.min.js" defer="defer"></script>
|
|
67
|
+
<script type="text/javascript">
|
|
68
|
+
<!--/*--><![CDATA[//><!--
|
|
69
|
+
$(document).ready(function(){
|
|
70
|
+
$(".carousel_ul").css("display","block");
|
|
71
|
+
$(".carousel_ul").bxSlider({
|
|
72
|
+
displaySlideQty: 5,
|
|
73
|
+
moveSlideQty: 1,
|
|
74
|
+
prevImage: 'http://www.gares-en-mouvement.com/resources/images/prev.gif',
|
|
75
|
+
nextImage: 'http://www.gares-en-mouvement.com/resources/images/next.gif'
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
//--><!]]>
|
|
79
|
+
</script>
|
|
80
|
+
<!--[if IE]>
|
|
81
|
+
<script type="text/javascript" src="http://www.gares-en-mouvement.com/resources/scripts/PIE.js"></script>
|
|
82
|
+
<script type="text/javascript">
|
|
83
|
+
$(document).ready(function(){
|
|
84
|
+
$('.border').each(function() {
|
|
85
|
+
PIE.attach(this);
|
|
86
|
+
});
|
|
87
|
+
$('.border_top').each(function() {
|
|
88
|
+
PIE.attach(this);
|
|
89
|
+
});
|
|
90
|
+
$('.home').each(function() {
|
|
91
|
+
PIE.attach(this);
|
|
92
|
+
});
|
|
93
|
+
$('#map_contain').each(function() {
|
|
94
|
+
PIE.attach(this);
|
|
95
|
+
});
|
|
96
|
+
$('#sub_page li a').each(function() {
|
|
97
|
+
PIE.attach(this);
|
|
98
|
+
});
|
|
99
|
+
$('.infostempsreel_ticc').each(function() {
|
|
100
|
+
PIE.attach(this);
|
|
101
|
+
});
|
|
102
|
+
$('.ouverture_courant_true').each(function() {
|
|
103
|
+
PIE.attach(this);
|
|
104
|
+
});
|
|
105
|
+
$('.ouverture_courant_false').each(function() {
|
|
106
|
+
PIE.attach(this);
|
|
107
|
+
});
|
|
108
|
+
$('.submit_button').each(function() {
|
|
109
|
+
PIE.attach(this);
|
|
110
|
+
});
|
|
111
|
+
/* $('.notification').each(function() {
|
|
112
|
+
PIE.attach(this);
|
|
113
|
+
});*/
|
|
114
|
+
$('.link_gauche a').each(function() {
|
|
115
|
+
PIE.attach(this);
|
|
116
|
+
});
|
|
117
|
+
$('.link_droite a').each(function() {
|
|
118
|
+
PIE.attach(this);
|
|
119
|
+
});
|
|
120
|
+
$('.unlink_gauche').each(function() {
|
|
121
|
+
PIE.attach(this);
|
|
122
|
+
});
|
|
123
|
+
$('.unlink_droite').each(function() {
|
|
124
|
+
PIE.attach(this);
|
|
125
|
+
});
|
|
126
|
+
$('.link_gauche').each(function() {
|
|
127
|
+
PIE.attach(this);
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<![endif]-->
|
|
133
|
+
<script type="text/javascript">
|
|
134
|
+
$(document).ready(function() {
|
|
135
|
+
$('.tvs_sub2').each(function(){
|
|
136
|
+
$(this).addClass('sub_menu').removeClass('tvs_sub2');
|
|
137
|
+
});
|
|
138
|
+
$('.tvs_sub2_active').each(function(){
|
|
139
|
+
$(this).addClass('sub_menu_active').removeClass('tvs_sub2_active');
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
});
|
|
146
|
+
</script>
|
|
147
|
+
<!-- <script type="text/javascript">
|
|
148
|
+
$(document).ready(function() {
|
|
149
|
+
$('.tvs_sub2').each(function(){
|
|
150
|
+
$(this).addClass('sub_menu').removeClass('tvs_sub2');
|
|
151
|
+
});
|
|
152
|
+
$('.tvs_sub2_active').each(function(){
|
|
153
|
+
$(this).addClass('sub_menu_active').removeClass('tvs_sub2_active');
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
});
|
|
157
|
+
</script>
|
|
158
|
+
|
|
159
|
+
-->
|
|
160
|
+
<script type="text/javascript" src="http://www.gares-en-mouvement.com/resources/scripts/menu.js" defer="defer" ></script>
|
|
161
|
+
<script type="text/javascript" src="http://www.gares-en-mouvement.com/resources/scripts/jquery.bgiframe.min.js" defer="defer" ></script>
|
|
162
|
+
<script type="text/javascript">
|
|
163
|
+
$(document).ready(function(){
|
|
164
|
+
$('.sub_menu').bgiframe();
|
|
165
|
+
$('.sub_menu_active').bgiframe();
|
|
166
|
+
});
|
|
167
|
+
</script>
|
|
168
|
+
<script type="text/javascript">
|
|
169
|
+
var _gaq = _gaq || [];
|
|
170
|
+
_gaq.push(['_setAccount', 'UA-18321046-1']);
|
|
171
|
+
_gaq.push(['_setDomainName', '.gares-en-mouvement.com']);
|
|
172
|
+
_gaq.push(['_trackPageview']);
|
|
173
|
+
(function() {
|
|
174
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
175
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
176
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
177
|
+
})();
|
|
178
|
+
</script>
|
|
179
|
+
</head>
|
|
180
|
+
<body style="background:#c6c1cc url('http://www.gares-en-mouvement.com/resources/images/bck_vide.jpg') no-repeat left top;" ><a href="#list_page" class="access">Aller au menu</a><a href="#content_wrapper" class="access">Aller au contenu</a><div class="wrapper">
|
|
181
|
+
<div id="nav_contain">
|
|
182
|
+
<div id="nav_data">
|
|
183
|
+
<div id="logo"><a href="http://www.gares-en-mouvement.com/"><img src="http://www.gares-en-mouvement.com/resources/images/logo.png" alt="Logo Gares & Connexions (retour à l'accueil de Gares en Mouvement)" width="150" height="40" /></a></div>
|
|
184
|
+
<a id="gare-co" href="http://www.gares-connexions.com/" target="_blank" title="La branche Gares & Connexions (nouvelle fenêtre)">La branche Gares & Connexions</a><br />
|
|
185
|
+
<div id="langue">
|
|
186
|
+
<ul>
|
|
187
|
+
<li><a href="http://www.gares-en-mouvement.com/fr/frxag/votre-gare/" lang="fr"><img title="Français" alt="Français" src="http://www.gares-en-mouvement.com/resources/images/langue/fr.gif" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/en/frxag/votre-gare/" lang="en"><img title="English" src="http://www.gares-en-mouvement.com/resources/images/langue/en.gif" alt="English" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/de/frxag/votre-gare/" lang="de"><img title="Deutsch" src="http://www.gares-en-mouvement.com/resources/images/langue/de.gif" alt="Deutsch" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/it/frxag/votre-gare/" lang="it"><img title="Italiano" src="http://www.gares-en-mouvement.com/resources/images/langue/it.gif" alt="Italiano" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/es/frxag/votre-gare/" lang="es"><img title="Español" src="http://www.gares-en-mouvement.com/resources/images/langue/es.gif" alt="Español" width="18" height="18" /></a></li><li><a href="http://www.gares-en-mouvement.com/nl/frxag/votre-gare/" lang="nl"><img title="Nederlands" src="http://www.gares-en-mouvement.com/resources/images/langue/nl.gif" alt="Nederlands" width="18" height="18" /></a></li> </ul>
|
|
188
|
+
</div><!-- fin div langue -->
|
|
189
|
+
<div id="heure">
|
|
190
|
+
<script type="text/javascript">
|
|
191
|
+
$(document).ready(function(){
|
|
192
|
+
WinTime(13, 54, 14,1)
|
|
193
|
+
});
|
|
194
|
+
</script>
|
|
195
|
+
<noscript><span>13<abbr title="Heure">:</abbr>54</span></noscript>
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<ul id="social"><li><a href="https://www.facebook.com/bonsplansdemagare" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/f_logo.gif" alt="Logo Facebook" title="Devenez fan de notre page (nouvelle fenêtre)"/></a></li><li><a href="http://twitter.com/infos_gares" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/t_logo.gif" alt="Logo Twitter" title="Suivez nous sur Twitter (nouvelle fenêtre)"/></a></li></ul>
|
|
199
|
+
<div id="welcome">
|
|
200
|
+
<h1>En direct de Agde</h1>
|
|
201
|
+
</div><!-- fin div welcome -->
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
<div class="cls"></div>
|
|
205
|
+
</div><!-- fin div nav_data -->
|
|
206
|
+
</div><!-- fin div nav_contain -->
|
|
207
|
+
<div id="news_contain"> <div class="news_content border" >
|
|
208
|
+
<strong><i> <p>Votre avis nous intéresse ! <a target="_blank" href=" http://www.lagareetmoi.com">Donner votre avis sur LES GARES</a><br />
|
|
209
|
+
<br />
|
|
210
|
+
Régulièrement, des nouvelles gares sont consultables sur le site : n'hésitez pas à rechercher par région ou département.</p>
|
|
211
|
+
<p>Pour Monaco, cherchez la gare dans la région "Principauté de Monaco" ou cliquez sur son emplacement dans la carte.</p>
|
|
212
|
+
<p> </p>
|
|
213
|
+
<div><a href="http://www.concours-en-gares.com/">Gagnez un piano dans 100 gares dès le 24 septembre 2014</a></div> </i></strong>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
<div id="global_contain">
|
|
217
|
+
<div id="list_page">
|
|
218
|
+
<div class="home"><a href="http://www.gares-en-mouvement.com/fr/">Choix de gare</a></div>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
<ul class="menu" id="menu">
|
|
222
|
+
|
|
223
|
+
<li class="accueil border_top2"><a href="http://www.gares-en-mouvement.com/fr/frxag/accueil/">Accueil gare</a></li>
|
|
224
|
+
<li class="active_menu"><a href="http://www.gares-en-mouvement.com/fr/frxag/votre-gare/" title="Votre gare (page actuelle)">Votre gare</a></li>
|
|
225
|
+
<li>Les horaires en temps réel <ul class="tvs_sub border_menu"><li><a href="http://www.gares-en-mouvement.com/fr/frxag/horaires-temps-reel/dep/" title="Les horaires en temps réel - départs trains">Départs trains</a></li>
|
|
226
|
+
<li><a href="http://www.gares-en-mouvement.com/fr/frxag/horaires-temps-reel/arr/" title="Les horaires en temps réel - arrivées trains">Arrivées trains</a></li>
|
|
227
|
+
</ul></li>
|
|
228
|
+
<li>Commerces<ul class="tvs_sub2 border_menu"><li><a href="http://www.gares-en-mouvement.com/fr/frxag/commerces/autour_gare/" title="Commerces - autour de la gare">Autour de la gare</a></li>
|
|
229
|
+
</ul></li>
|
|
230
|
+
<li>Services en gare<ul class="tvs_sub2 border_menu"><li><a href="http://www.gares-en-mouvement.com/fr/frxag/services-en-gare/service/" title="Services en gare - Services">Services</a></li>
|
|
231
|
+
</ul></li>
|
|
232
|
+
<li>Autour de la gare<ul class="tvs_sub2 border_menu"><li><a href="http://www.gares-en-mouvement.com/fr/frxag/autour-de-la-gare/proximite/" title="Autour de la gare - a proximité">A proximité</a></li>
|
|
233
|
+
<li><a href="http://www.gares-en-mouvement.com/fr/frxag/autour-de-la-gare/ville/" title="Autour de la gare - vers la ville">Vers la ville</a></li>
|
|
234
|
+
</ul></li>
|
|
235
|
+
<li class="border_bottom"><a href="http://www.gares-en-mouvement.com/fr/frxag/pmr/">Accessibilité</a></li>
|
|
236
|
+
|
|
237
|
+
</ul>
|
|
238
|
+
|
|
239
|
+
</div><!-- fin div list_page -->
|
|
240
|
+
<div id="content_wrapper" class="page">
|
|
241
|
+
<div id="content" class="border">
|
|
242
|
+
<div id="page_content_resize_true">
|
|
243
|
+
<div class="content_left">
|
|
244
|
+
<h2>Horaires d'ouverture de la gare</h2><div class="ouverture_courant_true"><ul class="ouverture_heure"><li>du lundi au vendredi de 04:30 à 23:30</li><li>du samedi au dimanche de 05:30 à 23:30</li><li class="feries">jours fériés de 05:30 à 23:30</li></ul></div><br /><hr /><h2>Adresse</h2><p>Rue de la digue 34300 Agde</p><p><strong>Région : </strong>Languedoc-Roussillon<br /></p><p><strong>Département : </strong>Hérault<br /></p><p><strong>Coordonnées GPS : </strong>43.317424, 3.466125</p><hr /><h2>Chef de gare voyageurs</h2><p>Monique Sangayrac</p><hr /><h2>Directeur de gare</h2><p>Sabrina Boucey</p><hr /><!-- infos -->
|
|
245
|
+
<h2>Informations</h2><p>36 35 (0,34 <abbr title="euros">€</abbr>/<abbr title="minute">mn</abbr>)</p> </div><!-- fin div content_left -->
|
|
246
|
+
<div class="content_right">
|
|
247
|
+
</div><!-- fin div content_right -->
|
|
248
|
+
|
|
249
|
+
<div class="cls"></div>
|
|
250
|
+
</div><!-- fin div page_content_resize_true -->
|
|
251
|
+
|
|
252
|
+
<div id="print"><a href="http://www.gares-en-mouvement.com/fr/frxag/impression/">Imprimer</a></div>
|
|
253
|
+
</div><!-- fin div content -->
|
|
254
|
+
</div><!-- fin div content_wrapper -->
|
|
255
|
+
<div id="pub">
|
|
256
|
+
<!--
|
|
257
|
+
<div class="mobile">
|
|
258
|
+
|
|
259
|
+
<span style="display:block;"><img src="http://www.gares-en-mouvement.com/resources/images/bck_pubL.jpg" /></span>
|
|
260
|
+
|
|
261
|
+
<br />
|
|
262
|
+
<span>
|
|
263
|
+
Profitez de gares-en-mouvement sur votre mobile grâce à l'application <strong>Gares En Direct</strong><br /><br />
|
|
264
|
+
</span>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
<a href="https://play.google.com/store/apps/details?id=com.fingermind.gedirect
|
|
268
|
+
" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/googleplay.jpg" /></a>
|
|
269
|
+
|
|
270
|
+
<br /><br />
|
|
271
|
+
|
|
272
|
+
<a href="https://itunes.apple.com/fr/app/garesendirect/id493372387?mt=8" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/appstore.jpg" /></a>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
</div>
|
|
276
|
+
-->
|
|
277
|
+
<div class="anim">
|
|
278
|
+
<div class="banniere">
|
|
279
|
+
|
|
280
|
+
<a href="http://www.gares360.com" target="_blank" title="Visiter le site gares360.com (nouvelle fenêtre)">
|
|
281
|
+
<img src="http://www.gares-en-mouvement.com/resources/images/pub_fixe.gif" alt="« GARES 360° » : préparez votre venue en gare grâce aux visites virtuelles guidées." width="160" height="363" /></a>
|
|
282
|
+
</div><!-- fin div banniere -->
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</div><!-- fin div publicite -->
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
</div><!-- fin div global_contain -->
|
|
291
|
+
|
|
292
|
+
<div class="clearfooter"></div>
|
|
293
|
+
|
|
294
|
+
</div><!-- fin div wrapper -->
|
|
295
|
+
<div id="footer">
|
|
296
|
+
<div id="footer_content">
|
|
297
|
+
<div class="sncf"><a href="http://www.sncf.com/" target="_blank" class="sncf" rel="nofollow"><img title="Visiter le site de la SNCF (nouvelle fenêtre)" src="http://www.gares-en-mouvement.com/resources/images/sncf_logo.gif" alt="Visiter le site de la SNCF" width="36" height="20" /></a>
|
|
298
|
+
</div><!-- fin div sncf -->
|
|
299
|
+
<div id="outil">
|
|
300
|
+
<ul class="footer">
|
|
301
|
+
<li class="li_br"><a href="http://www.gares-en-mouvement.com/fr/frxag/aide/">Aide</a></li><li class="li_br"><a href="http://www.gares-en-mouvement.com/fr/frxag/mentions/">Mentions légales</a></li><li><a accesskey="6" href="http://www.gares-en-mouvement.com/fr/frxag/plan-du-site/">Plan du site</a></li> </ul>
|
|
302
|
+
<br />
|
|
303
|
+
<ul class="footer">
|
|
304
|
+
<li class="li_br"><a href="http://aide.voyages-sncf.com/sites/aide.voyages-sncf.com/files/imce/pdf/Fiche_Contactez-nous.pdf?rfrr=FAQ%3AAideTrain%3Asuite-mon-achat%3Areclamation-et-demande-de-remboursement_body_formulaire%20de%20r%C3%A9clamation" target="_blank" title="Formulaire CONTACTEZ-NOUS (PDF, 25Ko, nouvelle fenêtre)">Formulaire CONTACTEZ-NOUS</a> </li>
|
|
305
|
+
<li class="li_br"><a href="http://www.infolignes.com" target="_blank" title="Visiter le site Infolignes (nouvelle fenêtre)" rel="nofollow">Infolignes</a> </li>
|
|
306
|
+
<li class="li_br"><a href="http://www.tripadvisor.fr/" target="_blank" title="Visiter le site TripAdvisor (nouvelle fenêtre)" rel="nofollow">TripAdvisor</a></li>
|
|
307
|
+
<li><a href="http://www.pagesjaunes.fr/" target="_blank" title="pagesjaunes.fr annuaire des professionnels et des particuliers (nouvelle fenêtre)" rel="nofollow">PagesJaunes</a></li>
|
|
308
|
+
</ul>
|
|
309
|
+
</div>
|
|
310
|
+
<!-- fin div outil -->
|
|
311
|
+
<div id="carousel_container">
|
|
312
|
+
<div id="carousel_inner" >
|
|
313
|
+
<noscript>
|
|
314
|
+
<ul class="carousel_ul carousel_off"><li class="li_br"><a href="http://www.intercites.sncf.com" title="INTERCITÉS (nouvelle fenêtre)" target="_blank">INTERCITÉS</a></li><li class="li_br"><a href="http://www.eurostar.com" title="Eurostar (nouvelle fenêtre)" target="_blank">Eurostar</a></li><li class="li_br"><a href="http://www.idtgv.com" title="iDTGV (nouvelle fenêtre)" target="_blank">iDTGV</a></li><li class="li_br"><a href="http://www.tgv-lyria.com" title="TGV Lyria (nouvelle fenêtre)" target="_blank">TGV Lyria</a></li><li class="li_br"><a href="http://www.ter-sncf.com" title="TER (nouvelle fenêtre)" target="_blank">TER</a></li><li class="li_br"><a href="http://www.tgv.com" title="TGV (nouvelle fenêtre)" target="_blank">TGV</a></li><li class="li_br"><a href="http://www.thalys.com" title="Thalys (nouvelle fenêtre)" target="_blank">Thalys</a></li><li class="li_br"><a href="http://www.transilien.com" title="Transilien (nouvelle fenêtre)" target="_blank">Transilien</a></li><li class="li_br"><a href="http://www.velo.sncf.com" title="Vélo SNCF (nouvelle fenêtre)" target="_blank">Vélo SNCF</a></li><li class="li_br"><a href="http://www.thello.com/" title="Thello (nouvelle fenêtre)" target="_blank">Thello</a></li> </ul>
|
|
315
|
+
</noscript>
|
|
316
|
+
<ul class="carousel_ul" style="display:none;">
|
|
317
|
+
<li><a href="http://www.ter-sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/05_logo_ter.gif" alt="TER" title="TER (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
318
|
+
<li><a href="http://www.velo.sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/09_logo_velo.gif" alt="Vélo SNCF" title="Vélo SNCF (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
319
|
+
<li><a href="http://www.tgv.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/06_logo_tgv.gif" alt="TGV" title="TGV (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
320
|
+
<li><a href="http://www.transilien.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/08_logo_transilien.gif" alt="Transilien" title="Transilien (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
321
|
+
<li><a href="http://www.tgv-lyria.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/04_logo_lyria.gif" alt="TGV Lyria" title="TGV Lyria (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
322
|
+
<li><a href="http://www.intercites.sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/01_logo_intercites.gif" alt="INTERCITÉS" title="INTERCITÉS (nouvelle fenêtre)" width="75" height="25" /></a></li>
|
|
323
|
+
<li><a href="http://www.tgv-lyria.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/04_logo_lyria.gif" alt="TGV Lyria" title="TGV Lyria (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
324
|
+
<li><a href="http://www.intercites.sncf.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/01_logo_intercites.gif" alt="INTERCITÉS" title="INTERCITÉS (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
325
|
+
<li><a href="http://www.idtgv.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/03_logo_idtgv.gif" alt="iDTGV" title="iDTGV (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
326
|
+
<li><a href="http://www.thello.com/" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/10_logo_thello.gif" alt="Thello" title="Thello (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
327
|
+
<li><a href="http://www.thalys.com" target="_blank"><img src="http://www.gares-en-mouvement.com/resources/images/carrousel/07_logo_thalys.gif" alt="Thalys" title="Thalys (nouvelle fenêtre)" width="75" height="25"/></a></li>
|
|
328
|
+
</ul>
|
|
329
|
+
</div><!-- fin div carousel_inner -->
|
|
330
|
+
</div><!-- fin div carousel_container -->
|
|
331
|
+
</div><!-- fin div footer_content -->
|
|
332
|
+
</div><!-- fin div footer -->
|
|
333
|
+
</body></html>
|
data/spec/gares/gare_spec.rb
CHANGED
|
@@ -21,6 +21,22 @@ describe Gares::Gare do
|
|
|
21
21
|
|
|
22
22
|
expect(name).to eql('Lyon Part Dieu')
|
|
23
23
|
end
|
|
24
|
+
|
|
25
|
+
it 'should have opengin hours' do
|
|
26
|
+
horaires = @gare.horaires
|
|
27
|
+
|
|
28
|
+
expect(horaires.first).to eql('du lundi au dimanche de 04:50 à 00:45')
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
context 'a gare without wifi nor defibrillator' do
|
|
32
|
+
before(:each) do
|
|
33
|
+
# Get gare de Agde
|
|
34
|
+
@gare = Gares::Gare.new('frxag')
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
it { expect(@gare.wifi?).to be(false) }
|
|
38
|
+
it { expect(@gare.defibrillator?).to be(false) }
|
|
39
|
+
end
|
|
24
40
|
end
|
|
25
41
|
|
|
26
42
|
describe 'with name that has utf-8 characters' do
|
data/spec/spec_helper.rb
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
# no changes to the gares-en-mouvement.com interface have affected the parser.
|
|
9
9
|
###
|
|
10
10
|
|
|
11
|
-
require '
|
|
11
|
+
require 'coveralls'
|
|
12
|
+
Coveralls.wear!
|
|
12
13
|
|
|
13
14
|
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
|
|
14
15
|
require 'gares'
|
|
@@ -19,8 +20,9 @@ end
|
|
|
19
20
|
|
|
20
21
|
GARES_SAMPLES = {
|
|
21
22
|
'http://www.gares-en-mouvement.com/fr/frabt/services-en-gare/vente/' => 'frabt',
|
|
23
|
+
'http://www.gares-en-mouvement.com/fr/frxag/votre-gare' => 'frxag',
|
|
22
24
|
'http://www.gares-en-mouvement.com/fr/frlpd/votre-gare' => 'frlpd',
|
|
23
|
-
'http://www.gares-en-mouvement.com/fr/frhco/
|
|
25
|
+
'http://www.gares-en-mouvement.com/fr/frhco/votre-gare' => 'frhco',
|
|
24
26
|
'https://www.kimonolabs.com/api/7jys32dy?apikey=lsOO4tNm78cH9JxqWg9gAk9l4nYaou9j&kimmodify=1' => 'search'
|
|
25
27
|
}
|
|
26
28
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gares
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paul Bonaud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -122,6 +122,20 @@ dependencies:
|
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: coveralls
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
125
139
|
description: Easily use Ruby or the command line to find information on gares-en-mouvement.com.
|
|
126
140
|
email:
|
|
127
141
|
- paul+gh@bonaud.fr
|
|
@@ -144,11 +158,13 @@ files:
|
|
|
144
158
|
- lib/gares/gare.rb
|
|
145
159
|
- lib/gares/gare_list.rb
|
|
146
160
|
- lib/gares/search.rb
|
|
161
|
+
- lib/gares/services.rb
|
|
147
162
|
- lib/gares/string_extensions.rb
|
|
148
163
|
- lib/gares/version.rb
|
|
149
164
|
- spec/fixtures/frabt
|
|
150
165
|
- spec/fixtures/frhco
|
|
151
166
|
- spec/fixtures/frlpd
|
|
167
|
+
- spec/fixtures/frxag
|
|
152
168
|
- spec/fixtures/search
|
|
153
169
|
- spec/gares/gare_spec.rb
|
|
154
170
|
- spec/gares/search_spec.rb
|