pg_rails 7.6.0 → 7.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/controllers/pg_engine/base_users_controller.rb +0 -4
- data/pg_engine/app/controllers/users/dashboard_controller.rb +9 -0
- data/pg_engine/app/views/users/dashboard/dashboard.html.slim +1 -0
- data/pg_engine/config/routes.rb +2 -1
- data/pg_engine/spec/requests/users/dashboard_spec.rb +19 -0
- data/pg_engine/spec/system/noticed_spec.rb +0 -1
- data/pg_rails/lib/pg_rails/capybara_support.rb +1 -1
- data/pg_rails/lib/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e8749da8dcc608499fc64c9af83a9889069d9384e861508688c40e41b33ae52
|
4
|
+
data.tar.gz: 51fcd1231c11477379842419333ceda58bd14b1ca5d058fdf0775b92b6caf867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06c02fbcf25d4eb7c34c8272d9b3e3f0af6a93052a882cdc8adb1f17452b39dc002145e19cd17321e6a273216393309e7b9d0efac307aa9fc33b9348fd9dc999
|
7
|
+
data.tar.gz: 2a3bc5f762458f385813fbba264e9644843680d6d924a77bbb671711bd6c3fe06adb14cae59453dc38f2614fbefda264101f12106f0720e12c66c8d2bd967c39
|
@@ -0,0 +1 @@
|
|
1
|
+
h1 Dashboard
|
data/pg_engine/config/routes.rb
CHANGED
@@ -21,6 +21,7 @@ Rails.application.routes.draw do
|
|
21
21
|
registrations: 'users/registrations'
|
22
22
|
}, failure_app: PgEngine::DeviseFailureApp
|
23
23
|
namespace :users, path: 'u' do
|
24
|
+
get 'dashboard', to: 'dashboard#dashboard'
|
24
25
|
post 'notifications/mark_as_seen', to: 'notifications#mark_as_seen'
|
25
26
|
post 'notifications/mark_as_unseen', to: 'notifications#mark_as_unseen'
|
26
27
|
get 'date_jumper/jump'
|
@@ -33,7 +34,7 @@ Rails.application.routes.draw do
|
|
33
34
|
# get 'account', to: 'accounts#show'
|
34
35
|
end
|
35
36
|
|
36
|
-
get '/u', to: 'users#
|
37
|
+
get '/u', to: 'users/dashboard#dashboard', as: :users_root
|
37
38
|
|
38
39
|
namespace :admin, path: 'a' do
|
39
40
|
pg_resource(:emails)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe 'DASHBOARD' do
|
4
|
+
let(:logged_user) { create :user }
|
5
|
+
|
6
|
+
before do
|
7
|
+
sign_in logged_user
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'when requesting /u' do
|
11
|
+
get '/u'
|
12
|
+
expect(response.body).to include '<h1>Dashboard</h1>'
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'when requesting /u/dashboard' do
|
16
|
+
get '/u/dashboard'
|
17
|
+
expect(response.body).to include '<h1>Dashboard</h1>'
|
18
|
+
end
|
19
|
+
end
|
@@ -49,4 +49,4 @@ Capybara.register_driver :selenium_chrome_headless_iphone,
|
|
49
49
|
&chrome_driver_gen(headless: true, emulate_device: 'iPhone 6')
|
50
50
|
Capybara.register_driver :selenium_chrome_debugger, &chrome_driver_gen(headless: false, debugger: true)
|
51
51
|
|
52
|
-
Capybara.javascript_driver = ENV.fetch('
|
52
|
+
Capybara.javascript_driver = ENV.fetch('DRIVER') { 'selenium_chrome_notebook' }.to_sym
|
data/pg_rails/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.6.
|
4
|
+
version: 7.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martín Rosso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -691,6 +691,7 @@ files:
|
|
691
691
|
- pg_engine/app/controllers/users/account_switcher_controller.rb
|
692
692
|
- pg_engine/app/controllers/users/accounts_controller.rb
|
693
693
|
- pg_engine/app/controllers/users/confirmations_controller.rb
|
694
|
+
- pg_engine/app/controllers/users/dashboard_controller.rb
|
694
695
|
- pg_engine/app/controllers/users/date_jumper_controller.rb
|
695
696
|
- pg_engine/app/controllers/users/notifications_controller.rb
|
696
697
|
- pg_engine/app/controllers/users/registrations_controller.rb
|
@@ -779,6 +780,7 @@ files:
|
|
779
780
|
- pg_engine/app/views/public/mensaje_contactos/new.html.slim
|
780
781
|
- pg_engine/app/views/users/account_switcher/list.html.slim
|
781
782
|
- pg_engine/app/views/users/accounts/show.html.slim
|
783
|
+
- pg_engine/app/views/users/dashboard/dashboard.html.slim
|
782
784
|
- pg_engine/config/initializers/action_controller.rb
|
783
785
|
- pg_engine/config/initializers/action_mailer.rb
|
784
786
|
- pg_engine/config/initializers/active_admin.rb
|
@@ -884,6 +886,7 @@ files:
|
|
884
886
|
- pg_engine/spec/requests/public/webhooks_spec.rb
|
885
887
|
- pg_engine/spec/requests/users/accounts_spec.rb
|
886
888
|
- pg_engine/spec/requests/users/base_controller_spec.rb
|
889
|
+
- pg_engine/spec/requests/users/dashboard_spec.rb
|
887
890
|
- pg_engine/spec/requests/users/date_jumper_spec.rb
|
888
891
|
- pg_engine/spec/requests/users/registrations_spec.rb
|
889
892
|
- pg_engine/spec/requests/users/switcher_spec.rb
|