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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be1bc8fb18988dfe1cc0e8f65220f824ce8553236a265add61e9530d11fe6c7c
4
- data.tar.gz: 369edc99327bb03195a2c07007c9817c47036033db071b4c65da4567fa212505
3
+ metadata.gz: a01a57a067f83b53429e57919cb6264127b28a10dfa7005536c2531479b5f314
4
+ data.tar.gz: b969026ace1d170c5ad4c23f00b78ae178a352abfd244ae3e9afdee5a8940e81
5
5
  SHA512:
6
- metadata.gz: e8a5ab6f8ccc9d79f8a7767d213f08ef5e60fdb7c6b77640f2ef2719432a695de5bd64e480e818f444a16ca480d1daf45d524dbe1521405e7eab67e97e948791
7
- data.tar.gz: 0ed79a471adfb6ff76d1d12a5302a6355e14362dd9318278c0810e2b7ddfc3e102b31c17f22b0d227ada3c9affdc7b8dbac264a52a295e158b1f15594f862b68
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 circleci/ruby:3.0-node-browsers
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-v9-ruby-3-0-{{ .Branch }}
22
- - spree-auth-devise-bundle-v9-ruby-3-0
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-v9-ruby-3-0-{{ .Branch }}
61
- - spree-auth-devise-bundle-v9-ruby-3-0
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-v9-ruby-3-0-{{ checksum "Gemfile.lock" }}
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: *redis_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: *redis_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', '~> 1.1'
12
+ gem 'pg'
15
13
  end
16
14
 
17
- gem 'pry', '~> 0.14.1'
15
+ gem 'pry'
18
16
  gemspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Spree Auth (Devise)
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
- [![Vendo](https://assets-global.website-files.com/6230c485f2c32ea1b0daa438/623372f40a8c54ca9aea34e8_vendo%202.svg)](https://getvendo.com?utm_source=spree_auth_github)
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
- > All-in-one platform for all your Marketplace and B2B eCommerce needs. [Start your 30-day free trial](https://e98esoirr8c.typeform.com/contactvendo?typeform-source=spree_auth_github)
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
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  module Auth
3
- VERSION = '4.6.0'.freeze
3
+ VERSION = '4.6.1'.freeze
4
4
 
5
5
  def gem_version
6
6
  Gem::Version.new(VERSION)
@@ -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.0
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: 2023-09-20 00:00:00.000000000 Z
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.0
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.0
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.4.1
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