cryptum 0.0.300 → 0.0.301

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: 19aa4531bc18105b33a4e294230aa649eb60f69dddea8b8e8a5c64b107781613
4
- data.tar.gz: 71516512ef74f2037c9f7b5ae8e70df307f00f53d73b4f72ace120020e63af64
3
+ metadata.gz: f71267d3768882eabe5dd2b2e0800ba03a4ebb71eef033f017afe1824d92f3da
4
+ data.tar.gz: c4ac586c2fb0cf347f3800d7efc4bbc42b7a2b25a35d59cf911999422de7443c
5
5
  SHA512:
6
- metadata.gz: 6a06306a25bd98e0c5ccd50c7b061a918b56a468bb2c410ab2abd16a87991e705c4d895defc14dc584234baeb9d7611ec601f9615fc7f4edb9c75b086bd37921
7
- data.tar.gz: 644274e3531d55bd71b1c37d6ed3795a54271c78c57c9d8eecf6168e7d881539a043cc36aa4c60edef97881a5eee86cd4e92bf250c9153f502073a86a1561ad7
6
+ metadata.gz: 9ff5ab01aa6d5b886c35c86c553c314f9777fa6e3faf1270cd7c232c77ff6624751c21a3c9e153ac285c53ae64ea24dec04b8d8b5695f79c6d4bdc9c2051c147
7
+ data.tar.gz: 26265b830cf9894b840b68c69af8dd4892ef6692f53c100b4bddd7451fdeee6dfa476c35fd60e0d4acef10935aa7105610d4385ff71b99875bea457fb0d1744c
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2022-12-08 23:26:36 UTC using RuboCop version 1.40.0.
3
+ # on 2022-12-08 23:40:45 UTC using RuboCop version 1.40.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -20,15 +20,6 @@ Style/ConditionalAssignment:
20
20
  - 'lib/cryptum/option.rb'
21
21
  - 'lib/cryptum/ui/order_execute_details.rb'
22
22
 
23
- # Offense count: 2
24
- # This cop supports unsafe autocorrection (--autocorrect-all).
25
- # Configuration parameters: EnforcedStyle.
26
- # SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
27
- Style/FloatDivision:
28
- Exclude:
29
- - 'lib/cryptum/ui/order_plan.rb'
30
- - 'lib/cryptum/ui/portfolio.rb'
31
-
32
23
  # Offense count: 2
33
24
  # This cop supports safe autocorrection (--autocorrect).
34
25
  Style/RedundantAssignment:
@@ -75,9 +75,13 @@ module Cryptum
75
75
  balance.to_f * ticker_price
76
76
  )
77
77
 
78
+ # crypto_invested_percent = format(
79
+ # '%0.2f',
80
+ # (current_crypto_fiat_value.to_f / total_holdings.to_f) * 100
81
+ # )
78
82
  crypto_invested_percent = format(
79
83
  '%0.2f',
80
- (current_crypto_fiat_value.to_f / total_holdings.to_f) * 100
84
+ current_crypto_fiat_value.to_f.fdiv(total_holdings.to_f) * 100
81
85
  )
82
86
 
83
87
  event_history.red_pill = true if crypto_invested_percent.to_f > autotrade_percent
@@ -95,9 +95,13 @@ module Cryptum
95
95
  (1 - (fiat_budget / total_holdings.to_f)) * 100
96
96
  )
97
97
 
98
+ # crypto_invested_percent = format(
99
+ # '%0.2f',
100
+ # (current_crypto_fiat_value.to_f / total_holdings.to_f) * 100
101
+ # )
98
102
  crypto_invested_percent = format(
99
103
  '%0.2f',
100
- (current_crypto_fiat_value.to_f / total_holdings.to_f) * 100
104
+ current_crypto_fiat_value.to_f.fdiv(total_holdings.to_f) * 100
101
105
  )
102
106
  # TODO: Everything Above this Line Needs to be Indicators ^
103
107
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.300'
4
+ VERSION = '0.0.301'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.300
4
+ version: 0.0.301
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.