pg_rails 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +73 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/javascripts/pg_rails/asociacion_creable.js +85 -0
  6. data/app/assets/javascripts/pg_rails/best_in_place_datepicker.js +58 -0
  7. data/app/assets/javascripts/pg_rails/librerias.js +13 -0
  8. data/app/assets/javascripts/pg_rails/librerias_b3.js +14 -0
  9. data/app/assets/javascripts/pg_rails/validaciones.js +44 -0
  10. data/app/assets/javascripts/pg_rails.js +318 -0
  11. data/app/assets/stylesheets/pg_rails/librerias.scss +5 -0
  12. data/app/assets/stylesheets/pg_rails/pg_chosen.scss +29 -0
  13. data/app/assets/stylesheets/pg_rails/pg_rails.scss +199 -0
  14. data/app/assets/stylesheets/pg_rails_b3.scss +10 -0
  15. data/app/assets/stylesheets/pg_rails_b4.scss +12 -0
  16. data/app/assets/stylesheets/pg_rails_b5.scss +1 -0
  17. data/app/controllers/pg_rails/application_controller.rb +316 -0
  18. data/app/controllers/pg_rails/editar_en_lugar_controller.rb +24 -0
  19. data/app/decorators/pg_rails/base_decorator.rb +120 -0
  20. data/app/helpers/pg_rails/editar_en_lugar_helper.rb +106 -0
  21. data/app/helpers/pg_rails/form_helper.rb +25 -0
  22. data/app/helpers/pg_rails/postgres_helper.rb +15 -0
  23. data/app/helpers/pg_rails/print_helper.rb +176 -0
  24. data/app/inputs/pg_rails/asociacion_creable_input.rb +72 -0
  25. data/app/inputs/pg_rails/fecha_input.rb +20 -0
  26. data/app/inputs/pg_rails/selects_dependientes_input.rb +9 -0
  27. data/app/lib/pg_form_builder.rb +31 -0
  28. data/app/lib/pg_rails/filtros_builder.rb +338 -0
  29. data/app/models/pg_rails/application_record.rb +51 -0
  30. data/app/policies/pg_rails/application_policy.rb +104 -0
  31. data/app/views/application/_abrir_modal.js.erb +14 -0
  32. data/app/views/application/_actualizar_smart_listing.html.slim +3 -0
  33. data/app/views/application/_cerrar_modal.js.erb +8 -0
  34. data/app/views/application/_modal_ajax_form.js.erb +7 -0
  35. data/config/brakeman.ignore +42 -0
  36. data/config/locales/es.yml +17 -0
  37. data/config/routes.rb +3 -0
  38. data/config/spring.rb +1 -0
  39. data/lib/pg_rails/configuracion.rb +24 -0
  40. data/lib/pg_rails/core_ext.rb +17 -0
  41. data/lib/pg_rails/engine.rb +42 -0
  42. data/lib/pg_rails/simple_form/initializer.rb +583 -0
  43. data/lib/pg_rails/utils/logueador.rb +39 -0
  44. data/lib/pg_rails/version.rb +5 -0
  45. data/lib/pg_rails.rb +23 -0
  46. data/lib/tasks/auto_anotar_modelos.rake +34 -0
  47. data/lib/tasks/pg_rails_tasks.rake +5 -0
  48. metadata +89 -0
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # # frozen_string_literal: true
4
+
5
+ if Rails.env.development?
6
+ Annotate.set_defaults(
7
+ # 'show_migration' => 'true',
8
+ 'show_foreign_keys' => 'true',
9
+ 'show_indexes' => 'true',
10
+ 'exclude_controllers' => 'true',
11
+ 'exclude_helpers' => 'true',
12
+ 'exclude_tests' => 'true',
13
+ 'classified_sort' => 'true',
14
+ 'with_comment' => 'true',
15
+
16
+ 'models' => 'true'
17
+ )
18
+
19
+ # Annotate models
20
+ task :annotate do
21
+ puts 'Annotating models...'
22
+ system 'bundle exec annotate'
23
+ end
24
+
25
+ # Run annotate task after db:migrate
26
+ # and db:rollback tasks
27
+ Rake::Task['db:migrate'].enhance do
28
+ Rake::Task['annotate'].invoke
29
+ end
30
+
31
+ Rake::Task['db:rollback'].enhance do
32
+ Rake::Task['annotate'].invoke
33
+ end
34
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ # desc "Explaining what the task does"
3
+ # task :pg_rails do
4
+ # # Task goes here
5
+ # end
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pg_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 7.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Martín Rosso
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-01-28 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Rails goodies.
14
+ email:
15
+ - mrosso10@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - MIT-LICENSE
21
+ - README.md
22
+ - Rakefile
23
+ - app/assets/javascripts/pg_rails.js
24
+ - app/assets/javascripts/pg_rails/asociacion_creable.js
25
+ - app/assets/javascripts/pg_rails/best_in_place_datepicker.js
26
+ - app/assets/javascripts/pg_rails/librerias.js
27
+ - app/assets/javascripts/pg_rails/librerias_b3.js
28
+ - app/assets/javascripts/pg_rails/validaciones.js
29
+ - app/assets/stylesheets/pg_rails/librerias.scss
30
+ - app/assets/stylesheets/pg_rails/pg_chosen.scss
31
+ - app/assets/stylesheets/pg_rails/pg_rails.scss
32
+ - app/assets/stylesheets/pg_rails_b3.scss
33
+ - app/assets/stylesheets/pg_rails_b4.scss
34
+ - app/assets/stylesheets/pg_rails_b5.scss
35
+ - app/controllers/pg_rails/application_controller.rb
36
+ - app/controllers/pg_rails/editar_en_lugar_controller.rb
37
+ - app/decorators/pg_rails/base_decorator.rb
38
+ - app/helpers/pg_rails/editar_en_lugar_helper.rb
39
+ - app/helpers/pg_rails/form_helper.rb
40
+ - app/helpers/pg_rails/postgres_helper.rb
41
+ - app/helpers/pg_rails/print_helper.rb
42
+ - app/inputs/pg_rails/asociacion_creable_input.rb
43
+ - app/inputs/pg_rails/fecha_input.rb
44
+ - app/inputs/pg_rails/selects_dependientes_input.rb
45
+ - app/lib/pg_form_builder.rb
46
+ - app/lib/pg_rails/filtros_builder.rb
47
+ - app/models/pg_rails/application_record.rb
48
+ - app/policies/pg_rails/application_policy.rb
49
+ - app/views/application/_abrir_modal.js.erb
50
+ - app/views/application/_actualizar_smart_listing.html.slim
51
+ - app/views/application/_cerrar_modal.js.erb
52
+ - app/views/application/_modal_ajax_form.js.erb
53
+ - config/brakeman.ignore
54
+ - config/locales/es.yml
55
+ - config/routes.rb
56
+ - config/spring.rb
57
+ - lib/pg_rails.rb
58
+ - lib/pg_rails/configuracion.rb
59
+ - lib/pg_rails/core_ext.rb
60
+ - lib/pg_rails/engine.rb
61
+ - lib/pg_rails/simple_form/initializer.rb
62
+ - lib/pg_rails/utils/logueador.rb
63
+ - lib/pg_rails/version.rb
64
+ - lib/tasks/auto_anotar_modelos.rake
65
+ - lib/tasks/pg_rails_tasks.rake
66
+ homepage: https://github.com/programandoarg/pg_rails
67
+ licenses:
68
+ - MIT
69
+ metadata: {}
70
+ post_install_message:
71
+ rdoc_options: []
72
+ require_paths:
73
+ - lib
74
+ required_ruby_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '3.0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubygems_version: 3.1.4
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: Rails goodies
89
+ test_files: []