istox 0.2.15.pre.50 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/.solargraph.yml +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/istox/constants/error.rb +0 -0
- data/lib/istox/helpers/f_math.rb +2 -14
- data/lib/istox/helpers/gruf_listener_hook.rb +0 -0
- data/lib/istox/helpers/my_open_struct.rb +0 -0
- data/lib/istox/helpers/rate_limit.rb +0 -0
- data/lib/istox/helpers/regex_helper.rb +0 -0
- data/lib/istox/helpers/result_handler.rb +0 -0
- data/lib/istox/helpers/vault.rb +0 -0
- data/lib/istox/interfaces/chainhub/transaction.rb +0 -0
- data/lib/istox/models/concerns/blockchain_receipt_query.rb +0 -0
- data/lib/istox/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dcf442cd8dd270827e55bcc957f9fa2862c04d390d5c1582097fae1638e673a
|
4
|
+
data.tar.gz: aed8de1bf449846ef9697364897ac0895215362c5413f444538858fd4cdf9a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72b97430930b5d79fa173ea9720ffbb479a8313857d6206f9c114190f6a2ce50b770685d395cb7e12456351829b937943b00d98df87cbfd8eca87c241bb631ba
|
7
|
+
data.tar.gz: eb27d9d006914505ef2bb16cda935a57fb03481c6e3035191bb7e888eb417afcde41a0893e511f72425b8860364546e3ae5fedb91ef66e6fb093467a88574af1
|
data/.gitignore
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.solargraph.yml
CHANGED
File without changes
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
data/lib/istox/helpers/f_math.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# rubocop:disable Naming/UncommunicativeMethodParamName
|
1
2
|
module Istox
|
2
3
|
class FMath
|
3
4
|
class << self
|
@@ -73,20 +74,6 @@ module Istox
|
|
73
74
|
::BigDecimal.new(x.to_s).round(digits).to_s
|
74
75
|
end
|
75
76
|
|
76
|
-
def round_half_up(x, digits)
|
77
|
-
BigDecimal.mode(BigDecimal::ROUND_MODE, :half_up)
|
78
|
-
x = 0 if x.blank?
|
79
|
-
::BigDecimal.new(x.to_s).round(digits).to_s
|
80
|
-
end
|
81
|
-
|
82
|
-
def round(x, digits, rounding_mechanism: :natural)
|
83
|
-
return round_up(x, digits) if rounding_mechanism == 'up'
|
84
|
-
|
85
|
-
return round_down(x, digits) if rounding_mechanism == 'down'
|
86
|
-
|
87
|
-
round_half_up(x, digits)
|
88
|
-
end
|
89
|
-
|
90
77
|
private
|
91
78
|
|
92
79
|
def to_fixed(x)
|
@@ -99,3 +86,4 @@ module Istox
|
|
99
86
|
end
|
100
87
|
end
|
101
88
|
end
|
89
|
+
# rubocop:enable Naming/UncommunicativeMethodParamName
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/istox/helpers/vault.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: istox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.15
|
4
|
+
version: 0.2.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazing_print
|
@@ -530,11 +530,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
530
530
|
version: '0'
|
531
531
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
532
532
|
requirements:
|
533
|
-
- - "
|
533
|
+
- - ">="
|
534
534
|
- !ruby/object:Gem::Version
|
535
|
-
version:
|
535
|
+
version: '0'
|
536
536
|
requirements: []
|
537
|
-
rubygems_version: 3.
|
537
|
+
rubygems_version: 3.0.6
|
538
538
|
signing_key:
|
539
539
|
specification_version: 4
|
540
540
|
summary: istox backend shared gem
|