amtrak 1.2.1 → 1.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b1dfaff48ee80354c5722baa73f063749664307
4
- data.tar.gz: d9e52597b7b6f401ea1ebf94f17aec2f32b31d19
3
+ metadata.gz: a54ef0f3c09e8114c0dd5b822f30c6f28ceae3a9
4
+ data.tar.gz: 6289270b60dfcea4db75badb5f1f5a03ea94b67a
5
5
  SHA512:
6
- metadata.gz: 8f398c76baf6c02ac383f289a35ab966da1472b1b78d4380f86cc745df855f6f32460faa0b57c8e2ed989466bc391e78edc4ba97bfe9f2bb373e65fcbfad13b0
7
- data.tar.gz: 45b7bc416b1066955f23eb89a91ffb6c3786955fa0f2038a64612e5241d679eaa5b7f7d6ff3436ccacd2908cb07e81a6c72c17474477a83eec9fc7aa7ffe000b
6
+ metadata.gz: 25490cf1b1d64518236723a508dc1825f3eb1d8d316d0c399d7a9f2122be65c390be18569979929f371ba7012721e87883d8bf74d0833c9f14280439be0d8b22
7
+ data.tar.gz: e0ccb8fd344a69f1a10de8b903bc1ac5ac3062071f3d35d2270dda186537600cb7b6ab3ed324cd406393ff1a1784b6a3f49ebd5334ad4a11fd6d7c2dc6c38e53
@@ -40,7 +40,7 @@ module Amtrak
40
40
  def body
41
41
  {
42
42
  "_handler=amtrak.presentation.handler.request.rail.AmtrakRailTrainStatusSearchRequestHandler/_xpath=/sessionWorkflow/productWorkflow[@product='Rail']" => '',
43
- "/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.date" => departure_date,
43
+ "/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate.usdate" => departure_date,
44
44
  "/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/@trainStatusType" => 'statusByCityPair',
45
45
  "/sessionWorkflow/productWorkflow[@product='Rail']/tripRequirements/journeyRequirements[1]/departDate/@radioSelect" => 'arrivalTime',
46
46
  'requestor' => 'amtrak.presentation.handler.page.rail.AmtrakRailGetTrainStatusPageHandler',
@@ -53,7 +53,7 @@ module Amtrak
53
53
  # rubocop:enable all
54
54
 
55
55
  def departure_date
56
- date.strftime('%a, %b %-d, %Y')
56
+ date.strftime('%0m/%d/%Y')
57
57
  end
58
58
 
59
59
  def date
@@ -1,6 +1,6 @@
1
1
  module Amtrak
2
2
  # This module holds the Amtrak version
3
3
  module Version
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
6
6
  end
@@ -6,7 +6,7 @@ describe Amtrak::TrainFetcher::MainPage do
6
6
  let(:date) { Date.parse('2014-11-12') }
7
7
 
8
8
  it 'prints out a formatted date' do
9
- expect(subject.departure_date).to eq('Wed, Nov 12, 2014')
9
+ expect(subject.departure_date).to eq('11/12/2014')
10
10
  end
11
11
  end
12
12
 
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: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Lunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon