reuters 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +1 -1
- data/lib/reuters/response.rb +2 -2
- data/lib/reuters/version.rb +1 -1
- data/spec/reuters/response_spec.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWM4ZmM3ZjM1ZjgyNjRmNzUyNGU2ZDYyOTNmNzdlZGI4YTYzNmY4Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2UxZGNiZTAyOGVhYWY3NWJiZDk2NWM0NmE0MTRmNDFhMWVmMDMwZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWIyMjM3Nzc2NjU0Y2I0MTI3OTZkM2Y1OTk5NDllNjJiNWFiYWY1M2FjOTRh
|
10
|
+
OGYxOWY2Mjk2NGFkODU1OGQxYWU3ODNkN2U0YjkyMmFmZWNmYjZjYWFhOGNj
|
11
|
+
MWViODk5MDZjOWIwNTdkYjhiNjE0M2RjNWM4NDIwODhmYThkMDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWQxMzAwMjcyMDE0YTMzODEyYWMxN2I3N2M3N2JhMDU4NDg4N2E5OWY1NmI2
|
14
|
+
ZDBjMDA5ZGZmOTFlOGI5OGFlYzFjMzBkZjViMDkyYTkzNDI1ZDQ4NGZkN2Uy
|
15
|
+
NWJiODhkNjAxOGU2ODI4YTYyNmNmNjBkODE4OWI2ZGNkOWVjNTE=
|
data/.travis.yml
CHANGED
data/lib/reuters/response.rb
CHANGED
data/lib/reuters/version.rb
CHANGED
@@ -4,6 +4,7 @@ describe Reuters::Response do
|
|
4
4
|
|
5
5
|
let(:test_hash) {
|
6
6
|
{
|
7
|
+
"character" => "hodor",
|
7
8
|
info: {
|
8
9
|
ticker: "ABC",
|
9
10
|
number: 1,
|
@@ -15,7 +16,8 @@ describe Reuters::Response do
|
|
15
16
|
list: [
|
16
17
|
{ fruit: "apple" },
|
17
18
|
{ fruit: "banana" }
|
18
|
-
]
|
19
|
+
],
|
20
|
+
|
19
21
|
},
|
20
22
|
:@type => "ORD"
|
21
23
|
}
|
@@ -29,6 +31,14 @@ describe Reuters::Response do
|
|
29
31
|
|
30
32
|
it { should respond_to(:attributes) }
|
31
33
|
|
34
|
+
describe "when a key is mixed type" do
|
35
|
+
|
36
|
+
it "should return the correct value regardless" do
|
37
|
+
expect(@response.character).to eq "hodor"
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
32
42
|
describe "when a value is mixed type" do
|
33
43
|
|
34
44
|
it "should return a number" 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.7
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|