cryptopia 0.1.0 → 0.1.1
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/lib/cryptopia/api/private.rb +7 -1
- data/lib/cryptopia/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 205cabcce05a3247fb42142206fa237ae03b415d
|
|
4
|
+
data.tar.gz: 4dabc25d21e3592d7ee65e35dc14981a1258135b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f99dd70034803d4a39cc11f780ae58d0ffa5f5d5c0c9efef8432ed785c8efbc575f810894e110b64199d2c1ba82db3024076fd854b3e353a348d5bf9354be4bd
|
|
7
|
+
data.tar.gz: f3d7b79566b6f8b32261ad40ea94790b6887be7d1b67b36063da78e5e8ba0a329770aeed87e1b391f1548a08538fbd02ddd44e586d5d02016941d782b9c6c12d
|
|
@@ -118,13 +118,19 @@ module Cryptopia
|
|
|
118
118
|
@url = self.class.base_uri + endpoint
|
|
119
119
|
@options = options.to_json
|
|
120
120
|
|
|
121
|
-
self.class.post(
|
|
121
|
+
response = self.class.post(
|
|
122
122
|
endpoint,
|
|
123
123
|
body: @options,
|
|
124
124
|
headers: {
|
|
125
125
|
'Authorization' => "amx #{authorization_formatted_value}",
|
|
126
126
|
'Content-Type' => 'application/json'
|
|
127
127
|
})
|
|
128
|
+
|
|
129
|
+
# Nonce should be reset after each request to avoid
|
|
130
|
+
# "Nonce has already been used for this request." error
|
|
131
|
+
@nonce = nil
|
|
132
|
+
|
|
133
|
+
response
|
|
128
134
|
end
|
|
129
135
|
|
|
130
136
|
def keys_is_not_present?
|
data/lib/cryptopia/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cryptopia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bruno Arueira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
138
138
|
version: '0'
|
|
139
139
|
requirements: []
|
|
140
140
|
rubyforge_project:
|
|
141
|
-
rubygems_version: 2.5.2
|
|
141
|
+
rubygems_version: 2.5.2.1
|
|
142
142
|
signing_key:
|
|
143
143
|
specification_version: 4
|
|
144
144
|
summary: Cryptopia wrapper api
|