tfl_journey_planner 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/tfl_journey_planner.rb +2 -2
- data/tfl_journey_planner.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/lib/tfl_journey_planner.rb
CHANGED
@@ -23,7 +23,7 @@ class TflJourneyPlanner
|
|
23
23
|
|
24
24
|
def get_journeys(from, to)
|
25
25
|
output = Nokogiri::HTML.parse(submit_form(from, to)).css('.un_space_top_bottom')
|
26
|
-
output.map do |o|
|
26
|
+
'[' + output.map do |o|
|
27
27
|
'{' + o.css('div').map do |d|
|
28
28
|
if d.css('img').empty?
|
29
29
|
d.text.strip
|
@@ -31,7 +31,7 @@ class TflJourneyPlanner
|
|
31
31
|
d.text.strip + d.css('img').map{ |i| CGI.unescape(i.attr('src')).split(/\=|\&/)[1] }.inspect
|
32
32
|
end
|
33
33
|
end.join(", ") + '}'
|
34
|
-
end
|
34
|
+
end.join(", ") + ']'
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|
data/tfl_journey_planner.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tfl_journey_planner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jordi Noguera
|