ratis 3.6.1 → 3.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 506826b71ba894109ed47d81d3c69e33d327e7a5
4
- data.tar.gz: f5b950a0e3a61760a7e9dbae29b69802716729bc
3
+ metadata.gz: 898c66080a4b9249a614ab9e01ad56d2cf3d4390
4
+ data.tar.gz: 70aa9e067227c5cc6ab15e82a9d8db4d93b8474b
5
5
  SHA512:
6
- metadata.gz: 484320f6a7d382ade18e3679bdc72d3b586c4b01b06a8634e36ca802061c3e9af857dffe676a286b1e9cd74c1b4ab30e5239714d318a0050ee7f9f76600ab09a
7
- data.tar.gz: 520e12b231f9d23062fdce5c4ddd0755767f7a33abcc05604b002ca535986900a85669b2dfb810bd65489a1451d1fd46364d3e278b55b1af2c9003b6869136fe
6
+ metadata.gz: 94282be3776f0b20d04c0e16d119d38c595dd0a3e7a61141ad4e8af494d3cc924836129032121334501629c31c1dd3e33237d25ba13407097708b7353c0661ba
7
+ data.tar.gz: f6f2b0751ba054218ff1fa5b51ee1a53fa6b42c26d94d4cf57c629ff74de8880706db0f41df28471d95a8268972386b7b6bffef523b2a8e90d84d3e7960d58fd
data/CHANGELOG CHANGED
@@ -1,6 +1,6 @@
1
- 3.6.1
2
- - Bug fix: Don't require lat/long for ScheduleNearby when stop ID is given
3
- - Wrap ScheduleNearby atstops has in a Hashie
1
+ 3.6.2
2
+ - Added support for Itintrace api
3
+ - Plantrip now support setting a Tid, to use with Itintrace
4
4
 
5
5
  3.6.0
6
6
  - Fix config block to properly set a working Timeout period
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ratis (3.5.0)
4
+ ratis (3.6.1)
5
5
  hashie (~> 3.3.1)
6
6
  nesty (~> 1.0.2)
7
7
  savon (< 2.0)
data/lib/ratis.rb CHANGED
@@ -9,6 +9,7 @@ require 'ratis/core_ext'
9
9
  require 'ratis/errors'
10
10
  require 'ratis/fleet_location'
11
11
  require 'ratis/itinerary'
12
+ require 'ratis/itin_trace'
12
13
  require 'ratis/landmark'
13
14
  require 'ratis/landmark_category'
14
15
  require 'ratis/location'
@@ -0,0 +1,30 @@
1
+ module Ratis
2
+
3
+ class ItinTrace
4
+
5
+ attr_accessor :success, :legs, :map_extents
6
+
7
+ def initialize(response)
8
+ @success = response.success?
9
+ @map_extents = response.body[:itintrace_response][:mapextents].split(',').map(&:to_f).each_slice(2).to_a
10
+ @legs = response.body.to_array(:itintrace_response, :legs, :leg).map { |l| Hashie::Mash.new l }
11
+
12
+ @legs.each do |leg|
13
+ leg.points = leg.to_array(:points, :point).collect do |point|
14
+ point.split(',').map(&:to_f)
15
+ end
16
+ end
17
+ end
18
+
19
+ def self.for_tid(tid, trace_info)
20
+ response = Request.get 'Itintrace', {'Tid' => tid, 'Traceinfo' => trace_info}
21
+ ItinTrace.new(response)
22
+ end
23
+
24
+ def success?
25
+ @success
26
+ end
27
+ end
28
+
29
+ end
30
+
@@ -2,7 +2,7 @@ module Ratis
2
2
 
3
3
  class Plantrip
4
4
 
5
- attr_accessor :success, :itineraries, :walkable, :walkadjust, :input
5
+ attr_accessor :success, :itineraries, :walkable, :walkadjust, :input, :tid
6
6
 
7
7
  def initialize(response)
8
8
  @success = response.success?
@@ -12,8 +12,10 @@ module Ratis
12
12
  @input = response.body[:plantrip_response][:input]
13
13
 
14
14
  @itineraries = response.to_array(:plantrip_response, :itin).map do |itinerary|
15
- Itinerary.new(itinerary)
16
- end
15
+ Itinerary.new(itinerary)
16
+ end
17
+
18
+ @tid = response.body[:plantrip_response][:tid]
17
19
  end
18
20
 
19
21
  def self.where(conditions)
@@ -30,6 +32,7 @@ module Ratis
30
32
  destination_long = conditions.delete(:destination_long).to_f
31
33
  destination_text = conditions.delete(:destination_text)
32
34
  destination_landmark_id = conditions.delete(:destination_landmark_id)
35
+ tid = conditions.delete(:tid)
33
36
 
34
37
  if datetime = conditions.delete(:datetime)
35
38
  raise ArgumentError.new('If datetime supplied it should be a Time or DateTime instance, otherwise it defaults to Time.now') unless datetime.is_a?(DateTime) || datetime.is_a?(Time)
@@ -48,22 +51,25 @@ module Ratis
48
51
 
49
52
  Ratis.all_conditions_used? conditions
50
53
 
51
- response = Request.get 'Plantrip', {'Date' => datetime.strftime("%m/%d/%Y"),
52
- 'Time' => datetime.strftime("%H%M"),
53
- 'Minimize' => minimize,
54
- 'Arrdep' => arrdep,
55
- 'Maxanswers' => maxanswers,
56
- 'Walkdist' => walkdist,
57
- 'Xmode' => xmode,
58
- 'Originlat' => origin_lat,
59
- 'Originlong' => origin_long,
60
- 'Origintext' => origin_text,
61
- 'Originlandmarkid' => origin_landmark_id,
62
- 'Destinationlat' => destination_lat,
63
- 'Destinationlong' => destination_long,
64
- 'Destinationtext' => destination_text,
65
- 'Destinationlandmarkid' => destination_landmark_id}
54
+ params = {'Date' => datetime.strftime("%m/%d/%Y"),
55
+ 'Time' => datetime.strftime("%H%M"),
56
+ 'Minimize' => minimize,
57
+ 'Arrdep' => arrdep,
58
+ 'Maxanswers' => maxanswers,
59
+ 'Walkdist' => walkdist,
60
+ 'Xmode' => xmode,
61
+ 'Originlat' => origin_lat,
62
+ 'Originlong' => origin_long,
63
+ 'Origintext' => origin_text,
64
+ 'Originlandmarkid' => origin_landmark_id,
65
+ 'Destinationlat' => destination_lat,
66
+ 'Destinationlong' => destination_long,
67
+ 'Destinationtext' => destination_text,
68
+ 'Destinationlandmarkid' => destination_landmark_id}
69
+
70
+ params['Tid'] = tid unless tid.nil?
66
71
 
72
+ response = Request.get 'Plantrip', params
67
73
  Plantrip.new(response)
68
74
  end
69
75
 
@@ -72,4 +78,4 @@ module Ratis
72
78
  end
73
79
  end
74
80
 
75
- end
81
+ end
data/lib/ratis/version.rb CHANGED
@@ -5,7 +5,7 @@ module Ratis
5
5
  def version
6
6
  @version ||= begin
7
7
 
8
- string = '3.6.1'
8
+ string = '3.6.2'
9
9
 
10
10
  def string.parts
11
11
  split('.').map { |p| p.to_i }
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe Ratis::ItinTrace do
4
+
5
+ describe '#for_tid', vcr: {} do
6
+
7
+ # this tid / trace_info paring created previously by Ratis::Plantrip 'passes a Tid through' spec
8
+ let(:itin_trace) { Ratis::ItinTrace.for_tid 'Here is my Tid', '1|183500|14|15' }
9
+
10
+ it 'only makes one request' do
11
+ Ratis::Request.should_receive(:get).once.and_call_original
12
+ itin_trace
13
+ end
14
+
15
+ it 'wraps legs in a Hashie::Mash' do
16
+ itin_trace.legs.each do |leg|
17
+ expect(leg).to be_a(Hashie::Mash)
18
+ expect(leg.keys).to eql(["route", "sign", "operator", "hexcolor", "color", "points", "distance", "stops"])
19
+ end
20
+ end
21
+
22
+ it 'wraps legs in a Hashie::Mash' do
23
+ itin_trace.legs.each do |leg|
24
+ leg.points.each do |point|
25
+ expect(point).to be_a(Array)
26
+ expect(point.size).to eql(2)
27
+ expect(point.first).to be_a(Float)
28
+ expect(point.last).to be_a(Float)
29
+ end
30
+ end
31
+ end
32
+
33
+ it 'pairs up map extents lat/lngs' do
34
+ expect(itin_trace.map_extents).to eql([[33.448232, -112.075282], [33.451444, -112.073659]])
35
+ end
36
+ end
37
+
38
+ end
39
+
@@ -87,6 +87,13 @@ describe Ratis::Plantrip do
87
87
  HashDiff.diff(plantrip.input, input).should eql []
88
88
  end
89
89
 
90
+ it 'passes a Tid through' do
91
+ tid = 'here is my Tid'
92
+ conditions_with_tid = @conditions.merge({ tid: tid })
93
+ @itineraries = Ratis::Plantrip.where conditions_with_tid
94
+ expect(@itineraries.tid).to eql(tid)
95
+ end
96
+
90
97
  end
91
98
 
92
99
  end
