ratis 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -2
- data/lib/ratis/location_type_ahead.rb +27 -0
- data/lib/ratis/location_type_ahead_item.rb +16 -0
- data/lib/ratis/version.rb +1 -1
- data/spec/ratis/location_type_ahead_item_spec.rb +21 -0
- data/spec/ratis/location_type_ahead_spec.rb +54 -0
- data/spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/only_makes_one_request.yml +54 -0
- data/spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/parses_out_fields_correctly.yml +54 -0
- data/spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/should_return_a_collection_of_Ratis_LocationTypeAheadItem_s_.yml +54 -0
- data/spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/should_return_a_collection_of_Ratis_Location_s_.yml +54 -0
- metadata +9 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbba57710ea09ab0ff391b47e49753d68e564516
|
4
|
+
data.tar.gz: e90b4c54fa10ec5458bc17236f9994a88e8c3791
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 530bc837ea1e99f649f0e57f3466a036e74ccaefac6a1f2191ed28865cbbb13bb7c48c155fbdf5f890ff997398056ad2a3d05f28a46657c55a57134addad422a
|
7
|
+
data.tar.gz: 5db91fb81a2bd8502a1504822207cf152b21449aa74407002c5ba9d2a658072fbe5c9352dfe4edc7a943b052b0ffdbd50fd449d34b72333789abea8a525b0e56
|
data/CHANGELOG
CHANGED
@@ -43,6 +43,9 @@
|
|
43
43
|
- created new empty itinerary_spec as stub
|
44
44
|
- changed walk_spec to walkstop_spec
|
45
45
|
|
46
|
-
3.
|
46
|
+
3.4 (3/11/14)
|
47
47
|
- added location type ahead support
|
48
|
-
- added test spec for location type ahead support
|
48
|
+
- added test spec for location type ahead support
|
49
|
+
|
50
|
+
3.4.1
|
51
|
+
- regeneration of gem to fix missing files
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Ratis
|
2
|
+
|
3
|
+
class LocationTypeAhead
|
4
|
+
|
5
|
+
def self.where(conditions={})
|
6
|
+
search_text = conditions.delete(:search)
|
7
|
+
app_id = conditions.delete(:app_id) || 'WEB'
|
8
|
+
|
9
|
+
raise ArgumentError.new('You must provide some search text') unless search_text
|
10
|
+
|
11
|
+
Ratis.all_conditions_used? conditions
|
12
|
+
|
13
|
+
response = Request.get 'Locationtypeahead', {'Appid' => app_id,
|
14
|
+
'Search' => search_text.downcase}
|
15
|
+
|
16
|
+
return "" unless response.success?
|
17
|
+
|
18
|
+
response_code = response.to_hash[:locationtypeahead_response][:responsecode]
|
19
|
+
locations = response.to_array :locationtypeahead_response, :items, :item
|
20
|
+
|
21
|
+
locations.map do |location_hash|
|
22
|
+
Ratis::LocationTypeAheadItem.new(location_hash.merge(responsecode: response_code))
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Ratis
|
2
|
+
|
3
|
+
class LocationTypeAheadItem
|
4
|
+
|
5
|
+
attr_accessor :name, :area, :areacode, :postcode, :type
|
6
|
+
|
7
|
+
def initialize(params)
|
8
|
+
@name = params[:name]
|
9
|
+
@area = params[:area]
|
10
|
+
@areacode = params[:areacode]
|
11
|
+
@postcode = params[:postcode]
|
12
|
+
@type = params[:type]
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
data/lib/ratis/version.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Ratis::LocationTypeAheadItem do
|
4
|
+
let(:item){ Ratis::LocationTypeAheadItem.new(name: '1315 W STRAFORD DR',
|
5
|
+
area: 'Chandler',
|
6
|
+
areacode: 'CH',
|
7
|
+
postcode: '85224',
|
8
|
+
type: 'N') }
|
9
|
+
|
10
|
+
describe '#initialize' do
|
11
|
+
it "should correct assign instance variables" do
|
12
|
+
expect(item.name).to eq('1315 W STRAFORD DR')
|
13
|
+
expect(item.area).to eq('Chandler')
|
14
|
+
expect(item.areacode).to eq('CH')
|
15
|
+
expect(item.postcode).to eq('85224')
|
16
|
+
expect(item.type).to eq('N')
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Ratis::LocationTypeAhead do
|
4
|
+
before do
|
5
|
+
Ratis.reset
|
6
|
+
Ratis.configure do |config|
|
7
|
+
config.endpoint = 'http://soap.valleymetro.org/cgi-bin-soap-web-262/soap.cgi'
|
8
|
+
config.namespace = 'PX_WEB'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '#where', vcr: {} do
|
13
|
+
before do
|
14
|
+
@conditions = {:search => '1315 w straford dr'}
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'only makes one request' do
|
18
|
+
# false just to stop further processing of response
|
19
|
+
Ratis::Request.should_receive(:get).once.and_call_original
|
20
|
+
Ratis::LocationTypeAhead.where(@conditions.dup)
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'requests the correct SOAP action with correct args' do
|
24
|
+
Ratis::Request.should_receive(:get) do |action, options|
|
25
|
+
action.should eq('Locationtypeahead')
|
26
|
+
options["Search"].should eq('1315 w straford dr')
|
27
|
+
options["Appid"].should eq('WEB') # default
|
28
|
+
|
29
|
+
end.and_return(double('response', :success? => false))
|
30
|
+
|
31
|
+
Ratis::LocationTypeAhead.where(@conditions.dup)
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should return a collection of Ratis::LocationTypeAheadItem(s)' do
|
35
|
+
locations = Ratis::LocationTypeAhead.where(@conditions.dup)
|
36
|
+
locations.each do |obj|
|
37
|
+
expect(obj).to be_a(Ratis::LocationTypeAheadItem)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'parses out fields correctly' do
|
42
|
+
locations = Ratis::LocationTypeAhead.where(@conditions.dup)
|
43
|
+
location = locations.first
|
44
|
+
|
45
|
+
expect(location.name).to eql '1315 W STRAFORD DR'
|
46
|
+
expect(location.area).to eql 'Chandler'
|
47
|
+
expect(location.areacode).to eql 'CH'
|
48
|
+
expect(location.postcode).to eql '85224'
|
49
|
+
expect(location.type).to eql 'N'
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://soap.valleymetro.org/cgi-bin-soap-web-262/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><Locationtypeahead
|
11
|
+
xmlns="PX_WEB"><Appid>WEB</Appid><Search>1315 w straford dr</Search></Locationtypeahead></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
Soapaction:
|
14
|
+
- '"PX_WEB#Locationtypeahead"'
|
15
|
+
Content-Type:
|
16
|
+
- text/xml;charset=UTF-8
|
17
|
+
Content-Length:
|
18
|
+
- '368'
|
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: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Date:
|
31
|
+
- Tue, 11 Mar 2014 23:50:51 GMT
|
32
|
+
Server:
|
33
|
+
- Apache/2.2.3 (CentOS)
|
34
|
+
Soapserver:
|
35
|
+
- SOAP::Lite/Perl/0.55
|
36
|
+
Content-Length:
|
37
|
+
- '1115'
|
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:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
|
45
|
+
xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
|
46
|
+
xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:LocationtypeaheadResponse
|
47
|
+
xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.0</Version>\n\t<Items>\n\t\t<Item>\n\t\t\t<Name>1315
|
48
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85224</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t\t<Item>\n\t\t\t<Name>1315
|
49
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85225</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t</Items>\n\t<Requestor>68.226.126.17</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
|
50
|
+
schema Copyright (c) 2003-2013 Trapeze Software ULC, its subsidiaries and
|
51
|
+
affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.6.3 - 11/14/13</Soapversion>\n</namesp1:LocationtypeaheadResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
52
|
+
http_version:
|
53
|
+
recorded_at: Tue, 11 Mar 2014 23:50:52 GMT
|
54
|
+
recorded_with: VCR 2.8.0
|
data/spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/parses_out_fields_correctly.yml
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://soap.valleymetro.org/cgi-bin-soap-web-262/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><Locationtypeahead
|
11
|
+
xmlns="PX_WEB"><Appid>WEB</Appid><Search>1315 w straford dr</Search></Locationtypeahead></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
Soapaction:
|
14
|
+
- '"PX_WEB#Locationtypeahead"'
|
15
|
+
Content-Type:
|
16
|
+
- text/xml;charset=UTF-8
|
17
|
+
Content-Length:
|
18
|
+
- '368'
|
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: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Date:
|
31
|
+
- Tue, 11 Mar 2014 23:50:51 GMT
|
32
|
+
Server:
|
33
|
+
- Apache/2.2.3 (CentOS)
|
34
|
+
Soapserver:
|
35
|
+
- SOAP::Lite/Perl/0.55
|
36
|
+
Content-Length:
|
37
|
+
- '1115'
|
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:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
|
45
|
+
xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
|
46
|
+
xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:LocationtypeaheadResponse
|
47
|
+
xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.0</Version>\n\t<Items>\n\t\t<Item>\n\t\t\t<Name>1315
|
48
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85224</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t\t<Item>\n\t\t\t<Name>1315
|
49
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85225</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t</Items>\n\t<Requestor>68.226.126.17</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
|
50
|
+
schema Copyright (c) 2003-2013 Trapeze Software ULC, its subsidiaries and
|
51
|
+
affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.6.3 - 11/14/13</Soapversion>\n</namesp1:LocationtypeaheadResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
52
|
+
http_version:
|
53
|
+
recorded_at: Tue, 11 Mar 2014 23:50:52 GMT
|
54
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://soap.valleymetro.org/cgi-bin-soap-web-262/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><Locationtypeahead
|
11
|
+
xmlns="PX_WEB"><Appid>WEB</Appid><Search>1315 w straford dr</Search></Locationtypeahead></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
Soapaction:
|
14
|
+
- '"PX_WEB#Locationtypeahead"'
|
15
|
+
Content-Type:
|
16
|
+
- text/xml;charset=UTF-8
|
17
|
+
Content-Length:
|
18
|
+
- '368'
|
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: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Date:
|
31
|
+
- Tue, 11 Mar 2014 23:58:35 GMT
|
32
|
+
Server:
|
33
|
+
- Apache/2.2.3 (CentOS)
|
34
|
+
Soapserver:
|
35
|
+
- SOAP::Lite/Perl/0.55
|
36
|
+
Content-Length:
|
37
|
+
- '1115'
|
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:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
|
45
|
+
xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
|
46
|
+
xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:LocationtypeaheadResponse
|
47
|
+
xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.0</Version>\n\t<Items>\n\t\t<Item>\n\t\t\t<Name>1315
|
48
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85224</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t\t<Item>\n\t\t\t<Name>1315
|
49
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85225</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t</Items>\n\t<Requestor>68.226.126.17</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
|
50
|
+
schema Copyright (c) 2003-2013 Trapeze Software ULC, its subsidiaries and
|
51
|
+
affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.6.3 - 11/14/13</Soapversion>\n</namesp1:LocationtypeaheadResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
52
|
+
http_version:
|
53
|
+
recorded_at: Tue, 11 Mar 2014 23:58:36 GMT
|
54
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://soap.valleymetro.org/cgi-bin-soap-web-262/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><Locationtypeahead
|
11
|
+
xmlns="PX_WEB"><Appid>WEB</Appid><Search>1315 w straford dr</Search></Locationtypeahead></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
Soapaction:
|
14
|
+
- '"PX_WEB#Locationtypeahead"'
|
15
|
+
Content-Type:
|
16
|
+
- text/xml;charset=UTF-8
|
17
|
+
Content-Length:
|
18
|
+
- '368'
|
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: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Date:
|
31
|
+
- Tue, 11 Mar 2014 23:50:51 GMT
|
32
|
+
Server:
|
33
|
+
- Apache/2.2.3 (CentOS)
|
34
|
+
Soapserver:
|
35
|
+
- SOAP::Lite/Perl/0.55
|
36
|
+
Content-Length:
|
37
|
+
- '1115'
|
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:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"
|
45
|
+
xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
|
46
|
+
xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body><namesp1:LocationtypeaheadResponse
|
47
|
+
xmlns:namesp1=\"PX_WEB\">\n\t<Responsecode>0</Responsecode>\n\t<Version>1.0</Version>\n\t<Items>\n\t\t<Item>\n\t\t\t<Name>1315
|
48
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85224</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t\t<Item>\n\t\t\t<Name>1315
|
49
|
+
W STRAFORD DR</Name>\n\t\t\t<Area>Chandler</Area>\n\t\t\t<Areacode>CH</Areacode>\n\t\t\t<Postcode>85225</Postcode>\n\t\t\t<Type>N</Type>\n\t\t</Item>\n\t</Items>\n\t<Requestor>68.226.126.17</Requestor>\n\t<Host>s-rpta-soap</Host>\n\t<Copyright>XML
|
50
|
+
schema Copyright (c) 2003-2013 Trapeze Software ULC, its subsidiaries and
|
51
|
+
affiliates. All rights reserved.</Copyright>\n\t<Soapversion>2.6.3 - 11/14/13</Soapversion>\n</namesp1:LocationtypeaheadResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>"
|
52
|
+
http_version:
|
53
|
+
recorded_at: Tue, 11 Mar 2014 23:50:52 GMT
|
54
|
+
recorded_with: VCR 2.8.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ratis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burst Software
|
@@ -231,6 +231,8 @@ files:
|
|
231
231
|
- lib/ratis/landmark.rb
|
232
232
|
- lib/ratis/landmark_category.rb
|
233
233
|
- lib/ratis/location.rb
|
234
|
+
- lib/ratis/location_type_ahead.rb
|
235
|
+
- lib/ratis/location_type_ahead_item.rb
|
234
236
|
- lib/ratis/next_bus.rb
|
235
237
|
- lib/ratis/next_bus2.rb
|
236
238
|
- lib/ratis/pattern.rb
|
@@ -267,6 +269,8 @@ files:
|
|
267
269
|
- spec/ratis/landmark_category_spec.rb
|
268
270
|
- spec/ratis/landmark_spec.rb
|
269
271
|
- spec/ratis/location_spec.rb
|
272
|
+
- spec/ratis/location_type_ahead_item_spec.rb
|
273
|
+
- spec/ratis/location_type_ahead_spec.rb
|
270
274
|
- spec/ratis/next_bus2_spec.rb
|
271
275
|
- spec/ratis/next_bus_spec.rb
|
272
276
|
- spec/ratis/pattern_spec.rb
|
@@ -297,6 +301,10 @@ files:
|
|
297
301
|
- spec/support/vcr_cassettes/Ratis_Location/_where/only_makes_one_request.yml
|
298
302
|
- spec/support/vcr_cassettes/Ratis_Location/_where/parses_out_fields_correctly.yml
|
299
303
|
- spec/support/vcr_cassettes/Ratis_Location/_where/should_return_a_collection_of_Ratis_Location_s_.yml
|
304
|
+
- spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/only_makes_one_request.yml
|
305
|
+
- spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/parses_out_fields_correctly.yml
|
306
|
+
- spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/should_return_a_collection_of_Ratis_LocationTypeAheadItem_s_.yml
|
307
|
+
- spec/support/vcr_cassettes/Ratis_LocationTypeAhead/_where/should_return_a_collection_of_Ratis_Location_s_.yml
|
300
308
|
- spec/support/vcr_cassettes/Ratis_NextBus/_where/multiple_services_returned/only_makes_one_request.yml
|
301
309
|
- spec/support/vcr_cassettes/Ratis_NextBus/_where/multiple_services_returned/returns_the_next_4_bus_times.yml
|
302
310
|
- spec/support/vcr_cassettes/Ratis_NextBus/_where/multiple_services_returned/should_map_all_the_services_to_service_openstruct_objects.yml
|