fraction-royalty-calc 1.0.0
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 +7 -0
- data/README.md +5 -0
- data/lib/fraction_royalty_calc.rb +11 -0
- metadata +48 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 225cb53e32d9e007c193820bbed9f7d41542a387953dbcc748cf0e6f3bb03b7c
|
|
4
|
+
data.tar.gz: a7838a338f907d0fa04e0eb97de9c7dea292f359a86aa3016f2e0afcf425bb1f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d58db7b827e962dfaac080c4d5690c235e2fcf031244ddf3d82ff4761bc441aebb3d7541b587d474091de0f1c6e47337adecc232c7110a6b7221d1448e986eb9
|
|
7
|
+
data.tar.gz: f104e8ac4b25f9104412a906c400501e2ee3c8edb3d91600360094b436f760b9074667a7ddd2f71a0bf7c9e22e55bb3185392301925789bf513a8a9ca1f923df
|
data/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module FractionRoyaltyCalc
|
|
4
|
+
VERSION = "1.0.0"
|
|
5
|
+
|
|
6
|
+
# decimal interest from NRI / decimal royalty rate
|
|
7
|
+
def self.fraction_interest(nri, royalty_rate)
|
|
8
|
+
raise ArgumentError, "royalty_rate must be > 0" if royalty_rate.to_f <= 0
|
|
9
|
+
nri.to_f / royalty_rate.to_f
|
|
10
|
+
end
|
|
11
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: fraction-royalty-calc
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Fraction Royalty
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-11-04 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Tiny calculator helpers for Fraction Royalty (fractionroyalty.com) oil
|
|
14
|
+
& gas mineral interest math.
|
|
15
|
+
email:
|
|
16
|
+
- ericw@fractionroyalty.com
|
|
17
|
+
executables: []
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- README.md
|
|
22
|
+
- lib/fraction_royalty_calc.rb
|
|
23
|
+
homepage: https://fractionroyalty.com
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata:
|
|
27
|
+
homepage_uri: https://fractionroyalty.com
|
|
28
|
+
source_code_uri: https://fractionroyalty.com
|
|
29
|
+
post_install_message:
|
|
30
|
+
rdoc_options: []
|
|
31
|
+
require_paths:
|
|
32
|
+
- lib
|
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: 2.7.0
|
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '0'
|
|
43
|
+
requirements: []
|
|
44
|
+
rubygems_version: 3.5.22
|
|
45
|
+
signing_key:
|
|
46
|
+
specification_version: 4
|
|
47
|
+
summary: Helpers for oil and gas fraction royalty calculations
|
|
48
|
+
test_files: []
|