@@ -0,0 +1,105 @@
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><Itintrace
11
+ xmlns="PX_WEB"><Tid>Here is my Tid</Tid><Traceinfo><traceInfo>1|183500|14|15</traceInfo></Traceinfo><Appid>ratis-specs</Appid></Itintrace></env:Body></env:Envelope>
12
+ headers:
13
+ Soapaction:
14
+ - '"PX_WEB#Itintrace"'
15
+ Content-Type:
16
+ - text/xml;charset=UTF-8
17
+ Content-Length:
18
+ - '410'
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - '*/*'
23
+ User-Agent:
24
+ - Ruby
25
+ response:
26
+ status:
27
+ code: 500
28
+ message: Internal Server Error
29
+ headers:
30
+ Date:
31
+ - Tue, 28 Oct 2014 19:32:17 GMT
32
+ Server:
33
+ - Apache/2.2.3 (CentOS)
34
+ Soapserver:
35
+ - SOAP::Lite/Perl/0.55
36
+ Content-Length:
37
+ - '703'
38
+ Connection:
39
+ - close
40
+ Content-Type:
41
+ - text/xml; charset=utf-8
42
+ body:
43
+ encoding: UTF-8
44
+ string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:namesp1="http://namespaces.soaplite.com/perl"
45
+ xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
46
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"
47
+ SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode
48
+ xsi:type="xsd:string">SOAP-ENV:15006</faultcode><faultstring xsi:type="xsd:string">SOAP
49
+ - empty response</faultstring><detail><PX_WEB xsi:type="namesp1:PX_WEB"><code
50
+ xsi:type="xsd:int">15006</code></PX_WEB></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
51
+ http_version:
52
+ recorded_at: Tue, 28 Oct 2014 19:32:17 GMT
53
+ - request:
54
+ method: post
55
+ uri: http://soap.valleymetro.org/cgi-bin-soap-web-271/soap.cgi
56
+ body:
57
+ encoding: UTF-8
58
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
59
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="PX_WEB"
60
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><Itintrace
61
+ xmlns="PX_WEB"><Tid>Here is my Tid</Tid><Traceinfo>1|183500|14|15</Traceinfo><Appid>ratis-specs</Appid></Itintrace></env:Body></env:Envelope>
62
+ headers:
63
+ Soapaction:
64
+ - '"PX_WEB#Itintrace"'
65
+ Content-Type:
66
+ - text/xml;charset=UTF-8
67
+ Content-Length:
68
+ - '387'
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - '*/*'
73
+ User-Agent:
74
+ - Ruby
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Date:
81
+ - Tue, 28 Oct 2014 19:38:35 GMT
82
+ Server:
83
+ - Apache/2.2.3 (CentOS)
84
+ Soapserver:
85
+ - SOAP::Lite/Perl/0.55
86
+ Content-Length:
87
+ - '2191'
88
+ Connection:
89
+ - close
90
+ Content-Type:
91
+ - text/xml; charset=utf-8
92
+ body:
93
+ encoding: UTF-8
94
+ string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
95
+ xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
96
+ xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:ItintraceResponse
97
+ xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.3</Version>\n\t<Legs>\n\t\t<Leg>\n\t\t\t<Route>541</Route>\n\t\t\t<Sign>541
98
+ Chandler EXP To State Capitol Via West Mesa PNR</Sign>\n\t\t\t<Operator>FTE</Operator>\n\t\t\t<Hexcolor>0000FF</Hexcolor>\n\t\t\t<Color>255</Color>\n\t\t\t<Points>\n\t\t\t\t<Point>33.451444,-112.073661</Point>\n\t\t\t\t<Point>33.451386,-112.073659</Point>\n\t\t\t\t<Point>33.451386,-112.073849</Point>\n\t\t\t\t<Point>33.451389,-112.074532</Point>\n\t\t\t\t<Point>33.451392,-112.075143</Point>\n\t\t\t\t<Point>33.450353,-112.075134</Point>\n\t\t\t\t<Point>33.449846,-112.075130</Point>\n\t\t\t\t<Point>33.449306,-112.075128</Point>\n\t\t\t\t<Point>33.448232,-112.075122</Point>\n\t\t\t\t<Point>33.448232,-112.075280</Point>\n\t\t\t\t<Point>33.448298,-112.075282</Point>\n\t\t\t</Points>\n\t\t\t<Distance>0.3</Distance>\n\t\t\t<Stops>\n\t\t\t\t<Stop>\n\t\t\t\t\t<Atisstopid>6148</Atisstopid>\n\t\t\t\t\t<Stopid>6134</Stopid>\n\t\t\t\t<Description>VAN
99
+ BUREN ST &amp;amp; CENTRAL AVE</Description>\n\t\t\t\t\t<Timepoint>Y</Timepoint>\n\t\t\t\t\t<Boardflag>E</Boardflag>\n\t\t\t\t\t<Point>33.451444,-112.073661</Point>\n\t\t\t\t</Stop>\n\t\t\t\t<Stop>\n\t\t\t\t\t<Atisstopid>7180</Atisstopid>\n\t\t\t\t\t<Stopid>7166</Stopid>\n\t\t\t\t<Description>WASHINGTON
100
+ ST &amp;amp; 1ST AVE</Description>\n\t\t\t\t\t<Timepoint>N</Timepoint>\n\t\t\t\t\t<Boardflag>E</Boardflag>\n\t\t\t\t\t<Point>33.448298,-112.075282</Point>\n\t\t\t\t</Stop>\n\t\t\t</Stops>\n\t\t</Leg>\n\t</Legs>\n\t<Mapextents>33.448232,-112.075282,33.451444,-112.073659</Mapextents>\n\t<Distance>0.32</Distance>\n\t<Co2transit>0.209</Co2transit>\n\t<Co2auto>0.309</Co2auto>\n\t<Appid>ratis-specs</Appid>\n\t<Requestor>72.201.191.31</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
101
+ schema Copyright (c) 2003-2014 Trapeze Software ULC, its subsidiaries and
102
+ affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.7.2a - 09/25/14</Soapversion>\n</namesp1:ItintraceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
103
+ http_version:
104
+ recorded_at: Tue, 28 Oct 2014 19:38:35 GMT
105
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,105 @@
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><Itintrace
11
+ xmlns="PX_WEB"><Tid>Here is my Tid</Tid><Traceinfo><traceInfo>1|183500|14|15</traceInfo></Traceinfo><Appid>ratis-specs</Appid></Itintrace></env:Body></env:Envelope>
12
+ headers:
13
+ Soapaction:
14
+ - '"PX_WEB#Itintrace"'
15
+ Content-Type:
16
+ - text/xml;charset=UTF-8
17
+ Content-Length:
18
+ - '410'
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - '*/*'
23
+ User-Agent:
24
+ - Ruby
25
+ response:
26
+ status:
27
+ code: 500
28
+ message: Internal Server Error
29
+ headers:
30
+ Date:
31
+ - Tue, 28 Oct 2014 19:32:17 GMT
32
+ Server:
33
+ - Apache/2.2.3 (CentOS)
34
+ Soapserver:
35
+ - SOAP::Lite/Perl/0.55
36
+ Content-Length:
37
+ - '703'
38
+ Connection:
39
+ - close
40
+ Content-Type:
41
+ - text/xml; charset=utf-8
42
+ body:
43
+ encoding: UTF-8
44
+ string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:namesp1="http://namespaces.soaplite.com/perl"
45
+ xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
46
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"
47
+ SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode
48
+ xsi:type="xsd:string">SOAP-ENV:15006</faultcode><faultstring xsi:type="xsd:string">SOAP
49
+ - empty response</faultstring><detail><PX_WEB xsi:type="namesp1:PX_WEB"><code
50
+ xsi:type="xsd:int">15006</code></PX_WEB></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
51
+ http_version:
52
+ recorded_at: Tue, 28 Oct 2014 19:32:17 GMT
53
+ - request:
54
+ method: post
55
+ uri: http://soap.valleymetro.org/cgi-bin-soap-web-271/soap.cgi
56
+ body:
57
+ encoding: UTF-8
58
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
59
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="PX_WEB"
60
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><Itintrace
61
+ xmlns="PX_WEB"><Tid>Here is my Tid</Tid><Traceinfo>1|183500|14|15</Traceinfo><Appid>ratis-specs</Appid></Itintrace></env:Body></env:Envelope>
62
+ headers:
63
+ Soapaction:
64
+ - '"PX_WEB#Itintrace"'
65
+ Content-Type:
66
+ - text/xml;charset=UTF-8
67
+ Content-Length:
68
+ - '387'
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - '*/*'
73
+ User-Agent:
74
+ - Ruby
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Date:
81
+ - Tue, 28 Oct 2014 19:38:35 GMT
82
+ Server:
83
+ - Apache/2.2.3 (CentOS)
84
+ Soapserver:
85
+ - SOAP::Lite/Perl/0.55
86
+ Content-Length:
87
+ - '2191'
88
+ Connection:
89
+ - close
90
+ Content-Type:
91
+ - text/xml; charset=utf-8
92
+ body:
93
+ encoding: UTF-8
94
+ string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
95
+ xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
96
+ xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:ItintraceResponse
97
+ xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.3</Version>\n\t<Legs>\n\t\t<Leg>\n\t\t\t<Route>541</Route>\n\t\t\t<Sign>541
98
+ Chandler EXP To State Capitol Via West Mesa PNR</Sign>\n\t\t\t<Operator>FTE</Operator>\n\t\t\t<Hexcolor>0000FF</Hexcolor>\n\t\t\t<Color>255</Color>\n\t\t\t<Points>\n\t\t\t\t<Point>33.451444,-112.073661</Point>\n\t\t\t\t<Point>33.451386,-112.073659</Point>\n\t\t\t\t<Point>33.451386,-112.073849</Point>\n\t\t\t\t<Point>33.451389,-112.074532</Point>\n\t\t\t\t<Point>33.451392,-112.075143</Point>\n\t\t\t\t<Point>33.450353,-112.075134</Point>\n\t\t\t\t<Point>33.449846,-112.075130</Point>\n\t\t\t\t<Point>33.449306,-112.075128</Point>\n\t\t\t\t<Point>33.448232,-112.075122</Point>\n\t\t\t\t<Point>33.448232,-112.075280</Point>\n\t\t\t\t<Point>33.448298,-112.075282</Point>\n\t\t\t</Points>\n\t\t\t<Distance>0.3</Distance>\n\t\t\t<Stops>\n\t\t\t\t<Stop>\n\t\t\t\t\t<Atisstopid>6148</Atisstopid>\n\t\t\t\t\t<Stopid>6134</Stopid>\n\t\t\t\t<Description>VAN
99
+ BUREN ST &amp;amp; CENTRAL AVE</Description>\n\t\t\t\t\t<Timepoint>Y</Timepoint>\n\t\t\t\t\t<Boardflag>E</Boardflag>\n\t\t\t\t\t<Point>33.451444,-112.073661</Point>\n\t\t\t\t</Stop>\n\t\t\t\t<Stop>\n\t\t\t\t\t<Atisstopid>7180</Atisstopid>\n\t\t\t\t\t<Stopid>7166</Stopid>\n\t\t\t\t<Description>WASHINGTON
100
+ ST &amp;amp; 1ST AVE</Description>\n\t\t\t\t\t<Timepoint>N</Timepoint>\n\t\t\t\t\t<Boardflag>E</Boardflag>\n\t\t\t\t\t<Point>33.448298,-112.075282</Point>\n\t\t\t\t</Stop>\n\t\t\t</Stops>\n\t\t</Leg>\n\t</Legs>\n\t<Mapextents>33.448232,-112.075282,33.451444,-112.073659</Mapextents>\n\t<Distance>0.32</Distance>\n\t<Co2transit>0.209</Co2transit>\n\t<Co2auto>0.309</Co2auto>\n\t<Appid>ratis-specs</Appid>\n\t<Requestor>72.201.191.31</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
101
+ schema Copyright (c) 2003-2014 Trapeze Software ULC, its subsidiaries and
102
+ affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.7.2a - 09/25/14</Soapversion>\n</namesp1:ItintraceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
103
+ http_version:
104
+ recorded_at: Tue, 28 Oct 2014 19:38:35 GMT
105
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,105 @@
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><Itintrace
11
+ xmlns="PX_WEB"><Tid>Here is my Tid</Tid><Traceinfo><traceInfo>1|183500|14|15</traceInfo></Traceinfo><Appid>ratis-specs</Appid></Itintrace></env:Body></env:Envelope>
12
+ headers:
13
+ Soapaction:
14
+ - '"PX_WEB#Itintrace"'
15
+ Content-Type:
16
+ - text/xml;charset=UTF-8
17
+ Content-Length:
18
+ - '410'
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - '*/*'
23
+ User-Agent:
24
+ - Ruby
25
+ response:
26
+ status:
27
+ code: 500
28
+ message: Internal Server Error
29
+ headers:
30
+ Date:
31
+ - Tue, 28 Oct 2014 19:32:17 GMT
32
+ Server:
33
+ - Apache/2.2.3 (CentOS)
34
+ Soapserver:
35
+ - SOAP::Lite/Perl/0.55
36
+ Content-Length:
37
+ - '703'
38
+ Connection:
39
+ - close
40
+ Content-Type:
41
+ - text/xml; charset=utf-8
42
+ body:
43
+ encoding: UTF-8
44
+ string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:namesp1="http://namespaces.soaplite.com/perl"
45
+ xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
46
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"
47
+ SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode
48
+ xsi:type="xsd:string">SOAP-ENV:15006</faultcode><faultstring xsi:type="xsd:string">SOAP
49
+ - empty response</faultstring><detail><PX_WEB xsi:type="namesp1:PX_WEB"><code
50
+ xsi:type="xsd:int">15006</code></PX_WEB></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
51
+ http_version:
52
+ recorded_at: Tue, 28 Oct 2014 19:32:17 GMT
53
+ - request:
54
+ method: post
55
+ uri: http://soap.valleymetro.org/cgi-bin-soap-web-271/soap.cgi
56
+ body:
57
+ encoding: UTF-8
58
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
59
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="PX_WEB"
60
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><Itintrace
61
+ xmlns="PX_WEB"><Tid>Here is my Tid</Tid><Traceinfo>1|183500|14|15</Traceinfo><Appid>ratis-specs</Appid></Itintrace></env:Body></env:Envelope>
62
+ headers:
63
+ Soapaction:
64
+ - '"PX_WEB#Itintrace"'
65
+ Content-Type:
66
+ - text/xml;charset=UTF-8
67
+ Content-Length:
68
+ - '387'
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - '*/*'
73
+ User-Agent:
74
+ - Ruby
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Date:
81
+ - Tue, 28 Oct 2014 19:38:35 GMT
82
+ Server:
83
+ - Apache/2.2.3 (CentOS)
84
+ Soapserver:
85
+ - SOAP::Lite/Perl/0.55
86
+ Content-Length:
87
+ - '2191'
88
+ Connection:
89
+ - close
90
+ Content-Type:
91
+ - text/xml; charset=utf-8
92
+ body:
93
+ encoding: UTF-8
94
+ string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
95
+ xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
96
+ xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:ItintraceResponse
97
+ xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.3</Version>\n\t<Legs>\n\t\t<Leg>\n\t\t\t<Route>541</Route>\n\t\t\t<Sign>541
98
+ Chandler EXP To State Capitol Via West Mesa PNR</Sign>\n\t\t\t<Operator>FTE</Operator>\n\t\t\t<Hexcolor>0000FF</Hexcolor>\n\t\t\t<Color>255</Color>\n\t\t\t<Points>\n\t\t\t\t<Point>33.451444,-112.073661</Point>\n\t\t\t\t<Point>33.451386,-112.073659</Point>\n\t\t\t\t<Point>33.451386,-112.073849</Point>\n\t\t\t\t<Point>33.451389,-112.074532</Point>\n\t\t\t\t<Point>33.451392,-112.075143</Point>\n\t\t\t\t<Point>33.450353,-112.075134</Point>\n\t\t\t\t<Point>33.449846,-112.075130</Point>\n\t\t\t\t<Point>33.449306,-112.075128</Point>\n\t\t\t\t<Point>33.448232,-112.075122</Point>\n\t\t\t\t<Point>33.448232,-112.075280</Point>\n\t\t\t\t<Point>33.448298,-112.075282</Point>\n\t\t\t</Points>\n\t\t\t<Distance>0.3</Distance>\n\t\t\t<Stops>\n\t\t\t\t<Stop>\n\t\t\t\t\t<Atisstopid>6148</Atisstopid>\n\t\t\t\t\t<Stopid>6134</Stopid>\n\t\t\t\t<Description>VAN
99
+ BUREN ST &amp;amp; CENTRAL AVE</Description>\n\t\t\t\t\t<Timepoint>Y</Timepoint>\n\t\t\t\t\t<Boardflag>E</Boardflag>\n\t\t\t\t\t<Point>33.451444,-112.073661</Point>\n\t\t\t\t</Stop>\n\t\t\t\t<Stop>\n\t\t\t\t\t<Atisstopid>7180</Atisstopid>\n\t\t\t\t\t<Stopid>7166</Stopid>\n\t\t\t\t<Description>WASHINGTON
100
+ ST &amp;amp; 1ST AVE</Description>\n\t\t\t\t\t<Timepoint>N</Timepoint>\n\t\t\t\t\t<Boardflag>E</Boardflag>\n\t\t\t\t\t<Point>33.448298,-112.075282</Point>\n\t\t\t\t</Stop>\n\t\t\t</Stops>\n\t\t</Leg>\n\t</Legs>\n\t<Mapextents>33.448232,-112.075282,33.451444,-112.073659</Mapextents>\n\t<Distance>0.32</Distance>\n\t<Co2transit>0.209</Co2transit>\n\t<Co2auto>0.309</Co2auto>\n\t<Appid>ratis-specs</Appid>\n\t<Requestor>72.201.191.31</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
101
+ schema Copyright (c) 2003-2014 Trapeze Software ULC, its subsidiaries and
102
+ affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.7.2a - 09/25/14</Soapversion>\n</namesp1:ItintraceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
103
+ http_version:
104
+ recorded_at: Tue, 28 Oct 2014 19:38:35 GMT
105
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,89 @@
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/03/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.446347</Destinationlat><Destinationlong>-112.068689</Destinationlong><Destinationtext
13
+ xsi:nil="true"/><Destinationlandmarkid xsi:nil="true"/><Tid>here is my Tid</Tid><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
+ - '793'
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, 28 Oct 2014 19:19:34 GMT
34
+ Server:
35
+ - Apache/2.2.3 (CentOS)
36
+ Soapserver:
37
+ - SOAP::Lite/Perl/0.55
38
+ Content-Length:
39
+ - '11172'
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>here
50
+ is my 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.446347</Destinationlat>\n\t\t<Destinationlong>-112.068689</Destinationlong>\n\t\t<Destinationlandmarkid>0</Destinationlandmarkid>\n\t\t<Destinationtext>Destination</Destinationtext>\n\t\t<Date>11/03/2014</Date>\n\t\t<Time>06:00
51
+ 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>
52
+ 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.09</Onwalkdist>\n\t\t\t\t<Onwalkdir>SE</Onwalkdir>\n\t\t\t\t<Onwalkhint>Y</Onwalkhint>\n\t\t\t\t<Onstop>VAN
53
+ BUREN ST &amp; CENTRAL AVE</Onstop>\n\t\t\t\t<Ontime>0603</Ontime>\n\t\t\t\t<Onstopdata>\n\t\t\t\t\t<Description>VAN
54
+ BUREN ST &amp; CENTRAL AVE</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.451444</Lat>\n\t\t\t\t\t<Long>-112.073661</Long>\n\t\t\t\t\t<Time>0603</Time>\n\t\t\t\t\t<Date>11/03/14</Date>\n\t\t\t\t\t<Atisstopid>6148</Atisstopid>\n\t\t\t\t\t<Stopid>18367</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>14</Stopseq>\n\t\t\t\t\t<Stopposition>W</Stopposition>\n\t\t\t\t\t<Heading>WB</Heading>\n\t\t\t\t\t<Side>Near</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>541</Route>\n\t\t\t\t\t<Publicroute>541</Publicroute>\n\t\t\t\t\t<Sign>541
55
+ Chandler EXP To State Capitol Via West Mesa PNR</Sign>\n\t\t\t\t\t<Altsign></Altsign>\n\t\t\t\t\t<Direction>I</Direction>\n\t\t\t\t\t<Operator>EV
56
+ 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>183500</Routeid>\n\t\t\t\t\t<Block>4145</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>X</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>
57
+ </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>
58
+ </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>
59
+ </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>3.25</Legregularfare>\n\t\t\t\t\t<Legregularfarexfer>0.00</Legregularfarexfer>\n\t\t\t\t\t<Legreducedfare>3.25</Legreducedfare>\n\t\t\t\t\t<Legreducedfarexfer>0.00</Legreducedfarexfer>\n\t\t\t\t</Fare>\n\t\t\t\t<Offstop>WASHINGTON
60
+ ST &amp; 1ST AVE</Offstop>\n\t\t\t\t<Offtime>0604</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>WASHINGTON
61
+ ST &amp; 1ST AVE</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.448298</Lat>\n\t\t\t\t\t<Long>-112.075282</Long>\n\t\t\t\t\t<Time>0604</Time>\n\t\t\t\t\t<Date>11/03/14</Date>\n\t\t\t\t\t<Atisstopid>7180</Atisstopid>\n\t\t\t\t\t<Stopid>18249</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>Y</Stopposition>\n\t\t\t\t\t<Heading>WB</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.46</Finalwalk>\n\t\t<Finalwalkdir>E</Finalwalkdir>\n\t\t<Finalwalkhint>Y</Finalwalkhint>\n\t\t<Transittime>1</Transittime>\n\t\t<Totalwalk>0.55</Totalwalk>\n\t\t<Regularfare>3.25</Regularfare>\n\t\t<Reducedfare>3.25</Reducedfare>\n\t\t<Fareinfo>1|0|3.25|3.25~W|06:03
62
+ AM|06:04 AM|541| |W|I|X|2|0|1451|0|183500|EV FT|6148|14|7180|15|EXPRESSFARE|0|0|0|E~</Fareinfo>\n\t\t<Traceinfo>1|183500|14|15</Traceinfo>\n\t\t<Statusinfo></Statusinfo>\n\t\t<Exmodified>N</Exmodified>\n\t\t<Exmodids/>\n\t\t<Disttransit>
63
+ 0.32</Disttransit>\n\t\t<Distauto> 0.87</Distauto>\n\t\t<Co2transit>0.209</Co2transit>\n\t\t<Co2auto>0.839</Co2auto>\n\t</Itin>\n\t<Itin>\n\t\t<Legs>\n\t\t\t<Leg>\n\t\t\t\t<Onwalkdist>0.18</Onwalkdist>\n\t\t\t\t<Onwalkdir>SW</Onwalkdir>\n\t\t\t\t<Onwalkhint>Y</Onwalkhint>\n\t\t\t\t<Onstop>1ST
64
+ AVE &amp; VAN BUREN ST</Onstop>\n\t\t\t\t<Ontime>0610</Ontime>\n\t\t\t\t<Onstopdata>\n\t\t\t\t\t<Description>1ST
65
+ AVE &amp; VAN BUREN ST</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.451753</Lat>\n\t\t\t\t\t<Long>-112.075212</Long>\n\t\t\t\t\t<Time>0610</Time>\n\t\t\t\t\t<Date>11/03/14</Date>\n\t\t\t\t\t<Atisstopid>3795</Atisstopid>\n\t\t\t\t\t<Stopid>10161</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>0</Stopseq>\n\t\t\t\t\t<Stopposition>S</Stopposition>\n\t\t\t\t\t<Heading>SB</Heading>\n\t\t\t\t\t<Side>Near</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>ZERO</Route>\n\t\t\t\t\t<Publicroute>ZERO</Publicroute>\n\t\t\t\t\t<Sign>0
66
+ Central South To Baseline</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>VEOLIA-PX</Operator>\n\t\t\t\t\t<Realoperator>AP</Realoperator>\n\t\t\t\t\t<Servicetype>W</Servicetype>\n\t\t\t\t\t<Routeid>185740</Routeid>\n\t\t\t\t\t<Block>197</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>D</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>
67
+ </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>
68
+ </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>
69
+ </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>1ST
70
+ AVE &amp; JEFFERSON ST</Offstop>\n\t\t\t\t<Offtime>0611</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>1ST
71
+ AVE &amp; JEFFERSON ST</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.446963</Lat>\n\t\t\t\t\t<Long>-112.075202</Long>\n\t\t\t\t\t<Time>0611</Time>\n\t\t\t\t\t<Date>11/03/14</Date>\n\t\t\t\t\t<Atisstopid>9959</Atisstopid>\n\t\t\t\t\t<Stopid>10162</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>1</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>N</Accessible>\n\t\t\t\t</Offstopdata>\n\t\t\t</Leg>\n\t\t</Legs>\n\t\t<Finalwalk>0.39</Finalwalk>\n\t\t<Finalwalkdir>E</Finalwalkdir>\n\t\t<Finalwalkhint>Y</Finalwalkhint>\n\t\t<Transittime>1</Transittime>\n\t\t<Totalwalk>0.57</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
72
+ AM|06:11 AM|ZERO| |W|S|B|4|0|3113|0|185740|VEOLIA-PX|3795|0|9959|1|BUSFARE|0|0|0|R~</Fareinfo>\n\t\t<Traceinfo>1|185740|0|1</Traceinfo>\n\t\t<Statusinfo>|R,ZERO,S,11/03/14,06:10
73
+ AM</Statusinfo>\n\t\t<Exmodified>N</Exmodified>\n\t\t<Exmodids/>\n\t\t<Disttransit>
74
+ 0.34</Disttransit>\n\t\t<Distauto> 0.91</Distauto>\n\t\t<Co2transit>0.221</Co2transit>\n\t\t<Co2auto>0.877</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
75
+ BUREN ST &amp; 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
76
+ BUREN ST &amp; 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/03/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
77
+ 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>
78
+ </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>
79
+ </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>
80
+ </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>VAN
81
+ BUREN ST &amp; 5TH ST</Offstop>\n\t\t\t\t<Offtime>0612</Offtime>\n\t\t\t\t<Offstopdata>\n\t\t\t\t\t<Description>VAN
82
+ BUREN ST &amp; 5TH ST</Description>\n\t\t\t\t\t<Area>PH</Area>\n\t\t\t\t\t<Lat>33.451293</Lat>\n\t\t\t\t\t<Long>-112.067194</Long>\n\t\t\t\t\t<Time>0612</Time>\n\t\t\t\t\t<Date>11/03/14</Date>\n\t\t\t\t\t<Atisstopid>911</Atisstopid>\n\t\t\t\t\t<Stopid>10214</Stopid>\n\t\t\t\t\t<Stopstatustype>N</Stopstatustype>\n\t\t\t\t\t<Stopseq>66</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>N</Accessible>\n\t\t\t\t</Offstopdata>\n\t\t\t</Leg>\n\t\t</Legs>\n\t\t<Finalwalk>0.43</Finalwalk>\n\t\t<Finalwalkdir>S</Finalwalkdir>\n\t\t<Finalwalkhint>Y</Finalwalkhint>\n\t\t<Transittime>2</Transittime>\n\t\t<Totalwalk>0.54</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
83
+ AM|06:12 AM|3| |W|E|B|7|0|868|0|174160|FirstTrans|914|63|911|66|BUSFARE|0|0|0|B~</Fareinfo>\n\t\t<Traceinfo>1|174160|63|66</Traceinfo>\n\t\t<Statusinfo></Statusinfo>\n\t\t<Exmodified>N</Exmodified>\n\t\t<Exmodids/>\n\t\t<Disttransit>
84
+ 0.38</Disttransit>\n\t\t<Distauto> 0.93</Distauto>\n\t\t<Co2transit>0.249</Co2transit>\n\t\t<Co2auto>0.889</Co2auto>\n\t</Itin>\n\t<Appid>ratis-specs</Appid>\n\t<Requestor>72.201.191.31</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
85
+ schema Copyright (c) 2003-2014 Trapeze Software ULC, its subsidiaries and
86
+ affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.7.2a - 09/25/14</Soapversion>\n</namesp1:PlantripResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
87
+ http_version:
88
+ recorded_at: Tue, 28 Oct 2014 19:19:34 GMT
89
+ recorded_with: VCR 2.8.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratis
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.6.2
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-10-20 00:00:00.000000000 Z
11
+ date: 2014-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nesty
@@ -257,6 +257,7 @@ files:
257
257
  - lib/ratis/core_ext.rb
