finrb 0.0.1 → 0.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.
data/finrb.gemspec DELETED
@@ -1,98 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- SPEC =
4
- Gem::Specification.new do |s|
5
- s.name = 'finrb'
6
- s.version = '0.0.1'
7
- s.authors = ['Nadir Cohen', 'Martin Bjeldbak Madsen', 'Bill Kranec']
8
- s.license = 'LGPL-3.0'
9
- s.email = ['nadircs11@gmail.com', 'me@martinbjeldbak.com', 'wkranec@gmail.com']
10
- s.platform = Gem::Platform::RUBY
11
- s.summary = 'Ruby gem for financial calculations/modeling'
12
-
13
- s.description = <<~EOF
14
- The finrb library (forked from the finance gem) provides a Ruby interface for financial calculations/modeling.
15
-
16
- - Working with interest rates
17
- - Mortgage amortization
18
- - Cashflows (NPV, IRR, etc.)
19
- - Computing bank discount yield (BDY) for a T-bill
20
- - Computing money market yield (MMY) for a T-bill
21
- - Cash ratio - Liquidity ratios measure the firm's ability to satisfy its short-term obligations as they come due.
22
- - Computing Coefficient of variation
23
- - Cost of goods sold and ending inventory under three methods (FIFO,LIFO,Weighted average)
24
- - Current ratio - Liquidity ratios measure the firm's ability to satisfy its short-term obligations as they come due.
25
- - Depreciation Expense Recognition - double-declining balance (DDB), the most common declining balance method, which applies two times the straight-line rate to the declining balance.
26
- - Debt ratio - Solvency ratios measure the firm's ability to satisfy its long-term obligations.
27
- - Diluted Earnings Per Share
28
- - Computing the rate of return for each period
29
- - Convert stated annual rate to the effective annual rate
30
- - Convert stated annual rate to the effective annual rate with continuous compounding
31
- - Bond-equivalent yield (BEY), 2 x the semiannual discount rate
32
- - Computing HPR, the holding period return
33
- - Equivalent/proportional Interest Rates
34
- - Basic Earnings Per Share
35
- - Financial leverage - Solvency ratios measure the firm's ability to satisfy its long-term obligations.
36
- - Estimate future value (fv)
37
- - Estimate future value of an annuity
38
- - Estimate future value (fv) of a single sum
39
- - Computing the future value of an uneven cash flow series
40
- - Geometric mean return
41
- - Gross profit margin - Evaluate a company's financial performance
42
- - Harmonic mean, average price
43
- - Computing HPR, the holding period return
44
- - Bond-equivalent yield (BEY), 2 x the semiannual discount rate
45
- - Convert holding period return to the effective annual rate
46
- - Computing money market yield (MMY) for a T-bill
47
- - Computing IRR, the internal rate of return
48
- - Calculate the net increase in common shares from the potential exercise of stock options or warrants
49
- - Long-term debt-to-equity - Solvency ratios measure the firm's ability to satisfy its long-term obligations.
50
- - Computing HPR, the holding period return
51
- - Estimate the number of periods
52
- - Net profit margin - Evaluate a company's financial performance
53
- - Computing NPV, the PV of the cash flows less the initial (time = 0) outlay
54
- - Estimate period payment
55
- - Estimate present value (pv)
56
- - Estimate present value (pv) of an annuity
57
- - Estimate present value of a perpetuity
58
- - Estimate present value (pv) of a single sum
59
- - Computing the present value of an uneven cash flow series
60
- - Quick ratio - Liquidity ratios measure the firm's ability to satisfy its short-term obligations as they come due.
61
- - Convert a given norminal rate to a continuous compounded rate
62
- - Convert a given continuous compounded rate to a norminal rate
63
- - Rate of return for a perpetuity
64
- - Computing Sampling error
65
- - Computing Roy's safety-first ratio
66
- - Computing Sharpe Ratio
67
- - Depreciation Expense Recognition - Straight-line depreciation (SL) allocates an equal amount of depreciation each year over the asset's useful life
68
- - Total debt-to-equity - Solvency ratios measure the firm's ability to satisfy its long-term obligations.
69
- - Computing TWRR, the time-weighted rate of return
70
- - Calculate weighted average shares - weighted average number of common shares
71
- - Weighted mean as a portfolio return
72
-
73
- EOF
74
-
75
- s.homepage = 'https://rubygems.org/gems/finrb'
76
-
77
- s.required_ruby_version = '>= 3.0'
78
-
79
- s.add_dependency('activesupport')
80
- s.add_dependency('business_time')
81
- s.add_dependency('flt')
82
-
83
- s.add_development_dependency('minitest')
84
- s.add_development_dependency('pry')
85
- s.add_development_dependency('rake')
86
- s.add_development_dependency('rubocop')
87
- s.add_development_dependency('rubocop-minitest')
88
- s.add_development_dependency('rubocop-performance')
89
- s.add_development_dependency('rubocop-rake')
90
- s.add_development_dependency('semver')
91
- s.add_development_dependency('solargraph')
92
-
93
- s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
94
-
95
- s.extra_rdoc_files = ['README.md', 'COPYING', 'COPYING.LESSER', 'CHANGELOG.md']
96
-
97
- s.metadata['rubygems_mfa_required'] = 'true'
98
- end