spree_auth_devise 4.6.0 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +8 -11
- data/Gemfile +2 -4
- data/README.md +23 -3
- data/db/default/users.rb +0 -2
- data/lib/spree/auth/version.rb +1 -1
- data/spec/models/user_spec.rb +2 -2
- metadata +5 -6
- data/.travis.yml +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a01a57a067f83b53429e57919cb6264127b28a10dfa7005536c2531479b5f314
|
4
|
+
data.tar.gz: b969026ace1d170c5ad4c23f00b78ae178a352abfd244ae3e9afdee5a8940e81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09f792afd1cc2b5f2e3c39c075ad628c23e0bb4ef9b9a6ff049ec1f390bc02cb2037568517e854ed815020aa651d4842320d8fff4772d973f095cdca1afe638f'
|
7
|
+
data.tar.gz: b3d8113dd54a4eff67acc34c323b0a09805224a4da0414d703a28213807b341311e5d9da8d4784a33c15bbc1fe6e90b8161e8c877d43a1424f1300cfa87357e4
|
data/.circleci/config.yml
CHANGED
@@ -9,8 +9,7 @@ defaults: &defaults
|
|
9
9
|
BUNDLE_PATH: ~/spree/vendor/bundle
|
10
10
|
working_directory: ~/spree
|
11
11
|
docker:
|
12
|
-
- image: &ruby_image
|
13
|
-
- image: &redis_image circleci/redis:6.2-alpine
|
12
|
+
- image: &ruby_image cimg/ruby:3.3.0-browsers
|
14
13
|
|
15
14
|
run_tests: &run_tests
|
16
15
|
<<: *defaults
|
@@ -18,8 +17,8 @@ run_tests: &run_tests
|
|
18
17
|
- checkout
|
19
18
|
- restore_cache:
|
20
19
|
keys:
|
21
|
-
- spree-auth-devise-bundle-
|
22
|
-
- spree-auth-devise-bundle-
|
20
|
+
- spree-auth-devise-bundle-v10-ruby-3-3-{{ .Branch }}
|
21
|
+
- spree-auth-devise-bundle-v10-ruby-3-3
|
23
22
|
- run:
|
24
23
|
name: Add keyserver
|
25
24
|
command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
|
@@ -57,8 +56,8 @@ jobs:
|
|
57
56
|
- checkout
|
58
57
|
- restore_cache:
|
59
58
|
keys:
|
60
|
-
- spree-auth-devise-bundle-
|
61
|
-
- spree-auth-devise-bundle-
|
59
|
+
- spree-auth-devise-bundle-v10-ruby-3-3-{{ .Branch }}
|
60
|
+
- spree-auth-devise-bundle-v10-ruby-3-3
|
62
61
|
- run:
|
63
62
|
name: Add keyserver
|
64
63
|
command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
|
@@ -75,7 +74,7 @@ jobs:
|
|
75
74
|
- save_cache:
|
76
75
|
paths:
|
77
76
|
- vendor/bundle
|
78
|
-
key: spree-auth-devise-bundle-
|
77
|
+
key: spree-auth-devise-bundle-v10-ruby-3-3-{{ checksum "Gemfile.lock" }}
|
79
78
|
|
80
79
|
tests_postgres: &tests_postgres
|
81
80
|
<<: *run_tests
|
@@ -86,8 +85,7 @@ jobs:
|
|
86
85
|
DB_USERNAME: postgres
|
87
86
|
docker:
|
88
87
|
- image: *ruby_image
|
89
|
-
- image:
|
90
|
-
- image: &postgres_image circleci/postgres:12-alpine
|
88
|
+
- image: &postgres_image cimg/postgres:16.2
|
91
89
|
environment:
|
92
90
|
POSTGRES_USER: postgres
|
93
91
|
|
@@ -102,8 +100,7 @@ jobs:
|
|
102
100
|
COVERAGE_DIR: /tmp/workspace/simplecov
|
103
101
|
docker:
|
104
102
|
- image: *ruby_image
|
105
|
-
- image:
|
106
|
-
- image: &mysql_image circleci/mysql:8-ram
|
103
|
+
- image: &mysql_image cimg/mysql:8.0
|
107
104
|
|
108
105
|
workflows:
|
109
106
|
version: 2
|
data/Gemfile
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gem 'rails-controller-testing'
|
4
|
-
gem 'devise', github: 'heartcombo/devise', branch: 'main'
|
5
4
|
gem 'spree', github: 'spree/spree', branch: 'main'
|
6
5
|
gem 'spree_backend', github: 'spree/spree_backend', branch: 'main'
|
7
6
|
gem 'spree_emails', github: 'spree/spree', branch: 'main'
|
8
7
|
gem 'spree_frontend', github: 'spree/spree_legacy_frontend', branch: 'main'
|
9
|
-
gem 'rspec_junit_formatter', '~> 0.4.1'
|
10
8
|
|
11
9
|
if ENV['DB'] == 'mysql'
|
12
10
|
gem 'mysql2'
|
13
11
|
else
|
14
|
-
gem 'pg'
|
12
|
+
gem 'pg'
|
15
13
|
end
|
16
14
|
|
17
|
-
gem 'pry'
|
15
|
+
gem 'pry'
|
18
16
|
gemspec
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Spree Auth
|
1
|
+
# Spree Auth Devise
|
2
2
|
|
3
3
|
[![CircleCI](https://circleci.com/gh/spree/spree_auth_devise/tree/main.svg?style=svg)](https://circleci.com/gh/spree/spree_auth_devise/tree/main)
|
4
4
|
|
@@ -6,9 +6,9 @@ Provides authentication services for [Spree](https://spreecommerce.org), using t
|
|
6
6
|
|
7
7
|
## Developed by
|
8
8
|
|
9
|
-
|
9
|
+
<a href="https://getvendo.com?utm_source=spree_auth_github"><img src="https://cdn.getvendo.com/assets/vendo-logo-4bda02af8c99bc2ecc5a400120f0ebe4eafcd385e02e25f198a8c355ab75d1ff.png" height=50 alt="Vendo - Start your own multi-brand marketplace" /></a>
|
10
10
|
|
11
|
-
|
11
|
+
<a href="http://sparksolutions.co?utm_source=github"><img src="https://sparksolutions.co/wp-content/themes/sparksolutions/images/logo.svg" height=50 alt="Spark Solutions - Ruby on Rails and Spree Commerce developers"></a>
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
@@ -135,3 +135,23 @@ You need to do a quick one-time creation of a test application and then you can
|
|
135
135
|
Then run the rspec tests.
|
136
136
|
|
137
137
|
bundle exec rspec
|
138
|
+
|
139
|
+
|
140
|
+
## License
|
141
|
+
|
142
|
+
Spree Starter (formerly Spark Starter Kit) is copyright © 2015-2021
|
143
|
+
[Spark Solutions Sp. z o.o.][spark]. It is free software,
|
144
|
+
and may be redistributed under the terms specified in the
|
145
|
+
[LICENSE](LICENSE.md) file.
|
146
|
+
|
147
|
+
## About Spark Solutions
|
148
|
+
|
149
|
+
[![Spark Solutions](http://sparksolutions.co/wp-content/uploads/2015/01/logo-ss-tr-221x100.png)][spark]
|
150
|
+
|
151
|
+
Spree Auth Devise is maintained and funded by [Spark Solutions Sp. z o.o.](http://sparksolutions.co?utm_source=github)
|
152
|
+
The names and logos are trademarks of Spark Solutions Sp. z o.o.
|
153
|
+
|
154
|
+
We are passionate about open source software.
|
155
|
+
We are [available for hire][spark].
|
156
|
+
|
157
|
+
[spark]:http://sparksolutions.co?utm_source=github
|
data/db/default/users.rb
CHANGED
@@ -50,8 +50,6 @@ def create_admin_user
|
|
50
50
|
login: email
|
51
51
|
}
|
52
52
|
|
53
|
-
load 'spree/user.rb'
|
54
|
-
|
55
53
|
if Spree::User.find_by_email(email)
|
56
54
|
say "\nWARNING: There is already a user with the email: #{email}, so no account changes were made. If you wish to create an additional admin user, please run rake spree_auth:admin:create again with a different email.\n\n"
|
57
55
|
else
|
data/lib/spree/auth/version.rb
CHANGED
data/spec/models/user_spec.rb
CHANGED
@@ -111,7 +111,7 @@ RSpec.describe Spree::User, type: :model do
|
|
111
111
|
user = Spree.user_class.new
|
112
112
|
user.email = FFaker::Internet.email
|
113
113
|
user.password = user.password_confirmation = 'pass1234'
|
114
|
-
user.save
|
114
|
+
user.save!
|
115
115
|
|
116
116
|
expect(Spree::UserMailer).to receive(:confirmation_instructions).with(
|
117
117
|
user, anything, { current_store_id: default_store.id }).and_return(double(deliver: true)
|
@@ -126,7 +126,7 @@ RSpec.describe Spree::User, type: :model do
|
|
126
126
|
user = Spree.user_class.new
|
127
127
|
user.email = FFaker::Internet.email
|
128
128
|
user.password = user.password_confirmation = 'pass1234'
|
129
|
-
user.save
|
129
|
+
user.save!
|
130
130
|
|
131
131
|
expect(Spree::UserMailer).to receive(:confirmation_instructions).with(
|
132
132
|
user, anything, { current_store_id: store.id }).and_return(double(deliver: true)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_auth_devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|
@@ -93,7 +93,6 @@ files:
|
|
93
93
|
- ".github/dependabot.yml"
|
94
94
|
- ".gitignore"
|
95
95
|
- ".rspec"
|
96
|
-
- ".travis.yml"
|
97
96
|
- CHANGELOG.md
|
98
97
|
- Gemfile
|
99
98
|
- LICENSE.md
|
@@ -213,9 +212,9 @@ licenses:
|
|
213
212
|
- BSD-3-Clause
|
214
213
|
metadata:
|
215
214
|
bug_tracker_uri: https://github.com/spree/spree_auth_devise/issues
|
216
|
-
changelog_uri: https://github.com/spree/spree_auth_devise/releases/tag/v4.6.
|
215
|
+
changelog_uri: https://github.com/spree/spree_auth_devise/releases/tag/v4.6.1
|
217
216
|
documentation_uri: https://guides.spreecommerce.org/
|
218
|
-
source_code_uri: https://github.com/spree/spree_auth_devise/tree/v4.6.
|
217
|
+
source_code_uri: https://github.com/spree/spree_auth_devise/tree/v4.6.1
|
219
218
|
post_install_message:
|
220
219
|
rdoc_options: []
|
221
220
|
require_paths:
|
@@ -232,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
231
|
version: '0'
|
233
232
|
requirements:
|
234
233
|
- none
|
235
|
-
rubygems_version: 3.
|
234
|
+
rubygems_version: 3.5.3
|
236
235
|
signing_key:
|
237
236
|
specification_version: 4
|
238
237
|
summary: Provides authentication and authorization services for use with Spree by
|
data/.travis.yml
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
os: linux
|
2
|
-
dist: bionic
|
3
|
-
|
4
|
-
addons:
|
5
|
-
apt:
|
6
|
-
sources:
|
7
|
-
- google-chrome
|
8
|
-
packages:
|
9
|
-
- google-chrome-stable
|
10
|
-
|
11
|
-
services:
|
12
|
-
- mysql
|
13
|
-
- postgresql
|
14
|
-
- redis-server
|
15
|
-
|
16
|
-
language: ruby
|
17
|
-
|
18
|
-
rvm:
|
19
|
-
- 2.7
|
20
|
-
- 3.0
|
21
|
-
|
22
|
-
env:
|
23
|
-
- DB=mysql
|
24
|
-
- DB=postgres
|
25
|
-
|
26
|
-
before_install:
|
27
|
-
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
|
28
|
-
|
29
|
-
before_script:
|
30
|
-
- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
|
31
|
-
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
|
32
|
-
- curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
|
33
|
-
- unzip chromedriver_linux64.zip -d ~/bin
|
34
|
-
|
35
|
-
script:
|
36
|
-
- bundle exec rake test_app
|
37
|
-
- bundle exec rake spec
|