258
258
  - lib/ratis/errors.rb
259
259
  - lib/ratis/fleet_location.rb
260
+ - lib/ratis/itin_trace.rb
260
261
  - lib/ratis/itinerary.rb
261
262
  - lib/ratis/landmark.rb
262
263
  - lib/ratis/landmark_category.rb
@@ -296,6 +297,7 @@ files:
296
297
  - spec/ratis/config_spec.rb
297
298
  - spec/ratis/core_ext_spec.rb
298
299
  - spec/ratis/fleet_location_spec.rb
300
+ - spec/ratis/itin_trace_spec.rb
299
301
  - spec/ratis/itinerary_spec.rb
300
302
  - spec/ratis/landmark_category_spec.rb
301
303
  - spec/ratis/landmark_spec.rb
@@ -329,6 +331,9 @@ files:
329
331
  - spec/support/vcr_cassettes/Ratis_FleetLocation/_current/parses_out_the_vehicle_fields_correctly.yml
330
332
  - spec/support/vcr_cassettes/Ratis_FleetLocation/_current/returns_multiple_vehicles.yml
331
333
  - spec/support/vcr_cassettes/Ratis_FleetLocation/_current/should_return_a_collection_of_Ratis_Vehicle_s_.yml
334
+ - spec/support/vcr_cassettes/Ratis_ItinTrace/_for_tid/only_makes_one_request.yml
335
+ - spec/support/vcr_cassettes/Ratis_ItinTrace/_for_tid/pairs_up_map_extents_lat/lngs.yml
336
+ - spec/support/vcr_cassettes/Ratis_ItinTrace/_for_tid/wraps_legs_in_a_Hashie_Mash.yml
332
337
  - spec/support/vcr_cassettes/Ratis_Landmark/_where/only_makes_one_request.yml
333
338
  - spec/support/vcr_cassettes/Ratis_Landmark/_where/parses_out_the_landmark_fields_correctly.yml
334
339
  - spec/support/vcr_cassettes/Ratis_Landmark/_where/returns_multiple_landmarks.yml
@@ -361,6 +366,7 @@ files:
361
366
  - spec/support/vcr_cassettes/Ratis_Pattern/_all/should_return_no_data_error_when_date_is_in_the_past.yml
362
367
  - spec/support/vcr_cassettes/Ratis_Plantrip/_where/creates_Ratis_Itineraries_for_each_trip_itinerary.yml
363
368
  - spec/support/vcr_cassettes/Ratis_Plantrip/_where/only_makes_one_request.yml
369
+ - spec/support/vcr_cassettes/Ratis_Plantrip/_where/passes_a_Tid_through.yml
364
370
  - spec/support/vcr_cassettes/Ratis_Plantrip/_where/returns_a_Plantrip_object.yml
365
371
  - spec/support/vcr_cassettes/Ratis_Plantrip/_where/should_set_all_the_Plantrip_values_to_instance_vars.yml
366
372
  - spec/support/vcr_cassettes/Ratis_Point2Point/Routesonly_N/_where/gets_the_groups.yml