aga-money 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/money/resources/helpers/controls/gain.rb +3 -2
- data/lib/money/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ffcf6cd9a1fe3b6f4fe4ddbadd06dde77ea4ab32b1e3f1239dad736c4d88a60
|
4
|
+
data.tar.gz: cfb43bd3975d8899c32f02a99e8f4d5ba2fcdf638cae896304854717874ee454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492b8b649c0b69eb2e7bd504eb8ae09bc680b331a0caaf8a9f4be4fc3f962a4f59d38aa1a128f71069a75d77854185f57d617bdfe0405d1fbfc64f12876b78de
|
7
|
+
data.tar.gz: '08e44da44aaf9209ac9ea57b8d0c7caa296b9685a4c8ce8d6b3002d4bea762e0749a7cf54dcdcb41e3a9ae84fc79eaccb4058b90e901d57d2dc080fa91affa7d'
|
@@ -28,9 +28,10 @@ module Money
|
|
28
28
|
price = detection.dig(:payload, :price)
|
29
29
|
return {} if price.nil?
|
30
30
|
|
31
|
-
|
31
|
+
percentage = percentage(detection).round(3)
|
32
|
+
return {} if percentage < SET_PERC
|
32
33
|
|
33
|
-
percentage
|
34
|
+
percentage >= computation_percentage(price).round(3)
|
34
35
|
end
|
35
36
|
|
36
37
|
# rubocop: disable Lint/MissingCopEnableDirective
|
data/lib/money/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aga-money
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Baldazzi
|
@@ -263,5 +263,5 @@ requirements: []
|
|
263
263
|
rubygems_version: 3.3.24
|
264
264
|
signing_key:
|
265
265
|
specification_version: 4
|
266
|
-
summary: aga-money0.0.
|
266
|
+
summary: aga-money0.0.4
|
267
267
|
test_files: []
|