Skip to content

Commit 23e473c

Browse files
committed
Mejoras rubocop
1 parent ed6298f commit 23e473c

File tree

84 files changed

+1330
-1078
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1330
-1078
lines changed

.rubocop.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require:
1+
plugins:
22
- rubocop-minitest
33
- rubocop-rails
44

@@ -63,5 +63,6 @@ Metrics/ParameterLists:
6363

6464
AllCops:
6565
NewCops: enable
66+
SuggestExtensions: false
6667

6768

Gemfile

Lines changed: 56 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
1+
# frozen_string_literal: true
2+
13
source "https://rubygems.org"
24
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
35

4-
gem "acts_as_list"
5-
6-
gem "apexcharts"
6+
gem "apexcharts" # , git: "https://github.com/vtamara/apexcharts.rb.git", branch: :master
77

88
gem "babel-transpiler"
99

1010
gem "bcrypt"
1111

1212
gem "benchmark"
1313

14-
gem "best_in_place", git: "https://github.com/mmotherwell/best_in_place"
14+
gem "bootsnap", require: false
1515

16-
gem "bootsnap", ">=1.1.0", require: false
16+
gem "cancancan" # Roles
1717

18-
gem "cancancan"
19-
20-
gem "cocoon", git: "https://github.com/vtamara/cocoon.git",
18+
gem "cocoon",
19+
git: "https://github.com/vtamara/cocoon.git",
2120
branch: "new_id_with_ajax" # Formularios anidados (algunos con ajax)
2221

23-
gem "coffee-rails" # CoffeeScript para recuersos .js.coffee y vistas
22+
gem "coffee-rails" # CoffeeScript mientras reemplazamos por Javascript
2423

2524
gem "color"
2625

2726
gem "csv"
2827

29-
gem "devise" # Autenticación y roles
28+
gem "devise" # Autenticación
3029

3130
gem "devise-i18n"
3231

@@ -36,20 +35,20 @@ gem "jbuilder" # API JSON facil. Ver: https://github.com/rails/jbuilder
3635

3736
gem "jsbundling-rails"
3837

39-
gem "kt-paperclip", # Anexos
38+
gem "kt-paperclip", # Anexos
4039
git: "https://github.com/kreeti/kt-paperclip.git"
4140

4241
gem "libxml-ruby"
4342

44-
gem "odf-report" # Genera ODT
43+
gem "nokogiri"
4544

46-
gem "nokogiri", ">=1.11.1"
45+
gem "odf-report" # Genera ODT
4746

4847
gem "pg" # Postgresql
4948

5049
gem "prawn" # Generación de PDF
5150

52-
gem "prawnto_2", :require => "prawnto"
51+
gem "prawnto_2", require: "prawnto"
5352

5453
gem "prawn-table"
5554

@@ -58,82 +57,100 @@ gem "rack", "~> 2"
5857
gem "rack-cors"
5958

6059
gem "rails", "~> 7.2"
61-
#git: "https://github.com/rails/rails.git", branch: "6-1-stable"
60+
# git: "https://github.com/rails/rails.git", branch: "6-1-stable"
6261

6362
gem "rails-i18n"
6463

6564
gem "redcarpet" # Markdown
6665

67-
gem "rspreadsheet" # Genera ODS
66+
gem "rspreadsheet"
6867

6968
gem "rubyzip", "<= 2.4.1"
7069

7170
gem "sassc-rails" # Hojas de estilo con SCSS
7271

73-
gem "simple_form" # Formularios simples
72+
gem "simple_form" # Formularios simples
7473

7574
gem "sprockets-rails"
7675

7776
gem "stimulus-rails"
7877

79-
gem "turbo-rails", "~> 1.0"
78+
gem "turbo-rails"
8079

8180
gem "twitter_cldr" # ICU con CLDR
8281

8382
gem "tzinfo" # Zonas horarias
8483

8584
gem "will_paginate" # Listados en páginas
8685

87-
8886
#####
8987
# Motores que se sobrecargan vistas (a diferencia de las anteriores gemas,
9088
# estas ponerse en orden de apilamiento lógico y no alfabético).
9189

9290
gem "msip", # Motor generico
93-
git: "https://gitlab.com/pasosdeJesus/msip.git", branch: "v2.2"
94-
#path: "../msip-2.2"
91+
git: "https://gitlab.com/pasosdeJesus/msip.git",
92+
branch: "v2.2"
93+
# path: "../msip-2.2"
9594

9695
gem "mr519_gen", # Motor de gestion de formularios y encuestas
97-
git: "https://gitlab.com/pasosdeJesus/mr519_gen.git", branch: "v2.2"
98-
#path: "../mr519_gen-2.2"
96+
git: "https://gitlab.com/pasosdeJesus/mr519_gen.git",
97+
branch: "v2.2"
98+
# path: "../mr519_gen-2.2"
9999

100-
gem "heb412_gen", # Motor de nube y llenado de plantillas
101-
git: "https://gitlab.com/pasosdeJesus/heb412_gen.git", branch: "v2.2"
102-
#path: "../heb412_gen-2.2"
100+
gem "heb412_gen", # Motor de nube y llenado de plantillas
101+
git: "https://gitlab.com/pasosdeJesus/heb412_gen.git",
102+
branch: "v2.2"
103+
# path: "../heb412_gen-2.2"
103104

104105
gem "sivel2_gen", # Motor para manejo de casos
105-
git: "https://gitlab.com/pasosdeJesus/sivel2_gen.git", branch: "v2.2"
106-
#path: "../sivel2_gen-2.2"
106+
git: "https://gitlab.com/pasosdeJesus/sivel2_gen.git",
107+
branch: "v2.2"
108+
# path: "../sivel2_gen-2.2"
107109

108-
group :development, :test do
109-
gem "debug" # Depurar
110+
group :development, :test do
111+
gem "brakeman"
112+
113+
gem "bundler-audit"
114+
115+
gem "code-scanning-rubocop"
110116

111117
gem "colorize" # Colores en terminal
112118

119+
gem "debug" # Depurar
120+
113121
gem "dotenv-rails"
114-
end
115122

123+
gem "rails-erd"
116124

117-
group :development do
118-
gem "erd"
125+
gem "rubocop-minitest"
119126

120-
gem "puma"
127+
gem "rubocop-rails"
121128

122-
gem "rails-erd"
129+
gem "rubocop-shopify"
130+
131+
gem "thor"
123132

124-
gem "redis"
133+
gem "yard"
134+
end
135+
136+
group :development do
137+
gem "erd"
125138

126-
gem "spring" # Acelera ejecutando en fondo.
139+
gem "puma"
127140

128141
gem "web-console"
129142
end
130143

131-
132144
group :test do
145+
gem "minitest"
146+
147+
gem "minitest-reporters"
148+
149+
gem "rails-controller-testing"
150+
133151
gem "simplecov"
134152
end
135153

136-
137154
group :production do
138155
gem "unicorn" # Para despliegue
139156
end

0 commit comments

Comments
 (0)