gares 2.0.0.pre.1 → 2.0.0.pre.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/lib/gares/base.rb +2 -2
- data/lib/gares/search.rb +1 -1
- data/lib/gares/version.rb +1 -1
- data/spec/gares/station_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1772850b0b9b6e1618a76086e171f9ed0422b9aa
|
|
4
|
+
data.tar.gz: 881eb8256f70ec70396c8909fd158782c14b961e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0edacf105e314ac8f8a5bbf7ab0b7a51c0da1156ecf3edb4a24e3a3a535580713d3cc5b15cf03deb650516de57369039234bab5b6203c8a1578a395123c8f1fc
|
|
7
|
+
data.tar.gz: f1c66d22ab1f978b6774c7ba70a9f15da56407661d7c46b2aa66078d20718ef40e3ae80f40c609a7238b2e9bd421ff87be22550ffbbbd2a265c3cc6308473b34
|
data/lib/gares/base.rb
CHANGED
|
@@ -33,6 +33,7 @@ module Gares
|
|
|
33
33
|
property :'info:de'
|
|
34
34
|
property :'info:it'
|
|
35
35
|
property :same_as
|
|
36
|
+
property :has_bls
|
|
36
37
|
|
|
37
38
|
# @deprecated
|
|
38
39
|
def services
|
|
@@ -73,8 +74,7 @@ module Gares
|
|
|
73
74
|
|
|
74
75
|
# @deprecated
|
|
75
76
|
def has_borne?
|
|
76
|
-
|
|
77
|
-
sales.any? { |sales_service| sales_service =~ /bornes?.libre.service/i }
|
|
77
|
+
has_bls == "t"
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
# deprecated
|
data/lib/gares/search.rb
CHANGED
|
@@ -9,7 +9,7 @@ module Gares
|
|
|
9
9
|
attr_reader :query
|
|
10
10
|
|
|
11
11
|
# This is the stations database from capitainetrain.com
|
|
12
|
-
GARES_LIST_URL = "https://raw.githubusercontent.com/
|
|
12
|
+
GARES_LIST_URL = "https://raw.githubusercontent.com/paulrbr/stations/stations-with-bls/stations.csv"
|
|
13
13
|
|
|
14
14
|
# Initialize a new Station search with the specified query
|
|
15
15
|
#
|
data/lib/gares/version.rb
CHANGED
data/spec/gares/station_spec.rb
CHANGED