oanda_api_v20 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +1 -1
- data/lib/oanda_api_v20/client.rb +12 -0
- data/lib/oanda_api_v20/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb4df9b0234d22ffa2e3949f0f2753a268d7ddcc
|
4
|
+
data.tar.gz: 84480ffb98305fd91f832f453472c80f6a94d508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1850b8f4cda83248d8aec0f68bd44a0974c7784f9865ac776bc61c5e32495f51ca686d95fd71bc7ded214c17b2db69a982d1b38b1c8d6278e25a4ad93ebf358
|
7
|
+
data.tar.gz: aad4901a5dd0c6260a80c6b4e498db00e9ce98b2cc18e6043f493c363504b54a3dc80eb8037021e28ac73428cdd66a4be2a54cf5fbac6659d14af4a37854dd48
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## 0.0.3
|
4
|
+
#### 2016-08-14
|
5
|
+
* Persistent HTTP connections using the persistent_httparty Gem.
|
6
|
+
|
7
|
+
## 0.0.2
|
8
|
+
#### 2016-08-12
|
9
|
+
* README Documentation added.
|
10
|
+
|
11
|
+
## 0.0.1
|
12
|
+
#### 2016-08-09
|
13
|
+
* Functions to map to the Oanda API endpoints.
|
14
|
+
* Setting up gemspec file.
|
15
|
+
* Added gitignore.
|
16
|
+
* Added LICENSE.
|
17
|
+
* Added README.md.
|
18
|
+
|
19
|
+
## 0.0.0
|
20
|
+
#### 2016-06-16
|
21
|
+
* Initial commit.
|
data/README.md
CHANGED
data/lib/oanda_api_v20/client.rb
CHANGED
@@ -21,6 +21,18 @@ module OandaApiV20
|
|
21
21
|
@headers['Authorization'] = "Bearer #{access_token}"
|
22
22
|
@headers['X-Accept-Datetime-Format'] = 'RFC3339'
|
23
23
|
@headers['Content-Type'] = 'application/json'
|
24
|
+
|
25
|
+
@debug = options[:debug] || false
|
26
|
+
|
27
|
+
persistent_connection_adapter_options = {
|
28
|
+
name: 'oanda_api_v20',
|
29
|
+
keep_alive: 30,
|
30
|
+
idle_timeout: 10,
|
31
|
+
warn_timeout: 2,
|
32
|
+
pool_size: 2
|
33
|
+
}
|
34
|
+
persistent_connection_adapter_options.merge!(logger: RubyVM::Logger.new(STDOUT)) if @debug
|
35
|
+
Client.persistent_connection_adapter(persistent_connection_adapter_options)
|
24
36
|
end
|
25
37
|
|
26
38
|
def method_missing(name, *args, &block)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oanda_api_v20
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kobus Joubert
|
@@ -45,6 +45,7 @@ extensions: []
|
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
47
|
- ".gitignore"
|
48
|
+
- CHANGELOG.md
|
48
49
|
- LICENSE
|
49
50
|
- README.md
|
50
51
|
- lib/oanda_api_v20.rb
|