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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3462299801d297e26ac19012e511cb92b71257b
4
- data.tar.gz: 2402a19990a9bf1f1e1b8334b24126a08c368439
3
+ metadata.gz: 1772850b0b9b6e1618a76086e171f9ed0422b9aa
4
+ data.tar.gz: 881eb8256f70ec70396c8909fd158782c14b961e
5
5
  SHA512:
6
- metadata.gz: 79d40ec3a9d068bd76716cf73e1de3c45f4ea439663fbfeb2cee2588ca8c4fc428652db6f52ed4532d91bfbbbf5cbbd85ba888b848d91d0e6001539f2817cee1
7
- data.tar.gz: dbfd7ea33abbb67f5334f81834ef8d9d652d9ef232acf3e36ce94bd6feed2265b69860cf26a7b6f8a9bf1babba29d3e5344c5c1ad8d683e2f2b7033d6239a664
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
- warn "[DEPRECATION] since gares-en-mouvement.com does not exist anymore."
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/capitainetrain/stations/master/stations.csv"
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
@@ -1,3 +1,3 @@
1
1
  module Gares
2
- VERSION = '2.0.0-1'
2
+ VERSION = '2.0.0-2'
3
3
  end
@@ -57,7 +57,7 @@ describe Gares::Station do
57
57
  end
58
58
 
59
59
  describe 'a gare with no sales services' do
60
- it { expect(subject.has_borne?).to be(false) }
60
+ it { expect(subject.has_borne?).to be(true) }
61
61
  end
62
62
  end
63
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gares
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.1
4
+ version: 2.0.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Bonaud