roi_calculator 0.1.6 → 0.2.0

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
  SHA1:
3
- metadata.gz: aa2c97345de8a5850cb277f0a4bad5ca2d3512f8
4
- data.tar.gz: 46f5fea5dddadb7edcad096a2d65d42464d39dbc
3
+ metadata.gz: 16bd4ca3ba06d4e40dae6588b1cf9af5aaef6b8d
4
+ data.tar.gz: 44bf9cd2cad6675cd2e8c018bde42d89ea321668
5
5
  SHA512:
6
- metadata.gz: 61fde865b0bf5a8a7f2945a1abec2ee8ca878afa37672dc54486855aaeeb81271a49938d5a9147e4dd21550763057a223830d567e9f314ec5569604682a74a0f
7
- data.tar.gz: adbe27a0753c207317ba7f80264cc5b75a0b528bce1474e9f582e4978c016d9ac1eb40da8a87c477c69b694876c56633bbdd472a79c7400927d09e650fd86fb3
6
+ metadata.gz: b6b3a1624bf312a509c342496cdf5b1c39aa7abf3f2271d1b16c720c8260174dc02c39e5b78cadc3e1d442e4b7606f731515f4b4c9758e74f0988da942d138a1
7
+ data.tar.gz: a823c2daa89b7d1ca93070ec6a3d5b7ace8949027d2873b68ad4ec6206a7c5adb4edf54f715d7f857fdf851747ee82c0634cc4bf7279e1ca1f73f2eb371338fb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roi_calculator (0.1.2)
4
+ roi_calculator (0.2.0)
5
5
  math_util (~> 0.1.0)
6
6
  memoist (~> 0.15)
7
7
  work_day (~> 0.3.0)
@@ -34,7 +34,7 @@ GEM
34
34
  rspec-support (~> 3.5.0)
35
35
  rspec-support (3.5.0)
36
36
  thread_safe (0.3.6)
37
- tzinfo (1.2.2)
37
+ tzinfo (1.2.3)
38
38
  thread_safe (~> 0.1)
39
39
  work_day (0.3.0)
40
40
  activesupport (>= 4.0)
@@ -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 - 1]
75
75
  end
76
76
  end.compact
77
77
  end
data/lib/roi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ROI
2
- VERSION = "0.1.6"
2
+ VERSION = "0.2.0"
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.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adriano Bacha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler