cryptopia 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7c0b028e2801dd60092072392e20a11d84dd3f8
4
- data.tar.gz: dfd7ba008af45fb76d970ff01d0a37071b6cad22
3
+ metadata.gz: 205cabcce05a3247fb42142206fa237ae03b415d
4
+ data.tar.gz: 4dabc25d21e3592d7ee65e35dc14981a1258135b
5
5
  SHA512:
6
- metadata.gz: ae51cd1546a0db289ce53ee9365e6e30aa1e4dde32ca94e532d603cfd4a38b2ce9f5f87b18f59eaf49b19a69c56f532b84fb2e468317fdad1168f5a147630c3f
7
- data.tar.gz: 20de7f238428bedec4f988dda7fb068171e0364deaa666ccdba41ac334d2426eedd4234b812eb43959e771e7529a36ca559ce23b90f4ed42410e4c316dbd4260
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?
@@ -1,3 +1,3 @@
1
1
  module Cryptopia
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2017-12-29 00:00:00.000000000 Z
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