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 +8 -8
- data/.ruby-version +1 -1
- data/README.md +3 -0
- data/lib/reuters/client/token.rb +7 -4
- data/lib/reuters/version.rb +1 -1
- data/reuters.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mjg2MTZiYWQzNDJhYzFkMzliMmM1N2YyOTYzNTlmMDgzOWJkODAyNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTExZmE2YTA2YmY0NDhjZDgzMmM0MjNlOGY3NDU3ODA1OWI0ZTE0Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTA2NjMwNmU1NzI2NWM0ZmE4YWY1MjEzMDk1OGM0ZTg5OWQwNzZjYTRmN2Vk
|
10
|
+
MDRjMjY5MGI5MWNmY2ZkZjUyNTZkM2Q3Y2ZjYmVlYWViZmVjZTZhYTVhZGQ0
|
11
|
+
ODU0YTA0NjU5MTFlZmQ4ZmU2NTYzOTQ5MTEzYTVhNzc4ZjAxZjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGU2YmE5ZWMxNzMyMjJjZDE4OTU3OTgyNjE0MzJhODAzZWQ4MDQ2MDQzOTQw
|
14
|
+
MjQ4MjdiM2RmMGY0ZDk2Y2Q4ZDczNGNmOGZjOGQ1MTU5ODBjODUwZmM1YmUx
|
15
|
+
MTk3NDZjMjYzMTRhZTViNjE1Mzg0NGIxN2U3NTgxMzRkN2I2ZGI=
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
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
|
|
data/lib/reuters/client/token.rb
CHANGED
@@ -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
|
-
|
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
|
91
|
-
|
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
|
data/lib/reuters/version.rb
CHANGED
data/reuters.gemspec
CHANGED
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.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-
|
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.
|
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
|