eac_rails_base0 0.39.1 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/eac_rails_base0/application_record.rb +7 -0
- data/config/initializers/carrier_wave.rb +1 -0
- data/config/initializers/cookies_serializer.rb +1 -1
- data/lib/eac_rails_base0/app_base/application.rb +2 -1
- data/lib/eac_rails_base0/patches/eac_rails_utils_links_helper_patch.rb +6 -8
- data/lib/eac_rails_base0/patches/url_for_patch.rb +4 -5
- data/lib/eac_rails_base0/version.rb +1 -1
- metadata +55 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20ae2a7f8314d4637e38f5f324f0ee9ef314ed0964477ef1ceb58b27e1d949b8
|
4
|
+
data.tar.gz: 83b42bcf46c4aaca8b397c11d24e4b0f0ace7b5d8a94d42e75185dcd60c1190e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91c5c84d65469f2d73c767c06a895c50cb9f4970f7b007466251cffc9733b840fc310352f3e373de144d575c5b006f241c1dd2e0af169f3bda5b9928cee2d7d3
|
7
|
+
data.tar.gz: 53a82f8ac645124d7e60fcab6295659a9a96dce8aaddbf7523d48a440e680a925ec5dd611708a394a769210a9249d74fcfa2ec84e52bd1c697335c2b8460e0fb
|
@@ -32,10 +32,11 @@ module EacRailsBase0App
|
|
32
32
|
config.i18n.default_locale = :'pt-BR'
|
33
33
|
|
34
34
|
# Do not swallow errors in after_commit/after_rollback callbacks.
|
35
|
-
config.active_record.raise_in_transactional_callbacks = true
|
35
|
+
config.active_record.raise_in_transactional_callbacks = true if ::Rails.version < '5'
|
36
36
|
|
37
37
|
# Autoload do código em /lib.
|
38
38
|
config.autoload_paths << Rails.root.join('lib')
|
39
|
+
config.eager_load_paths << ::Rails.root.join('lib')
|
39
40
|
|
40
41
|
config.after_initialize do
|
41
42
|
ActiveRecord::Base.logger = nil
|
@@ -5,23 +5,21 @@ module EacRailsBase0
|
|
5
5
|
module EacRailsUtilsLinksHelper
|
6
6
|
class << self
|
7
7
|
def included(base)
|
8
|
-
base.
|
9
|
-
base.
|
10
|
-
base.alias_method_chain :short_object_link, :base0
|
11
|
-
base.alias_method_chain :object_path_by_class, :base0
|
8
|
+
base.prepend(InstanceMethods)
|
9
|
+
base.prepend(::CanCanDryHelper)
|
12
10
|
end
|
13
11
|
end
|
14
12
|
|
15
13
|
module InstanceMethods
|
16
|
-
def
|
14
|
+
def short_object_link(object, action = nil, options = {})
|
17
15
|
value_or_sign(object, '') do |value|
|
18
16
|
path = object_path(value, action)
|
19
17
|
link_to '', url_for(path), options if can_by_path?(path, options[:method])
|
20
18
|
end
|
21
19
|
end
|
22
20
|
|
23
|
-
def
|
24
|
-
|
21
|
+
def object_path_by_class(*args)
|
22
|
+
super(*args).gsub(/_url\z/, '_path')
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
@@ -31,4 +29,4 @@ end
|
|
31
29
|
require 'eac_rails_utils/links_helper'
|
32
30
|
patch = ::EacRailsBase0::Patches::EacRailsUtilsLinksHelper
|
33
31
|
target = ::EacRailsUtils::LinksHelper
|
34
|
-
target.
|
32
|
+
target.prepend(patch) unless target.included_modules.include?(patch)
|
@@ -5,14 +5,13 @@ module EacRailsBase0
|
|
5
5
|
module UrlForPatch
|
6
6
|
class << self
|
7
7
|
def included(base)
|
8
|
-
base.
|
9
|
-
base.alias_method_chain :url_for, :engines
|
8
|
+
base.prepend(InstanceMethods)
|
10
9
|
end
|
11
10
|
end
|
12
11
|
|
13
12
|
module InstanceMethods
|
14
|
-
def
|
15
|
-
|
13
|
+
def url_for(options = nil)
|
14
|
+
super(options)
|
16
15
|
rescue ActionController::UrlGenerationError
|
17
16
|
engines_url_for(options)
|
18
17
|
end
|
@@ -39,4 +38,4 @@ end
|
|
39
38
|
|
40
39
|
patch = ::EacRailsBase0::Patches::UrlForPatch
|
41
40
|
target = ::ActionDispatch::Routing::UrlFor
|
42
|
-
target.
|
41
|
+
target.prepend(patch) unless target.included_modules.include?(patch)
|
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_rails_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: active_scaffold
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.5'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.5.5
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.5'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.5.5
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: aranha
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,16 +150,16 @@ dependencies:
|
|
130
150
|
name: coffee-rails
|
131
151
|
requirement: !ruby/object:Gem::Requirement
|
132
152
|
requirements:
|
133
|
-
- - "
|
153
|
+
- - ">="
|
134
154
|
- !ruby/object:Gem::Version
|
135
|
-
version: 4.
|
155
|
+
version: 4.2.2
|
136
156
|
type: :runtime
|
137
157
|
prerelease: false
|
138
158
|
version_requirements: !ruby/object:Gem::Requirement
|
139
159
|
requirements:
|
140
|
-
- - "
|
160
|
+
- - ">="
|
141
161
|
- !ruby/object:Gem::Version
|
142
|
-
version: 4.
|
162
|
+
version: 4.2.2
|
143
163
|
- !ruby/object:Gem::Dependency
|
144
164
|
name: eac_rails_utils
|
145
165
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,14 +200,20 @@ dependencies:
|
|
180
200
|
requirements:
|
181
201
|
- - "~>"
|
182
202
|
- !ruby/object:Gem::Version
|
183
|
-
version: '0.
|
203
|
+
version: '0.6'
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 0.6.3
|
184
207
|
type: :runtime
|
185
208
|
prerelease: false
|
186
209
|
version_requirements: !ruby/object:Gem::Requirement
|
187
210
|
requirements:
|
188
211
|
- - "~>"
|
189
212
|
- !ruby/object:Gem::Version
|
190
|
-
version: '0.
|
213
|
+
version: '0.6'
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: 0.6.3
|
191
217
|
- !ruby/object:Gem::Dependency
|
192
218
|
name: eac_ruby_utils
|
193
219
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,20 +234,20 @@ dependencies:
|
|
208
234
|
requirements:
|
209
235
|
- - "~>"
|
210
236
|
- !ruby/object:Gem::Version
|
211
|
-
version: '0.
|
237
|
+
version: '0.8'
|
212
238
|
- - ">="
|
213
239
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.
|
240
|
+
version: 0.8.2
|
215
241
|
type: :runtime
|
216
242
|
prerelease: false
|
217
243
|
version_requirements: !ruby/object:Gem::Requirement
|
218
244
|
requirements:
|
219
245
|
- - "~>"
|
220
246
|
- !ruby/object:Gem::Version
|
221
|
-
version: '0.
|
247
|
+
version: '0.8'
|
222
248
|
- - ">="
|
223
249
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.
|
250
|
+
version: 0.8.2
|
225
251
|
- !ruby/object:Gem::Dependency
|
226
252
|
name: factory_bot_rails
|
227
253
|
requirement: !ruby/object:Gem::Requirement
|
@@ -330,22 +356,16 @@ dependencies:
|
|
330
356
|
name: rails
|
331
357
|
requirement: !ruby/object:Gem::Requirement
|
332
358
|
requirements:
|
333
|
-
- - "~>"
|
334
|
-
- !ruby/object:Gem::Version
|
335
|
-
version: 4.2.11
|
336
359
|
- - ">="
|
337
360
|
- !ruby/object:Gem::Version
|
338
|
-
version: 4.2.11.
|
361
|
+
version: 4.2.11.3
|
339
362
|
type: :runtime
|
340
363
|
prerelease: false
|
341
364
|
version_requirements: !ruby/object:Gem::Requirement
|
342
365
|
requirements:
|
343
|
-
- - "~>"
|
344
|
-
- !ruby/object:Gem::Version
|
345
|
-
version: 4.2.11
|
346
366
|
- - ">="
|
347
367
|
- !ruby/object:Gem::Version
|
348
|
-
version: 4.2.11.
|
368
|
+
version: 4.2.11.3
|
349
369
|
- !ruby/object:Gem::Dependency
|
350
370
|
name: rails-i18n
|
351
371
|
requirement: !ruby/object:Gem::Requirement
|
@@ -360,6 +380,20 @@ dependencies:
|
|
360
380
|
- - "~>"
|
361
381
|
- !ruby/object:Gem::Version
|
362
382
|
version: '4.0'
|
383
|
+
- !ruby/object:Gem::Dependency
|
384
|
+
name: recordselect
|
385
|
+
requirement: !ruby/object:Gem::Requirement
|
386
|
+
requirements:
|
387
|
+
- - ">="
|
388
|
+
- !ruby/object:Gem::Version
|
389
|
+
version: 3.10.1
|
390
|
+
type: :runtime
|
391
|
+
prerelease: false
|
392
|
+
version_requirements: !ruby/object:Gem::Requirement
|
393
|
+
requirements:
|
394
|
+
- - ">="
|
395
|
+
- !ruby/object:Gem::Version
|
396
|
+
version: 3.10.1
|
363
397
|
- !ruby/object:Gem::Dependency
|
364
398
|
name: rspec-rails
|
365
399
|
requirement: !ruby/object:Gem::Requirement
|
@@ -518,6 +552,7 @@ files:
|
|
518
552
|
- app/helpers/eac_rails_base0/app_version_helper.rb
|
519
553
|
- app/helpers/eac_rails_base0/layout_helper.rb
|
520
554
|
- app/helpers/eac_rails_base0/panel_default_helper.rb
|
555
|
+
- app/models/eac_rails_base0/application_record.rb
|
521
556
|
- app/uploaders/eac_rails_base0/default_file_uploader.rb
|
522
557
|
- app/views/devise/confirmations/new.html.erb
|
523
558
|
- app/views/devise/mailer/confirmation_instructions.html.erb
|