periodic_table 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/periodic_table/periodic_table_api.rb +3 -5
- data/lib/periodic_table/version.rb +1 -1
- data/spec/support/cassettes/periodic_table.yml +243 -217
- metadata +35 -22
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDc2MmE2YzZlZDljMjM2MTMyNGE0ZjdiZWY3NmU4YjgzZjhkODNiMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MzUzMWIwZmUxN2EwZDAwYjc3YzNmNzM3YWU5NzFiZjVmYWFjNmJiZg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWQyNThkODdiNTViYWQ0NWZmMjdhYWI1MTc1ZGUyYWQzY2U2MGE1OWI5YmY5
|
10
|
+
ZTI0MzBlYjc1NWI2Yzg3ODM5NTZmMzMzOWVkNmZhOWE0ODc4MjA4NTk1ODJm
|
11
|
+
MGI1NDU1ZmM2OGJhNThlYzAwODgzZDNiYTUyNThhNzUzNjRlZTU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NGFlMWE3N2M3MThlZTk2OWRiNGFhOGE3NjJlOTBiZTUxZGIwNGFiMzg0MzAy
|
14
|
+
ZjNiZjcxMjRhODRiOTU2MjdhOTM4NmZmZjUyM2VmNDMxMDM0ZjQ1YjEyNDAx
|
15
|
+
Nzg0ZjE1NzlhZWM5NTk4Njg0NDVkNjYxN2IwN2Q1NzY1Zjc3MjM=
|
@@ -3,15 +3,13 @@ require 'savon'
|
|
3
3
|
module PeriodicTable
|
4
4
|
class PeriodicTableApi
|
5
5
|
def initialize
|
6
|
-
@client = Savon
|
7
|
-
wsdl
|
6
|
+
@client = Savon.client do
|
7
|
+
wsdl 'http://www.webservicex.net/periodictable.asmx?WSDL'
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
11
|
def query(element_name)
|
12
|
-
api_response = @client.
|
13
|
-
soap.body = {'ElementName' => element_name}
|
14
|
-
end
|
12
|
+
api_response = @client.call :get_atomic_number, :message => {'ElementName' => element_name}
|
15
13
|
result = api_response.to_hash[:get_atomic_number_response][:get_atomic_number_result]
|
16
14
|
ApiResponse.new(result)
|
17
15
|
end
|
@@ -1,12 +1,18 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: http://www.webservicex.net
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.webservicex.net/periodictable.asmx?WSDL
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
10
16
|
code: 200
|
11
17
|
message: OK
|
12
18
|
headers:
|
@@ -23,212 +29,228 @@
|
|
23
29
|
x-powered-by:
|
24
30
|
- ASP.NET
|
25
31
|
date:
|
26
|
-
- Thu,
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
\
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
\
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
\
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
\
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
\
|
207
|
-
\
|
208
|
-
|
209
|
-
\
|
210
|
-
|
211
|
-
\
|
212
|
-
|
213
|
-
\
|
214
|
-
|
32
|
+
- Thu, 14 Aug 2014 16:58:00 GMT
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\"
|
36
|
+
xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\"
|
37
|
+
xmlns:tns=\"http://www.webserviceX.NET\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
|
38
|
+
xmlns:s=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\"
|
39
|
+
xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" targetNamespace=\"http://www.webserviceX.NET\"
|
40
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
|
41
|
+
elementFormDefault=\"qualified\" targetNamespace=\"http://www.webserviceX.NET\">\r\n
|
42
|
+
\ <s:element name=\"GetAtoms\">\r\n <s:complexType />\r\n </s:element>\r\n
|
43
|
+
\ <s:element name=\"GetAtomsResponse\">\r\n <s:complexType>\r\n
|
44
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
45
|
+
name=\"GetAtomsResult\" type=\"s:string\" />\r\n </s:sequence>\r\n
|
46
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"GetAtomicWeight\">\r\n
|
47
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
48
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"ElementName\" type=\"s:string\" />\r\n
|
49
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
50
|
+
\ <s:element name=\"GetAtomicWeightResponse\">\r\n <s:complexType>\r\n
|
51
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
52
|
+
name=\"GetAtomicWeightResult\" type=\"s:string\" />\r\n </s:sequence>\r\n
|
53
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"GetAtomicNumber\">\r\n
|
54
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
55
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"ElementName\" type=\"s:string\" />\r\n
|
56
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
57
|
+
\ <s:element name=\"GetAtomicNumberResponse\">\r\n <s:complexType>\r\n
|
58
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
59
|
+
name=\"GetAtomicNumberResult\" type=\"s:string\" />\r\n </s:sequence>\r\n
|
60
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"GetElementSymbol\">\r\n
|
61
|
+
\ <s:complexType>\r\n <s:sequence>\r\n <s:element
|
62
|
+
minOccurs=\"0\" maxOccurs=\"1\" name=\"ElementName\" type=\"s:string\" />\r\n
|
63
|
+
\ </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
|
64
|
+
\ <s:element name=\"GetElementSymbolResponse\">\r\n <s:complexType>\r\n
|
65
|
+
\ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
|
66
|
+
name=\"GetElementSymbolResult\" type=\"s:string\" />\r\n </s:sequence>\r\n
|
67
|
+
\ </s:complexType>\r\n </s:element>\r\n <s:element name=\"string\"
|
68
|
+
nillable=\"true\" type=\"s:string\" />\r\n </s:schema>\r\n </wsdl:types>\r\n
|
69
|
+
\ <wsdl:message name=\"GetAtomsSoapIn\">\r\n <wsdl:part name=\"parameters\"
|
70
|
+
element=\"tns:GetAtoms\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomsSoapOut\">\r\n
|
71
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:GetAtomsResponse\" />\r\n
|
72
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"GetAtomicWeightSoapIn\">\r\n <wsdl:part
|
73
|
+
name=\"parameters\" element=\"tns:GetAtomicWeight\" />\r\n </wsdl:message>\r\n
|
74
|
+
\ <wsdl:message name=\"GetAtomicWeightSoapOut\">\r\n <wsdl:part name=\"parameters\"
|
75
|
+
element=\"tns:GetAtomicWeightResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
|
76
|
+
name=\"GetAtomicNumberSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:GetAtomicNumber\"
|
77
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomicNumberSoapOut\">\r\n
|
78
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:GetAtomicNumberResponse\"
|
79
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"GetElementSymbolSoapIn\">\r\n
|
80
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:GetElementSymbol\" />\r\n
|
81
|
+
\ </wsdl:message>\r\n <wsdl:message name=\"GetElementSymbolSoapOut\">\r\n
|
82
|
+
\ <wsdl:part name=\"parameters\" element=\"tns:GetElementSymbolResponse\"
|
83
|
+
/>\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomsHttpGetIn\" />\r\n
|
84
|
+
\ <wsdl:message name=\"GetAtomsHttpGetOut\">\r\n <wsdl:part name=\"Body\"
|
85
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomicWeightHttpGetIn\">\r\n
|
86
|
+
\ <wsdl:part name=\"ElementName\" type=\"s:string\" />\r\n </wsdl:message>\r\n
|
87
|
+
\ <wsdl:message name=\"GetAtomicWeightHttpGetOut\">\r\n <wsdl:part name=\"Body\"
|
88
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomicNumberHttpGetIn\">\r\n
|
89
|
+
\ <wsdl:part name=\"ElementName\" type=\"s:string\" />\r\n </wsdl:message>\r\n
|
90
|
+
\ <wsdl:message name=\"GetAtomicNumberHttpGetOut\">\r\n <wsdl:part name=\"Body\"
|
91
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetElementSymbolHttpGetIn\">\r\n
|
92
|
+
\ <wsdl:part name=\"ElementName\" type=\"s:string\" />\r\n </wsdl:message>\r\n
|
93
|
+
\ <wsdl:message name=\"GetElementSymbolHttpGetOut\">\r\n <wsdl:part name=\"Body\"
|
94
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomsHttpPostIn\"
|
95
|
+
/>\r\n <wsdl:message name=\"GetAtomsHttpPostOut\">\r\n <wsdl:part name=\"Body\"
|
96
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomicWeightHttpPostIn\">\r\n
|
97
|
+
\ <wsdl:part name=\"ElementName\" type=\"s:string\" />\r\n </wsdl:message>\r\n
|
98
|
+
\ <wsdl:message name=\"GetAtomicWeightHttpPostOut\">\r\n <wsdl:part name=\"Body\"
|
99
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetAtomicNumberHttpPostIn\">\r\n
|
100
|
+
\ <wsdl:part name=\"ElementName\" type=\"s:string\" />\r\n </wsdl:message>\r\n
|
101
|
+
\ <wsdl:message name=\"GetAtomicNumberHttpPostOut\">\r\n <wsdl:part name=\"Body\"
|
102
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:message name=\"GetElementSymbolHttpPostIn\">\r\n
|
103
|
+
\ <wsdl:part name=\"ElementName\" type=\"s:string\" />\r\n </wsdl:message>\r\n
|
104
|
+
\ <wsdl:message name=\"GetElementSymbolHttpPostOut\">\r\n <wsdl:part name=\"Body\"
|
105
|
+
element=\"tns:string\" />\r\n </wsdl:message>\r\n <wsdl:portType name=\"periodictableSoap\">\r\n
|
106
|
+
\ <wsdl:operation name=\"GetAtoms\">\r\n <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get
|
107
|
+
element </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomsSoapIn\"
|
108
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomsSoapOut\" />\r\n </wsdl:operation>\r\n
|
109
|
+
\ <wsdl:operation name=\"GetAtomicWeight\">\r\n <wsdl:documentation
|
110
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get atomic wieght by element
|
111
|
+
name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomicWeightSoapIn\"
|
112
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomicWeightSoapOut\" />\r\n </wsdl:operation>\r\n
|
113
|
+
\ <wsdl:operation name=\"GetAtomicNumber\">\r\n <wsdl:documentation
|
114
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get atomic Number by element
|
115
|
+
name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomicNumberSoapIn\"
|
116
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomicNumberSoapOut\" />\r\n </wsdl:operation>\r\n
|
117
|
+
\ <wsdl:operation name=\"GetElementSymbol\">\r\n <wsdl:documentation
|
118
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get atomic symbol by element
|
119
|
+
name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetElementSymbolSoapIn\"
|
120
|
+
/>\r\n <wsdl:output message=\"tns:GetElementSymbolSoapOut\" />\r\n </wsdl:operation>\r\n
|
121
|
+
\ </wsdl:portType>\r\n <wsdl:portType name=\"periodictableHttpGet\">\r\n
|
122
|
+
\ <wsdl:operation name=\"GetAtoms\">\r\n <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get
|
123
|
+
element </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomsHttpGetIn\"
|
124
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomsHttpGetOut\" />\r\n </wsdl:operation>\r\n
|
125
|
+
\ <wsdl:operation name=\"GetAtomicWeight\">\r\n <wsdl:documentation
|
126
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get atomic wieght by element
|
127
|
+
name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomicWeightHttpGetIn\"
|
128
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomicWeightHttpGetOut\" />\r\n
|
129
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"GetAtomicNumber\">\r\n
|
130
|
+
\ <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get
|
131
|
+
atomic Number by element name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomicNumberHttpGetIn\"
|
132
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomicNumberHttpGetOut\" />\r\n
|
133
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"GetElementSymbol\">\r\n
|
134
|
+
\ <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get
|
135
|
+
atomic symbol by element name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetElementSymbolHttpGetIn\"
|
136
|
+
/>\r\n <wsdl:output message=\"tns:GetElementSymbolHttpGetOut\" />\r\n
|
137
|
+
\ </wsdl:operation>\r\n </wsdl:portType>\r\n <wsdl:portType name=\"periodictableHttpPost\">\r\n
|
138
|
+
\ <wsdl:operation name=\"GetAtoms\">\r\n <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get
|
139
|
+
element </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomsHttpPostIn\"
|
140
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomsHttpPostOut\" />\r\n </wsdl:operation>\r\n
|
141
|
+
\ <wsdl:operation name=\"GetAtomicWeight\">\r\n <wsdl:documentation
|
142
|
+
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get atomic wieght by element
|
143
|
+
name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomicWeightHttpPostIn\"
|
144
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomicWeightHttpPostOut\" />\r\n
|
145
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"GetAtomicNumber\">\r\n
|
146
|
+
\ <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get
|
147
|
+
atomic Number by element name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetAtomicNumberHttpPostIn\"
|
148
|
+
/>\r\n <wsdl:output message=\"tns:GetAtomicNumberHttpPostOut\" />\r\n
|
149
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"GetElementSymbol\">\r\n
|
150
|
+
\ <wsdl:documentation xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">Get
|
151
|
+
atomic symbol by element name </wsdl:documentation>\r\n <wsdl:input message=\"tns:GetElementSymbolHttpPostIn\"
|
152
|
+
/>\r\n <wsdl:output message=\"tns:GetElementSymbolHttpPostOut\" />\r\n
|
153
|
+
\ </wsdl:operation>\r\n </wsdl:portType>\r\n <wsdl:binding name=\"periodictableSoap\"
|
154
|
+
type=\"tns:periodictableSoap\">\r\n <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\"
|
155
|
+
/>\r\n <wsdl:operation name=\"GetAtoms\">\r\n <soap:operation soapAction=\"http://www.webserviceX.NET/GetAtoms\"
|
156
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
157
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
158
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
159
|
+
name=\"GetAtomicWeight\">\r\n <soap:operation soapAction=\"http://www.webserviceX.NET/GetAtomicWeight\"
|
160
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
161
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
162
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
163
|
+
name=\"GetAtomicNumber\">\r\n <soap:operation soapAction=\"http://www.webserviceX.NET/GetAtomicNumber\"
|
164
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
165
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
166
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
167
|
+
name=\"GetElementSymbol\">\r\n <soap:operation soapAction=\"http://www.webserviceX.NET/GetElementSymbol\"
|
168
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
|
169
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body use=\"literal\"
|
170
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
|
171
|
+
\ <wsdl:binding name=\"periodictableSoap12\" type=\"tns:periodictableSoap\">\r\n
|
172
|
+
\ <soap12:binding transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n
|
173
|
+
\ <wsdl:operation name=\"GetAtoms\">\r\n <soap12:operation soapAction=\"http://www.webserviceX.NET/GetAtoms\"
|
174
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
175
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
176
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
177
|
+
name=\"GetAtomicWeight\">\r\n <soap12:operation soapAction=\"http://www.webserviceX.NET/GetAtomicWeight\"
|
178
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
179
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
180
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
181
|
+
name=\"GetAtomicNumber\">\r\n <soap12:operation soapAction=\"http://www.webserviceX.NET/GetAtomicNumber\"
|
182
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
183
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
184
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
185
|
+
name=\"GetElementSymbol\">\r\n <soap12:operation soapAction=\"http://www.webserviceX.NET/GetElementSymbol\"
|
186
|
+
style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
|
187
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body use=\"literal\"
|
188
|
+
/>\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
|
189
|
+
\ <wsdl:binding name=\"periodictableHttpGet\" type=\"tns:periodictableHttpGet\">\r\n
|
190
|
+
\ <http:binding verb=\"GET\" />\r\n <wsdl:operation name=\"GetAtoms\">\r\n
|
191
|
+
\ <http:operation location=\"/GetAtoms\" />\r\n <wsdl:input>\r\n
|
192
|
+
\ <http:urlEncoded />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
|
193
|
+
\ <mime:mimeXml part=\"Body\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
|
194
|
+
\ <wsdl:operation name=\"GetAtomicWeight\">\r\n <http:operation location=\"/GetAtomicWeight\"
|
195
|
+
/>\r\n <wsdl:input>\r\n <http:urlEncoded />\r\n </wsdl:input>\r\n
|
196
|
+
\ <wsdl:output>\r\n <mime:mimeXml part=\"Body\" />\r\n </wsdl:output>\r\n
|
197
|
+
\ </wsdl:operation>\r\n <wsdl:operation name=\"GetAtomicNumber\">\r\n
|
198
|
+
\ <http:operation location=\"/GetAtomicNumber\" />\r\n <wsdl:input>\r\n
|
199
|
+
\ <http:urlEncoded />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
|
200
|
+
\ <mime:mimeXml part=\"Body\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
|
201
|
+
\ <wsdl:operation name=\"GetElementSymbol\">\r\n <http:operation location=\"/GetElementSymbol\"
|
202
|
+
/>\r\n <wsdl:input>\r\n <http:urlEncoded />\r\n </wsdl:input>\r\n
|
203
|
+
\ <wsdl:output>\r\n <mime:mimeXml part=\"Body\" />\r\n </wsdl:output>\r\n
|
204
|
+
\ </wsdl:operation>\r\n </wsdl:binding>\r\n <wsdl:binding name=\"periodictableHttpPost\"
|
205
|
+
type=\"tns:periodictableHttpPost\">\r\n <http:binding verb=\"POST\" />\r\n
|
206
|
+
\ <wsdl:operation name=\"GetAtoms\">\r\n <http:operation location=\"/GetAtoms\"
|
207
|
+
/>\r\n <wsdl:input>\r\n <mime:content type=\"application/x-www-form-urlencoded\"
|
208
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <mime:mimeXml
|
209
|
+
part=\"Body\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
210
|
+
name=\"GetAtomicWeight\">\r\n <http:operation location=\"/GetAtomicWeight\"
|
211
|
+
/>\r\n <wsdl:input>\r\n <mime:content type=\"application/x-www-form-urlencoded\"
|
212
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <mime:mimeXml
|
213
|
+
part=\"Body\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
214
|
+
name=\"GetAtomicNumber\">\r\n <http:operation location=\"/GetAtomicNumber\"
|
215
|
+
/>\r\n <wsdl:input>\r\n <mime:content type=\"application/x-www-form-urlencoded\"
|
216
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <mime:mimeXml
|
217
|
+
part=\"Body\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
|
218
|
+
name=\"GetElementSymbol\">\r\n <http:operation location=\"/GetElementSymbol\"
|
219
|
+
/>\r\n <wsdl:input>\r\n <mime:content type=\"application/x-www-form-urlencoded\"
|
220
|
+
/>\r\n </wsdl:input>\r\n <wsdl:output>\r\n <mime:mimeXml
|
221
|
+
part=\"Body\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
|
222
|
+
\ <wsdl:service name=\"periodictable\">\r\n <wsdl:port name=\"periodictableSoap\"
|
223
|
+
binding=\"tns:periodictableSoap\">\r\n <soap:address location=\"http://www.webservicex.net/periodictable.asmx\"
|
224
|
+
/>\r\n </wsdl:port>\r\n <wsdl:port name=\"periodictableSoap12\" binding=\"tns:periodictableSoap12\">\r\n
|
225
|
+
\ <soap12:address location=\"http://www.webservicex.net/periodictable.asmx\"
|
226
|
+
/>\r\n </wsdl:port>\r\n <wsdl:port name=\"periodictableHttpGet\" binding=\"tns:periodictableHttpGet\">\r\n
|
227
|
+
\ <http:address location=\"http://www.webservicex.net/periodictable.asmx\"
|
228
|
+
/>\r\n </wsdl:port>\r\n <wsdl:port name=\"periodictableHttpPost\" binding=\"tns:periodictableHttpPost\">\r\n
|
229
|
+
\ <http:address location=\"http://www.webservicex.net/periodictable.asmx\"
|
230
|
+
/>\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
|
215
231
|
http_version: '1.1'
|
216
|
-
|
217
|
-
|
218
|
-
method:
|
219
|
-
uri: http://www.webservicex.net
|
220
|
-
body:
|
221
|
-
|
222
|
-
|
232
|
+
recorded_at: Thu, 14 Aug 2014 16:57:53 GMT
|
233
|
+
- request:
|
234
|
+
method: post
|
235
|
+
uri: http://www.webservicex.net/periodictable.asmx
|
236
|
+
body:
|
237
|
+
encoding: US-ASCII
|
238
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
239
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.webserviceX.NET"
|
240
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:GetAtomicNumber><tns:ElementName>oxygen</tns:ElementName></tns:GetAtomicNumber></env:Body></env:Envelope>
|
223
241
|
headers:
|
224
242
|
soapaction:
|
225
243
|
- ! '"http://www.webserviceX.NET/GetAtomicNumber"'
|
226
244
|
content-type:
|
227
245
|
- text/xml;charset=UTF-8
|
228
246
|
content-length:
|
229
|
-
- '
|
230
|
-
|
231
|
-
|
247
|
+
- '364'
|
248
|
+
accept:
|
249
|
+
- ! '*/*'
|
250
|
+
user-agent:
|
251
|
+
- Ruby
|
252
|
+
response:
|
253
|
+
status:
|
232
254
|
code: 200
|
233
255
|
message: OK
|
234
256
|
headers:
|
@@ -245,14 +267,18 @@
|
|
245
267
|
x-powered-by:
|
246
268
|
- ASP.NET
|
247
269
|
date:
|
248
|
-
- Thu,
|
249
|
-
body:
|
250
|
-
|
251
|
-
xmlns=\"http://
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
270
|
+
- Thu, 14 Aug 2014 16:58:00 GMT
|
271
|
+
body:
|
272
|
+
encoding: US-ASCII
|
273
|
+
string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"
|
274
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><GetAtomicNumberResponse
|
275
|
+
xmlns=\"http://www.webserviceX.NET\"><GetAtomicNumberResult><NewDataSet>\r\n
|
276
|
+
\ <Table>\r\n <AtomicNumber>8</AtomicNumber>\r\n <ElementName>Oxygen</ElementName>\r\n
|
277
|
+
\ <Symbol>O</Symbol>\r\n <AtomicWeight>15.9994</AtomicWeight>\r\n
|
278
|
+
\ <BoilingPoint>90.2</BoilingPoint>\r\n <IonisationPotential>13.61</IonisationPotential>\r\n
|
279
|
+
\ <EletroNegativity>3.5</EletroNegativity>\r\n <AtomicRadius>0.74</AtomicRadius>\r\n
|
280
|
+
\ <MeltingPoint>55</MeltingPoint>\r\n <Density>1.3318</Density>\r\n
|
281
|
+
\ </Table>\r\n</NewDataSet></GetAtomicNumberResult></GetAtomicNumberResponse></soap:Body></soap:Envelope>"
|
258
282
|
http_version: '1.1'
|
283
|
+
recorded_at: Thu, 14 Aug 2014 16:57:54 GMT
|
284
|
+
recorded_with: VCR 2.9.2
|
metadata
CHANGED
@@ -1,71 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: periodic_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Stephen Ball
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rspec
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: fakeweb
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ! '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: vcr
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: savon
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
73
|
- - ! '>='
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :runtime
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Provide data on elements in the periodic table.
|
70
84
|
email:
|
71
85
|
- sdball@gmail.com
|
@@ -88,27 +102,26 @@ files:
|
|
88
102
|
- spec/support/cassettes/periodic_table.yml
|
89
103
|
homepage: https://github.com/sdball/periodic_table
|
90
104
|
licenses: []
|
105
|
+
metadata: {}
|
91
106
|
post_install_message:
|
92
107
|
rdoc_options: []
|
93
108
|
require_paths:
|
94
109
|
- lib
|
95
110
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
111
|
requirements:
|
98
112
|
- - ! '>='
|
99
113
|
- !ruby/object:Gem::Version
|
100
114
|
version: '0'
|
101
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
116
|
requirements:
|
104
117
|
- - ! '>='
|
105
118
|
- !ruby/object:Gem::Version
|
106
119
|
version: '0'
|
107
120
|
requirements: []
|
108
121
|
rubyforge_project: periodic_table
|
109
|
-
rubygems_version:
|
122
|
+
rubygems_version: 2.2.2
|
110
123
|
signing_key:
|
111
|
-
specification_version:
|
124
|
+
specification_version: 4
|
112
125
|
summary: Provide periodic table data.
|
113
126
|
test_files:
|
114
127
|
- spec/lib/periodic_table_spec.rb
|