peatio 2.6.3 → 2.6.4

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
  SHA256:
3
- metadata.gz: 84b1d411b8dfcd1f8ee2ac2681eaeadc7ad47831a29e6b47c96e27570557a9fe
4
- data.tar.gz: 5d20b6701264f5c7d9d22228c4711cb2cbaaf5c3e3e19a1298ace9856b9b8f5a
3
+ metadata.gz: eb5ff279c8332126085f186456d0cad0e4e4c8256699267dddb194fcefb7e5ae
4
+ data.tar.gz: 9f9b899a0dc8fd27ce67bcd65c946bafa0b4b5bdb70ca15f56068b4b1126bc20
5
5
  SHA512:
6
- metadata.gz: 93cb0f60fa8470e1b442e5161886ded5664815d0be7322f56bd41c0264891f53f8bc526a32b288f9323b4f565e1193c2640b0802fdb9fd25ede501092bd6a1f3
7
- data.tar.gz: 8d814b72378587412fa3cb1f47882220b76ddeb83f13742ed275f1751ccd0ff047021c2db9439b0e3cb6b2b09db8230677bb17ac0fb6413aa534b83d83d297df
6
+ metadata.gz: 756d47c4904a5327b6593dd55b818be57aef5c2df9de0403682c46a60acf9e559caee2031191e55cb58e8e36921f91adff40c31ac58ad78647c1a105d6fe8c5c
7
+ data.tar.gz: 9defd1639dcbcba8c012309b3aa493e729435591683bc2affce3e33aa3c0ba069b5236c1937b9bd425be5d6d553414db14053cc5c00ac2412a82d2dcfed80a87
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio (2.6.3)
4
+ peatio (2.6.4)
5
5
  activemodel (> 5.2, <= 6.0.0)
6
6
  amqp
7
7
  bunny
@@ -44,7 +44,7 @@ GEM
44
44
  coderay (1.1.3)
45
45
  concurrent-ruby (1.1.6)
46
46
  cookiejar (0.3.3)
47
- daemons (1.3.1)
47
+ daemons (1.4.0)
48
48
  diff-lcs (1.3)
49
49
  docile (1.3.2)
50
50
  em-http-request (1.1.7)
@@ -78,7 +78,7 @@ GEM
78
78
  multi_json (>= 1.0.0)
79
79
  rack (>= 1.0.0)
80
80
  websocket-driver (>= 0.5.1)
81
- faye-websocket (0.11.0)
81
+ faye-websocket (0.11.1)
82
82
  eventmachine (>= 0.12.0)
83
83
  websocket-driver (>= 0.5.1)
84
84
  http_parser.rb (0.6.0)
@@ -89,7 +89,7 @@ GEM
89
89
  reline (>= 0.0.1)
90
90
  jaro_winkler (1.5.4)
91
91
  json (2.3.0)
92
- jwt (2.2.2)
92
+ jwt (2.2.3)
93
93
  method_source (1.0.0)
94
94
  minitest (5.14.1)
95
95
  multi_json (1.15.0)
@@ -153,7 +153,7 @@ GEM
153
153
  simplecov-json (0.2.1)
154
154
  json
155
155
  simplecov
156
- thin (1.8.0)
156
+ thin (1.8.1)
157
157
  daemons (~> 1.0, >= 1.0.9)
158
158
  eventmachine (~> 1.0, >= 1.0.4)
159
159
  rack (>= 1, < 3)
@@ -162,7 +162,7 @@ GEM
162
162
  thread_safe (~> 0.1)
163
163
  unicode-display_width (1.7.0)
164
164
  websocket (1.2.8)
165
- websocket-driver (0.7.3)
165
+ websocket-driver (0.7.4)
166
166
  websocket-extensions (>= 0.1.0)
167
167
  websocket-extensions (0.1.5)
168
168
  zeitwerk (2.3.0)
@@ -18,6 +18,7 @@ module Peatio #:nodoc:
18
18
  # txout: 1,
19
19
  # to_address: '0x9af4f143cd5ecfba0fcdd863c5ef52d5ccb4f3e5',
20
20
  # amount: 0.01,
21
+ # fee: 0.0004,
21
22
  # block_number: 7732274,
22
23
  # currency_id: 'eth',
23
24
  # status: 'success'
@@ -67,6 +68,10 @@ module Peatio #:nodoc:
67
68
  # return [Decimal] amount of the transaction
68
69
  attr_accessor :amount
69
70
 
71
+ # @!attribute [rw] fee
72
+ # return [Decimal] fee of the transaction
73
+ attr_accessor :fee
74
+
70
75
  # @!attribute [rw] block_number
71
76
  # return [Integer] transaction block number
72
77
  attr_accessor :block_number
@@ -98,6 +103,9 @@ module Peatio #:nodoc:
98
103
  validates :amount,
99
104
  numericality: { greater_than_or_equal_to: 0 }
100
105
 
106
+ validates :fee,
107
+ numericality: { greater_than_or_equal_to: 0 }, allow_blank: true
108
+
101
109
  validates :status, inclusion: { in: STATUSES }
102
110
 
103
111
  def initialize(attributes={})
@@ -1,3 +1,3 @@
1
1
  module Peatio
2
- VERSION = "2.6.3"
2
+ VERSION = "2.6.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis B.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-02 00:00:00.000000000 Z
12
+ date: 2021-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -457,7 +457,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
457
457
  - !ruby/object:Gem::Version
458
458
  version: '0'
459
459
  requirements: []
460
- rubygems_version: 3.0.3
460
+ rubygems_version: 3.0.3.1
461
461
  signing_key:
462
462
  specification_version: 4
463
463
  summary: Peatio is a gem for running critical core services