File tree 5 files changed +29
-12
lines changed
5 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ run_tests: &run_tests
26
26
keys :
27
27
- spree-auth-devise-bundle-v9-ruby-2-7-{{ .Branch }}
28
28
- spree-auth-devise-bundle-v9-ruby-2-7
29
+ - run :
30
+ name : Install libvips
31
+ command : sudo apt-get install libvips
29
32
- run :
30
33
name : Set bundle path
31
34
command : bundle config --local path vendor/bundle
@@ -58,6 +61,9 @@ run_tests_3_0: &run_tests_3_0
58
61
keys :
59
62
- spree-auth-devise-bundle-v9-ruby-3-0-{{ .Branch }}
60
63
- spree-auth-devise-bundle-v9-ruby-3-0
64
+ - run :
65
+ name : Install libvips
66
+ command : sudo apt-get install libvips
61
67
- run :
62
68
name : Set bundle path
63
69
command : bundle config --local path vendor/bundle
91
97
keys :
92
98
- spree-auth-devise-bundle-v9-ruby-2-7-{{ .Branch }}
93
99
- spree-auth-devise-bundle-v9-ruby-2-7
100
+ - run :
101
+ name : Install libvips
102
+ command : sudo apt-get install libvips
94
103
- run :
95
104
name : Set bundle path
96
105
command : bundle config --local path vendor/bundle
@@ -111,6 +120,9 @@ jobs:
111
120
keys :
112
121
- spree-auth-devise-bundle-v9-ruby-3-0-{{ .Branch }}
113
122
- spree-auth-devise-bundle-v9-ruby-3-0
123
+ - run :
124
+ name : Install libvips
125
+ command : sudo apt-get install libvips
114
126
- run :
115
127
name : Set bundle path
116
128
command : bundle config --local path vendor/bundle
@@ -174,4 +186,4 @@ workflows:
174
186
- bundle_ruby_3_0
175
187
- tests_mysql :
176
188
requires :
177
- - bundle
189
+ - bundle
Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
3
3
gem 'rails-controller-testing'
4
+ gem 'devise' , github : 'heartcombo/devise' , branch : 'main'
4
5
gem 'spree' , github : 'spree/spree' , branch : 'main'
5
- gem 'spree_backend' , github : 'spree/spree_backend' , branch : 'main'
6
- gem 'spree_frontend' , github : 'spree/spree_legacy_frontend' , branch : 'main'
6
+ gem 'spree_backend' , github : 'spree/spree_backend' , branch : 'rails7'
7
7
gem 'spree_emails' , github : 'spree/spree' , branch : 'main'
8
+ gem 'spree_frontend' , github : 'spree/spree_legacy_frontend' , branch : 'main'
8
9
gem 'rspec_junit_formatter' , '~> 0.4.1'
9
10
10
11
gem 'pry' , '~> 0.14.1'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ module Spree
2
+ module Auth
3
+ class Configuration < Preferences ::Configuration
4
+ preference :registration_step , :boolean , default : true
5
+ preference :signout_after_password_change , :boolean , default : true
6
+ preference :confirmable , :boolean , default : false
7
+ preference :validatable , :boolean , default : true
8
+ end
9
+ end
10
+ end
Original file line number Diff line number Diff line change 1
1
require 'devise'
2
2
require 'devise-encryptable'
3
3
4
+ require_relative 'configuration'
5
+
4
6
module Spree
5
7
module Auth
6
8
class Engine < Rails ::Engine
7
9
isolate_namespace Spree
8
10
engine_name 'spree_auth'
9
11
10
12
initializer "spree.auth.environment" , before : :load_config_initializers do |_app |
11
- Spree ::Auth ::Config = Spree ::AuthConfiguration . new
13
+ Spree ::Auth ::Config = Spree ::Auth :: Configuration . new
12
14
end
13
15
14
16
initializer "spree_auth_devise.set_user_class" , after : :load_config_initializers do
You can’t perform that action at this time.
0 commit comments