alchemy-devise 5.1.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +88 -0
- data/README.md +1 -1
- data/config/initializers/alchemy.rb +18 -22
- data/lib/alchemy/devise/engine.rb +4 -0
- data/lib/alchemy/devise/version.rb +1 -1
- metadata +14 -13
- data/Rakefile +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f58d46b9126aecea12b501b449de4effd33b1c5eccf18f82937a5662c35469a4
|
4
|
+
data.tar.gz: 46bf5120a6e8d2dcb536ba407d6bfcf1572164833b789752d9f58e8c84713914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 101acd9fa3dde21bf274bf493e6b9f9e801d47d7e988e01f3cef86fd813951cb291268f9690e06c89a9c1d881a625e9306fd0fc8d1f3b5e485479dcbbe12852f
|
7
|
+
data.tar.gz: 033a6f2df8c32e7281c0b5dd55309947cf0400cfd87ba1703a43c5ab25b098c82ef65edd739750c9fabbf499765d487d7663068fd69a95fbc4fc6a2430f49580
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 6.1.0 (2023-01-20)
|
4
|
+
|
5
|
+
- Remove Alchemy 5.3 support [#158](https://github.com/AlchemyCMS/alchemy-devise/pull/158) ([tvdeyen](https://github.com/tvdeyen))
|
6
|
+
- Update gemspec to Alchemy below 7.0 [#156](https://github.com/AlchemyCMS/alchemy-devise/pull/156) ([kulturbande](https://github.com/kulturbande))
|
7
|
+
- use code climate gh action [#147](https://github.com/AlchemyCMS/alchemy-devise/pull/147) ([tvdeyen](https://github.com/tvdeyen))
|
8
|
+
- Upgrade rspec-rails to version 5.1.2 [#138](https://github.com/AlchemyCMS/alchemy-devise/pull/138) ([depfu](https://github.com/apps/depfu))
|
9
|
+
|
10
|
+
## 6.0.0 (2022-04-24)
|
11
|
+
|
12
|
+
- Alchemy 6 compatibility [#137](https://github.com/AlchemyCMS/alchemy-devise/pull/137) ([tvdeyen](https://github.com/tvdeyen))
|
13
|
+
- Use minor versions for Ruby in CI [#131](https://github.com/AlchemyCMS/alchemy-devise/pull/131) ([mamhoff](https://github.com/mamhoff))
|
14
|
+
- Migrate to GH actions as CI [#122](https://github.com/AlchemyCMS/alchemy-devise/pull/122) ([tvdeyen](https://github.com/tvdeyen))
|
15
|
+
- Allow Alchemy 6 [#119](https://github.com/AlchemyCMS/alchemy-devise/pull/119) ([tvdeyen](https://github.com/tvdeyen))
|
16
|
+
|
17
|
+
## 5.1.0 (2021-01-13)
|
18
|
+
|
19
|
+
- Remove support for old Alchemy versions [#118](https://github.com/AlchemyCMS/alchemy-devise/pull/118) ([tvdeyen](https://github.com/tvdeyen))
|
20
|
+
- Admin users list fixes [#117](https://github.com/AlchemyCMS/alchemy-devise/pull/117) ([tvdeyen](https://github.com/tvdeyen))
|
21
|
+
- Use Alchemy::User as class in ability [#116](https://github.com/AlchemyCMS/alchemy-devise/pull/116) ([tvdeyen](https://github.com/tvdeyen))
|
22
|
+
- Fixate sassc gem to 2.1.0 [#115](https://github.com/AlchemyCMS/alchemy-devise/pull/115) ([tvdeyen](https://github.com/tvdeyen))
|
23
|
+
- Use content_for :toolbar instead of toolbar [#114](https://github.com/AlchemyCMS/alchemy-devise/pull/114) ([tvdeyen](https://github.com/tvdeyen))
|
24
|
+
|
25
|
+
## 5.0.1 (2020-11-22)
|
26
|
+
|
27
|
+
- Require alchemy/version in controllers using ssl_required [#113](https://github.com/AlchemyCMS/alchemy-devise/pull/113) ([tvdeyen](https://github.com/tvdeyen))
|
28
|
+
- Use absolute paths in Alchemy module definition [#106](https://github.com/AlchemyCMS/alchemy-devise/pull/106) ([tvdeyen](https://github.com/tvdeyen))
|
29
|
+
|
30
|
+
## 4.6.0 (2020-10-16)
|
31
|
+
|
32
|
+
- Remove require_ssl from User Sessions Controller for Alchemy 5+ [#102](https://github.com/AlchemyCMS/alchemy-devise/pull/102) ([mamhoff](https://github.com/mamhoff))
|
33
|
+
|
34
|
+
## 4.5.0 (2020-04-04)
|
35
|
+
|
36
|
+
- Remove alchemy controller requests test helper [#100](https://github.com/AlchemyCMS/alchemy-devise/pull/100) ([tvdeyen](https://github.com/tvdeyen))
|
37
|
+
- Move session controllers into admin module namespace [#97](https://github.com/AlchemyCMS/alchemy-devise/pull/97) ([tvdeyen](https://github.com/tvdeyen))
|
38
|
+
|
39
|
+
## 4.4.0 (2019-01-09)
|
40
|
+
|
41
|
+
- Set Alchemy.logout_method to Devise.sign_out_via [#96](https://github.com/AlchemyCMS/alchemy-devise/pull/96) ([tvdeyen](https://github.com/tvdeyen))
|
42
|
+
- Allow Alchemy 5.0 [#95](https://github.com/AlchemyCMS/alchemy-devise/pull/95) ([tvdeyen](https://github.com/tvdeyen))
|
43
|
+
- Remove gender [#94](https://github.com/AlchemyCMS/alchemy-devise/pull/94) ([rmparr](https://github.com/rmparr))
|
44
|
+
|
45
|
+
## 4.3.1 (2019-11-28)
|
46
|
+
|
47
|
+
- add config/manifest.js to dummy app [#93](https://github.com/AlchemyCMS/alchemy-devise/pull/93) ([rmparr](https://github.com/rmparr))
|
48
|
+
- Use at least Devise 4.7.1 [#90](https://github.com/AlchemyCMS/alchemy-devise/pull/90) ([tvdeyen](https://github.com/tvdeyen))
|
49
|
+
- Rename Alchemy::BaseController extension constant [#87](https://github.com/AlchemyCMS/alchemy-devise/pull/87) ([tvdeyen](https://github.com/tvdeyen))
|
50
|
+
|
51
|
+
## 4.3.0 (2019-08-23)
|
52
|
+
|
53
|
+
- Move test dependencies [#86](https://github.com/AlchemyCMS/alchemy-devise/pull/86) ([tvdeyen](https://github.com/tvdeyen))
|
54
|
+
- Test with Rails 6 [#85](https://github.com/AlchemyCMS/alchemy-devise/pull/85) ([tvdeyen](https://github.com/tvdeyen))
|
55
|
+
|
56
|
+
## 4.2.1 (2019-05-15)
|
57
|
+
|
58
|
+
- Remove test files from built Ruby gem [#82](https://github.com/AlchemyCMS/alchemy-devise/pull/82) ([tvdeyen](https://github.com/tvdeyen))
|
59
|
+
- Run CSRF protection before all other controller filters [#81](https://github.com/AlchemyCMS/alchemy-devise/pull/81) ([tvdeyen](https://github.com/tvdeyen))
|
60
|
+
|
61
|
+
## 4.2.0 (2019-04-01)
|
62
|
+
|
63
|
+
- Do not store screen size at login [#78](https://github.com/AlchemyCMS/alchemy-devise/pull/78) ([tvdeyen](https://github.com/tvdeyen))
|
64
|
+
- Security: Use at least Devise 4.6 [#78](https://github.com/AlchemyCMS/alchemy-devise/pull/78) ([tvdeyen](https://github.com/tvdeyen))
|
65
|
+
- Fix dummy app rails version [#76](https://github.com/AlchemyCMS/alchemy-devise/pull/76) ([tvdeyen](https://github.com/tvdeyen))
|
66
|
+
- Fix translation key on user admin page [#75](https://github.com/AlchemyCMS/alchemy-devise/pull/75) ([mamhoff](https://github.com/mamhoff))
|
67
|
+
|
68
|
+
|
69
|
+
## 4.1.0 (2018-09-22)
|
70
|
+
|
71
|
+
- Only allow Alchemy > 4.1 [#72](https://github.com/AlchemyCMS/alchemy-devise/pull/72) ([tvdeyen](https://github.com/tvdeyen))
|
72
|
+
- Upgrade dummy app rails version to 5.2.1 [#71](https://github.com/AlchemyCMS/alchemy-devise/pull/71) ([depfu](https://github.com/marketplace/depfu))
|
73
|
+
- Build for Rails 5.1 [#70](https://github.com/AlchemyCMS/alchemy-devise/pull/70) ([tvdeyen](https://github.com/tvdeyen))
|
74
|
+
- Fixes localization specs [#69](https://github.com/AlchemyCMS/alchemy-devise/pull/69) ([tvdeyen](https://github.com/tvdeyen))
|
75
|
+
- Removes translations [#68](https://github.com/AlchemyCMS/alchemy-devise/pull/68) ([tvdeyen](https://github.com/tvdeyen))
|
76
|
+
- New login screen that fit the new color theme [#67](https://github.com/AlchemyCMS/alchemy-devise/pull/67) ([tvdeyen](https://github.com/tvdeyen))
|
77
|
+
- Use Alchemy's Taggable module [#66](https://github.com/AlchemyCMS/alchemy-devise/pull/66) ([tvdeyen](https://github.com/tvdeyen))
|
78
|
+
- Upgrade pg to version 1.0.0 [#65](https://github.com/AlchemyCMS/alchemy-devise/pull/65) ([depfu](https://github.com/marketplace/depfu))
|
79
|
+
- FontAwesome icons [#64](https://github.com/AlchemyCMS/alchemy-devise/pull/64) ([tvdeyen](https://github.com/tvdeyen))
|
80
|
+
- Fix postgresql builds [#63](https://github.com/AlchemyCMS/alchemy-devise/pull/63) ([tvdeyen](https://github.com/tvdeyen))
|
81
|
+
|
82
|
+
## 4.0.0 (2017-11-06)
|
83
|
+
|
84
|
+
- Update dummy app layout for Alchemy 4.0 [#62](https://github.com/AlchemyCMS/alchemy-devise/pull/62) ([tvdeyen](https://github.com/tvdeyen))
|
85
|
+
- Alchemy 4.0 [#61](https://github.com/AlchemyCMS/alchemy-devise/pull/61) ([tvdeyen](https://github.com/tvdeyen))
|
86
|
+
- Send code coverage results after successful build [#60](https://github.com/AlchemyCMS/alchemy-devise/pull/60) ([tvdeyen](https://github.com/tvdeyen))
|
87
|
+
- Allow to configure devise modules [#59](https://github.com/AlchemyCMS/alchemy-devise/pull/59) ([tvdeyen](https://github.com/tvdeyen))
|
88
|
+
- Rails 5, Alchemy 4, Devise 4 [#58](https://github.com/AlchemyCMS/alchemy-devise/pull/58) ([tvdeyen](https://github.com/tvdeyen))
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Devise based authentication for AlchemyCMS
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/AlchemyCMS/alchemy-devise/workflows/CI/badge.svg?branch=main)](https://github.com/AlchemyCMS/alchemy-devise/actions)
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/alchemy-devise.svg)](http://badge.fury.io/rb/alchemy-devise) [![Test Coverage](https://codeclimate.com/github/AlchemyCMS/alchemy-devise/badges/coverage.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy-devise/coverage) [![Code Climate](https://codeclimate.com/github/AlchemyCMS/alchemy-devise/badges/gpa.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy-devise) [![security](https://hakiri.io/github/AlchemyCMS/alchemy-devise/main.svg)](https://hakiri.io/github/AlchemyCMS/alchemy-devise/main)
|
6
6
|
|
@@ -1,28 +1,24 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
Rails.application.config.to_prepare do
|
4
|
+
require "alchemy/devise/ability"
|
4
5
|
|
5
|
-
Alchemy.register_ability(Alchemy::Devise::Ability)
|
6
|
+
Alchemy.register_ability(Alchemy::Devise::Ability)
|
6
7
|
|
7
|
-
Alchemy::Modules.register_module({
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
})
|
8
|
+
Alchemy::Modules.register_module({
|
9
|
+
name: "users",
|
10
|
+
engine_name: "alchemy",
|
11
|
+
position: 4.1,
|
12
|
+
navigation: {
|
13
|
+
name: "modules.users",
|
14
|
+
controller: "/alchemy/admin/users",
|
15
|
+
action: "index",
|
16
|
+
icon: "users",
|
17
|
+
},
|
18
|
+
})
|
18
19
|
|
19
|
-
Alchemy.
|
20
|
-
Alchemy.
|
21
|
-
Alchemy.
|
22
|
-
Alchemy.
|
23
|
-
|
24
|
-
if Alchemy.respond_to?(:logout_method)
|
25
|
-
Rails.application.config.after_initialize do
|
26
|
-
Alchemy.logout_method = Devise.sign_out_via
|
27
|
-
end
|
20
|
+
Alchemy.signup_path = "/admin/signup"
|
21
|
+
Alchemy.login_path = "/admin/login"
|
22
|
+
Alchemy.logout_path = "/admin/logout"
|
23
|
+
Alchemy.logout_method = Devise.sign_out_via
|
28
24
|
end
|
@@ -7,6 +7,10 @@ module Alchemy
|
|
7
7
|
isolate_namespace Alchemy
|
8
8
|
engine_name 'alchemy_devise'
|
9
9
|
|
10
|
+
initializer "alchemy_devise.user_class", before: "alchemy.userstamp" do
|
11
|
+
Alchemy.user_class_name = "Alchemy::User"
|
12
|
+
end
|
13
|
+
|
10
14
|
initializer 'alchemy_devise.assets' do |app|
|
11
15
|
app.config.assets.precompile += [
|
12
16
|
'alchemy-devise.css'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy-devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: alchemy_cms
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 6.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: devise
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,14 +112,14 @@ dependencies:
|
|
112
112
|
requirements:
|
113
113
|
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
115
|
+
version: 5.1.2
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
122
|
+
version: 5.1.2
|
123
123
|
- !ruby/object:Gem::Dependency
|
124
124
|
name: simplecov
|
125
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,9 +141,9 @@ executables: []
|
|
141
141
|
extensions: []
|
142
142
|
extra_rdoc_files: []
|
143
143
|
files:
|
144
|
+
- CHANGELOG.md
|
144
145
|
- LICENSE
|
145
146
|
- README.md
|
146
|
-
- Rakefile
|
147
147
|
- app/assets/stylesheets/alchemy-devise.scss
|
148
148
|
- app/assets/stylesheets/alchemy-devise/login.scss
|
149
149
|
- app/assets/stylesheets/alchemy-devise/users.scss
|
@@ -188,7 +188,7 @@ files:
|
|
188
188
|
- lib/alchemy/devise/version.rb
|
189
189
|
- lib/generators/alchemy/devise/install/install_generator.rb
|
190
190
|
- lib/generators/alchemy/devise/install/templates/devise.rb.tt
|
191
|
-
homepage:
|
191
|
+
homepage: https://alchemy-cms.com
|
192
192
|
licenses: []
|
193
193
|
metadata: {}
|
194
194
|
post_install_message: |+
|
@@ -210,8 +210,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
- !ruby/object:Gem::Version
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
|
-
rubygems_version: 3.
|
214
|
-
signing_key:
|
213
|
+
rubygems_version: 3.3.26
|
214
|
+
signing_key:
|
215
215
|
specification_version: 4
|
216
216
|
summary: Devise based user authentication for AlchemyCMS.
|
217
217
|
test_files: []
|
218
|
+
...
|
data/Rakefile
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'bundler/setup'
|
3
|
-
rescue LoadError
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
6
|
-
|
7
|
-
require 'rdoc/task'
|
8
|
-
|
9
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
11
|
-
rdoc.title = 'AlchemyDevise'
|
12
|
-
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.md')
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
-
rdoc.rdoc_files.include('app/**/*.rb')
|
16
|
-
end
|
17
|
-
|
18
|
-
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
19
|
-
load 'rails/tasks/engine.rake'
|
20
|
-
|
21
|
-
require 'rspec/core/rake_task'
|
22
|
-
|
23
|
-
RSpec::Core::RakeTask.new(:spec)
|
24
|
-
|
25
|
-
task :default => ['alchemy:spec:prepare', :spec]
|
26
|
-
|
27
|
-
Bundler::GemHelper.install_tasks
|
28
|
-
|
29
|
-
namespace :alchemy do
|
30
|
-
namespace :spec do
|
31
|
-
desc "Prepares database for testing Alchemy"
|
32
|
-
task :prepare do
|
33
|
-
system <<-BASH
|
34
|
-
cd spec/dummy
|
35
|
-
export RAILS_ENV=test
|
36
|
-
bin/rake railties:install:migrations
|
37
|
-
bin/rake db:drop db:create db:migrate
|
38
|
-
bin/rails g alchemy:install --force --auto-accept
|
39
|
-
bin/rails g alchemy:devise:install --force
|
40
|
-
cd -
|
41
|
-
BASH
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
namespace :changelog do
|
46
|
-
desc "Update changelog"
|
47
|
-
task :update do
|
48
|
-
original_file = './CHANGELOG.md'
|
49
|
-
new_file = original_file + '.new'
|
50
|
-
backup = original_file + '.old'
|
51
|
-
changes = `git rev-list v#{ENV['PREVIOUS_VERSION']}...main | bundle exec github_fast_changelog AlchemyCMS/alchemy-devise`
|
52
|
-
File.open(new_file, 'w') do |fo|
|
53
|
-
fo.puts changes
|
54
|
-
File.foreach(original_file) do |li|
|
55
|
-
fo.puts li
|
56
|
-
end
|
57
|
-
fo.puts ""
|
58
|
-
end
|
59
|
-
File.rename(original_file, backup)
|
60
|
-
File.rename(new_file, original_file)
|
61
|
-
File.delete(backup)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|