reuters 0.8.8 → 0.8.9

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
- NWI5OGMyZDllZGU1NjU0ZDIyYWQ5MWY1ZWE1M2IzMDdlMWQ0NDczZA==
4
+ Mjg2MTZiYWQzNDJhYzFkMzliMmM1N2YyOTYzNTlmMDgzOWJkODAyNg==
5
5
  data.tar.gz: !binary |-
6
- NzliZmIxODI1NmE1MTVkZjI4NjEwYjAyNjMxZDFkNTkxMDVmMzdmNQ==
6
+ NTExZmE2YTA2YmY0NDhjZDgzMmM0MjNlOGY3NDU3ODA1OWI0ZTE0Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWQ3Y2ViZDRhODQ3NTdmNDI5YjVkZmY2Nzk5YWM5NmQ1MmQ4N2QxZWMxN2Mw
10
- MzhjOGExY2Y3NDczMmU5NjVmNDdmZGJkNzNkZDQwMjQ5ZjM4MDAyMTA2NzYw
11
- MWNjY2M5YWYzN2IzNWI2M2RlZDQ4NTJhODA3YWFkZWVlNDI2ODk=
9
+ YTA2NjMwNmU1NzI2NWM0ZmE4YWY1MjEzMDk1OGM0ZTg5OWQwNzZjYTRmN2Vk
10
+ MDRjMjY5MGI5MWNmY2ZkZjUyNTZkM2Q3Y2ZjYmVlYWViZmVjZTZhYTVhZGQ0
11
+ ODU0YTA0NjU5MTFlZmQ4ZmU2NTYzOTQ5MTEzYTVhNzc4ZjAxZjM=
12
12
  data.tar.gz: !binary |-
13
- ZTU4YzYwMzM3Zjg5NDMwYjBhZDk4YzM4MDY1ZjRlMjE3NTBlNmYxOTU1ZDk4
14
- NjkwODY1YmNkMTkwOTQ2NDg2NWEyZTg2ZjMxN2E1MjBkNzYyNTVjY2MwNjAw
15
- MGQ4Y2RmNjU3M2MwYTI3YzY5NjQxM2E4NGFmNzMxYWI0NzBkZTI=
13
+ OGU2YmE5ZWMxNzMyMjJjZDE4OTU3OTgyNjE0MzJhODAzZWQ4MDQ2MDQzOTQw
14
+ MjQ4MjdiM2RmMGY0ZDk2Y2Q4ZDczNGNmOGZjOGQ1MTU5ODBjODUwZmM1YmUx
15
+ MTk3NDZjMjYzMTRhZTViNjE1Mzg0NGIxN2U3NTgxMzRkN2I2ZGI=
@@ -1 +1 @@
1
- 2.0.0-p353
1
+ 2.1.2
data/README.md CHANGED
@@ -199,6 +199,9 @@ client.get_equity_quote_1(message)
199
199
 
200
200
  Different Response classes parse data slightly differently depending on how it is intended to be used. You will need to take a look at the documentation for the Response corresponding to your Client.
201
201
 
202
+ ## Known Issues
203
+
204
+ * The Wasabi gem at version 3.3.1 causes a bug when the Reuters WSDL is parsed, effectively breaking all communication with Reuters. [Fixed]
202
205
 
203
206
  ## Contributing
204
207
 
@@ -3,6 +3,9 @@ module Reuters
3
3
  # Retrieves a new Token from the Reuter's API using the
4
4
  # credentials that have been globally configured.
5
5
  #
6
+ # @note A retrieved token is stored as a static variable, attached to
7
+ # this class. It will only be retrieved once, and then again up expiry.
8
+ #
6
9
  # @example Retrieving a new token
7
10
  # Reuters::Credentials.configure do |c|
8
11
  # c.username = 'username'
@@ -68,7 +71,7 @@ module Reuters
68
71
  #
69
72
  # @return [Token] an initialized instance of {Token}
70
73
  def authenticate
71
- @response = create_service_token_1(message, {}, false)
74
+ @@response = create_service_token_1(message, {}, false)
72
75
  end
73
76
 
74
77
  def header
@@ -87,8 +90,8 @@ module Reuters
87
90
  end
88
91
 
89
92
  def current_response
90
- if @response && Time.parse(@response.expiration) > Time.now
91
- @response
93
+ if @@response && Time.parse(@@response.expiration) > Time.now
94
+ @@response
92
95
  else
93
96
  fail 'Token has expired.'
94
97
  end
@@ -98,4 +101,4 @@ module Reuters
98
101
 
99
102
  end
100
103
  end
101
- end
104
+ end
@@ -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.8'
5
+ VERSION = '0.8.9'
6
6
  end
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ['lib']
24
24
 
25
25
  spec.add_dependency "savon", "~> 2.5.1"
26
+ spec.add_dependency "wasabi", "3.3.0"
26
27
  spec.add_dependency "activesupport"
27
28
 
28
29
  spec.add_development_dependency 'bundler', '~> 1.6'
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.8
4
+ version: 0.8.9
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-10 00:00:00.000000000 Z
11
+ date: 2014-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.5.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: wasabi
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 3.3.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 3.3.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: activesupport
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -298,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
312
  version: '0'
299
313
  requirements: []
300
314
  rubyforge_project:
301
- rubygems_version: 2.2.2
315
+ rubygems_version: 2.4.1
302
316
  signing_key:
303
317
  specification_version: 4
304
318
  summary: Ruby client for Thomson Reuters Knowledge Direct (TRKD) API