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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46620ca28e3cc084a26f550087d1d665e3e42ba195a3412850bcbf8f0d5c515b
4
- data.tar.gz: 253ba7fd0c2a57496de6289b127270afa6458f552d17fe620024aee0ca80b1b5
3
+ metadata.gz: ea147f6053a7a84921b1f9a4557c272c972e7633eacdde1164c27770e9175ccd
4
+ data.tar.gz: bfe5ec8104ff220c968767a0cd3f41ba1f2f4a41605b4f4e39c7ccbc70f9f10b
5
5
  SHA512:
6
- metadata.gz: 59d98597238b408a7e2814feb844fcf4db4be88d1ba20c20be05066e8214e05602ece27cb309418e8f6a40c404b7b44075fb4834c7f307002baddaa4881e0fb5
7
- data.tar.gz: 35e3b5c9bdcb31a2d02a02748891b5c75cff38a7877167f6c52ee2e2214b547f7cffa9c42a7dc942578c67114b81d541d6fe96d4e8d905dcb6a2719133949288
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
@@ -2,6 +2,7 @@ module Users::Base
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
+ extend Devise::Models
5
6
  attr_accessor :profile_photo_removal
6
7
 
7
8
  if two_factor_authentication_enabled?
@@ -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-stripe | sort | head -n 1`/db/migrate/* db/migrate
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.
@@ -24,7 +24,7 @@ module BulletTrain
24
24
  end
25
25
 
26
26
  def incoming_webhooks_parent_class_name
27
- @@config&.incoming_webhooks_parent_class_name
27
+ @@config&.incoming_webhooks_parent_class_name || "ApplicationRecord"
28
28
  end
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.6.17"
2
+ VERSION = "1.6.19"
3
3
  end
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.17
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-20 00:00:00.000000000 Z
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