bullet_train 1.34.1 → 1.35.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/app/models/concerns/teams/base.rb +0 -1
- data/docs/action-models.md +4 -11
- data/docs/billing/stripe.md +4 -29
- data/docs/billing/usage.md +9 -16
- data/lib/bullet_train/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25534acd68cfd6da1b0e05199b35c0795bbd98d9fa1314fd1c1180b154e7c043
|
|
4
|
+
data.tar.gz: cc0cad473683e187e5dcaeca068748a3fe979cf7ebca0687766d4710e97cb164
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a221a9c961bbd7f379d340f9a97d98cdaa4c4c74b88c593778d4b81e517b73e863a497a739fc465fb77d2ff6751e29d0d851b118e67957c1ffac4d82396a9690
|
|
7
|
+
data.tar.gz: c94b9763df8e2182a9f041771921c1d0299fcfdec7618ff44f167249378f9879ca21521c58d9903bdc09a501c42e1100d79c53f9c9ded2030e117a4b561bdb63
|
data/docs/action-models.md
CHANGED
|
@@ -42,18 +42,11 @@ end
|
|
|
42
42
|
|
|
43
43
|
## Installation
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
We recently fully open-sourced our PRO-level features, but haven't yet merged these projects into our core repo. Until we do, you can install the action-model gem via git.
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Then you can specify the Ruby gem in your `Gemfile`:
|
|
52
|
-
|
|
53
|
-
```ruby
|
|
54
|
-
source "https://YOUR_TOKEN_HERE@gem.fury.io/bullettrain" do
|
|
55
|
-
gem "bullet_train-action_models"
|
|
56
|
-
end
|
|
47
|
+
```
|
|
48
|
+
# Below the comment labelled YOUR GEMS in your Gemfile
|
|
49
|
+
gem "bullet_train-action_models", git: "https://github.com/bullet-train-pro/bullet_train-action_models.git"
|
|
57
50
|
```
|
|
58
51
|
|
|
59
52
|
Don't forget to run `bundle install` and `rails restart`.
|
data/docs/billing/stripe.md
CHANGED
|
@@ -4,34 +4,11 @@ When you're ready to start billing customers for the product you've created with
|
|
|
4
4
|
|
|
5
5
|
We also provide a Stripe-specific adapter package with support for auto-configuring those products and prices in your Stripe account. It also takes advantage of completely modern Stripe workflows, like allowing customers to purchase your product with Stripe Checkout and later manage their subscription using Stripe Billing's customer portal. It also automatically handles incoming Stripe webhooks as well, to keep subscription state in your application up-to-date with activity that has happened on Stripe's platform.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Install the Bullet Train Billing gems via git
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
We recently fully open-sourced our PRO-level features, but haven't yet merged these projects into our core repo. Until we do, you can install the billing gems via git.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### A.2. Add the Private Ruby Gems
|
|
14
|
-
|
|
15
|
-
You'll need to specify both Ruby gems in your `Gemfile`, since we have to specify a private source for both:
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
source "https://YOUR_TOKEN_HERE@gem.fury.io/bullettrain" do
|
|
19
|
-
gem "bullet_train-billing"
|
|
20
|
-
gem "bullet_train-billing-stripe"
|
|
21
|
-
end
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### A.3. Bundle Install
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
bundle install
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
**Proceed to the [Installation Instructions](#installation-instructions) section below**
|
|
31
|
-
|
|
32
|
-
## Option B: Using the Open Source version of Bullet Train Billing via git
|
|
33
|
-
|
|
34
|
-
### B.1. Add the Git Repositories
|
|
11
|
+
### 1. Add the gems via git
|
|
35
12
|
|
|
36
13
|
```
|
|
37
14
|
# Below the comment labelled YOUR GEMS in your Gemfile
|
|
@@ -39,7 +16,7 @@ gem "bullet_train-billing", git: "https://github.com/bullet-train-pro/bullet_tra
|
|
|
39
16
|
gem "bullet_train-billing-stripe", git: "https://github.com/bullet-train-pro/bullet_train-billing-stripe.git"
|
|
40
17
|
```
|
|
41
18
|
|
|
42
|
-
###
|
|
19
|
+
### 2. Bundle Install
|
|
43
20
|
|
|
44
21
|
```
|
|
45
22
|
bundle install
|
|
@@ -54,8 +31,6 @@ Fetching gem metadata from https://rubygems.org/........
|
|
|
54
31
|
<all of your normal gems>
|
|
55
32
|
```
|
|
56
33
|
|
|
57
|
-
**Proceed to the [Installation Instructions](#installation-instructions) section below**
|
|
58
|
-
|
|
59
34
|
## Installation Instructions
|
|
60
35
|
|
|
61
36
|
### Prerequisites
|
data/docs/billing/usage.md
CHANGED
|
@@ -4,31 +4,24 @@ Bullet Train provides a holistic method for defining model-based usage limits in
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
### 1.
|
|
7
|
+
### 1. Add the gems via git
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
We recently fully open-sourced our PRO-level features, but haven't yet merged these projects into our core repo. Until we do, you can install the action-model gem via git.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
source "https://YOUR_TOKEN_HERE@gem.fury.io/bullettrain" do
|
|
19
|
-
gem "bullet_train-billing"
|
|
20
|
-
gem "bullet_train-billing-stripe" # Or whichever billing provider you're using.
|
|
21
|
-
gem "bullet_train-billing-usage"
|
|
22
|
-
end
|
|
11
|
+
```
|
|
12
|
+
# Below the comment labelled YOUR GEMS in your Gemfile
|
|
13
|
+
gem "bullet_train-billing", git: "https://github.com/bullet-train-pro/bullet_train-billing.git"
|
|
14
|
+
gem "bullet_train-billing-stripe", git: "https://github.com/bullet-train-pro/bullet_train-billing-stripe.git"
|
|
15
|
+
gem "bullet_train-billing-usage", git: "https://github.com/bullet-train-pro/bullet_train-billing-usage.git"
|
|
23
16
|
```
|
|
24
17
|
|
|
25
|
-
### 2.
|
|
18
|
+
### 2. Bundle Install
|
|
26
19
|
|
|
27
20
|
```
|
|
28
21
|
bundle install
|
|
29
22
|
```
|
|
30
23
|
|
|
31
|
-
###
|
|
24
|
+
### 3. Copy Database Migrations
|
|
32
25
|
|
|
33
26
|
Use the following two commands on your shell to copy the required migrations into your local project:
|
|
34
27
|
|
data/lib/bullet_train/version.rb
CHANGED