financial_math 0.4.0 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85d7bef08ae4b2d40293f618f5f05423202353b11374c5dea7c374dd6c0d94e7
4
- data.tar.gz: cd732a3b96217bc0e484ca63b131b7a75052cf79af83448c42e6339c31d48f15
3
+ metadata.gz: 3fa4602831d3bf20fee3b85417d5b72a755de53a2c8216189d53858679cff872
4
+ data.tar.gz: 40949a7b823d6254e3412e3d329dc525f465bfaa1260ad805cf80fa123801c94
5
5
  SHA512:
6
- metadata.gz: 3389a31479535fe268bcc87a98a6a370e6f8b03337e2e861702909b7dc26aee6cd1bc174262ef537ba616575dd6094ddaa956239d88b4969d1fee2003e7fc0dc
7
- data.tar.gz: acb5b463279313390aec97a2548850d69ff7ea016ff624a638f29bc94a58fce741c0f020923bc971ecf338adb865416901a0d37a666fa727e6516dd6c63d0653
6
+ metadata.gz: e9372da941991e343e13f4b698d69e0905fb20fb7420d137114c9ec3ffc1a8abd8a3713abfdb4d3e69f9add02897aad4659525809aac16bf933afa3ac118109d
7
+ data.tar.gz: 654f067d488d83e1fbcddaee46e1cdebe07e891e6ece8335007f9a74c68a4da0ccc9e58323ae19573f51431e5f76b794d7758a697c843cd130bc253b668f3818
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- financial_math (0.4.0)
4
+ financial_math (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  rspec (~> 3.0)
33
33
 
34
34
  BUNDLED WITH
35
- 1.16.2
35
+ 1.16.5
data/README.md CHANGED
@@ -24,6 +24,22 @@ Or install it yourself as:
24
24
 
25
25
  $ gem install financial_math
26
26
 
27
+ ## Content
28
+
29
+ This cover the next topics in financial math:
30
+
31
+ * Geometric Progression
32
+ * Arithemetic Progression
33
+ * Simple Interest
34
+ * Compound Interest
35
+
36
+ More content will be added, soon, like:
37
+
38
+ * Annuities
39
+ * Valuation
40
+ * Amortization
41
+ * Stock market math
42
+
27
43
  ## Usage
28
44
 
29
45
  To calculate the last item of a geometric progression:
@@ -31,7 +47,7 @@ To calculate the last item of a geometric progression:
31
47
  ```ruby
32
48
  args = { initial_value: 1100, ratio: 1.1, times: 5 }
33
49
  geometric_progression = FinancialMath::GeometricProgression.new(args)
34
- expect(geometric_progression.last_item).to eql(1610.51)
50
+ geometric_progression.last_item
35
51
  ```
36
52
 
37
53
  To calculate the future value:
@@ -41,6 +57,7 @@ args = { present_value: 100_000.0, interest_rate: 0.05, periods: 3 }
41
57
  simple_interest = FinancialMath::SimpleInterest.new(args)
42
58
  simple_interest.future_value
43
59
  ```
60
+
44
61
  ## Development
45
62
 
46
63
  If want test this gem without clone this repo, type:
@@ -53,6 +70,8 @@ This command will get the development dependencies installed too.
53
70
 
54
71
  ## Release History
55
72
 
73
+ * 0.4.1
74
+ * CHANGE: Update docs (module code remains unchanged)
56
75
  * 0.4.0
57
76
  * ADD: Add `CompoundInterest` class
58
77
  * 0.3.1
@@ -1,3 +1,3 @@
1
1
  module FinancialMath
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: financial_math
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Omar Vergara Pérez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-06 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler