parroquia 1.1.40 → 1.1.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3772880650ff902f6c7f38b7d948c28e643fe50f9fe8c235f8dc832b05a966be
4
- data.tar.gz: 98cc30d41eb574f1aa5991dc55565c46ee9a2a832c8f9a4cc6ac50933d6178b8
3
+ metadata.gz: 89f8f210fb701e03e58156c64d084a06e4411547249b4efc9cf4dc036f6f150a
4
+ data.tar.gz: bc0ccd3a2b04f0fe69fbfba9aadc2ace1c5e4a3f63d0545d6005d8bf9f18dc09
5
5
  SHA512:
6
- metadata.gz: 13d4fa704390586c238e79fd7d86327084eb317a6e9248d55222dd45917d4a3ef49246cd9c3f948aac28693ef2b277663472212e9a3437ca98d8a3ff90f804de
7
- data.tar.gz: fb0a0dedaca2c7e6ac35688071660dbf1e7635d7f0c9c9947b3ee00f94c38ddd8dbbb603d66348cc1d11eb368337cf629229ff4e101096e135d51a45be189888
6
+ metadata.gz: b3dd9cf106c8c7a144daa216a8de813dac4ffd469fd0d2bfbbf3b818b5f8777b09da88b6114fce57008203f677938d8ef56a8f4dba577b06a5ec3973d6a24b7e
7
+ data.tar.gz: ae6a995aecc758ce569b5a65a29f287baccb743286bfdc54930bdbd2a9596f17ce6ddd88fb50c0064678eaf392ecd31f8ed230e3269a0ff145e34e1e80c0cb9a
@@ -109,12 +109,9 @@ class Alumno < FXMainWindow
109
109
  # tabla alumnos (id, nombres, apellidos, lugar_nacimiento, fecha_nacimiento, cedula, fk_catequistas, fk_niveles)
110
110
  # tabla niveles (id, nivel, sector, anio_lectivo)
111
111
  def validar_formato_fecha(fecha)
112
- begin
113
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
114
- return true
115
- rescue ArgumentError
116
- return false
117
- end
112
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
113
+
114
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
118
115
  end
119
116
 
120
117
  if validar_formato_fecha(fecha_nacimiento)
@@ -241,12 +241,9 @@ class ActualizarBautismo < FXMainWindow
241
241
  # Iniciar una transacción
242
242
 
243
243
  def validar_formato_fecha(fecha)
244
- begin
245
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
246
- return true
247
- rescue ArgumentError
248
- return false
249
- end
244
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
245
+
246
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
250
247
  end
251
248
 
252
249
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento) && validar_formato_fecha(date_rc)
@@ -151,12 +151,9 @@ class ActualizarPreBautismal < FXMainWindow
151
151
  # Iniciar una transacción
152
152
 
153
153
  def validar_formato_fecha(fecha)
154
- begin
155
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
156
- return true
157
- rescue ArgumentError
158
- return false
159
- end
154
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
155
+
156
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
160
157
  end
161
158
 
162
159
  if validar_formato_fecha(fecha)
@@ -151,12 +151,9 @@ class ActualizarComunion < FXMainWindow
151
151
  # Iniciar una transacción
152
152
 
153
153
  def validar_formato_fecha(fecha)
154
- begin
155
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
156
- return true
157
- rescue ArgumentError
158
- return false
159
- end
154
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
155
+
156
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
160
157
  end
161
158
 
162
159
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento)
@@ -157,12 +157,9 @@ class ActualizarConfirmacion < FXMainWindow
157
157
  # Iniciar una transacción
158
158
 
159
159
  def validar_formato_fecha(fecha)
160
- begin
161
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
162
- return true
163
- rescue ArgumentError
164
- return false
165
- end
160
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
161
+
162
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
166
163
  end
167
164
 
168
165
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento)
@@ -216,12 +216,9 @@ class ActualizarLicenciaMatrimonio < FXMainWindow
216
216
  # tabla registros_civiles (id, provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc)
217
217
 
218
218
  def validar_formato_fecha(fecha)
219
- begin
220
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
221
- return true
222
- rescue ArgumentError
223
- return false
224
- end
219
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
220
+
221
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
225
222
  end
226
223
 
227
224
  if validar_formato_fecha(fecha) && validar_formato_fecha(date_rc)
@@ -230,12 +230,9 @@ class ActualizarMatrimonio < FXMainWindow
230
230
  # tabla registros_civiles (id, provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc)
231
231
 
232
232
  def validar_formato_fecha(fecha)
233
- begin
234
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
235
- return true
236
- rescue ArgumentError
237
- return false
238
- end
233
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
234
+
235
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
239
236
  end
240
237
 
241
238
  if validar_formato_fecha(fecha) && validar_formato_fecha(date_rc)
@@ -96,12 +96,9 @@ class ActualizarMisa < FXMainWindow
96
96
  # Iniciar una transacción
97
97
 
98
98
  def validar_formato_fecha(fecha)
99
- begin
100
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
101
- return true
102
- rescue ArgumentError
103
- return false
104
- end
99
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
100
+
101
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
105
102
  end
106
103
 
107
104
  if validar_formato_fecha(fecha_misa)
@@ -166,12 +166,9 @@ class ActualizarPermisoBautismo < FXMainWindow
166
166
  # Iniciar una transacción
167
167
 
168
168
  def validar_formato_fecha(fecha)
169
- begin
170
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
171
- return true
172
- rescue ArgumentError
173
- return false
174
- end
169
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
170
+
171
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
175
172
  end
176
173
 
177
174
  if validar_formato_fecha(fecha)
@@ -144,12 +144,9 @@ class ActualizarPreMatrimonial < FXMainWindow
144
144
  # tabla registros_civiles (id, provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc)
145
145
 
146
146
  def validar_formato_fecha(fecha)
147
- begin
148
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
149
- return true
150
- rescue ArgumentError
151
- return false
152
- end
147
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
148
+
149
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
153
150
  end
154
151
 
155
152
  if validar_formato_fecha(fecha)
@@ -255,12 +255,9 @@ class ActualizarSupletoria < FXMainWindow
255
255
  # Iniciar una transacción
256
256
 
257
257
  def validar_formato_fecha(fecha)
258
- begin
259
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
260
- return true
261
- rescue ArgumentError
262
- return false
263
- end
258
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
259
+
260
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
264
261
  end
265
262
 
266
263
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento) && validar_formato_fecha(date_rc)
@@ -217,12 +217,9 @@ class Bautizo < FXMainWindow
217
217
  # Iniciar una transacción
218
218
 
219
219
  def validar_formato_fecha(fecha)
220
- begin
221
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
222
- return true
223
- rescue ArgumentError
224
- return false
225
- end
220
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
221
+
222
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
226
223
  end
227
224
 
228
225
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento) && validar_formato_fecha(date_rc)
@@ -138,12 +138,9 @@ class PreBautismal < FXMainWindow
138
138
  # Iniciar una transacción
139
139
 
140
140
  def validar_formato_fecha(fecha)
141
- begin
142
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
143
- return true
144
- rescue ArgumentError
145
- return false
146
- end
141
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
142
+
143
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
147
144
  end
148
145
 
149
146
  if validar_formato_fecha(fecha)
@@ -140,12 +140,9 @@ class Comunion < FXMainWindow
140
140
  # Iniciar una transacción
141
141
 
142
142
  def validar_formato_fecha(fecha)
143
- begin
144
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
145
- return true
146
- rescue ArgumentError
147
- return false
148
- end
143
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
144
+
145
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
149
146
  end
150
147
 
151
148
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento)
@@ -146,12 +146,9 @@ class Confirmacion < FXMainWindow
146
146
  # Iniciar una transacción
147
147
 
148
148
  def validar_formato_fecha(fecha)
149
- begin
150
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
151
- return true
152
- rescue ArgumentError
153
- return false
154
- end
149
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
150
+
151
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
155
152
  end
156
153
 
157
154
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento)
@@ -192,12 +192,9 @@ class LicenciaMatrimonio < FXMainWindow
192
192
  # tabla sacramentos (id, nombre, fecha, celebrante, certifica, padrino, madrina, testigo_novio, testigo_novia, padre, madre, nombres_novia, apellidos_novia, cedula_novia, fk_creyentes, fk_parroquias, fk_registros_civiles, fk_libros)
193
193
  # tabla registros_civiles (id, provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc)
194
194
  def validar_formato_fecha(fecha)
195
- begin
196
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
197
- return true
198
- rescue ArgumentError
199
- return false
200
- end
195
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
196
+
197
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
201
198
  end
202
199
 
203
200
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_rc)
@@ -208,12 +208,9 @@ class Matrimonio < FXMainWindow
208
208
  # tabla sacramentos (id, nombre, fecha, celebrante, certifica, padrino, madrina, testigo_novio, testigo_novia, padre, madre, nombres_novia, apellidos_novia, cedula_novia, fk_creyentes, fk_parroquias, fk_registros_civiles, fk_libros)
209
209
  # tabla registros_civiles (id, provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc)
210
210
  def validar_formato_fecha(fecha)
211
- begin
212
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
213
- return true
214
- rescue ArgumentError
215
- return false
216
- end
211
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
212
+
213
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
217
214
  end
218
215
 
219
216
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_rc)
@@ -91,12 +91,9 @@ class Misa < FXMainWindow
91
91
  # Iniciar una transacción
92
92
 
93
93
  def validar_formato_fecha(fecha)
94
- begin
95
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
96
- return true
97
- rescue ArgumentError
98
- return false
99
- end
94
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
95
+
96
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
100
97
  end
101
98
 
102
99
  if validar_formato_fecha(fecha_misa)
@@ -150,12 +150,9 @@ class PermisoBautizo < FXMainWindow
150
150
  # Iniciar una transacción
151
151
 
152
152
  def validar_formato_fecha(fecha)
153
- begin
154
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
155
- return true
156
- rescue ArgumentError
157
- return false
158
- end
153
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
154
+
155
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
159
156
  end
160
157
 
161
158
  if validar_formato_fecha(fecha)
@@ -131,12 +131,9 @@ class PermisoMatrimonio < FXMainWindow
131
131
  # tabla registros_civiles (id, provincia_rc, canton_rc, parroquia_rc, anio_rc, tomo_rc, pagina_rc, acta_rc, fecha_rc)
132
132
 
133
133
  def validar_formato_fecha(fecha)
134
- begin
135
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
136
- return true
137
- rescue ArgumentError
138
- return false
139
- end
134
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
135
+
136
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
140
137
  end
141
138
 
142
139
  if validar_formato_fecha(fecha)
@@ -225,12 +225,9 @@ class Supletoria < FXMainWindow
225
225
  # Iniciar una transacción
226
226
 
227
227
  def validar_formato_fecha(fecha)
228
- begin
229
- Date.strptime(fecha, '%Y/%m/%d') || Date.strptime(fecha, '%Y-%m-%d')
230
- return true
231
- rescue ArgumentError
232
- return false
233
- end
228
+ formatos_validos = ['%Y/%m/%d', '%Y-%m-%d']
229
+
230
+ formatos_validos.any? { |formato| Date.strptime(fecha, formato) rescue false }
234
231
  end
235
232
 
236
233
  if validar_formato_fecha(fecha) && validar_formato_fecha(fecha_nacimiento) && validar_formato_fecha(date_rc)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parroquia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.40
4
+ version: 1.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Javier Borja Lobato