easy_transilien 0.0.8 → 0.0.9
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/.ruby-version +1 -1
- data/CHANGELOG +3 -0
- data/lib/easy_transilien/trip.rb +3 -3
- data/lib/easy_transilien/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fdb370e7c4175ccbd4d0807c579c3f616693eca
|
4
|
+
data.tar.gz: 1f3109fc5f898da173ed656498870b43b0042424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 894e6a5422361f4e81c1112eb7e3e17845003254d4bf56813d3f1302ec5c2036f00fed70b94bcb4b1d8335aa37660e850a2f8db5abf007faab1d4605a28bb557
|
7
|
+
data.tar.gz: 4c290a7de900b91823e3003b01246692e62c7c8be800c5d00d5b699c8f8774708110a4ed47c546fddd372e0e7a73c12367178de19d9d940f995a8a631541bbb3
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0-
|
1
|
+
2.0.0-p247
|
data/CHANGELOG
CHANGED
data/lib/easy_transilien/trip.rb
CHANGED
@@ -54,8 +54,8 @@ module EasyTransilien
|
|
54
54
|
last = aat
|
55
55
|
end
|
56
56
|
|
57
|
-
from_station = Station.find(from).first
|
58
|
-
to_station = Station.find(to).first
|
57
|
+
from_station = EasyTransilien::Station.find(from).first
|
58
|
+
to_station = EasyTransilien::Station.find(to).first
|
59
59
|
|
60
60
|
raise "Can't find a Station from #{from.inspect}" unless from_station
|
61
61
|
raise "Can't find a Station from #{to.inspect}" unless to_station
|
@@ -80,7 +80,7 @@ module EasyTransilien
|
|
80
80
|
item.to_stop = item.stops.select { |ts| ts.station_external_code == to_station.external_code }.first
|
81
81
|
next if item.from_stop.nil? || item.to_stop.nil? # drop item if this journey doesn't deserve our from_stop or to_stop
|
82
82
|
item.access_time = journey.access_time
|
83
|
-
item.ms_journey
|
83
|
+
item.ms_journey = journey
|
84
84
|
item.mission = journey.name
|
85
85
|
item.start_time = item.from_stop.ms_stop.stop_time.time
|
86
86
|
item.arrival_time = item.to_stop.ms_stop.stop_time.time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_transilien
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Lecavelier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: transilien_microservices
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.0.
|
78
|
+
rubygems_version: 2.0.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: See https://github.com/ook/easy_transilien
|