mortgage_calculations 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +3 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +41 -0
- data/Rakefile +49 -22
- data/VERSION +1 -0
- data/features/support/env.rb +12 -4
- data/lib/mortgage_calc.rb +1 -2
- data/mortgage_calculations.gemspec +47 -10
- data/spec/mortgage_calc/mortgage_util_spec.rb +54 -53
- data/spec/spec_helper.rb +12 -3
- metadata +84 -28
- data/Version.yml +0 -4
data/.bundle/config
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.1.0"
|
10
|
+
gem "cucumber", ">= 0"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.5.1"
|
13
|
+
gem "rcov", ">= 0"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
builder (2.1.2)
|
5
|
+
cucumber (0.9.4)
|
6
|
+
builder (~> 2.1.2)
|
7
|
+
diff-lcs (~> 1.1.2)
|
8
|
+
gherkin (~> 2.2.9)
|
9
|
+
json (~> 1.4.6)
|
10
|
+
term-ansicolor (~> 1.0.5)
|
11
|
+
diff-lcs (1.1.2)
|
12
|
+
gherkin (2.2.9)
|
13
|
+
json (~> 1.4.6)
|
14
|
+
term-ansicolor (~> 1.0.5)
|
15
|
+
git (1.2.5)
|
16
|
+
jeweler (1.5.1)
|
17
|
+
bundler (~> 1.0.0)
|
18
|
+
git (>= 1.2.5)
|
19
|
+
rake
|
20
|
+
json (1.4.6)
|
21
|
+
rake (0.8.7)
|
22
|
+
rcov (0.9.9)
|
23
|
+
rspec (2.1.0)
|
24
|
+
rspec-core (~> 2.1.0)
|
25
|
+
rspec-expectations (~> 2.1.0)
|
26
|
+
rspec-mocks (~> 2.1.0)
|
27
|
+
rspec-core (2.1.0)
|
28
|
+
rspec-expectations (2.1.0)
|
29
|
+
diff-lcs (~> 1.1.2)
|
30
|
+
rspec-mocks (2.1.0)
|
31
|
+
term-ansicolor (1.0.5)
|
32
|
+
|
33
|
+
PLATFORMS
|
34
|
+
ruby
|
35
|
+
|
36
|
+
DEPENDENCIES
|
37
|
+
bundler (~> 1.0.0)
|
38
|
+
cucumber
|
39
|
+
jeweler (~> 1.5.1)
|
40
|
+
rcov
|
41
|
+
rspec (~> 2.1.0)
|
data/Rakefile
CHANGED
@@ -1,33 +1,60 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
2
10
|
require 'rake'
|
3
|
-
require 'echoe'
|
4
|
-
require 'spec'
|
5
|
-
require 'cucumber'
|
6
|
-
require 'lib/mortgage_calc'
|
7
11
|
|
8
|
-
require '
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
+
gem.name = "mortgage_calculations"
|
16
|
+
gem.homepage = "http://www.pathf.com/blogs/2010/02/mortcalc-gem/"
|
17
|
+
gem.license = "MORExchange"
|
18
|
+
gem.summary = %Q{Utilities for Mortgage related calculations (APR and Monthly Payments)}
|
19
|
+
gem.description = %Q{Utilities for Mortgage related calculations (APR and Monthly Payments)}
|
20
|
+
gem.email = "perry@hertler.org"
|
21
|
+
gem.authors = ["Perry Hertler"]
|
22
|
+
|
23
|
+
# p.ignore_pattern = ["tmp/*", "script/*, .idea/*"]
|
24
|
+
# p.development_dependencies = ["rspec >=1.3.1"]
|
25
|
+
|
26
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
27
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
28
|
+
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
29
|
+
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
18
30
|
end
|
31
|
+
Jeweler::RubygemsDotOrgTasks.new
|
19
32
|
|
20
|
-
|
21
|
-
|
33
|
+
require 'rspec/core'
|
34
|
+
require 'rspec/core/rake_task'
|
35
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
36
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
37
|
+
end
|
22
38
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
t.spec_opts = ["-c"]
|
39
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
40
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
41
|
+
spec.rcov = true
|
27
42
|
end
|
28
43
|
|
29
|
-
|
30
|
-
|
44
|
+
require 'cucumber/rake/task'
|
45
|
+
Cucumber::Rake::Task.new(:features)
|
46
|
+
|
47
|
+
task :default => :spec
|
48
|
+
|
49
|
+
require 'rake/rdoctask'
|
50
|
+
Rake::RDocTask.new do |rdoc|
|
51
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
52
|
+
|
53
|
+
rdoc.rdoc_dir = 'rdoc'
|
54
|
+
rdoc.title = "mcalc #{version}"
|
55
|
+
rdoc.rdoc_files.include('README*')
|
56
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
31
57
|
end
|
32
58
|
|
59
|
+
|
33
60
|
task :default => [:spec, :features]
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.10
|
data/features/support/env.rb
CHANGED
@@ -1,5 +1,13 @@
|
|
1
|
-
|
1
|
+
require 'bundler'
|
2
|
+
begin
|
3
|
+
Bundler.setup(:default, :development)
|
4
|
+
rescue Bundler::BundlerError => e
|
5
|
+
$stderr.puts e.message
|
6
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
7
|
+
exit e.status_code
|
8
|
+
end
|
9
|
+
|
10
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
|
2
11
|
require 'mortgage_calc'
|
3
|
-
|
4
|
-
require '
|
5
|
-
require 'spec/stubs/cucumber'
|
12
|
+
|
13
|
+
require 'rspec/expectations'
|
data/lib/mortgage_calc.rb
CHANGED
@@ -2,8 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) ||
|
|
2
2
|
require 'yaml'
|
3
3
|
|
4
4
|
module MortgageCalc
|
5
|
-
|
6
|
-
VERSION = "#{version[:major]}.#{version[:minor]}.#{version[:patch]}"
|
5
|
+
VERSION = YAML.load_file(File.dirname(__FILE__) + "/../VERSION")
|
7
6
|
end
|
8
7
|
|
9
8
|
require 'mortgage_calc/mortgage_util'
|
@@ -1,33 +1,70 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{mortgage_calculations}
|
5
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.10"
|
6
9
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">=
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Perry Hertler"]
|
9
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-24}
|
10
13
|
s.description = %q{Utilities for Mortgage related calculations (APR and Monthly Payments)}
|
11
14
|
s.email = %q{perry@hertler.org}
|
12
|
-
s.extra_rdoc_files = [
|
13
|
-
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".bundle/config",
|
20
|
+
"Gemfile",
|
21
|
+
"Gemfile.lock",
|
22
|
+
"Manifest",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"features/apr.feature",
|
27
|
+
"features/step_definitions/apr_steps.rb",
|
28
|
+
"features/support/env.rb",
|
29
|
+
"lib/mortgage_calc.rb",
|
30
|
+
"lib/mortgage_calc/mortgage_util.rb",
|
31
|
+
"mortgage_calculations.gemspec",
|
32
|
+
"spec/mortgage_calc/mortgage_util_spec.rb",
|
33
|
+
"spec/spec_helper.rb"
|
34
|
+
]
|
14
35
|
s.homepage = %q{http://www.pathf.com/blogs/2010/02/mortcalc-gem/}
|
15
|
-
s.
|
36
|
+
s.licenses = ["MORExchange"]
|
16
37
|
s.require_paths = ["lib"]
|
17
|
-
s.rubyforge_project = %q{mortgage_calculations}
|
18
38
|
s.rubygems_version = %q{1.3.7}
|
19
39
|
s.summary = %q{Utilities for Mortgage related calculations (APR and Monthly Payments)}
|
40
|
+
s.test_files = [
|
41
|
+
"spec/mortgage_calc/mortgage_util_spec.rb",
|
42
|
+
"spec/spec_helper.rb"
|
43
|
+
]
|
20
44
|
|
21
45
|
if s.respond_to? :specification_version then
|
22
46
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
47
|
s.specification_version = 3
|
24
48
|
|
25
49
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_development_dependency(%q<rspec>, ["
|
50
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.1.0"])
|
51
|
+
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
52
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
53
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
|
54
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
27
55
|
else
|
28
|
-
s.add_dependency(%q<rspec>, ["
|
56
|
+
s.add_dependency(%q<rspec>, ["~> 2.1.0"])
|
57
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
58
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
59
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
60
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
29
61
|
end
|
30
62
|
else
|
31
|
-
s.add_dependency(%q<rspec>, ["
|
63
|
+
s.add_dependency(%q<rspec>, ["~> 2.1.0"])
|
64
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
67
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
32
68
|
end
|
33
69
|
end
|
70
|
+
|
@@ -5,7 +5,7 @@ module MortgageCalc
|
|
5
5
|
mortgage_util = MortgageUtil.new(loan_amount, rate, period, fee, points)
|
6
6
|
monthly_payment_with_fees = mortgage_util.monthly_payment_with_fees
|
7
7
|
monthly_payment_from_apr = MortgageUtil.new(loan_amount, mortgage_util.apr, period, 0, 0).monthly_payment
|
8
|
-
monthly_payment_with_fees.should
|
8
|
+
monthly_payment_with_fees.should be_within(0.01).of(monthly_payment_from_apr)
|
9
9
|
end
|
10
10
|
|
11
11
|
context "with valid MortgageUtil" do
|
@@ -17,13 +17,13 @@ module MortgageCalc
|
|
17
17
|
@mortgage_util.send(:monthly_interest_rate).should == 0.005
|
18
18
|
end
|
19
19
|
it "should have proper monthly payment" do
|
20
|
-
@mortgage_util.monthly_payment.should
|
20
|
+
@mortgage_util.monthly_payment.should be_within(0.001).of(599.55)
|
21
21
|
end
|
22
22
|
it "should have proper total fees" do
|
23
|
-
@mortgage_util.total_fees.should
|
23
|
+
@mortgage_util.total_fees.should be_within(0.001).of(2450)
|
24
24
|
end
|
25
25
|
it "should have proper APR" do
|
26
|
-
@mortgage_util.apr.should
|
26
|
+
@mortgage_util.apr.should be_within(0.00001).of(6.22726)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
it "should calculate original monthly payment from APR" do
|
@@ -33,62 +33,63 @@ module MortgageCalc
|
|
33
33
|
assert_monthly_apr_payment_matches(300000, 6.5, 360, 0, 7.25)
|
34
34
|
assert_monthly_apr_payment_matches(300000, 6.5, 360, 10000, 7.25)
|
35
35
|
end
|
36
|
-
end
|
37
36
|
|
38
|
-
# context "with very small loan amount" do
|
39
|
-
# it "should calculate proper apr when loan_amount is very small" do
|
40
|
-
# @mortgage_util = MortgageUtil.new(5000, 6.0, 360, 1200, 1.25)
|
41
|
-
# puts "@mortgage_util.apr = #{@mortgage_util.apr}"
|
42
|
-
# end
|
43
|
-
# end
|
37
|
+
# context "with very small loan amount" do
|
38
|
+
# it "should calculate proper apr when loan_amount is very small" do
|
39
|
+
# @mortgage_util = MortgageUtil.new(5000, 6.0, 360, 1200, 1.25)
|
40
|
+
# puts "@mortgage_util.apr = #{@mortgage_util.apr}"
|
41
|
+
# end
|
42
|
+
# end
|
44
43
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
44
|
+
# APR calculations from following web site are assumed to be accurate:
|
45
|
+
# http://www.debtconsolidationcare.com/calculator/apr.html
|
46
|
+
context "test apr calculation" do
|
47
|
+
it "should calculate proper apr" do
|
48
|
+
@mortgage_util = MortgageUtil.new(125000, 6.5, 360, 5000, 0)
|
49
|
+
@mortgage_util.apr.should be_within(0.001).of(6.881)
|
50
|
+
end
|
51
|
+
it "should calculate apr < interest_rate properly" do
|
52
|
+
@mortgage_util = MortgageUtil.new(125000, 6.5, 360, -5000, 0)
|
53
|
+
@mortgage_util.apr.should be_within(0.001).of(6.112)
|
54
|
+
end
|
55
55
|
end
|
56
|
-
end
|
57
56
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
57
|
+
context "net negative fees" do
|
58
|
+
before(:all) do
|
59
|
+
@mortgage_util = MortgageUtil.new(100000, 6.0, 360, 1200, -11.25)
|
60
|
+
@mortgage_util.total_fees.should eql -10050.0
|
61
|
+
end
|
62
|
+
it "calculate total fees should return actual total fees is less than 0" do
|
63
|
+
@mortgage_util.send(:calculate_total_fees).should eql -10050.0
|
64
|
+
end
|
65
|
+
it "total fees should return 0 if total fees is less than 0" do
|
66
|
+
@mortgage_util.total_fees(false).should eql 0
|
67
|
+
end
|
69
68
|
it "total fees should return actual fees if negative parameter is true" do
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
@mortgage_util.total_fees(true).should eql -10050.0
|
70
|
+
end
|
71
|
+
it "should not return APR less than interest rate" do
|
72
|
+
@mortgage_util.apr.should be_within(0.00001).of(5.04043)
|
73
|
+
end
|
74
74
|
end
|
75
|
-
end
|
76
75
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
76
|
+
context "initialize convert to best types" do
|
77
|
+
before(:all) do
|
78
|
+
@mortgage_util = MortgageUtil.new('100000', '6.0', 360, 1200, '-1.25')
|
79
|
+
end
|
80
|
+
it "should convert rate to float if necessary" do
|
81
|
+
@mortgage_util.interest_rate.class.should == Float
|
82
|
+
end
|
83
|
+
it "should convert points to float if necessary" do
|
84
|
+
@mortgage_util.points.class.should == Float
|
85
|
+
end
|
86
|
+
it "should convert loan_amount to float if necessary" do
|
87
|
+
@mortgage_util.loan_amount.class.should == Float
|
88
|
+
end
|
89
|
+
it "should convert period to integer if necessary" do
|
90
|
+
@mortgage_util.period.class.should == Fixnum
|
91
|
+
end
|
92
92
|
end
|
93
93
|
end
|
94
|
+
|
94
95
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
-
$LOAD_PATH
|
2
|
-
|
3
|
-
require '
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'mortgage_calc'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mortgage_calculations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 10
|
10
|
+
version: 0.1.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Perry Hertler
|
@@ -15,25 +15,85 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-24 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 11
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 1
|
31
|
+
- 0
|
32
|
+
version: 2.1.0
|
33
|
+
type: :development
|
22
34
|
name: rspec
|
23
35
|
prerelease: false
|
24
|
-
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
25
39
|
none: false
|
26
40
|
requirements:
|
27
41
|
- - ">="
|
28
42
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :development
|
48
|
+
name: cucumber
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 23
|
58
|
+
segments:
|
59
|
+
- 1
|
60
|
+
- 0
|
61
|
+
- 0
|
62
|
+
version: 1.0.0
|
63
|
+
type: :development
|
64
|
+
name: bundler
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 1
|
30
74
|
segments:
|
31
75
|
- 1
|
32
|
-
-
|
76
|
+
- 5
|
33
77
|
- 1
|
34
|
-
version: 1.
|
78
|
+
version: 1.5.1
|
35
79
|
type: :development
|
36
|
-
|
80
|
+
name: jeweler
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 3
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
version: "0"
|
93
|
+
type: :development
|
94
|
+
name: rcov
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: *id005
|
37
97
|
description: Utilities for Mortgage related calculations (APR and Monthly Payments)
|
38
98
|
email: perry@hertler.org
|
39
99
|
executables: []
|
@@ -42,13 +102,14 @@ extensions: []
|
|
42
102
|
|
43
103
|
extra_rdoc_files:
|
44
104
|
- README.rdoc
|
45
|
-
- lib/mortgage_calc.rb
|
46
|
-
- lib/mortgage_calc/mortgage_util.rb
|
47
105
|
files:
|
106
|
+
- .bundle/config
|
107
|
+
- Gemfile
|
108
|
+
- Gemfile.lock
|
48
109
|
- Manifest
|
49
110
|
- README.rdoc
|
50
111
|
- Rakefile
|
51
|
-
-
|
112
|
+
- VERSION
|
52
113
|
- features/apr.feature
|
53
114
|
- features/step_definitions/apr_steps.rb
|
54
115
|
- features/support/env.rb
|
@@ -59,16 +120,11 @@ files:
|
|
59
120
|
- spec/spec_helper.rb
|
60
121
|
has_rdoc: true
|
61
122
|
homepage: http://www.pathf.com/blogs/2010/02/mortcalc-gem/
|
62
|
-
licenses:
|
63
|
-
|
123
|
+
licenses:
|
124
|
+
- MORExchange
|
64
125
|
post_install_message:
|
65
|
-
rdoc_options:
|
66
|
-
|
67
|
-
- --inline-source
|
68
|
-
- --title
|
69
|
-
- Mortgage_calculations
|
70
|
-
- --main
|
71
|
-
- README.rdoc
|
126
|
+
rdoc_options: []
|
127
|
+
|
72
128
|
require_paths:
|
73
129
|
- lib
|
74
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -85,17 +141,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
141
|
requirements:
|
86
142
|
- - ">="
|
87
143
|
- !ruby/object:Gem::Version
|
88
|
-
hash:
|
144
|
+
hash: 3
|
89
145
|
segments:
|
90
|
-
-
|
91
|
-
|
92
|
-
version: "1.2"
|
146
|
+
- 0
|
147
|
+
version: "0"
|
93
148
|
requirements: []
|
94
149
|
|
95
|
-
rubyforge_project:
|
150
|
+
rubyforge_project:
|
96
151
|
rubygems_version: 1.3.7
|
97
152
|
signing_key:
|
98
153
|
specification_version: 3
|
99
154
|
summary: Utilities for Mortgage related calculations (APR and Monthly Payments)
|
100
|
-
test_files:
|
101
|
-
|
155
|
+
test_files:
|
156
|
+
- spec/mortgage_calc/mortgage_util_spec.rb
|
157
|
+
- spec/spec_helper.rb
|
data/Version.yml
DELETED