national-rail 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,14 @@ require 'mechanize'
2
2
  require 'hpricot'
3
3
  require 'active_support'
4
4
  require 'tidy_ffi'
5
+ require 'htmlentities'
5
6
 
6
7
  module NationalRail
7
8
  class VirginLiveDepartureBoards
8
9
  module CellParser
9
10
  def cell_text(td)
10
- td.inner_html.gsub(' ', '')
11
+ decoder = HTMLEntities.new
12
+ decoder.decode(td.inner_html)
11
13
  end
12
14
  end
13
15
  class TimeParser
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: national-rail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 6
10
- version: 0.4.6
9
+ - 7
10
+ version: 0.4.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Mead
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-01 00:00:00 +00:00
18
+ date: 2011-01-02 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -146,11 +146,27 @@ dependencies:
146
146
  - 23
147
147
  version: 0.3.23
148
148
  requirement: *id008
149
+ - !ruby/object:Gem::Dependency
150
+ prerelease: false
151
+ type: :runtime
152
+ name: htmlentities
153
+ version_requirements: &id009 !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ~>
157
+ - !ruby/object:Gem::Version
158
+ hash: 51
159
+ segments:
160
+ - 4
161
+ - 2
162
+ - 2
163
+ version: 4.2.2
164
+ requirement: *id009
149
165
  - !ruby/object:Gem::Dependency
150
166
  prerelease: false
151
167
  type: :development
152
168
  name: webmock
153
- version_requirements: &id009 !ruby/object:Gem::Requirement
169
+ version_requirements: &id010 !ruby/object:Gem::Requirement
154
170
  none: false
155
171
  requirements:
156
172
  - - ~>
@@ -161,12 +177,12 @@ dependencies:
161
177
  - 6
162
178
  - 1
163
179
  version: 1.6.1
164
- requirement: *id009
180
+ requirement: *id010
165
181
  - !ruby/object:Gem::Dependency
166
182
  prerelease: false
167
183
  type: :development
168
184
  name: timecop
169
- version_requirements: &id010 !ruby/object:Gem::Requirement
185
+ version_requirements: &id011 !ruby/object:Gem::Requirement
170
186
  none: false
171
187
  requirements:
172
188
  - - ~>
@@ -177,7 +193,7 @@ dependencies:
177
193
  - 3
178
194
  - 4
179
195
  version: 0.3.4
180
- requirement: *id010
196
+ requirement: *id011
181
197
  description: Includes journey planner, live departure boards (both National Rail & Virgin), and a station list with GPS co-ordinates.
182
198
  email: james@floehopper.org
183
199
  executables: []