global_weather 0.0.1

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.
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://www.webservicex.net/globalweather.asmx
6
+ body:
7
+ encoding: US-ASCII
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:tns="http://www.webserviceX.NET"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:GetWeather><tns:CountryName>Blah</tns:CountryName><tns:CityName>Blah</tns:CityName></tns:GetWeather></env:Body></env:Envelope>
11
+ headers:
12
+ Soapaction:
13
+ - ! '"http://www.webserviceX.NET/GetWeather"'
14
+ Content-Type:
15
+ - text/xml;charset=UTF-8
16
+ Content-Length:
17
+ - '385'
18
+ Accept:
19
+ - ! '*/*'
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Cache-Control:
28
+ - private, max-age=0
29
+ Content-Length:
30
+ - '373'
31
+ Content-Type:
32
+ - text/xml; charset=utf-8
33
+ Server:
34
+ - Microsoft-IIS/7.0
35
+ X-Aspnet-Version:
36
+ - 4.0.30319
37
+ X-Powered-By:
38
+ - ASP.NET
39
+ Date:
40
+ - Sun, 25 Aug 2013 03:53:40 GMT
41
+ body:
42
+ encoding: US-ASCII
43
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
44
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetWeatherResponse
45
+ xmlns="http://www.webserviceX.NET"><GetWeatherResult>Data Not Found</GetWeatherResult></GetWeatherResponse></soap:Body></soap:Envelope>
46
+ http_version:
47
+ recorded_at: Sun, 25 Aug 2013 03:53:37 GMT
48
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,209 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webserviceX.NET" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
3
+ <wsdl:types>
4
+ <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
5
+ <s:element name="GetWeather">
6
+ <s:complexType>
7
+ <s:sequence>
8
+ <s:element minOccurs="0" maxOccurs="1" name="CityName" type="s:string" />
9
+ <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" />
10
+ </s:sequence>
11
+ </s:complexType>
12
+ </s:element>
13
+ <s:element name="GetWeatherResponse">
14
+ <s:complexType>
15
+ <s:sequence>
16
+ <s:element minOccurs="0" maxOccurs="1" name="GetWeatherResult" type="s:string" />
17
+ </s:sequence>
18
+ </s:complexType>
19
+ </s:element>
20
+ <s:element name="GetCitiesByCountry">
21
+ <s:complexType>
22
+ <s:sequence>
23
+ <s:element minOccurs="0" maxOccurs="1" name="CountryName" type="s:string" />
24
+ </s:sequence>
25
+ </s:complexType>
26
+ </s:element>
27
+ <s:element name="GetCitiesByCountryResponse">
28
+ <s:complexType>
29
+ <s:sequence>
30
+ <s:element minOccurs="0" maxOccurs="1" name="GetCitiesByCountryResult" type="s:string" />
31
+ </s:sequence>
32
+ </s:complexType>
33
+ </s:element>
34
+ <s:element name="string" nillable="true" type="s:string" />
35
+ </s:schema>
36
+ </wsdl:types>
37
+ <wsdl:message name="GetWeatherSoapIn">
38
+ <wsdl:part name="parameters" element="tns:GetWeather" />
39
+ </wsdl:message>
40
+ <wsdl:message name="GetWeatherSoapOut">
41
+ <wsdl:part name="parameters" element="tns:GetWeatherResponse" />
42
+ </wsdl:message>
43
+ <wsdl:message name="GetCitiesByCountrySoapIn">
44
+ <wsdl:part name="parameters" element="tns:GetCitiesByCountry" />
45
+ </wsdl:message>
46
+ <wsdl:message name="GetCitiesByCountrySoapOut">
47
+ <wsdl:part name="parameters" element="tns:GetCitiesByCountryResponse" />
48
+ </wsdl:message>
49
+ <wsdl:message name="GetWeatherHttpGetIn">
50
+ <wsdl:part name="CityName" type="s:string" />
51
+ <wsdl:part name="CountryName" type="s:string" />
52
+ </wsdl:message>
53
+ <wsdl:message name="GetWeatherHttpGetOut">
54
+ <wsdl:part name="Body" element="tns:string" />
55
+ </wsdl:message>
56
+ <wsdl:message name="GetCitiesByCountryHttpGetIn">
57
+ <wsdl:part name="CountryName" type="s:string" />
58
+ </wsdl:message>
59
+ <wsdl:message name="GetCitiesByCountryHttpGetOut">
60
+ <wsdl:part name="Body" element="tns:string" />
61
+ </wsdl:message>
62
+ <wsdl:message name="GetWeatherHttpPostIn">
63
+ <wsdl:part name="CityName" type="s:string" />
64
+ <wsdl:part name="CountryName" type="s:string" />
65
+ </wsdl:message>
66
+ <wsdl:message name="GetWeatherHttpPostOut">
67
+ <wsdl:part name="Body" element="tns:string" />
68
+ </wsdl:message>
69
+ <wsdl:message name="GetCitiesByCountryHttpPostIn">
70
+ <wsdl:part name="CountryName" type="s:string" />
71
+ </wsdl:message>
72
+ <wsdl:message name="GetCitiesByCountryHttpPostOut">
73
+ <wsdl:part name="Body" element="tns:string" />
74
+ </wsdl:message>
75
+ <wsdl:portType name="GlobalWeatherSoap">
76
+ <wsdl:operation name="GetWeather">
77
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
78
+ <wsdl:input message="tns:GetWeatherSoapIn" />
79
+ <wsdl:output message="tns:GetWeatherSoapOut" />
80
+ </wsdl:operation>
81
+ <wsdl:operation name="GetCitiesByCountry">
82
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
83
+ <wsdl:input message="tns:GetCitiesByCountrySoapIn" />
84
+ <wsdl:output message="tns:GetCitiesByCountrySoapOut" />
85
+ </wsdl:operation>
86
+ </wsdl:portType>
87
+ <wsdl:portType name="GlobalWeatherHttpGet">
88
+ <wsdl:operation name="GetWeather">
89
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
90
+ <wsdl:input message="tns:GetWeatherHttpGetIn" />
91
+ <wsdl:output message="tns:GetWeatherHttpGetOut" />
92
+ </wsdl:operation>
93
+ <wsdl:operation name="GetCitiesByCountry">
94
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
95
+ <wsdl:input message="tns:GetCitiesByCountryHttpGetIn" />
96
+ <wsdl:output message="tns:GetCitiesByCountryHttpGetOut" />
97
+ </wsdl:operation>
98
+ </wsdl:portType>
99
+ <wsdl:portType name="GlobalWeatherHttpPost">
100
+ <wsdl:operation name="GetWeather">
101
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get weather report for all major cities around the world.</wsdl:documentation>
102
+ <wsdl:input message="tns:GetWeatherHttpPostIn" />
103
+ <wsdl:output message="tns:GetWeatherHttpPostOut" />
104
+ </wsdl:operation>
105
+ <wsdl:operation name="GetCitiesByCountry">
106
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get all major cities by country name(full / part).</wsdl:documentation>
107
+ <wsdl:input message="tns:GetCitiesByCountryHttpPostIn" />
108
+ <wsdl:output message="tns:GetCitiesByCountryHttpPostOut" />
109
+ </wsdl:operation>
110
+ </wsdl:portType>
111
+ <wsdl:binding name="GlobalWeatherSoap" type="tns:GlobalWeatherSoap">
112
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
113
+ <wsdl:operation name="GetWeather">
114
+ <soap:operation soapAction="http://www.webserviceX.NET/GetWeather" style="document" />
115
+ <wsdl:input>
116
+ <soap:body use="literal" />
117
+ </wsdl:input>
118
+ <wsdl:output>
119
+ <soap:body use="literal" />
120
+ </wsdl:output>
121
+ </wsdl:operation>
122
+ <wsdl:operation name="GetCitiesByCountry">
123
+ <soap:operation soapAction="http://www.webserviceX.NET/GetCitiesByCountry" style="document" />
124
+ <wsdl:input>
125
+ <soap:body use="literal" />
126
+ </wsdl:input>
127
+ <wsdl:output>
128
+ <soap:body use="literal" />
129
+ </wsdl:output>
130
+ </wsdl:operation>
131
+ </wsdl:binding>
132
+ <wsdl:binding name="GlobalWeatherSoap12" type="tns:GlobalWeatherSoap">
133
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
134
+ <wsdl:operation name="GetWeather">
135
+ <soap12:operation soapAction="http://www.webserviceX.NET/GetWeather" style="document" />
136
+ <wsdl:input>
137
+ <soap12:body use="literal" />
138
+ </wsdl:input>
139
+ <wsdl:output>
140
+ <soap12:body use="literal" />
141
+ </wsdl:output>
142
+ </wsdl:operation>
143
+ <wsdl:operation name="GetCitiesByCountry">
144
+ <soap12:operation soapAction="http://www.webserviceX.NET/GetCitiesByCountry" style="document" />
145
+ <wsdl:input>
146
+ <soap12:body use="literal" />
147
+ </wsdl:input>
148
+ <wsdl:output>
149
+ <soap12:body use="literal" />
150
+ </wsdl:output>
151
+ </wsdl:operation>
152
+ </wsdl:binding>
153
+ <wsdl:binding name="GlobalWeatherHttpGet" type="tns:GlobalWeatherHttpGet">
154
+ <http:binding verb="GET" />
155
+ <wsdl:operation name="GetWeather">
156
+ <http:operation location="/GetWeather" />
157
+ <wsdl:input>
158
+ <http:urlEncoded />
159
+ </wsdl:input>
160
+ <wsdl:output>
161
+ <mime:mimeXml part="Body" />
162
+ </wsdl:output>
163
+ </wsdl:operation>
164
+ <wsdl:operation name="GetCitiesByCountry">
165
+ <http:operation location="/GetCitiesByCountry" />
166
+ <wsdl:input>
167
+ <http:urlEncoded />
168
+ </wsdl:input>
169
+ <wsdl:output>
170
+ <mime:mimeXml part="Body" />
171
+ </wsdl:output>
172
+ </wsdl:operation>
173
+ </wsdl:binding>
174
+ <wsdl:binding name="GlobalWeatherHttpPost" type="tns:GlobalWeatherHttpPost">
175
+ <http:binding verb="POST" />
176
+ <wsdl:operation name="GetWeather">
177
+ <http:operation location="/GetWeather" />
178
+ <wsdl:input>
179
+ <mime:content type="application/x-www-form-urlencoded" />
180
+ </wsdl:input>
181
+ <wsdl:output>
182
+ <mime:mimeXml part="Body" />
183
+ </wsdl:output>
184
+ </wsdl:operation>
185
+ <wsdl:operation name="GetCitiesByCountry">
186
+ <http:operation location="/GetCitiesByCountry" />
187
+ <wsdl:input>
188
+ <mime:content type="application/x-www-form-urlencoded" />
189
+ </wsdl:input>
190
+ <wsdl:output>
191
+ <mime:mimeXml part="Body" />
192
+ </wsdl:output>
193
+ </wsdl:operation>
194
+ </wsdl:binding>
195
+ <wsdl:service name="GlobalWeather">
196
+ <wsdl:port name="GlobalWeatherSoap" binding="tns:GlobalWeatherSoap">
197
+ <soap:address location="http://www.webservicex.net/globalweather.asmx" />
198
+ </wsdl:port>
199
+ <wsdl:port name="GlobalWeatherSoap12" binding="tns:GlobalWeatherSoap12">
200
+ <soap12:address location="http://www.webservicex.net/globalweather.asmx" />
201
+ </wsdl:port>
202
+ <wsdl:port name="GlobalWeatherHttpGet" binding="tns:GlobalWeatherHttpGet">
203
+ <http:address location="http://www.webservicex.net/globalweather.asmx" />
204
+ </wsdl:port>
205
+ <wsdl:port name="GlobalWeatherHttpPost" binding="tns:GlobalWeatherHttpPost">
206
+ <http:address location="http://www.webservicex.net/globalweather.asmx" />
207
+ </wsdl:port>
208
+ </wsdl:service>
209
+ </wsdl:definitions>
metadata ADDED
@@ -0,0 +1,211 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: global_weather
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Eugen Ciur
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-08-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: debugger
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: vcr
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: webmock
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '1.8'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '1.8'
94
+ - !ruby/object:Gem::Dependency
95
+ name: excon
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - '='
100
+ - !ruby/object:Gem::Version
101
+ version: '0.22'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: '0.22'
110
+ - !ruby/object:Gem::Dependency
111
+ name: savon
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '2.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '2.0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: nori
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 2.3.0
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 2.3.0
142
+ description: GlobalWeather SOAP service wrapper
143
+ email:
144
+ - ciur.eugen@gmail.com
145
+ executables: []
146
+ extensions: []
147
+ extra_rdoc_files: []
148
+ files:
149
+ - .gitignore
150
+ - Gemfile
151
+ - LICENSE.txt
152
+ - README.md
153
+ - Rakefile
154
+ - TODO
155
+ - global_weather.gemspec
156
+ - lib/global_weather.rb
157
+ - lib/global_weather/client.rb
158
+ - lib/global_weather/country.rb
159
+ - lib/global_weather/errors.rb
160
+ - lib/global_weather/utils.rb
161
+ - lib/global_weather/version.rb
162
+ - lib/global_weather/weather.rb
163
+ - test/functional/country_functional_test.rb
164
+ - test/functional/weather_functional_test.rb
165
+ - test/test_helper.rb
166
+ - test/unit/utils_test.rb
167
+ - test/unit/weather_test.rb
168
+ - test/vcr/vcr_cassettes/cities_by_country_basic_call.yml
169
+ - test/vcr/vcr_cassettes/cities_by_country_invalid_country.yml
170
+ - test/vcr/vcr_cassettes/get_weather_basic_call.yml
171
+ - test/vcr/vcr_cassettes/get_weather_invalid_1.yml
172
+ - test/vcr/vcr_cassettes/get_weather_invalid_2.yml
173
+ - test/vcr/vcr_cassettes/get_weather_invalid_3.yml
174
+ - wsdl/globalweather.asmx.xml
175
+ homepage: ''
176
+ licenses:
177
+ - MIT or Do whatever you want with this gem!
178
+ post_install_message:
179
+ rdoc_options: []
180
+ require_paths:
181
+ - lib
182
+ required_ruby_version: !ruby/object:Gem::Requirement
183
+ none: false
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ none: false
190
+ requirements:
191
+ - - ! '>='
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ requirements: []
195
+ rubyforge_project:
196
+ rubygems_version: 1.8.25
197
+ signing_key:
198
+ specification_version: 3
199
+ summary: Provides Weather and Country objects to use easy GlobalWeather service
200
+ test_files:
201
+ - test/functional/country_functional_test.rb
202
+ - test/functional/weather_functional_test.rb
203
+ - test/test_helper.rb
204
+ - test/unit/utils_test.rb
205
+ - test/unit/weather_test.rb
206
+ - test/vcr/vcr_cassettes/cities_by_country_basic_call.yml
207
+ - test/vcr/vcr_cassettes/cities_by_country_invalid_country.yml
208
+ - test/vcr/vcr_cassettes/get_weather_basic_call.yml
209
+ - test/vcr/vcr_cassettes/get_weather_invalid_1.yml
210
+ - test/vcr/vcr_cassettes/get_weather_invalid_2.yml
211
+ - test/vcr/vcr_cassettes/get_weather_invalid_3.yml