profitable 0.4.0 → 0.6.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 +4 -4
- data/.simplecov +4 -4
- data/CHANGELOG.md +35 -1
- data/README.md +246 -14
- data/app/controllers/profitable/dashboard_controller.rb +1 -0
- data/app/views/profitable/dashboard/index.html.erb +4 -0
- data/context7.json +4 -0
- data/lib/profitable/json_helpers.rb +7 -4
- data/lib/profitable/metrics.rb +712 -0
- data/lib/profitable/mrr_calculator.rb +12 -17
- data/lib/profitable/numeric_result.rb +3 -0
- data/lib/profitable/processors/base.rb +7 -3
- data/lib/profitable/processors/braintree_processor.rb +3 -1
- data/lib/profitable/processors/paddle_billing_processor.rb +2 -1
- data/lib/profitable/processors/paddle_classic_processor.rb +2 -1
- data/lib/profitable/processors/stripe_processor.rb +4 -0
- data/lib/profitable/version.rb +1 -1
- data/lib/profitable.rb +10 -523
- metadata +18 -2
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: profitable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rameerez
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-06-23 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: pay
|
|
@@ -37,6 +37,20 @@ dependencies:
|
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '5.2'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: actionview
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '5.2'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '5.2'
|
|
40
54
|
description: Calculate SaaS metrics like the MRR, ARR, churn, LTV, ARPU, total revenue,
|
|
41
55
|
estimated valuation, and other business metrics of your `pay`-powered Rails app
|
|
42
56
|
– and display them in a simple dashboard.
|
|
@@ -59,6 +73,7 @@ files:
|
|
|
59
73
|
- app/views/layouts/profitable/application.html.erb
|
|
60
74
|
- app/views/profitable/dashboard/index.html.erb
|
|
61
75
|
- config/routes.rb
|
|
76
|
+
- context7.json
|
|
62
77
|
- gemfiles/pay_10.0.gemfile
|
|
63
78
|
- gemfiles/pay_11.0.gemfile
|
|
64
79
|
- gemfiles/pay_7.3.gemfile
|
|
@@ -70,6 +85,7 @@ files:
|
|
|
70
85
|
- lib/profitable/engine.rb
|
|
71
86
|
- lib/profitable/error.rb
|
|
72
87
|
- lib/profitable/json_helpers.rb
|
|
88
|
+
- lib/profitable/metrics.rb
|
|
73
89
|
- lib/profitable/mrr_calculator.rb
|
|
74
90
|
- lib/profitable/numeric_result.rb
|
|
75
91
|
- lib/profitable/processors/base.rb
|