xirr 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGE_LOG.md +4 -0
- data/lib/xirr/bisection.rb +0 -1
- data/lib/xirr/cashflow.rb +1 -2
- data/lib/xirr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f0f71683833379725ed955370cc85fd6c40c7f0
|
4
|
+
data.tar.gz: 9052d4a3b8bc5cc70c031c4c9f09f5b82ec808db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77d29b67ba5b337ee25d8170b4e8942568543b5d026dfbabf0bc250297f2ff82e0aef093ce8b1b00b1d16f774cfa672c0cd4e04e71007807e9a86632259667ff
|
7
|
+
data.tar.gz: cc54b04a7d005c2045594e99f1bd75550250c4d1c10bb6ed40a279f08ec3c83c99fd9f189ba500d216ff79ad66ae0a495de80b7e016ecef345aefe8e668b484c
|
data/CHANGE_LOG.md
CHANGED
data/lib/xirr/bisection.rb
CHANGED
data/lib/xirr/cashflow.rb
CHANGED
@@ -152,10 +152,9 @@ module Xirr
|
|
152
152
|
# @see #negatives
|
153
153
|
# Uses partition to separate the investment transactions Negatives and the income transactions (Positives)
|
154
154
|
def split_transactions
|
155
|
-
@negatives, @positives = self.partition { |x| x.amount
|
155
|
+
@negatives, @positives = self.partition { |x| x.amount > 0 } # Inverted as negative amount is good
|
156
156
|
end
|
157
157
|
|
158
|
-
|
159
158
|
end
|
160
159
|
|
161
160
|
end
|
data/lib/xirr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xirr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tubedude
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|