cmor_user_area 0.0.55.pre → 0.0.60.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/concerns/cmor/user_area/controller/current_user_concern.rb +1 -1
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +18 -12
- data/lib/cmor/user_area/configuration.rb +1 -0
- data/lib/cmor/user_area/spec_helpers/feature.rb +23 -0
- data/lib/generators/cmor/user_area/install/templates/initializer.rb +6 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a744bcf8cc0556e2a8cadfa8bb8742481241f5aea8e2dc12db7180c39c3d2b5c
|
|
4
|
+
data.tar.gz: a70dad0a5bb8ab1f5bd6e6058ad3dc12c4fefdfba0ffefcc088d20be8dc17449
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53da10a24f850e94c50f024a924901e9b684612e92c0a9cc7208c6b3722bae7ed386d446f4d8b2e49b1b08f0c30f5312b62b74a4879444b4fae71a15efd83b9c
|
|
7
|
+
data.tar.gz: 997533cf66c81f92a0f2e500f811f980004ec81dac6eb770b2fbb6ff2be501b06d2466206215f0ea624adb5e20afac05fb2112470eaf17307ce0ea39f019d508
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
|
@@ -43,18 +43,24 @@ en:
|
|
|
43
43
|
cmor/user_area/create_default_user_service: 'Create Default User Service'
|
|
44
44
|
cmor:
|
|
45
45
|
user_area:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
navigation_view_helper:
|
|
47
|
+
defaults: &navigation_view_helper_defaults
|
|
48
|
+
show: My Account
|
|
49
|
+
edit: My Account
|
|
50
|
+
new: Register
|
|
51
|
+
not_signed_in: Not signed in
|
|
52
|
+
sign_in: Sign in
|
|
53
|
+
sign_out: Sign out
|
|
54
|
+
bootstrap_3:
|
|
55
|
+
render:
|
|
56
|
+
<<: *navigation_view_helper_defaults
|
|
57
|
+
render_dropdown:
|
|
58
|
+
<<: *navigation_view_helper_defaults
|
|
59
|
+
bootstrap_4:
|
|
60
|
+
render:
|
|
61
|
+
<<: *navigation_view_helper_defaults
|
|
62
|
+
render_dropdown:
|
|
63
|
+
<<: *navigation_view_helper_defaults
|
|
58
64
|
password_reset_requests:
|
|
59
65
|
base:
|
|
60
66
|
new:
|
|
@@ -27,6 +27,7 @@ module Cmor
|
|
|
27
27
|
end
|
|
28
28
|
mattr_accessor(:current_user_additional_table_rows_proc) { nil }
|
|
29
29
|
mattr_accessor(:after_sign_in_url) { ->(controller) { main_app.root_path } }
|
|
30
|
+
mattr_accessor(:after_sign_out_url) { ->(controller) { main_app.root_path } }
|
|
30
31
|
end
|
|
31
32
|
end
|
|
32
33
|
end
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
module Cmor::UserArea
|
|
2
2
|
module SpecHelpers
|
|
3
|
+
# Usage:
|
|
4
|
+
#
|
|
5
|
+
# # spec/support/cmor_user_area.rb
|
|
6
|
+
# require 'cmor/user_area/spec_helpers/feature'
|
|
7
|
+
#
|
|
8
|
+
# RSpec.configure do |config|
|
|
9
|
+
# config.include Cmor::UserArea::SpecHelpers::Feature, type: :feature
|
|
10
|
+
# config.include Cmor::UserArea::SpecHelpers::Feature, type: :system
|
|
11
|
+
# end
|
|
12
|
+
#
|
|
3
13
|
module Feature
|
|
4
14
|
def sign_up(user_attributes)
|
|
5
15
|
visit "/#{I18n.locale}/#{I18n.t('routes.cmor_user_area_engine')}/#{I18n.t('routes.current_user')}/new"
|
|
@@ -13,6 +23,19 @@ module Cmor::UserArea
|
|
|
13
23
|
end
|
|
14
24
|
end
|
|
15
25
|
|
|
26
|
+
# Example:
|
|
27
|
+
#
|
|
28
|
+
# # spec/features/de/backend/blog/posts
|
|
29
|
+
# require 'rails_helper'
|
|
30
|
+
#
|
|
31
|
+
# RSpec.describe '/de/backend/blog/posts', type: :feature do
|
|
32
|
+
# let(:user) { create(:cmor_user_area_user, :authenticable) }
|
|
33
|
+
# before(:each) { sign_in(user) }
|
|
34
|
+
#
|
|
35
|
+
# let(:base_path) { "/de/backend/blog/posts" }
|
|
36
|
+
# it { visit(base_path); expect(page).to have_text("Posts") }
|
|
37
|
+
# end
|
|
38
|
+
#
|
|
16
39
|
def sign_in(user)
|
|
17
40
|
visit "/#{I18n.locale}/#{I18n.t('routes.cmor_user_area_engine')}/#{I18n.t('routes.user_session')}/new"
|
|
18
41
|
|
|
@@ -23,6 +23,12 @@ Cmor::UserArea.configure do |config|
|
|
|
23
23
|
#
|
|
24
24
|
config.after_sign_in_url = ->(controller) { main_app.root_path }
|
|
25
25
|
|
|
26
|
+
# Where to redirect to after successful logout
|
|
27
|
+
#
|
|
28
|
+
# Default: config.after_sign_out_url = ->(controller) { main_app.root_path }
|
|
29
|
+
#
|
|
30
|
+
config.after_sign_out_url = ->(controller) { main_app.root_path }
|
|
31
|
+
|
|
26
32
|
# This is the block, that will be passed to the acts_as_authentic call
|
|
27
33
|
# in the user model.
|
|
28
34
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cmor_user_area
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.60.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roberto Vasquez Angel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -30,28 +30,28 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.0.
|
|
33
|
+
version: 0.0.60.pre
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.0.
|
|
40
|
+
version: 0.0.60.pre
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: cmor_core_frontend
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.0.
|
|
47
|
+
version: 0.0.60.pre
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - '='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.0.
|
|
54
|
+
version: 0.0.60.pre
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: sqlite3
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|