amtrak 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amtrak/train_fetcher.rb +1 -0
- data/lib/amtrak/train_parser.rb +14 -4
- data/lib/amtrak/version.rb +1 -1
- data/spec/amtrak/train_parser_spec.rb +16 -0
- data/spec/fixtures/json/_get.json +22 -22
- data/spec/fixtures/json/_parse.json +22 -22
- data/spec/fixtures/json/_parse_canceled.json +236 -0
- data/spec/fixtures/json/canceled.json +1126 -0
- metadata +7 -4
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amtrak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Lunter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -146,6 +146,8 @@ files:
|
|
146
146
|
- spec/amtrak_spec.rb
|
147
147
|
- spec/fixtures/json/_get.json
|
148
148
|
- spec/fixtures/json/_parse.json
|
149
|
+
- spec/fixtures/json/_parse_canceled.json
|
150
|
+
- spec/fixtures/json/canceled.json
|
149
151
|
- spec/fixtures/json/not_operated_by_amtrak.json
|
150
152
|
- spec/fixtures/json/pvd_to_bby.json
|
151
153
|
- spec/fixtures/json/unavailable.json
|
@@ -176,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
178
|
version: '0'
|
177
179
|
requirements: []
|
178
180
|
rubyforge_project:
|
179
|
-
rubygems_version: 2.4.
|
181
|
+
rubygems_version: 2.4.5
|
180
182
|
signing_key:
|
181
183
|
specification_version: 4
|
182
184
|
summary: Scrape train times from Amtrak.com
|
@@ -186,6 +188,8 @@ test_files:
|
|
186
188
|
- spec/amtrak_spec.rb
|
187
189
|
- spec/fixtures/json/_get.json
|
188
190
|
- spec/fixtures/json/_parse.json
|
191
|
+
- spec/fixtures/json/_parse_canceled.json
|
192
|
+
- spec/fixtures/json/canceled.json
|
189
193
|
- spec/fixtures/json/not_operated_by_amtrak.json
|
190
194
|
- spec/fixtures/json/pvd_to_bby.json
|
191
195
|
- spec/fixtures/json/unavailable.json
|
@@ -196,4 +200,3 @@ test_files:
|
|
196
200
|
- spec/fixtures/vcr/Amtrak_TrainFetcher/_get/given_an_invalid_date_and_valid_train_stations/does_not_include_various_keys_and_includes_an_error.yml
|
197
201
|
- spec/spec_helper.rb
|
198
202
|
- spec/support/vcr.rb
|
199
|
-
has_rdoc:
|