pg_rails 7.0.2 → 7.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_associable/app/assets/js/asociable_controller.js +3 -4
- data/pg_associable/app/assets/js/asociable_inline_controller.js +28 -27
- data/pg_associable/app/assets/js/modal_controller.js +31 -44
- data/pg_associable/app/helpers/pg_associable/helpers.rb +2 -2
- data/pg_associable/app/views/pg_engine/base/_pg_associable_modal.html.slim +4 -2
- data/pg_associable/spec/pg_associable/helpers_spec.rb +24 -0
- data/pg_engine/app/controllers/pg_engine/base_controller.rb +0 -283
- data/pg_engine/app/controllers/pg_engine/require_sign_in.rb +9 -0
- data/pg_engine/app/controllers/pg_engine/resource_helper.rb +289 -0
- data/pg_engine/app/helpers/pg_engine/flash_helper.rb +3 -1
- data/pg_engine/app/helpers/pg_engine/route_helper.rb +2 -0
- data/pg_engine/app/views/pg_engine/base/index.html.slim +1 -1
- data/pg_engine/lib/pg_engine/engine.rb +5 -1
- data/pg_engine/lib/pg_engine/route_helpers.rb +12 -0
- data/pg_engine/lib/pg_engine/utils/pg_logger.rb +44 -0
- data/pg_engine/lib/pg_engine.rb +2 -12
- data/pg_layout/app/assets/stylesheets/sidebar.scss +4 -0
- data/pg_layout/app/views/layouts/pg_layout/devise.html.slim +2 -2
- data/pg_layout/app/views/layouts/pg_layout/layout.html.slim +2 -1
- data/pg_layout/app/views/pg_layout/_navbar.html.erb +0 -8
- data/pg_layout/index.js +3 -2
- data/pg_rails/lib/version.rb +1 -1
- data/pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb +1 -1
- data/pg_scaffold/lib/generators/pg_active_record/model/templates/model.rb +0 -1
- data/pg_scaffold/lib/generators/pg_resource_route/pg_resource_route_generator.rb +1 -1
- data/pg_scaffold/lib/generators/pg_rspec/scaffold/templates/controller_spec.rb +7 -0
- data/pg_scaffold/lib/generators/pg_scaffold/pg_scaffold_generator.rb +5 -9
- data/pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb +6 -4
- data/pg_scaffold/spec/generators_spec.rb +55 -0
- metadata +8 -4
- data/pg_engine/app/controllers/pg_engine/signed_in_controller.rb +0 -7
- data/pg_engine/lib/pg_engine/utils/logueador.rb +0 -46
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.0.
|
4
|
+
version: 7.0.4
|
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-02-
|
11
|
+
date: 2024-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails goodies.
|
14
14
|
email:
|
@@ -35,10 +35,12 @@ files:
|
|
35
35
|
- pg_associable/lib/pg_associable/engine.rb
|
36
36
|
- pg_associable/lib/pg_associable/simple_form_initializer.rb
|
37
37
|
- pg_associable/lib/tasks/pg_associable_tasks.rake
|
38
|
+
- pg_associable/spec/pg_associable/helpers_spec.rb
|
38
39
|
- pg_engine/app/assets/stylesheets/pg_rails_b5.scss
|
39
40
|
- pg_engine/app/controllers/pg_engine/base_controller.rb
|
40
41
|
- pg_engine/app/controllers/pg_engine/devise_controller.rb
|
41
|
-
- pg_engine/app/controllers/pg_engine/
|
42
|
+
- pg_engine/app/controllers/pg_engine/require_sign_in.rb
|
43
|
+
- pg_engine/app/controllers/pg_engine/resource_helper.rb
|
42
44
|
- pg_engine/app/decorators/pg_engine/base_decorator.rb
|
43
45
|
- pg_engine/app/helpers/pg_engine/flash_helper.rb
|
44
46
|
- pg_engine/app/helpers/pg_engine/form_helper.rb
|
@@ -60,7 +62,8 @@ files:
|
|
60
62
|
- pg_engine/lib/pg_engine/configuracion.rb
|
61
63
|
- pg_engine/lib/pg_engine/core_ext.rb
|
62
64
|
- pg_engine/lib/pg_engine/engine.rb
|
63
|
-
- pg_engine/lib/pg_engine/
|
65
|
+
- pg_engine/lib/pg_engine/route_helpers.rb
|
66
|
+
- pg_engine/lib/pg_engine/utils/pg_logger.rb
|
64
67
|
- pg_engine/lib/tasks/auto_anotar_modelos.rake
|
65
68
|
- pg_engine/lib/templates/activeadmin/audits.rb
|
66
69
|
- pg_engine/lib/templates/activeadmin/users.rb
|
@@ -145,6 +148,7 @@ files:
|
|
145
148
|
- pg_scaffold/lib/pg_scaffold/monkey_patches/mejoras_a_named_base.rb
|
146
149
|
- pg_scaffold/lib/pg_scaffold/monkey_patches/mejoras_de_atributos.rb
|
147
150
|
- pg_scaffold/lib/pg_scaffold/railtie.rb
|
151
|
+
- pg_scaffold/spec/generators_spec.rb
|
148
152
|
homepage: https://github.com/programandoarg/pg_rails
|
149
153
|
licenses:
|
150
154
|
- MIT
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'rainbow'
|
4
|
-
|
5
|
-
module PgEngine
|
6
|
-
module Utils
|
7
|
-
class Logueador
|
8
|
-
class << self
|
9
|
-
def deprecated(mensaje)
|
10
|
-
titulo = Rainbow(" WARNING en #{caller[1]}").yellow.bold
|
11
|
-
detalles = Rainbow(" #{mensaje}").yellow
|
12
|
-
Rails.logger.warn("#{titulo}\n#{detalles}")
|
13
|
-
Rollbar.warning("#{mensaje}\n\n#{caller.join("\n")}")
|
14
|
-
end
|
15
|
-
|
16
|
-
def excepcion(exception)
|
17
|
-
titulo = Rainbow(" EXCEPCION #{exception.class} en #{caller.first}").red.bold
|
18
|
-
detalles = Rainbow(" #{exception.message}").red
|
19
|
-
Rails.logger.error("#{titulo}\n#{detalles}")
|
20
|
-
Rollbar.error(exception)
|
21
|
-
end
|
22
|
-
|
23
|
-
def error(mensaje)
|
24
|
-
titulo = Rainbow(" ERROR en #{caller.first}").red.bold
|
25
|
-
detalles = Rainbow(" #{mensaje}").red
|
26
|
-
Rails.logger.error("#{titulo}\n#{detalles}")
|
27
|
-
Rollbar.error("#{mensaje}\n\n#{caller.join("\n")}")
|
28
|
-
end
|
29
|
-
|
30
|
-
def warning(mensaje)
|
31
|
-
titulo = Rainbow(" WARNING en #{caller.first}").yellow.bold
|
32
|
-
detalles = Rainbow(" #{mensaje}").yellow
|
33
|
-
Rails.logger.warn("#{titulo}\n#{detalles}")
|
34
|
-
Rollbar.warning("#{mensaje}\n\n#{caller.join("\n")}")
|
35
|
-
end
|
36
|
-
|
37
|
-
def info(mensaje)
|
38
|
-
titulo = Rainbow(" INFO en #{caller.first}").blue.bold
|
39
|
-
detalles = Rainbow(" #{mensaje}").blue
|
40
|
-
Rails.logger.info("#{titulo}\n#{detalles}")
|
41
|
-
Rollbar.info("#{mensaje}\n\n#{caller.join("\n")}")
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|