roi_calculator 0.3.1 → 0.3.2

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: b06447f127f9d752c3ae78fe7c181fe6e7c7e52a2e8c71b4831c5e004970f4c3
4
- data.tar.gz: 38a1e88a62e8dfb06ff9a8512351fac45a5c8b5dd4ed7b19d8655effbfdcdf25
3
+ metadata.gz: 2928abf9c33dd3a784c8e27343271293d13422d78ab2e2f154b74c4b5e65b408
4
+ data.tar.gz: 5095434c72d10e868a39611cf6f87e9000d06a568b242ee05f5b6c9b1211ae27
5
5
  SHA512:
6
- metadata.gz: 89355e8984aefe5b2efb46f795fc89e8fa0024279bcc662b4d59c22183beb533d7ace66c23d059e207011c4b5c955bab2616b561c063ae1c9f8d4d4bea16fa4c
7
- data.tar.gz: 1cd31cbc980fd8f0920af5a90665b23ffcee2ca9f4a3c4473138c14ca99b70962fc674093f9c7ae50a69ac0e7a59e56a554387f8a1e74e028372e7c186cbb126
6
+ metadata.gz: a05ffaf084494ed374380bd456f7697924fd660ac28030807f1080dca451ad52eb69b2933ced69b2adb09bafe81557e2d1e3f67fa6838bc00e734505c5e152b5
7
+ data.tar.gz: d6c47125bebbd9bb8ea01e1fe7f97b6d403ad973679693d79db125ad250b3a8580ce599b06ec8355ba89ca5f60f68df26995319c92d9662288a37022190d3f92
@@ -71,7 +71,7 @@ module ROI
71
71
  def to_a
72
72
  dates_with_position.map do |date|
73
73
  if @rentabilities[date]
74
- [date.to_time.to_i, @rentabilities[date].share]
74
+ [date.strftime('%Y-%m-%d'), @rentabilities[date].share]
75
75
  end
76
76
  end.compact
77
77
  end
@@ -1,3 +1,3 @@
1
1
  module ROI
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roi_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adriano Bacha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-23 00:00:00.000000000 Z
11
+ date: 2020-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler