financial_maths 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OWNhYzEyYWUzOGFlYTAxZjA2MzJlZmI3MWZhZWM4MDEyYjhhMmNiZQ==
5
+ data.tar.gz: !binary |-
6
+ NjAzZmRiYjg2ZjhjNmQ2ODdmZWNlMjA0Y2ZiMGQyOTgyODlmNjc1NA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YTk3ZDQ1NTdhYWU3YjY2ZDBkY2Y4MzBlZDNlZTYzOTJjNzc1ZTc0M2FhMWVh
10
+ ZTJjNjBlNDQwZGQxMDE2ZWRiNjlkN2NkM2IzNmIwMzIzYTZhNTBmYzRlYmEw
11
+ ZDk2M2FiYmM1MDNkNmRmZDIzOGEyMGRjMTExMWZmZDI2OTEwNGE=
12
+ data.tar.gz: !binary |-
13
+ ZWI0MTM5YTdiNzdhYWE3ZWQ3ZWYzZDIzMjJkMDQyYmY3NzNkZWUxMTBlY2Q3
14
+ NWNjNmI5MTBhMDdmNWQxMjE1NGU2ZTFlMGU2YzU1ZWJhMTdhYThiNTlhOWFh
15
+ N2E5NTU5ZjZmYjA2YmEwMzc3ZGFiZWM3NWM3ZjVlMGQ3ZTk3YmM=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FinancialMaths
2
2
 
3
- TODO: Write a gem description
3
+ more functions will be added soon
4
4
 
5
5
  ## Installation
6
6
 
@@ -17,8 +17,31 @@ Or install it yourself as:
17
17
  $ gem install financial_maths
18
18
 
19
19
  ## Usage
20
+ ```ruby
21
+ require "financial_maths"
22
+
23
+ include FinancialMaths
24
+
25
+ calculate = Credit.new
26
+ ```
27
+
28
+ ### Calculate Fixed payment equity
29
+ A credit in a period of 15 years, the amount is $100.000.000 and the interest is 1.44594763%,
30
+ call the method following the next instruction.
31
+
32
+ ```ruby
33
+ calculate.fixed_payment_equity(15,100000000,0.0144594763)
34
+ ```
35
+ The result is a hash with the plan of payments, it looks like that
36
+
37
+ [{:period=>0, :monthly_payment=>nil, :interest=>nil, :payment=>nil, :balance=>100000000},
38
+ {:period=>1, :payment=>2001502.63, :interest=>1445947.63, :monthly_payment=>555555, :balance=>99444445},
39
+ {:period=>2, :payment=>1993469.5956441534, :interest=>1437914.5956441534, :monthly_payment=>555555, :balance=>98888890},
40
+ ...
41
+ ..
42
+ .
43
+ ]
20
44
 
21
- TODO: Write usage instructions here
22
45
 
23
46
  ## Contributing
24
47
 
@@ -10,13 +10,16 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["rderoldan1@gmail.com"]
11
11
  spec.description = %q{gem to use financial methods inside ruby}
12
12
  spec.summary = %q{calculate loan payments and other things}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/rderoldan1/financial_maths"
14
14
  spec.license = "MIT"
15
+
16
+ spec.post_install_message = "thanks to install financial_maths gem, I hope improve this gem soon!"
15
17
 
16
18
  spec.files = `git ls-files`.split($/)
17
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
21
  spec.require_paths = ["lib"]
22
+ spec.extra_rdoc_files = ["README.md"]
20
23
 
21
24
  spec.add_development_dependency "bundler", "~> 1.3"
22
25
  spec.add_development_dependency "rake"
@@ -1,3 +1,3 @@
1
1
  module FinancialMaths
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: financial_maths
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ruben Espinosa
@@ -14,7 +13,6 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -48,7 +43,8 @@ email:
48
43
  - rderoldan1@gmail.com
49
44
  executables: []
50
45
  extensions: []
51
- extra_rdoc_files: []
46
+ extra_rdoc_files:
47
+ - README.md
52
48
  files:
53
49
  - .gitignore
54
50
  - Gemfile
@@ -58,29 +54,29 @@ files:
58
54
  - financial_maths.gemspec
59
55
  - lib/financial_maths.rb
60
56
  - lib/financial_maths/version.rb
61
- homepage: ''
57
+ homepage: https://github.com/rderoldan1/financial_maths
62
58
  licenses:
63
59
  - MIT
64
- post_install_message:
60
+ metadata: {}
61
+ post_install_message: thanks to install financial_maths gem, I hope improve this gem
62
+ soon!
65
63
  rdoc_options: []
66
64
  require_paths:
67
65
  - lib
68
66
  required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
67
  requirements:
71
68
  - - ! '>='
72
69
  - !ruby/object:Gem::Version
73
70
  version: '0'
74
71
  required_rubygems_version: !ruby/object:Gem::Requirement
75
- none: false
76
72
  requirements:
77
73
  - - ! '>='
78
74
  - !ruby/object:Gem::Version
79
75
  version: '0'
80
76
  requirements: []
81
77
  rubyforge_project:
82
- rubygems_version: 1.8.24
78
+ rubygems_version: 2.0.0
83
79
  signing_key:
84
- specification_version: 3
80
+ specification_version: 4
85
81
  summary: calculate loan payments and other things
86
82
  test_files: []