bullet_train 1.6.17 → 1.6.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/account/application_controller.rb +16 -0
- data/app/controllers/application_controller.rb +8 -0
- data/app/models/application_hash.rb +6 -0
- data/app/models/application_record.rb +7 -0
- data/app/models/concerns/users/base.rb +1 -0
- data/docs/billing/usage.md +1 -1
- data/lib/bullet_train/configuration.rb +1 -1
- data/lib/bullet_train/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea147f6053a7a84921b1f9a4557c272c972e7633eacdde1164c27770e9175ccd
|
4
|
+
data.tar.gz: bfe5ec8104ff220c968767a0cd3f41ba1f2f4a41605b4f4e39c7ccbc70f9f10b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b6ce8fc6b6594f36f4c0a2b3173ce2f1944823e1d0f11025d212cbdc10573d848185975fad793a880d44d754b767d72f701ee68b4263486a97376bad1090941
|
7
|
+
data.tar.gz: acb43ae1f2bf3e25ee74a087a2c9976e26cc371823cc3d16391a7cad10cc0681211b884b33ec8fde9572a5bc30f8819701fb222ddd6e4711a590250846fb5c92
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Account::ApplicationController < ApplicationController
|
2
|
+
include Account::Controllers::Base
|
3
|
+
|
4
|
+
def ensure_onboarding_is_complete
|
5
|
+
# First check that Bullet Train doesn't have any onboarding steps it needs to enforce.
|
6
|
+
return false unless super
|
7
|
+
|
8
|
+
# Most onboarding steps you'll add should be skipped if the user is adding a team or accepting an invitation ...
|
9
|
+
unless adding_team? || accepting_invitation?
|
10
|
+
# So, if you have new onboarding steps to check for an enforce, do that here:
|
11
|
+
end
|
12
|
+
|
13
|
+
# Finally, if we've gotten this far, then onboarding appears to be complete!
|
14
|
+
true
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# This is a default implementation of this file that we supply to help with gem tests.
|
2
|
+
# The version from the starter repo will take precedence when running the full app.
|
3
|
+
# You can think of the file in the starter repo as having been ejected from this gem.
|
4
|
+
class ApplicationController < ActionController::Base
|
5
|
+
include Controllers::Base
|
6
|
+
|
7
|
+
protect_from_forgery with: :exception, prepend: true
|
8
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# This is a default implementation of this file that we supply to help with gem tests.
|
2
|
+
# The version from the starter repo will take precedence when running the full app.
|
3
|
+
# You can think of the file in the starter repo as having been ejected from this gem.
|
4
|
+
class ApplicationHash < ActiveHash::Base
|
5
|
+
include ActiveHash::Associations
|
6
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class ApplicationRecord < ActiveRecord::Base
|
2
|
+
primary_abstract_class
|
3
|
+
|
4
|
+
# Bullet Train includes a lot of functionality in each model by default.
|
5
|
+
# If you want to avoid this for specific models, consider inheriting from `ActiveRecord::Base` directly.
|
6
|
+
include Records::Base
|
7
|
+
end
|
data/docs/billing/usage.md
CHANGED
@@ -34,7 +34,7 @@ Use the following two commands on your shell to copy the required migrations int
|
|
34
34
|
|
35
35
|
```
|
36
36
|
cp `bundle show --paths | grep bullet_train-billing | sort | head -n 1`/db/migrate/* db/migrate
|
37
|
-
cp `bundle show --paths | grep bullet_train-billing-
|
37
|
+
cp `bundle show --paths | grep bullet_train-billing-usage | sort | head -n 1`/db/migrate/* db/migrate
|
38
38
|
```
|
39
39
|
|
40
40
|
Note this is different than how many Rails engines ask you to install migrations. This is intentional, as we want to maintain the original timestamps associated with these migrations.
|
data/lib/bullet_train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -511,6 +511,7 @@ files:
|
|
511
511
|
- MIT-LICENSE
|
512
512
|
- Rakefile
|
513
513
|
- app/assets/config/bullet_train_manifest.js
|
514
|
+
- app/controllers/account/application_controller.rb
|
514
515
|
- app/controllers/account/invitations_controller.rb
|
515
516
|
- app/controllers/account/memberships_controller.rb
|
516
517
|
- app/controllers/account/onboarding/invitation_lists_controller.rb
|
@@ -519,6 +520,7 @@ files:
|
|
519
520
|
- app/controllers/account/teams_controller.rb
|
520
521
|
- app/controllers/account/two_factors_controller.rb
|
521
522
|
- app/controllers/account/users_controller.rb
|
523
|
+
- app/controllers/application_controller.rb
|
522
524
|
- app/controllers/concerns/account/controllers/base.rb
|
523
525
|
- app/controllers/concerns/account/invitations/controller_base.rb
|
524
526
|
- app/controllers/concerns/account/memberships/controller_base.rb
|
@@ -576,6 +578,8 @@ files:
|
|
576
578
|
- app/models/addresses/country.rb
|
577
579
|
- app/models/addresses/region.rb
|
578
580
|
- app/models/addresses/subcontinent.rb
|
581
|
+
- app/models/application_hash.rb
|
582
|
+
- app/models/application_record.rb
|
579
583
|
- app/models/billing/mock_limiter.rb
|
580
584
|
- app/models/concerns/account/onboarding/invitation_lists/base.rb
|
581
585
|
- app/models/concerns/addresses/base.rb
|