bullet_train 1.14.2 → 1.15.0

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: 71828511bb47aaec322fe2df6eb57da6803f85ec5574c789b7239ef059dded39
4
- data.tar.gz: 95efdfff897bf780f45c3d24a4e53ea3259a2901c503e96d851a7a63129df049
3
+ metadata.gz: 1245659cb1e732b6934cb95c6c22f7f12df4312aeb5c4d17d457d444cd31878e
4
+ data.tar.gz: 395985b2ef882354649e4ef8068d79597be53413a96ac1ab05c74567f5f34d12
5
5
  SHA512:
6
- metadata.gz: 72baa13642dcb282d08d5fa88e4bddb4665f84b79968b421d40d4d9a6d88caa4dbeb13f93338de04dda1014f4beabbbea0a962b83d3911065e938acc3f3c614a
7
- data.tar.gz: 9922c22a48bac4248dcd0c240662339bad4cee568602f48ea436d0066c4740551d12bdbdb301d9a35a1bab86a7ee0e59c64dc737b6427b803ad89a2ab4b7f425
6
+ metadata.gz: 55455aa9003e5309b59d82e7a6a12490be219d6b0ba2e160a522eb15584b585dce1e9d3b8f61255e107d9914f989a1c80bdbef318f05d386a18f202de83222dd
7
+ data.tar.gz: 72d2a1040d58510bdda5f4b0e891582790b32ccafbb8d87678d0943f809da2e16d8b424cde59c6937cda82937c7d36c9064aa6100e9ce8ef7aedf1b9b7930a38
data/config/routes.rb CHANGED
@@ -4,7 +4,16 @@ Rails.application.routes.draw do
4
4
  end
5
5
 
6
6
  scope module: "public" do
7
- root to: "home#index"
7
+ begin
8
+ root to: "home#index"
9
+ rescue ArgumentError => argument_error
10
+ if argument_error.message.match?("Invalid route name, already in use: 'root'")
11
+ # This means that a public root route has been declared by the application.
12
+ else
13
+ raise
14
+ end
15
+ end
16
+
8
17
  get "invitation" => "home#invitation", :as => "invitation"
9
18
 
10
19
  if Rails.env.development?
@@ -15,8 +24,16 @@ Rails.application.routes.draw do
15
24
 
16
25
  namespace :account do
17
26
  shallow do
18
- # TODO we need to either implement a dashboard or deprecate this.
19
- root to: "dashboard#index", as: "dashboard"
27
+ begin
28
+ # TODO we need to either implement a dashboard or deprecate this.
29
+ root to: "dashboard#index", as: "dashboard"
30
+ rescue ArgumentError => argument_error
31
+ if argument_error.message.match?("Invalid route name, already in use: 'account_dashboard'")
32
+ # This means that an account scoped root/dashboard route has been declared by the application.
33
+ else
34
+ raise
35
+ end
36
+ end
20
37
 
21
38
  resource :two_factor, only: [:create, :destroy] do
22
39
  post :verify
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.14.2"
2
+ VERSION = "1.15.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.2
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-27 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: standard
@@ -181,16 +181,16 @@ dependencies:
181
181
  name: omniauth
182
182
  requirement: !ruby/object:Gem::Requirement
183
183
  requirements:
184
- - - ">="
184
+ - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '0'
186
+ version: '2.0'
187
187
  type: :runtime
188
188
  prerelease: false
189
189
  version_requirements: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - ">="
191
+ - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '0'
193
+ version: '2.0'
194
194
  - !ruby/object:Gem::Dependency
195
195
  name: image_processing
196
196
  requirement: !ruby/object:Gem::Requirement