finance 1.1.0 → 1.1.1

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.
@@ -80,7 +80,7 @@ module Finance
80
80
  # @transactions << Transaction.new(-1000, :date => Time.new(1985,01,01))
81
81
  # @transactions << Transaction.new( 600, :date => Time.new(1990,01,01))
82
82
  # @transactions << Transaction.new( 600, :date => Time.new(1995,01,01))
83
- # @transactions.xirr(0.6).round(2) #=> Rate("0.024851", :apr, :compounds => :annually)
83
+ # @transactions.xirr(0.6) #=> Rate("0.024851", :apr, :compounds => :annually)
84
84
  # @api public
85
85
  def xirr(iterations=100)
86
86
  func = Function.new(self, :xnpv)
@@ -1,5 +1,7 @@
1
1
  require_relative '../lib/finance/cashflows.rb'
2
2
  require_relative '../lib/finance/rates.rb'
3
+ require_relative '../lib/finance/transaction.rb'
4
+ include Finance
3
5
 
4
6
  require 'flt/d'
5
7
  require 'minitest/unit'
metadata CHANGED
@@ -1,50 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: finance
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 0
10
- version: 1.1.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Bill Kranec
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-11 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: flt
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2151813040 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 27
29
- segments:
30
- - 1
31
- - 3
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.3.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- description: The finance library provides a Ruby interface for working with interest rates, mortgage amortization, and cashflows (NPV, IRR, etc.).
23
+ prerelease: false
24
+ version_requirements: *2151813040
25
+ description: The finance library provides a Ruby interface for working with interest
26
+ rates, mortgage amortization, and cashflows (NPV, IRR, etc.).
37
27
  email: wkranec@gmail.com
38
28
  executables: []
39
-
40
29
  extensions: []
41
-
42
- extra_rdoc_files:
30
+ extra_rdoc_files:
43
31
  - README
44
32
  - COPYING
45
33
  - COPYING.LESSER
46
34
  - HISTORY
47
- files:
35
+ files:
48
36
  - README
49
37
  - COPYING
50
38
  - COPYING.LESSER
@@ -63,37 +51,26 @@ files:
63
51
  - test/test_rates.rb
64
52
  homepage: https://rubygems.org/gems/finance
65
53
  licenses: []
66
-
67
54
  post_install_message:
68
55
  rdoc_options: []
69
-
70
- require_paths:
56
+ require_paths:
71
57
  - lib
72
- required_ruby_version: !ruby/object:Gem::Requirement
58
+ required_ruby_version: !ruby/object:Gem::Requirement
73
59
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 29
78
- segments:
79
- - 1
80
- - 9
81
- version: "1.9"
82
- required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '1.9'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
65
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
91
70
  requirements: []
92
-
93
71
  rubyforge_project:
94
- rubygems_version: 1.8.5
72
+ rubygems_version: 1.8.15
95
73
  signing_key:
96
74
  specification_version: 3
97
75
  summary: a library for financial modelling in Ruby.
98
76
  test_files: []
99
-