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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb930bdcaebb946f5c5f841103ca4ce0ee1748872ba8ea89793cfe41099fdb17
4
- data.tar.gz: ff712f49838f5fd642c7e5d6148f1b0af121df9ab2bd22f3a2b2be2a95afd762
3
+ metadata.gz: 2ffcf6cd9a1fe3b6f4fe4ddbadd06dde77ea4ab32b1e3f1239dad736c4d88a60
4
+ data.tar.gz: cfb43bd3975d8899c32f02a99e8f4d5ba2fcdf638cae896304854717874ee454
5
5
  SHA512:
6
- metadata.gz: 01606bcb91ba2f5f17fef8a33dbd0ac71e7a0e839504a440798f6579aed744f4dfba3ce3405b856678e82a031d90ae8fc6b12652943d9f861f01aadb7d8bba5a
7
- data.tar.gz: 0d1cd32b61a213d202198afeb721fd411a85dc516ceb77ba677b552bff22dbca02ffbb4ec7d339f5f1ad78d5ea04c5d0941e1b4bccb8ac1deb253abc746d3dc7
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
- return {} if percentage(detection).round(3) < SET_PERC
31
+ percentage = percentage(detection).round(3)
32
+ return {} if percentage < SET_PERC
32
33
 
33
- percentage(detection).round(3) >= computation_percentage(price).round(3)
34
+ percentage >= computation_percentage(price).round(3)
34
35
  end
35
36
 
36
37
  # rubocop: disable Lint/MissingCopEnableDirective
data/lib/money/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Money
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
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.3
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.3
266
+ summary: aga-money0.0.4
267
267
  test_files: []