eac_rails_base0 0.62.0 → 0.63.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/eac_rails_base0.js +1 -0
- data/app/assets/stylesheets/eac_rails_base0.scss +12 -0
- data/app/helpers/eac_rails_base0/main_menu_helper.rb +8 -1
- data/config/locales/pt-BR.yml +1 -0
- data/config/routes.rb +1 -0
- data/lib/eac_rails_base0/app_base/ability.rb +1 -0
- data/lib/eac_rails_base0/app_base/ability_mapping.rb +22 -9
- data/lib/eac_rails_base0/app_base/application/production.rb +2 -2
- data/lib/eac_rails_base0/app_base/application.rb +1 -1
- data/lib/eac_rails_base0/engine.rb +2 -0
- data/lib/eac_rails_base0/version.rb +1 -1
- metadata +66 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7e784d87a110e08d5dbfcc3ae6bf55b94a37ec6241b175965d56a4945c70e63
|
4
|
+
data.tar.gz: bd4ff14be57dd37839bc99ef1b51b956cf365dcb9c6a6f5b7903456f8f5c0941
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deea28f31ba050a878ca66a1203faf3190906989ac871d9ae084cf04bb47a91f09fafcbb9df05abc1d61ec9da010fffeb26b4ea3ff9a0bc7ff516a2125e66879
|
7
|
+
data.tar.gz: 821ed792dc0b25c5d3a9b72d66820ce85b88299e77faea822794409125786bcabfc3ccb096926707fea915bfd95e1b5d6a068d6172b524973e5d5e82433757d1
|
@@ -1,13 +1,25 @@
|
|
1
|
+
@import 'eac_rails_remotes/application';
|
2
|
+
|
1
3
|
@import 'eac_users_support/application';
|
4
|
+
|
2
5
|
@import 'eac_rails_base0/bootstrap_import';
|
6
|
+
|
3
7
|
@import "eac_rails_utils";
|
8
|
+
|
4
9
|
@import "aranha/application";
|
10
|
+
|
5
11
|
@import "tasks_scheduler";
|
12
|
+
|
6
13
|
@import 'br_railties';
|
14
|
+
|
7
15
|
@import 'eac_active_scaffold';
|
16
|
+
|
8
17
|
@import 'jquery-ui';
|
18
|
+
|
9
19
|
@import 'eac_rails_base0/default_configuration';
|
20
|
+
|
10
21
|
@import 'eac_rails_base0/components';
|
22
|
+
|
11
23
|
@import 'eac_rails_base0/styles_legend';
|
12
24
|
|
13
25
|
.alert-notice {
|
@@ -3,7 +3,8 @@
|
|
3
3
|
module EacRailsBase0
|
4
4
|
module MainMenuHelper
|
5
5
|
APP_MAIN_MENU_ENTRIES_METHOD = 'app_main_menu_entries'
|
6
|
-
ADMIN_ENTRIES = %w[eac_users_support tasks_scheduler aranha br_railties mailer
|
6
|
+
ADMIN_ENTRIES = %w[eac_users_support tasks_scheduler aranha br_railties mailer
|
7
|
+
eac_rails_remotes].freeze
|
7
8
|
|
8
9
|
def base0_app_main_menu_entries
|
9
10
|
if respond_to?(APP_MAIN_MENU_ENTRIES_METHOD)
|
@@ -35,6 +36,12 @@ module EacRailsBase0
|
|
35
36
|
end.to_h
|
36
37
|
end
|
37
38
|
|
39
|
+
def eac_rails_remotes_main_menu_admin_entries
|
40
|
+
{
|
41
|
+
::EacRailsRemotes::Instance.model_name.human(count: 2) => [eac_rails_remotes.instances_path]
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
38
45
|
def eac_users_support_main_menu_admin_entries
|
39
46
|
{
|
40
47
|
::EacUsersSupport::User.model_name.human(count: 2) => [eac_users_support.admin_users_path]
|
data/config/locales/pt-BR.yml
CHANGED
data/config/routes.rb
CHANGED
@@ -5,6 +5,7 @@ Rails.application.routes.draw do
|
|
5
5
|
mount ::EacUsersSupport::Engine => '/'
|
6
6
|
mount ::Aranha::Rails::Engine => '/aranha'
|
7
7
|
mount ::BrRailties::Engine => '/br_railties'
|
8
|
+
mount ::EacRailsRemotes::Engine => '/remotes'
|
8
9
|
|
9
10
|
namespace(:eac_rails_base0) do
|
10
11
|
resources(:mailer, only: []) do
|
@@ -8,27 +8,40 @@ module EacRailsBase0
|
|
8
8
|
include CanCanDry::AbilityMappingSets::Devise
|
9
9
|
include CanCanDry::AbilityMappingSets::DeviseInvitable
|
10
10
|
|
11
|
+
MAP_METHODS = %w[aranha br_railties devise devise_invitable eac_rails_base0 eac_rails_remotes
|
12
|
+
eac_users_support tasks_schedulers].freeze
|
13
|
+
|
11
14
|
def initialize
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
map_controller '
|
17
|
-
map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
|
18
|
-
map_controller 'ScheduledTasks', :manage, ::ScheduledTask
|
19
|
-
map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
|
20
|
-
map_eac_rails_base0
|
15
|
+
MAP_METHODS.each { |m| send("map_#{m}") }
|
16
|
+
end
|
17
|
+
|
18
|
+
def map_eac_rails_remotes
|
19
|
+
map_controller 'EacRailsRemotes::Instances', :manage, ::EacRailsRemotes::Instance
|
21
20
|
end
|
22
21
|
|
23
22
|
def map_eac_rails_base0
|
24
23
|
map_controller 'EacRailsBase0::Mailer', :manage, :eac_rails_base0_mailer
|
25
24
|
end
|
26
25
|
|
26
|
+
def map_eac_users_support
|
27
|
+
map_controller 'EacUsersSupport::Admin::Users', :manage, ::EacUsersSupport::User
|
28
|
+
end
|
29
|
+
|
27
30
|
def map_aranha
|
28
31
|
map_controller 'Aranha::Addresses', :manage, ::Aranha::Address
|
29
32
|
map_controller 'Aranha::ProcessorConfigurations', :manage, ::Aranha::ProcessorConfiguration
|
30
33
|
map_controller 'Aranha::StartPoints', :manage, ::Aranha::StartPoint
|
31
34
|
end
|
35
|
+
|
36
|
+
def map_br_railties
|
37
|
+
map_controller 'BrRailties::FederalUnits', :manage, ::BrRailties::FederalUnit
|
38
|
+
map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
|
39
|
+
end
|
40
|
+
|
41
|
+
def map_tasks_schedulers
|
42
|
+
map_controller 'ScheduledTasks', :manage, ::ScheduledTask
|
43
|
+
map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
|
44
|
+
end
|
32
45
|
end
|
33
46
|
end
|
34
47
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'eac_ruby_utils/core_ext'
|
4
|
-
require 'aranha/selenium/
|
4
|
+
require 'aranha/selenium/defaults'
|
5
5
|
|
6
6
|
module EacRailsBase0App
|
7
7
|
class Application < Rails::Application
|
@@ -14,7 +14,7 @@ module EacRailsBase0App
|
|
14
14
|
|
15
15
|
module ClassMethods
|
16
16
|
def setup_aranha
|
17
|
-
::Aranha::Selenium::
|
17
|
+
::Aranha::Selenium::Defaults.instance.headless = true
|
18
18
|
end
|
19
19
|
|
20
20
|
def setup_assets
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.63.1
|
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: 2023-05-
|
11
|
+
date: 2023-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.19'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.19.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.19'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.19.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: aranha-rails
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,14 +56,14 @@ dependencies:
|
|
50
56
|
requirements:
|
51
57
|
- - "~>"
|
52
58
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
59
|
+
version: '0.6'
|
54
60
|
type: :runtime
|
55
61
|
prerelease: false
|
56
62
|
version_requirements: !ruby/object:Gem::Requirement
|
57
63
|
requirements:
|
58
64
|
- - "~>"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
66
|
+
version: '0.6'
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: bootstrap-sass
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,14 +184,40 @@ dependencies:
|
|
178
184
|
requirements:
|
179
185
|
- - "~>"
|
180
186
|
- !ruby/object:Gem::Version
|
181
|
-
version: '0.
|
187
|
+
version: '0.35'
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: 0.35.1
|
191
|
+
type: :runtime
|
192
|
+
prerelease: false
|
193
|
+
version_requirements: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0.35'
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 0.35.1
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: eac_rails_delayed_job
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0.1'
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: 0.1.4
|
182
211
|
type: :runtime
|
183
212
|
prerelease: false
|
184
213
|
version_requirements: !ruby/object:Gem::Requirement
|
185
214
|
requirements:
|
186
215
|
- - "~>"
|
187
216
|
- !ruby/object:Gem::Version
|
188
|
-
version: '0.
|
217
|
+
version: '0.1'
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: 0.1.4
|
189
221
|
- !ruby/object:Gem::Dependency
|
190
222
|
name: eac_rails_gem_support
|
191
223
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,6 +232,20 @@ dependencies:
|
|
200
232
|
- - "~>"
|
201
233
|
- !ruby/object:Gem::Version
|
202
234
|
version: '0.7'
|
235
|
+
- !ruby/object:Gem::Dependency
|
236
|
+
name: eac_rails_remotes
|
237
|
+
requirement: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - "~>"
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '0.1'
|
242
|
+
type: :runtime
|
243
|
+
prerelease: false
|
244
|
+
version_requirements: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - "~>"
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: '0.1'
|
203
249
|
- !ruby/object:Gem::Dependency
|
204
250
|
name: eac_rails_utils
|
205
251
|
requirement: !ruby/object:Gem::Requirement
|
@@ -209,7 +255,7 @@ dependencies:
|
|
209
255
|
version: '0.17'
|
210
256
|
- - ">="
|
211
257
|
- !ruby/object:Gem::Version
|
212
|
-
version: 0.17.
|
258
|
+
version: 0.17.2
|
213
259
|
type: :runtime
|
214
260
|
prerelease: false
|
215
261
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -219,21 +265,27 @@ dependencies:
|
|
219
265
|
version: '0.17'
|
220
266
|
- - ">="
|
221
267
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.17.
|
268
|
+
version: 0.17.2
|
223
269
|
- !ruby/object:Gem::Dependency
|
224
270
|
name: eac_ruby_utils
|
225
271
|
requirement: !ruby/object:Gem::Requirement
|
226
272
|
requirements:
|
227
273
|
- - "~>"
|
228
274
|
- !ruby/object:Gem::Version
|
229
|
-
version: '0.
|
275
|
+
version: '0.117'
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 0.117.1
|
230
279
|
type: :runtime
|
231
280
|
prerelease: false
|
232
281
|
version_requirements: !ruby/object:Gem::Requirement
|
233
282
|
requirements:
|
234
283
|
- - "~>"
|
235
284
|
- !ruby/object:Gem::Version
|
236
|
-
version: '0.
|
285
|
+
version: '0.117'
|
286
|
+
- - ">="
|
287
|
+
- !ruby/object:Gem::Version
|
288
|
+
version: 0.117.1
|
237
289
|
- !ruby/object:Gem::Dependency
|
238
290
|
name: eac_users_support
|
239
291
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,14 +312,14 @@ dependencies:
|
|
260
312
|
requirements:
|
261
313
|
- - "~>"
|
262
314
|
- !ruby/object:Gem::Version
|
263
|
-
version: '3.
|
315
|
+
version: '3.19'
|
264
316
|
type: :runtime
|
265
317
|
prerelease: false
|
266
318
|
version_requirements: !ruby/object:Gem::Requirement
|
267
319
|
requirements:
|
268
320
|
- - "~>"
|
269
321
|
- !ruby/object:Gem::Version
|
270
|
-
version: '3.
|
322
|
+
version: '3.19'
|
271
323
|
- !ruby/object:Gem::Dependency
|
272
324
|
name: jbuilder
|
273
325
|
requirement: !ruby/object:Gem::Requirement
|