ratis 3.6.3 → 3.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/Gemfile.lock +3 -3
- data/lib/ratis/itinerary.rb +20 -17
- data/lib/ratis/version.rb +1 -1
- data/ratis.gemspec +2 -2
- data/spec/ratis/plantrip_spec.rb +21 -0
- data/spec/support/vcr_cassettes/Ratis_Plantrip/_where/should_set_the_Plantrip_legs_to_instance_vars.yml +107 -0
- metadata +28 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ac29504ad115a369e0253fcada9d104b774abc
|
4
|
+
data.tar.gz: cddb4e89ca8872941fd28b2a90343d844a10012e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30f38373cb887677faac653553f5b435c4d7469fc5418b7dd62c0736508459aa261332b472bc265fbee5c08dfe33e7c8e75f44e0327708c20853dde6289e4ee6
|
7
|
+
data.tar.gz: ce53de1953da87f85284beeb46c5012c48b39969f508ea2ba094a4233920bcb61438e09cb381fd31db7d0fc2b91de1cf151013bf7b8452bdcc4516d6649a3783
|
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
data/lib/ratis/itinerary.rb
CHANGED
@@ -1,21 +1,24 @@
|
|
1
1
|
module Ratis
|
2
|
+
class Itinerary < Hashie::Trash
|
3
|
+
property :legs, transform_with: (lambda do |legs|
|
4
|
+
Array.wrap(legs[:leg]).map { |l| Hashie::Mash.new l }
|
5
|
+
end)
|
2
6
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
property :total_walk, from: :totalwalk
|
8
|
+
property :final_walk, from: :finalwalk
|
9
|
+
property :final_walk_dir, from: :finalwalkdir
|
10
|
+
property :final_walk_hint, from: :finalwalkhint
|
11
|
+
property :transit_time, from: :transittime, with: lambda { |v| v.to_i }
|
12
|
+
property :regular_fare, from: :regularfare, with: lambda { |v| v.to_f }
|
13
|
+
property :reduced_fare, from: :reducedfare, with: lambda { |v| v.to_f }
|
14
|
+
property :fare_info, from: :fareinfo
|
15
|
+
property :trace_info, from: :traceinfo
|
16
|
+
property :status_info, from: :statusinfo
|
17
|
+
property :exmodified
|
18
|
+
property :exmodids
|
19
|
+
property :dist_transit, from: :disttransit, with: lambda { |v| v.to_f }
|
20
|
+
property :dist_auto, from: :distauto, with: lambda { |v| v.to_f }
|
21
|
+
property :co2_transit, from: :co2transit, with: lambda { |v| v.to_f }
|
22
|
+
property :co2_auto, from: :co2auto, with: lambda { |v| v.to_f }
|
18
23
|
end
|
19
|
-
|
20
24
|
end
|
21
|
-
|
data/lib/ratis/version.rb
CHANGED
data/ratis.gemspec
CHANGED
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.rdoc_options = ['--charset=UTF-8 --main=README.md']
|
15
15
|
s.extra_rdoc_files = ['README.md']
|
16
16
|
|
17
|
-
s.add_dependency '
|
17
|
+
s.add_dependency 'hashie', '~> 3.3', '>= 3.3.1'
|
18
|
+
s.add_dependency 'nesty', '~> 1.0', '>= 1.0.2'
|
18
19
|
s.add_dependency 'savon', '< 2.0'
|
19
|
-
s.add_dependency 'hashie', '~> 3.3.1'
|
20
20
|
|
21
21
|
s.add_development_dependency 'activesupport', '< 4.0'
|
22
22
|
s.add_development_dependency 'bundler', '~> 1.5'
|
data/spec/ratis/plantrip_spec.rb
CHANGED
@@ -87,6 +87,27 @@ describe Ratis::Plantrip do
|
|
87
87
|
HashDiff.diff(plantrip.input, input).should eql []
|
88
88
|
end
|
89
89
|
|
90
|
+
it "should set the Plantrip legs to instance vars" do
|
91
|
+
conditions = @conditions.dup
|
92
|
+
conditions[:destination_lat] = '33.454055'
|
93
|
+
conditions[:destination_long] = '-111.953385'
|
94
|
+
plantrip = Ratis::Plantrip.where(conditions)
|
95
|
+
|
96
|
+
itin_with_one_leg = plantrip.itineraries.first
|
97
|
+
itin_with_two_legs = plantrip.itineraries.last
|
98
|
+
|
99
|
+
expect(itin_with_one_leg).to have(1).legs
|
100
|
+
expect(itin_with_two_legs).to have(2).legs
|
101
|
+
|
102
|
+
itin_with_one_leg.legs.each do |leg|
|
103
|
+
expect(leg).to be_a(Hashie::Mash)
|
104
|
+
end
|
105
|
+
|
106
|
+
itin_with_two_legs.legs.each do |leg|
|
107
|
+
expect(leg).to be_a(Hashie::Mash)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
90
111
|
it 'passes a Tid through' do
|
91
112
|
tid = 'here is my Tid'
|
92
113
|
conditions_with_tid = @conditions.merge({ tid: tid })
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://soap.valleymetro.org/cgi-bin-soap-web-271/soap.cgi
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
9
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="PX_WEB"
|
10
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><Plantrip
|
11
|
+
xmlns="PX_WEB"><Date>11/24/2014</Date><Time>0600</Time><Minimize>T</Minimize><Arrdep>D</Arrdep><Maxanswers>3</Maxanswers><Walkdist>0.50</Walkdist><Xmode>BCFKLRSTX</Xmode><Originlat>33.452082</Originlat><Originlong>-112.074374</Originlong><Origintext
|
12
|
+
xsi:nil="true"/><Originlandmarkid xsi:nil="true"/><Destinationlat>33.454055</Destinationlat><Destinationlong>-111.953385</Destinationlong><Destinationtext
|
13
|
+
xsi:nil="true"/><Destinationlandmarkid xsi:nil="true"/><Appid>ratis-specs</Appid></Plantrip></env:Body></env:Envelope>
|
14
|
+
headers:
|
15
|
+
Soapaction:
|
16
|
+
- '"PX_WEB#Plantrip"'
|
17
|
+
Content-Type:
|
18
|
+
- text/xml;charset=UTF-8
|
19
|
+
Content-Length:
|
20
|
+
- '768'
|
21
|
+
Accept-Encoding:
|
22
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
23
|
+
Accept:
|
24
|
+
- '*/*'
|
25
|
+
User-Agent:
|
26
|
+
- Ruby
|
27
|
+
response:
|
28
|
+
status:
|
29
|
+
code: 200
|
30
|
+
message: OK
|
31
|
+
headers:
|
32
|
+
Date:
|
33
|
+
- Tue, 18 Nov 2014 16:55:17 GMT
|
34
|
+
Server:
|
35
|
+
- Apache/2.2.3 (CentOS)
|
36
|
+
Soapserver:
|
37
|
+
- SOAP::Lite/Perl/0.55
|
38
|
+
Content-Length:
|
39
|
+
- '16492'
|
40
|
+
Connection:
|
41
|
+
- close
|
42
|
+
Content-Type:
|
43
|
+
- text/xml; charset=utf-8
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
|
47
|
+
xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
|
48
|
+
xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:PlantripResponse
|
49
|
+
xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.31</Version>\n\t<Tid></Tid>\n\t<Input>\n\t\t<Originlat>33.452082</Originlat>\n\t\t<Originlong>-112.074374</Originlong>\n\t\t<Originlandmarkid>0</Originlandmarkid>\n\t\t<Origintext>Origin</Origintext>\n\t\t<Destinationlat>33.454055</Destinationlat>\n\t\t<Destinationlong>-111.953385</Destinationlong>\n\t\t<Destinationlandmarkid>0</Destinationlandmarkid>\n\t\t<Destinationtext>Destination</Destinationtext>\n\t\t<Date>11/24/2014</Date>\n\t\t<Time>06:00
|
50
|
+
AM</Time>\n\t\t<Minimize>T</Minimize>\n\t\t<Accessible>N</Accessible>\n\t\t<Arrdep>D</Arrdep>\n\t\t<Maxtransfers>-1</Maxtransfers>\n\t\t<Maxanswers>3</Maxanswers>\n\t\t<Lessttime>N</Lessttime>\n\t\t<Maxinitialwait>-1</Maxinitialwait>\n\t\t<Maxtriptime>-1</Maxtriptime>\n\t\t<Walkspeed>
|
51
|
+
2.00 </Walkspeed>\n\t\t<Walkdist>0.50</Walkdist>\n\t\t<Walkorigin>0.50</Walkorigin>\n\t\t<Walkdestination>0.50</Walkdestination>\n\t\t<Walkincrease>N</Walkincrease>\n\t\t<Allows2s>N</Allows2s>\n\t\t<Xmode>BCFKLRSTX</Xmode>\n\t</Input>\n\t<Lesserttime>\n\t\t<Time/>\n\t\t<Arrdep/>\n\t</Lesserttime>\n\t<Walkable>N</Walkable>\n\t<Walkadjust>0</Walkadjust>\n\t<Operoverride>N</Operoverride>\n\t<Itin>\n\t\t<Legs>\n\t\t\t<Leg>\n\t\t\t\t<Onwalkdist>0.11</Onwalkdist>\n\t\t\t\t<Onwalkdir>SE</Onwalkdir>\n\t\t\t\t<Onwalkhint>Y</Onwalkhint>\n\t\t\t\t<Onstop>VAN
|
52
|
+
BUREN ST & CENTRAL AVE</Onstop>\n\t\t\t\t<Ontime>0610</Ontime>\n\t\t\t\t<Onstopdata>\n\t\t\t\t\t<Description>VAN
|
53
|
+
BUREN ST & CENTRAL AVE</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.451323</Lat>\n\t\t\t\t\t<Long>-112.073407</Long>\n\t\t\t\t\t<Time>0610</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>914</Atisstopid>\n\t\t\t\t\t<Stopid>18199</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>63</Stopseq>\n\t\t\t\t\t<Stopposition>G</Stopposition>\n\t\t\t\t\t<Heading>EB</Heading>\n\t\t\t\t\t<Side>Far</Side>\n\t\t\t\t\t<Accessible>Y</Accessible>\n\t\t\t\t</Onstopdata>\n\t\t\t\t<Service>\n\t\t\t\t\t<Route>3</Route>\n\t\t\t\t\t<Publicroute>3</Publicroute>\n\t\t\t\t\t<Sign>3
|
54
|
+
Van Buren East To Phoenix Zoo</Sign>\n\t\t\t\t\t<Altsign></Altsign>\n\t\t\t\t\t<Direction>E</Direction>\n\t\t\t\t\t<Operator>FirstTrans</Operator>\n\t\t\t\t\t<Realoperator>FT</Realoperator>\n\t\t\t\t\t<Servicetype>W</Servicetype>\n\t\t\t\t\t<Routeid>174160</Routeid>\n\t\t\t\t\t<Block>2003</Block>\n\t\t\t\t\t<Trip>0</Trip>\n\t\t\t\t\t<Peak>N</Peak>\n\t\t\t\t\t<Routetype>B</Routetype>\n\t\t\t\t\t<Statustype>N</Statustype>\n\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t<Realtime>\n\t\t\t\t\t\t<Valid>N</Valid>\n\t\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t\t<Trend>
|
55
|
+
</Trend>\n\t\t\t\t\t\t<Speed>0.00</Speed>\n\t\t\t\t\t\t<Stopped> </Stopped>\n\t\t\t\t\t\t<Reliable>
|
56
|
+
</Reliable>\n\t\t\t\t\t\t<Vehicle></Vehicle>\n\t\t\t\t\t\t<Lat>0.000000</Lat>\n\t\t\t\t\t\t<Long>0.000000</Long>\n\t\t\t\t\t</Realtime>\n\t\t\t\t\t<Patternorigin></Patternorigin>\n\t\t\t\t\t<Patterndestination></Patterndestination>\n\t\t\t\t\t<Exception>N</Exception>\n\t\t\t\t\t<Statusid>0</Statusid>\n\t\t\t\t\t<Skedtripid>
|
57
|
+
</Skedtripid>\n\t\t\t\t</Service>\n\t\t\t\t<Fare>\n\t\t\t\t\t<Onfarezone>0</Onfarezone>\n\t\t\t\t\t<Offfarezone>0</Offfarezone>\n\t\t\t\t\t<Legregularfare>2.00</Legregularfare>\n\t\t\t\t\t<Legregularfarexfer>0.00</Legregularfarexfer>\n\t\t\t\t\t<Legreducedfare>1.00</Legreducedfare>\n\t\t\t\t\t<Legreducedfarexfer>0.00</Legreducedfarexfer>\n\t\t\t\t</Fare>\n\t\t\t\t<Offstop>THE
|
58
|
+
PHOENIX ZOO -- GALVIN PKWY & GALVIN PKWY</Offstop>\n\t\t\t\t<Offtime>0644</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>THE
|
59
|
+
PHOENIX ZOO -- GALVIN PKWY & GALVIN PKWY</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.452247</Lat>\n\t\t\t\t\t<Long>-111.948788</Long>\n\t\t\t\t\t<Time>0644</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>3581</Atisstopid>\n\t\t\t\t\t<Stopid>10245</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>94</Stopseq>\n\t\t\t\t\t<Stopposition>M</Stopposition>\n\t\t\t\t\t<Heading>NB</Heading>\n\t\t\t\t\t<Side>Mid</Side>\n\t\t\t\t\t<Accessible>N</Accessible>\n\t\t\t\t</Offstopdata>\n\t\t\t</Leg>\n\t\t</Legs>\n\t\t<Finalwalk>0.40</Finalwalk>\n\t\t<Finalwalkdir>NW</Finalwalkdir>\n\t\t<Finalwalkhint>Y</Finalwalkhint>\n\t\t<Transittime>34</Transittime>\n\t\t<Totalwalk>0.51</Totalwalk>\n\t\t<Regularfare>2.00</Regularfare>\n\t\t<Reducedfare>1.00</Reducedfare>\n\t\t<Fareinfo>1|0|2.00|1.00~W|06:10
|
60
|
+
AM|06:44 AM|3| |W|E|B|7|0|868|0|174160|FirstTrans|914|63|3581|94|BUSFARE|0|0|0|B~</Fareinfo>\n\t\t<Traceinfo>1|174160|63|94</Traceinfo>\n\t\t<Statusinfo></Statusinfo>\n\t\t<Exmodified>N</Exmodified>\n\t\t<Exmodids/>\n\t\t<Disttransit>
|
61
|
+
7.93</Disttransit>\n\t\t<Distauto> 8.44</Distauto>\n\t\t<Co2transit>5.154</Co2transit>\n\t\t<Co2auto>8.098</Co2auto>\n\t</Itin>\n\t<Itin>\n\t\t<Legs>\n\t\t\t<Leg>\n\t\t\t\t<Onwalkdist>0.11</Onwalkdist>\n\t\t\t\t<Onwalkdir>SE</Onwalkdir>\n\t\t\t\t<Onwalkhint>Y</Onwalkhint>\n\t\t\t\t<Onstop>VAN
|
62
|
+
BUREN ST & CENTRAL AVE</Onstop>\n\t\t\t\t<Ontime>0610</Ontime>\n\t\t\t\t<Onstopdata>\n\t\t\t\t\t<Description>VAN
|
63
|
+
BUREN ST & CENTRAL AVE</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.451323</Lat>\n\t\t\t\t\t<Long>-112.073407</Long>\n\t\t\t\t\t<Time>0610</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>914</Atisstopid>\n\t\t\t\t\t<Stopid>18199</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>63</Stopseq>\n\t\t\t\t\t<Stopposition>G</Stopposition>\n\t\t\t\t\t<Heading>EB</Heading>\n\t\t\t\t\t<Side>Far</Side>\n\t\t\t\t\t<Accessible>Y</Accessible>\n\t\t\t\t</Onstopdata>\n\t\t\t\t<Service>\n\t\t\t\t\t<Route>3</Route>\n\t\t\t\t\t<Publicroute>3</Publicroute>\n\t\t\t\t\t<Sign>3
|
64
|
+
Van Buren East To Phoenix Zoo</Sign>\n\t\t\t\t\t<Altsign></Altsign>\n\t\t\t\t\t<Direction>E</Direction>\n\t\t\t\t\t<Operator>FirstTrans</Operator>\n\t\t\t\t\t<Realoperator>FT</Realoperator>\n\t\t\t\t\t<Servicetype>W</Servicetype>\n\t\t\t\t\t<Routeid>174160</Routeid>\n\t\t\t\t\t<Block>2003</Block>\n\t\t\t\t\t<Trip>0</Trip>\n\t\t\t\t\t<Peak>N</Peak>\n\t\t\t\t\t<Routetype>B</Routetype>\n\t\t\t\t\t<Statustype>N</Statustype>\n\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t<Realtime>\n\t\t\t\t\t\t<Valid>N</Valid>\n\t\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t\t<Trend>
|
65
|
+
</Trend>\n\t\t\t\t\t\t<Speed>0.00</Speed>\n\t\t\t\t\t\t<Stopped> </Stopped>\n\t\t\t\t\t\t<Reliable>
|
66
|
+
</Reliable>\n\t\t\t\t\t\t<Vehicle></Vehicle>\n\t\t\t\t\t\t<Lat>0.000000</Lat>\n\t\t\t\t\t\t<Long>0.000000</Long>\n\t\t\t\t\t</Realtime>\n\t\t\t\t\t<Patternorigin></Patternorigin>\n\t\t\t\t\t<Patterndestination></Patterndestination>\n\t\t\t\t\t<Exception>N</Exception>\n\t\t\t\t\t<Statusid>0</Statusid>\n\t\t\t\t\t<Skedtripid>
|
67
|
+
</Skedtripid>\n\t\t\t\t</Service>\n\t\t\t\t<Fare>\n\t\t\t\t\t<Onfarezone>0</Onfarezone>\n\t\t\t\t\t<Offfarezone>0</Offfarezone>\n\t\t\t\t\t<Legregularfare>2.00</Legregularfare>\n\t\t\t\t\t<Legregularfarexfer>0.00</Legregularfarexfer>\n\t\t\t\t\t<Legreducedfare>1.00</Legreducedfare>\n\t\t\t\t\t<Legreducedfarexfer>0.00</Legreducedfarexfer>\n\t\t\t\t</Fare>\n\t\t\t\t<Offstop>THE
|
68
|
+
PHOENIX ZOO -- GALVIN PKWY & GALVIN PKWY</Offstop>\n\t\t\t\t<Offtime>0644</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>THE
|
69
|
+
PHOENIX ZOO -- GALVIN PKWY & GALVIN PKWY</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.452247</Lat>\n\t\t\t\t\t<Long>-111.948788</Long>\n\t\t\t\t\t<Time>0644</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>3581</Atisstopid>\n\t\t\t\t\t<Stopid>10245</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>94</Stopseq>\n\t\t\t\t\t<Stopposition>M</Stopposition>\n\t\t\t\t\t<Heading>NB</Heading>\n\t\t\t\t\t<Side>Mid</Side>\n\t\t\t\t\t<Accessible>N</Accessible>\n\t\t\t\t</Offstopdata>\n\t\t\t</Leg>\n\t\t\t<Leg>\n\t\t\t\t<Onwalkdist>0</Onwalkdist>\n\t\t\t\t<Onwalkdir>
|
70
|
+
</Onwalkdir>\n\t\t\t\t<Onwalkhint>N</Onwalkhint>\n\t\t\t\t<Onstop>THE PHOENIX
|
71
|
+
ZOO -- GALVIN PKWY & GALVIN PKWY</Onstop>\n\t\t\t\t<Ontime>0654</Ontime>\n\t\t\t\t<Onstopdata>\n\t\t\t\t\t<Description>THE
|
72
|
+
PHOENIX ZOO -- GALVIN PKWY & GALVIN PKWY</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.452247</Lat>\n\t\t\t\t\t<Long>-111.948788</Long>\n\t\t\t\t\t<Time>0654</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>3581</Atisstopid>\n\t\t\t\t\t<Stopid>10245</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>8</Stopseq>\n\t\t\t\t\t<Stopposition>M</Stopposition>\n\t\t\t\t\t<Heading>NB</Heading>\n\t\t\t\t\t<Side>Mid</Side>\n\t\t\t\t\t<Accessible>N</Accessible>\n\t\t\t\t</Onstopdata>\n\t\t\t\t<Service>\n\t\t\t\t\t<Route>56</Route>\n\t\t\t\t\t<Publicroute>56</Publicroute>\n\t\t\t\t\t<Sign>56
|
73
|
+
Priest South To Ray/48th St</Sign>\n\t\t\t\t\t<Altsign></Altsign>\n\t\t\t\t\t<Direction>S</Direction>\n\t\t\t\t\t<Operator>EV
|
74
|
+
FT</Operator>\n\t\t\t\t\t<Realoperator>FTE</Realoperator>\n\t\t\t\t\t<Servicetype>W</Servicetype>\n\t\t\t\t\t<Routeid>178111</Routeid>\n\t\t\t\t\t<Block>4035</Block>\n\t\t\t\t\t<Trip>0</Trip>\n\t\t\t\t\t<Peak>N</Peak>\n\t\t\t\t\t<Routetype>B</Routetype>\n\t\t\t\t\t<Statustype>N</Statustype>\n\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t<Realtime>\n\t\t\t\t\t\t<Valid>N</Valid>\n\t\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t\t<Trend>
|
75
|
+
</Trend>\n\t\t\t\t\t\t<Speed>0.00</Speed>\n\t\t\t\t\t\t<Stopped> </Stopped>\n\t\t\t\t\t\t<Reliable>
|
76
|
+
</Reliable>\n\t\t\t\t\t\t<Vehicle></Vehicle>\n\t\t\t\t\t\t<Lat>0.000000</Lat>\n\t\t\t\t\t\t<Long>0.000000</Long>\n\t\t\t\t\t</Realtime>\n\t\t\t\t\t<Patternorigin></Patternorigin>\n\t\t\t\t\t<Patterndestination></Patterndestination>\n\t\t\t\t\t<Exception>N</Exception>\n\t\t\t\t\t<Statusid>0</Statusid>\n\t\t\t\t\t<Skedtripid>
|
77
|
+
</Skedtripid>\n\t\t\t\t</Service>\n\t\t\t\t<Fare>\n\t\t\t\t\t<Onfarezone>0</Onfarezone>\n\t\t\t\t\t<Offfarezone>0</Offfarezone>\n\t\t\t\t\t<Legregularfare>2.00</Legregularfare>\n\t\t\t\t\t<Legregularfarexfer>0.00</Legregularfarexfer>\n\t\t\t\t\t<Legreducedfare>1.00</Legreducedfare>\n\t\t\t\t\t<Legreducedfarexfer>0.00</Legreducedfarexfer>\n\t\t\t\t</Fare>\n\t\t\t\t<Offstop>SB
|
78
|
+
GALVIN PKWY FS VAN BUREN ST</Offstop>\n\t\t\t\t<Offtime>0656</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>SB
|
79
|
+
GALVIN PKWY FS VAN BUREN ST</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.450441</Lat>\n\t\t\t\t\t<Long>-111.956084</Long>\n\t\t\t\t\t<Time>0656</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>12061</Atisstopid>\n\t\t\t\t\t<Stopid>18455</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>9</Stopseq>\n\t\t\t\t\t<Stopposition>U</Stopposition>\n\t\t\t\t\t<Heading>SB</Heading>\n\t\t\t\t\t<Side>Far</Side>\n\t\t\t\t\t<Accessible>Y</Accessible>\n\t\t\t\t</Offstopdata>\n\t\t\t</Leg>\n\t\t</Legs>\n\t\t<Finalwalk>0.32</Finalwalk>\n\t\t<Finalwalkdir>NE</Finalwalkdir>\n\t\t<Finalwalkhint>Y</Finalwalkhint>\n\t\t<Transittime>46</Transittime>\n\t\t<Totalwalk>0.42</Totalwalk>\n\t\t<Regularfare>4.00</Regularfare>\n\t\t<Reducedfare>2.00</Reducedfare>\n\t\t<Fareinfo>2|0|4.00|2.00~W|06:10
|
80
|
+
AM|06:44 AM|3| |W|E|B|7|0|868|0|174160|FirstTrans|914|63|3581|94|BUSFARE|0|0|0|B~T|06:54
|
81
|
+
AM|06:56 AM|56| |W|S|B|4|0|1516|0|178111|EV FT|3581|8|12061|9|BUSFARE|0|0|0|B~</Fareinfo>\n\t\t<Traceinfo>2|174160|63|94|178111|8|9</Traceinfo>\n\t\t<Statusinfo></Statusinfo>\n\t\t<Exmodified>N</Exmodified>\n\t\t<Exmodids/>\n\t\t<Disttransit>
|
82
|
+
8.60</Disttransit>\n\t\t<Distauto> 9.02</Distauto>\n\t\t<Co2transit>5.589</Co2transit>\n\t\t<Co2auto>8.661</Co2auto>\n\t</Itin>\n\t<Itin>\n\t\t<Legs>\n\t\t\t<Leg>\n\t\t\t\t<Onwalkdist>0.21</Onwalkdist>\n\t\t\t\t<Onwalkdir>W</Onwalkdir>\n\t\t\t\t<Onwalkhint>Y</Onwalkhint>\n\t\t\t\t<Onstop>VAN
|
83
|
+
BUREN/1ST AVE LIGHT RAIL STATION</Onstop>\n\t\t\t\t<Ontime>0622</Ontime>\n\t\t\t\t<Onstopdata>\n\t\t\t\t\t<Description>VAN
|
84
|
+
BUREN/1ST AVE LIGHT RAIL STATION</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.452252</Lat>\n\t\t\t\t\t<Long>-112.075081</Long>\n\t\t\t\t\t<Time>0622</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>10880</Atisstopid>\n\t\t\t\t\t<Stopid>10012</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>15</Stopseq>\n\t\t\t\t\t<Stopposition>O</Stopposition>\n\t\t\t\t\t<Heading>NB</Heading>\n\t\t\t\t\t<Side>Far</Side>\n\t\t\t\t\t<Accessible>N</Accessible>\n\t\t\t\t</Onstopdata>\n\t\t\t\t<Service>\n\t\t\t\t\t<Route>LTRL</Route>\n\t\t\t\t\t<Publicroute>LTRL</Publicroute>\n\t\t\t\t\t<Sign>Valley
|
85
|
+
Metro Rail To Sycamore/Main</Sign>\n\t\t\t\t\t<Altsign></Altsign>\n\t\t\t\t\t<Direction>E</Direction>\n\t\t\t\t\t<Operator>METRO</Operator>\n\t\t\t\t\t<Realoperator>LRT</Realoperator>\n\t\t\t\t\t<Servicetype>W</Servicetype>\n\t\t\t\t\t<Routeid>144832</Routeid>\n\t\t\t\t\t<Block>17012</Block>\n\t\t\t\t\t<Trip>0</Trip>\n\t\t\t\t\t<Peak>N</Peak>\n\t\t\t\t\t<Routetype>L</Routetype>\n\t\t\t\t\t<Statustype>N</Statustype>\n\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t<Realtime>\n\t\t\t\t\t\t<Valid>N</Valid>\n\t\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t\t<Trend>
|
86
|
+
</Trend>\n\t\t\t\t\t\t<Speed>0.00</Speed>\n\t\t\t\t\t\t<Stopped> </Stopped>\n\t\t\t\t\t\t<Reliable>
|
87
|
+
</Reliable>\n\t\t\t\t\t\t<Vehicle></Vehicle>\n\t\t\t\t\t\t<Lat>0.000000</Lat>\n\t\t\t\t\t\t<Long>0.000000</Long>\n\t\t\t\t\t</Realtime>\n\t\t\t\t\t<Patternorigin></Patternorigin>\n\t\t\t\t\t<Patterndestination></Patterndestination>\n\t\t\t\t\t<Exception>N</Exception>\n\t\t\t\t\t<Statusid>0</Statusid>\n\t\t\t\t\t<Skedtripid>6097431</Skedtripid>\n\t\t\t\t</Service>\n\t\t\t\t<Fare>\n\t\t\t\t\t<Onfarezone>0</Onfarezone>\n\t\t\t\t\t<Offfarezone>0</Offfarezone>\n\t\t\t\t\t<Legregularfare>2.00</Legregularfare>\n\t\t\t\t\t<Legregularfarexfer>0.00</Legregularfarexfer>\n\t\t\t\t\t<Legreducedfare>1.00</Legreducedfare>\n\t\t\t\t\t<Legreducedfarexfer>0.00</Legreducedfarexfer>\n\t\t\t\t</Fare>\n\t\t\t\t<Offstop>PRIEST
|
88
|
+
DR/WASHINGTON LIGHT RAIL STATION</Offstop>\n\t\t\t\t<Offtime>0642</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>PRIEST
|
89
|
+
DR/WASHINGTON LIGHT RAIL STATION</Description>\n\t\t\t\t\t<Area>TE</Area>\n\t\t\t\t\t<Lat>33.442420</Lat>\n\t\t\t\t\t<Long>-111.956463</Long>\n\t\t\t\t\t<Time>0642</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>10884</Atisstopid>\n\t\t\t\t\t<Stopid>10019</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>24</Stopseq>\n\t\t\t\t\t<Stopposition>O</Stopposition>\n\t\t\t\t\t<Heading>NB</Heading>\n\t\t\t\t\t<Side>Far</Side>\n\t\t\t\t\t<Accessible>N</Accessible>\n\t\t\t\t</Offstopdata>\n\t\t\t</Leg>\n\t\t\t<Leg>\n\t\t\t\t<Onwalkdist>0</Onwalkdist>\n\t\t\t\t<Onwalkdir>
|
90
|
+
</Onwalkdir>\n\t\t\t\t<Onwalkhint>N</Onwalkhint>\n\t\t\t\t<Onstop>PRIEST DR
|
91
|
+
& WASHINGTON ST</Onstop>\n\t\t\t\t<Ontime>0654</Ontime>\n\t\t\t\t<Onstopdata>\n\t\t\t\t\t<Description>PRIEST
|
92
|
+
DR & WASHINGTON ST</Description>\n\t\t\t\t\t<Area>TE</Area>\n\t\t\t\t\t<Lat>33.442924</Lat>\n\t\t\t\t\t<Long>-111.955917</Long>\n\t\t\t\t\t<Time>0654</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>3047</Atisstopid>\n\t\t\t\t\t<Stopid>10242</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>36</Stopseq>\n\t\t\t\t\t<Stopposition>O</Stopposition>\n\t\t\t\t\t<Heading>NB</Heading>\n\t\t\t\t\t<Side>Far</Side>\n\t\t\t\t\t<Accessible>Y</Accessible>\n\t\t\t\t</Onstopdata>\n\t\t\t\t<Service>\n\t\t\t\t\t<Route>56</Route>\n\t\t\t\t\t<Publicroute>56</Publicroute>\n\t\t\t\t\t<Sign>56
|
93
|
+
Priest North To Scottsdle/McDwll Via Dsrt Btncl Grdn</Sign>\n\t\t\t\t\t<Altsign></Altsign>\n\t\t\t\t\t<Direction>N</Direction>\n\t\t\t\t\t<Operator>EV
|
94
|
+
FT</Operator>\n\t\t\t\t\t<Realoperator>FTE</Realoperator>\n\t\t\t\t\t<Servicetype>W</Servicetype>\n\t\t\t\t\t<Routeid>177970</Routeid>\n\t\t\t\t\t<Block>4029</Block>\n\t\t\t\t\t<Trip>1</Trip>\n\t\t\t\t\t<Peak>N</Peak>\n\t\t\t\t\t<Routetype>B</Routetype>\n\t\t\t\t\t<Statustype>N</Statustype>\n\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t<Realtime>\n\t\t\t\t\t\t<Valid>N</Valid>\n\t\t\t\t\t\t<Adherence>0</Adherence>\n\t\t\t\t\t\t<Polltime></Polltime>\n\t\t\t\t\t\t<Trend>
|
95
|
+
</Trend>\n\t\t\t\t\t\t<Speed>0.00</Speed>\n\t\t\t\t\t\t<Stopped> </Stopped>\n\t\t\t\t\t\t<Reliable>
|
96
|
+
</Reliable>\n\t\t\t\t\t\t<Vehicle></Vehicle>\n\t\t\t\t\t\t<Lat>0.000000</Lat>\n\t\t\t\t\t\t<Long>0.000000</Long>\n\t\t\t\t\t</Realtime>\n\t\t\t\t\t<Patternorigin></Patternorigin>\n\t\t\t\t\t<Patterndestination></Patterndestination>\n\t\t\t\t\t<Exception>N</Exception>\n\t\t\t\t\t<Statusid>0</Statusid>\n\t\t\t\t\t<Skedtripid>
|
97
|
+
</Skedtripid>\n\t\t\t\t</Service>\n\t\t\t\t<Fare>\n\t\t\t\t\t<Onfarezone>0</Onfarezone>\n\t\t\t\t\t<Offfarezone>0</Offfarezone>\n\t\t\t\t\t<Legregularfare>2.00</Legregularfare>\n\t\t\t\t\t<Legregularfarexfer>0.00</Legregularfarexfer>\n\t\t\t\t\t<Legreducedfare>1.00</Legreducedfare>\n\t\t\t\t\t<Legreducedfarexfer>0.00</Legreducedfarexfer>\n\t\t\t\t</Fare>\n\t\t\t\t<Offstop>NB
|
98
|
+
N GALVIN PKWY NS E VAN BUREN ST</Offstop>\n\t\t\t\t<Offtime>0657</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>NB
|
99
|
+
N GALVIN PKWY NS E VAN BUREN ST</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.450367</Lat>\n\t\t\t\t\t<Long>-111.955724</Long>\n\t\t\t\t\t<Time>0657</Time>\n\t\t\t\t\t<Date>11/24/14</Date>\n\t\t\t\t\t<Atisstopid>12060</Atisstopid>\n\t\t\t\t\t<Stopid>18456</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>37</Stopseq>\n\t\t\t\t\t<Stopposition>N</Stopposition>\n\t\t\t\t\t<Heading>NB</Heading>\n\t\t\t\t\t<Side>Near</Side>\n\t\t\t\t\t<Accessible>Y</Accessible>\n\t\t\t\t</Offstopdata>\n\t\t\t</Leg>\n\t\t</Legs>\n\t\t<Finalwalk>0.32</Finalwalk>\n\t\t<Finalwalkdir>NE</Finalwalkdir>\n\t\t<Finalwalkhint>Y</Finalwalkhint>\n\t\t<Transittime>35</Transittime>\n\t\t<Totalwalk>0.54</Totalwalk>\n\t\t<Regularfare>4.00</Regularfare>\n\t\t<Reducedfare>2.00</Reducedfare>\n\t\t<Fareinfo>2|0|4.00|2.00~W|06:22
|
100
|
+
AM|06:42 AM|LTRL| |W|E|L|10|0|2757|0|144832|METRO|10880|15|10884|24|BUSFARE|0|0|0|R~T|06:54
|
101
|
+
AM|06:57 AM|56| |W|N|B|4|0|1509|1|177970|EV FT|3047|36|12060|37|BUSFARE|0|0|0|B~</Fareinfo>\n\t\t<Traceinfo>2|144832|15|24|177970|36|37</Traceinfo>\n\t\t<Statusinfo></Statusinfo>\n\t\t<Exmodified>N</Exmodified>\n\t\t<Exmodids/>\n\t\t<Disttransit>
|
102
|
+
7.84</Disttransit>\n\t\t<Distauto> 8.42</Distauto>\n\t\t<Co2transit>3.350</Co2transit>\n\t\t<Co2auto>8.087</Co2auto>\n\t</Itin>\n\t<Appid>ratis-specs</Appid>\n\t<Requestor>98.174.226.185</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
|
103
|
+
schema Copyright (c) 2003-2014 Trapeze Software ULC, its subsidiaries and
|
104
|
+
affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.7.2a - 09/25/14</Soapversion>\n</namesp1:PlantripResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
105
|
+
http_version:
|
106
|
+
recorded_at: Tue, 18 Nov 2014 16:55:18 GMT
|
107
|
+
recorded_with: VCR 2.8.0
|
metadata
CHANGED
@@ -1,57 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ratis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Velocity Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: hashie
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '3.3'
|
20
|
+
- - '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.3.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: '3.3'
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.3.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
34
|
+
name: nesty
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- -
|
37
|
+
- - ~>
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '1.0'
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.0.2
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- -
|
47
|
+
- - ~>
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
49
|
+
version: '1.0'
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.0.2
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
54
|
+
name: savon
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
|
-
- -
|
57
|
+
- - <
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
59
|
+
version: '2.0'
|
48
60
|
type: :runtime
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
|
-
- -
|
64
|
+
- - <
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
66
|
+
version: '2.0'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: activesupport
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -369,6 +381,7 @@ files:
|
|
369
381
|
- spec/support/vcr_cassettes/Ratis_Plantrip/_where/passes_a_Tid_through.yml
|
370
382
|
- spec/support/vcr_cassettes/Ratis_Plantrip/_where/returns_a_Plantrip_object.yml
|
371
383
|
- spec/support/vcr_cassettes/Ratis_Plantrip/_where/should_set_all_the_Plantrip_values_to_instance_vars.yml
|
384
|
+
- spec/support/vcr_cassettes/Ratis_Plantrip/_where/should_set_the_Plantrip_legs_to_instance_vars.yml
|
372
385
|
- spec/support/vcr_cassettes/Ratis_Point2Point/Routesonly_N/_where/gets_the_groups.yml
|
373
386
|
- spec/support/vcr_cassettes/Ratis_Point2Point/Routesonly_N/_where/gets_the_trips_within_each_group.yml
|
374
387
|
- spec/support/vcr_cassettes/Ratis_Point2Point/Routesonly_N/_where/only_makes_one_request.yml
|