reuters 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/reuters/response.rb +3 -2
- data/lib/reuters/version.rb +1 -1
- data/spec/reuters/response_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWZmZDJkNjMwNGE0MmU4ODNhZWJhMzI2NjY2Y2UwMjQ0MzQxYzAzOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2Q3ZTE1OGE1ODMwOGJkNWZjYmVkYTIwYWIzNmNlODAyNmNjOTA5Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDg5OWY2MTVjOWM0NTBiZTE5MmYyMzc3NDYyMjU2ZGQxZjkyYzJlNWU5ZWM3
|
10
|
+
NjU0YTJiYmUxZTZmZTUxNDhmM2VmNzc0NzFmMTExZjg2ZTNjZjVlMzFmMTVk
|
11
|
+
ZGQzMGRmYWVmMzJiNzU5YThlNzk2NjIzZGY5OTg3Yzk4YjMwYWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmQ5M2VkNDU0N2M1ZTVlMTU4ZGQwZDI2Y2M1NmVkMGRmMGRlZWIyMGMyNzVi
|
14
|
+
ODUwNWZlNjQ2N2E5OWUwMWNlMzQzYTUyZjQ3ZTgxZWEzYmQxY2M1MDAyN2Yx
|
15
|
+
MTk5ZDlmNTcwOGU1YWIwYWEzZjM0YzVkMTI1NjkxNTk5Y2NjYWY=
|
data/lib/reuters/response.rb
CHANGED
data/lib/reuters/version.rb
CHANGED
@@ -6,6 +6,8 @@ describe Reuters::Response do
|
|
6
6
|
{
|
7
7
|
info: {
|
8
8
|
ticker: "ABC",
|
9
|
+
number: 1,
|
10
|
+
boolean: false,
|
9
11
|
name: {
|
10
12
|
full_name: "ABC Solutions Ltd.",
|
11
13
|
short_name: "ABC Ltd."
|
@@ -27,6 +29,18 @@ describe Reuters::Response do
|
|
27
29
|
|
28
30
|
it { should respond_to(:attributes) }
|
29
31
|
|
32
|
+
describe "when a value is mixed type" do
|
33
|
+
|
34
|
+
it "should return a number" do
|
35
|
+
expect(@response.info.number).to eq 1
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should a boolean" do
|
39
|
+
expect(@response.info.boolean).to eq false
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
30
44
|
describe "when a value is an array" do
|
31
45
|
|
32
46
|
it "should return an array" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reuters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stockflare
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|