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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 992e735bba69306b83ec521cf43bdf5e62a729585a922f05f298a4414514ff93
4
- data.tar.gz: 8e11f8d18561005f562ed94fc335541456927aacb8271e42ab7f6448bc841ebd
3
+ metadata.gz: b7e784d87a110e08d5dbfcc3ae6bf55b94a37ec6241b175965d56a4945c70e63
4
+ data.tar.gz: bd4ff14be57dd37839bc99ef1b51b956cf365dcb9c6a6f5b7903456f8f5c0941
5
5
  SHA512:
6
- metadata.gz: 96f148f9b44ee4b61ddaf8964ed6b3f49a743c2ac1fc9c9ba1d7c66668d759f05fc0dd0483a0d239d5c3780dab2b0987b4ff9b4f96ac29bd1a8e46007b9a6ee8
7
- data.tar.gz: f1a27fb24674dc0fadb680a2cb5b898ba06a393c8ea00c8ae2aa77a15bd48d2f05b390306978e5fc799ec2e5b65fa48cf075be57a3d575ab0da4fca944c64df8
6
+ metadata.gz: deea28f31ba050a878ca66a1203faf3190906989ac871d9ae084cf04bb47a91f09fafcbb9df05abc1d61ec9da010fffeb26b4ea3ff9a0bc7ff516a2125e66879
7
+ data.tar.gz: 821ed792dc0b25c5d3a9b72d66820ce85b88299e77faea822794409125786bcabfc3ccb096926707fea915bfd95e1b5d6a068d6172b524973e5d5e82433757d1
@@ -2,6 +2,7 @@
2
2
  //= require jquery_ujs
3
3
  //= require jquery-ui
4
4
  //= require turbolinks
5
+ //= require eac_rails_remotes/application
5
6
  //= require eac_users_support/application
6
7
  //= require bootstrap-sprockets
7
8
  //= require eac_rails_utils
@@ -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].freeze
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]
@@ -37,5 +37,6 @@ pt-BR:
37
37
  aranha: Aranha
38
38
  br_railties: BrRailties
39
39
  mailer: E-mail
40
+ eac_rails_remotes: Remotos
40
41
  eac_users_support: Usuários
41
42
  tasks_scheduler: Agendador
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
@@ -57,6 +57,7 @@ module EacRailsBase0
57
57
  def administrator_rules(user)
58
58
  return unless user.administrator?
59
59
 
60
+ can :manage, ::EacRailsRemotes::Instance
60
61
  can :manage, ::EacUsersSupport::User
61
62
  can :manage, ::Aranha::Address
62
63
  can :manage, ::Aranha::ProcessorConfiguration
@@ -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
- map_devise
13
- map_devise_invitable
14
- map_controller 'EacUsersSupport::Admin::Users', :manage, ::EacUsersSupport::User
15
- map_aranha
16
- map_controller 'BrRailties::FederalUnits', :manage, ::BrRailties::FederalUnit
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/driver_factory/base'
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::DriverFactory::Base.default_headless = false
17
+ ::Aranha::Selenium::Defaults.instance.headless = true
18
18
  end
19
19
 
20
20
  def setup_assets
@@ -21,6 +21,6 @@ module EacRailsBase0App
21
21
  end
22
22
  end
23
23
 
24
- require_sub __FILE__, include_modules: true
24
+ require_sub __FILE__, include_modules: true, require_mode: :kernel
25
25
  end
26
26
  end
@@ -3,6 +3,8 @@
3
3
  require 'aranha/rails/engine'
4
4
  require 'br_railties/engine'
5
5
  require 'eac_active_scaffold/engine'
6
+ require 'eac_rails_delayed_job/engine'
7
+ require 'eac_rails_remotes/engine'
6
8
  require 'eac_rails_utils/engine'
7
9
  require 'eac_users_support/engine'
8
10
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsBase0
4
- VERSION = '0.62.0'
4
+ VERSION = '0.63.1'
5
5
  end
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.62.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-14 00:00:00.000000000 Z
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.18'
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.18'
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.5'
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.5'
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.33'
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.33'
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.1
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.1
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.116'
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.116'
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.18'
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.18'
322
+ version: '3.19'
271
323
  - !ruby/object:Gem::Dependency
272
324
  name: jbuilder
273
325
  requirement: !ruby/object:Gem::Requirement