national-rail 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/national-rail/station_list.rb +1 -1
  2. metadata +4 -17
@@ -23,7 +23,7 @@ module NationalRail
23
23
  def each
24
24
  @agent.get("http://www.nationalrail.co.uk/stations/codes/") do |stations_page|
25
25
  (stations_page.doc/"table:nth-child(0) tbody tr").each do |tr|
26
- name, code = (tr/"td").map { |td| td.inner_text }
26
+ name, code = (tr/"td").map { |td| td.inner_text.gsub(%r{\n}, " ") }
27
27
  coordinates = @coordinates_vs_code[code]
28
28
  latitude = coordinates ? coordinates[:latitude] : nil
29
29
  longitude = coordinates ? coordinates[:longitude] : nil
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: national-rail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 3
9
- - 3
10
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
11
10
  platform: ruby
12
11
  authors:
13
12
  - James Mead
@@ -15,18 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-11-12 00:00:00 +00:00
17
+ date: 2010-11-16 00:00:00 +00:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: mechanize
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ~>
28
26
  - !ruby/object:Gem::Version
29
- hash: 23
30
27
  segments:
31
28
  - 1
32
29
  - 0
@@ -38,11 +35,9 @@ dependencies:
38
35
  name: hpricot
39
36
  prerelease: false
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
39
  - - ~>
44
40
  - !ruby/object:Gem::Version
45
- hash: 59
46
41
  segments:
47
42
  - 0
48
43
  - 8
@@ -54,11 +49,9 @@ dependencies:
54
49
  name: activesupport
55
50
  prerelease: false
56
51
  requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
53
  - - ~>
60
54
  - !ruby/object:Gem::Version
61
- hash: 7
62
55
  segments:
63
56
  - 3
64
57
  - 0
@@ -70,11 +63,9 @@ dependencies:
70
63
  name: tidy_ffi
71
64
  prerelease: false
72
65
  requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
67
  - - ~>
76
68
  - !ruby/object:Gem::Version
77
- hash: 29
78
69
  segments:
79
70
  - 0
80
71
  - 1
@@ -108,27 +99,23 @@ rdoc_options: []
108
99
  require_paths:
109
100
  - lib
110
101
  required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
102
  requirements:
113
103
  - - ">="
114
104
  - !ruby/object:Gem::Version
115
- hash: 3
116
105
  segments:
117
106
  - 0
118
107
  version: "0"
119
108
  required_rubygems_version: !ruby/object:Gem::Requirement
120
- none: false
121
109
  requirements:
122
110
  - - ">="
123
111
  - !ruby/object:Gem::Version
124
- hash: 3
125
112
  segments:
126
113
  - 0
127
114
  version: "0"
128
115
  requirements: []
129
116
 
130
117
  rubyforge_project: national-rail
131
- rubygems_version: 1.3.7
118
+ rubygems_version: 1.3.6
132
119
  signing_key:
133
120
  specification_version: 3
134
121
  summary: A Ruby API for the National Rail website