eac_users_support 0.8.2 → 0.8.7

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: 017c5378a7f2216bb7fea5098b65b6103a718a058f9d932aef8dd4b71c60e8bd
4
- data.tar.gz: 28ddc4906c105a3a306f109992fab5bc99730f291ec905a8e285131566edf8ff
3
+ metadata.gz: 51159e5e2614f2537e09a4bfc8e8946116cb731d80e6a0470edb958106f27ccb
4
+ data.tar.gz: 332641fabe6b3608116d8109f9c149152fdb5ba038de333feea13a1d236b265b
5
5
  SHA512:
6
- metadata.gz: 768df196868362a158891e6fcbedbc96e553d675a481015aa61267f5c12c99facffb29839222ea2ce832ba638da1a2f105a129b3a332a1a603038ae45280df16
7
- data.tar.gz: 7d489d1283e2f88a0ff35529792d319dff0c338fc165111ffae0f70e955340ccc821c91b102d6bd56632bbefe9a3eedc875e6face165b786ae2dd7d373e3970f
6
+ metadata.gz: bf8d3b65b3ad960e89754031a2dab6e3f641b000af0f91752a5c672ea607521c86383423826af2287d799e62d7f9e29026481486eea4c33dd66a1c90deeab792
7
+ data.tar.gz: c686529dda9d355e1a7a0914d1e766bd371b945bcfd49048143e4844222c7341aa8bccaf0e5fb83eb59be1feeba2470b6b95236a09f9e9a914547bacd700830c
@@ -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 list].each do |action|
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
data/config/routes.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  EacUsersSupport::Engine.routes.draw do
4
+ concern :active_scaffold, ActiveScaffold::Routing::Basic.new(association: true)
4
5
  namespace(:admin) do
5
- resources(:users) do
6
- as_routes
6
+ resources(:users, concerns: :active_scaffold) do
7
7
  record_select_routes
8
8
  member do
9
9
  put :password_reset
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateEacUsersSupportUsers < ActiveRecord::Migration
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 < ActiveRecord::Migration
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 < ActiveRecord::Migration
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 < ActiveRecord::Migration
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 < ActiveRecord::Migration
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 < ActiveRecord::Migration
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 < ActiveRecord::Migration
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 < ActiveRecord::Migration
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacUsersSupport
4
- VERSION = '0.8.2'
4
+ VERSION = '0.8.7'
5
5
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_users_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.7
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: 2020-09-07 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_scaffold
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.4.33
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.4.33
27
27
  - !ruby/object:Gem::Dependency
@@ -112,20 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '0.1'
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: 0.1.2
115
+ version: '0.2'
119
116
  type: :development
120
117
  prerelease: false
121
118
  version_requirements: !ruby/object:Gem::Requirement
122
119
  requirements:
123
120
  - - "~>"
124
121
  - !ruby/object:Gem::Version
125
- version: '0.1'
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- version: 0.1.2
122
+ version: '0.2'
129
123
  - !ruby/object:Gem::Dependency
130
124
  name: rspec-rails
131
125
  requirement: !ruby/object:Gem::Requirement
@@ -212,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
206
  - !ruby/object:Gem::Version
213
207
  version: '0'
214
208
  requirements: []
215
- rubygems_version: 3.0.8
209
+ rubygems_version: 3.0.9
216
210
  signing_key:
217
211
  specification_version: 4
218
212
  summary: Ready-to-use support for users registration, login, logout, etc, for Rails.