eac_users_support 0.8.4 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/eac_users_support/admin/users_controller.rb +2 -1
- data/db/migrate/20160605013848_create_eac_users_support_users.rb +3 -1
- data/db/migrate/20160605035833_add_devise_authenticable_to_eac_users_support_users.rb +3 -1
- data/db/migrate/20180222202443_add_devise_rememberable_to_eac_users_support_users.rb +3 -1
- data/db/migrate/20180318181324_add_administrator_to_eac_users_support_users.rb +3 -1
- data/db/migrate/20200322051231_add_devise_invitable_to_eac_users_support_users.rb +3 -1
- data/db/migrate/20200322053003_add_devise_confirmable_to_eac_users_support_users.rb +3 -1
- data/db/migrate/20200324203335_add_recoverable_to_eac_users_support_users.rb +3 -1
- data/db/migrate/20200620215624_add_unconfirmed_email_to_eac_users_support_users.rb +3 -1
- data/lib/eac_users_support/rspec.rb +9 -0
- data/lib/eac_users_support/rspec/setup.rb +23 -0
- data/lib/eac_users_support/version.rb +1 -1
- metadata +8 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4352d1651e4852de664c2ff928505f0b99d61cd58e6b5c791c38981a8f9eeaef
|
4
|
+
data.tar.gz: 119eddda486fdac6b9196caaed64571ae44287aee7bd8cc3d1d3586ee2abf36d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a3af1effe957bbdd38ca7e12c263d48bb0cccab3bbea75c26016ca189abd068b32e7bf346df13310732f3c7f993914eb0a8115077eb87ed379186fc049328f
|
7
|
+
data.tar.gz: 32dc59a382438d779ae8c87687d7529883b9019809cd5f0c84bda4cdda9cfc3e027f11a509c6b42ddc82ba5f896ac7829942dbdcf6d0b79595f642714414e8a1
|
@@ -14,9 +14,10 @@ module EacUsersSupport
|
|
14
14
|
type: :member, method: :put, position: false,
|
15
15
|
label: ::I18n.t(:'eac_users_support.password_reset.action')
|
16
16
|
conf.columns.exclude :encrypted_password
|
17
|
-
%w[create update
|
17
|
+
%w[create update].each do |action|
|
18
18
|
conf.send(action).columns.exclude :remember_created_at
|
19
19
|
end
|
20
|
+
conf.list.columns = %i[email administrator created_at confirmed_at]
|
20
21
|
end
|
21
22
|
|
22
23
|
def password_reset
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class CreateEacUsersSupportUsers <
|
3
|
+
class CreateEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def change
|
5
7
|
create_table :eac_users_support_users do |t|
|
6
8
|
t.string :email, null: false, default: ''
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddDeviseAuthenticableToEacUsersSupportUsers <
|
3
|
+
class AddDeviseAuthenticableToEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def change
|
5
7
|
add_column :eac_users_support_users, :encrypted_password, :string, null: false, default: ''
|
6
8
|
add_index :eac_users_support_users, :email, unique: true
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddDeviseRememberableToEacUsersSupportUsers <
|
3
|
+
class AddDeviseRememberableToEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def change
|
5
7
|
add_column :eac_users_support_users, :remember_created_at, :datetime
|
6
8
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddAdministratorToEacUsersSupportUsers <
|
3
|
+
class AddAdministratorToEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def change
|
5
7
|
add_column :eac_users_support_users, :administrator, :boolean, null: false, default: false
|
6
8
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddDeviseInvitableToEacUsersSupportUsers <
|
3
|
+
class AddDeviseInvitableToEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def up
|
5
7
|
change_table :eac_users_support_users do |t|
|
6
8
|
t.string :invitation_token
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddDeviseConfirmableToEacUsersSupportUsers <
|
3
|
+
class AddDeviseConfirmableToEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
class Model < ::ActiveRecord::Base
|
5
7
|
self.table_name = :eac_users_support_users
|
6
8
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddRecoverableToEacUsersSupportUsers <
|
3
|
+
class AddRecoverableToEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def change
|
5
7
|
change_table :eac_users_support_users do |t|
|
6
8
|
t.string :reset_password_token
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddUnconfirmedEmailToEacUsersSupportUsers <
|
3
|
+
class AddUnconfirmedEmailToEacUsersSupportUsers < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
4
6
|
def change
|
5
7
|
add_column :eac_users_support_users, :unconfirmed_email, :string
|
6
8
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module EacUsersSupport
|
6
|
+
module Rspec
|
7
|
+
class Setup
|
8
|
+
common_constructor :setup_obj
|
9
|
+
|
10
|
+
def perform
|
11
|
+
setup_devise
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def setup_devise
|
17
|
+
require 'devise'
|
18
|
+
setup_obj.rspec_config.include Warden::Test::Helpers
|
19
|
+
setup_obj.rspec_config.after(:each) { Warden.test_reset! }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_users_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_scaffold
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
73
|
+
version: '0.72'
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0.
|
80
|
+
version: '0.72'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: rails
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,15 +107,12 @@ dependencies:
|
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '3.10'
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
|
-
name:
|
110
|
+
name: eac_rails_gem_support
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0.1'
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: 0.1.2
|
119
116
|
type: :development
|
120
117
|
prerelease: false
|
121
118
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -123,37 +120,6 @@ dependencies:
|
|
123
120
|
- - "~>"
|
124
121
|
- !ruby/object:Gem::Version
|
125
122
|
version: '0.1'
|
126
|
-
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: 0.1.2
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
|
-
name: rspec-rails
|
131
|
-
requirement: !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - "~>"
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: '3.8'
|
136
|
-
type: :development
|
137
|
-
prerelease: false
|
138
|
-
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
requirements:
|
140
|
-
- - "~>"
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '3.8'
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
name: sqlite3
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - "~>"
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '1.3'
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - "~>"
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '1.3'
|
157
123
|
description:
|
158
124
|
email:
|
159
125
|
executables: []
|
@@ -190,6 +156,8 @@ files:
|
|
190
156
|
- lib/eac_users_support.rb
|
191
157
|
- lib/eac_users_support/engine.rb
|
192
158
|
- lib/eac_users_support/patches/action_controller_test_case.rb
|
159
|
+
- lib/eac_users_support/rspec.rb
|
160
|
+
- lib/eac_users_support/rspec/setup.rb
|
193
161
|
- lib/eac_users_support/tasks/password_reset.rb
|
194
162
|
- lib/eac_users_support/version.rb
|
195
163
|
- lib/tasks/eac_users_support.rake
|
@@ -212,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
180
|
- !ruby/object:Gem::Version
|
213
181
|
version: '0'
|
214
182
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
183
|
+
rubygems_version: 3.1.6
|
216
184
|
signing_key:
|
217
185
|
specification_version: 4
|
218
186
|
summary: Ready-to-use support for users registration, login, logout, etc, for Rails.
|