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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWZmZDJkNjMwNGE0MmU4ODNhZWJhMzI2NjY2Y2UwMjQ0MzQxYzAzOQ==
4
+ ZWM4ZmM3ZjM1ZjgyNjRmNzUyNGU2ZDYyOTNmNzdlZGI4YTYzNmY4Yg==
5
5
  data.tar.gz: !binary |-
6
- Y2Q3ZTE1OGE1ODMwOGJkNWZjYmVkYTIwYWIzNmNlODAyNmNjOTA5Mw==
6
+ N2UxZGNiZTAyOGVhYWY3NWJiZDk2NWM0NmE0MTRmNDFhMWVmMDMwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDg5OWY2MTVjOWM0NTBiZTE5MmYyMzc3NDYyMjU2ZGQxZjkyYzJlNWU5ZWM3
10
- NjU0YTJiYmUxZTZmZTUxNDhmM2VmNzc0NzFmMTExZjg2ZTNjZjVlMzFmMTVk
11
- ZGQzMGRmYWVmMzJiNzU5YThlNzk2NjIzZGY5OTg3Yzk4YjMwYWI=
9
+ OWIyMjM3Nzc2NjU0Y2I0MTI3OTZkM2Y1OTk5NDllNjJiNWFiYWY1M2FjOTRh
10
+ OGYxOWY2Mjk2NGFkODU1OGQxYWU3ODNkN2U0YjkyMmFmZWNmYjZjYWFhOGNj
11
+ MWViODk5MDZjOWIwNTdkYjhiNjE0M2RjNWM4NDIwODhmYThkMDI=
12
12
  data.tar.gz: !binary |-
13
- MmQ5M2VkNDU0N2M1ZTVlMTU4ZGQwZDI2Y2M1NmVkMGRmMGRlZWIyMGMyNzVi
14
- ODUwNWZlNjQ2N2E5OWUwMWNlMzQzYTUyZjQ3ZTgxZWEzYmQxY2M1MDAyN2Yx
15
- MTk5ZDlmNTcwOGU1YWIwYWEzZjM0YzVkMTI1NjkxNTk5Y2NjYWY=
13
+ ZWQxMzAwMjcyMDE0YTMzODEyYWMxN2I3N2M3N2JhMDU4NDg4N2E5OWY1NmI2
14
+ ZDBjMDA5ZGZmOTFlOGI5OGFlYzFjMzBkZjViMDkyYTkzNDI1ZDQ4NGZkN2Uy
15
+ NWJiODhkNjAxOGU2ODI4YTYyNmNmNjBkODE4OWI2ZGNkOWVjNTE=
@@ -11,7 +11,7 @@ before_deploy:
11
11
  deploy:
12
12
  - provider: s3
13
13
  access_key_id: AKIAIWPY43DAALLVSXFQ
14
- bucket: reuters.stockflair.com
14
+ bucket: reuters.stockflare.com
15
15
  skip_cleanup: true
16
16
  local-dir: doc
17
17
  edge: true
@@ -19,8 +19,8 @@ module Reuters
19
19
  end
20
20
 
21
21
  def method_missing(name)
22
- if key?(name)
23
- val = self[name]
22
+ if key?((key = name)) || key?((key = name.to_s))
23
+ val = self[key]
24
24
  case val
25
25
  when Array
26
26
  val.collect do |v|
@@ -2,5 +2,5 @@
2
2
  # Knowledge Direct API.
3
3
  module Reuters
4
4
  # Current version of the Reuters gem.
5
- VERSION = '0.8.6'
5
+ VERSION = '0.8.7'
6
6
  end
@@ -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.6
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-08 00:00:00.000000000 Z
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon