avmtrf1-tools 0.42.0 → 0.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/exe/avmtrf1 +1 -1
  4. data/lib/avmtrf1/check_point/session/login.rb +5 -5
  5. data/lib/avmtrf1/check_point/session.rb +5 -5
  6. data/lib/avmtrf1/docker/image.rb +9 -9
  7. data/lib/avmtrf1/docker/image_runner.rb +1 -1
  8. data/lib/avmtrf1/esosti/entities/issue.rb +2 -2
  9. data/lib/avmtrf1/esosti/instance/changed.rb +1 -1
  10. data/lib/avmtrf1/esosti/session/solicitacao.rb +4 -4
  11. data/lib/avmtrf1/esosti/session.rb +1 -1
  12. data/lib/avmtrf1/executables.rb +1 -1
  13. data/lib/avmtrf1/forponto/parsers/espelho/methods_as_fields.rb +1 -1
  14. data/lib/avmtrf1/forponto/parsers/espelho/summary_node.rb +3 -3
  15. data/lib/avmtrf1/forponto/parsers/espelho/utils.rb +1 -1
  16. data/lib/avmtrf1/forponto/session/day_registers.rb +1 -1
  17. data/lib/avmtrf1/forponto/session.rb +1 -1
  18. data/lib/avmtrf1/forponto/user/balance.rb +4 -6
  19. data/lib/avmtrf1/forponto/user/day_registers.rb +2 -2
  20. data/lib/avmtrf1/forponto/user/month.rb +2 -2
  21. data/lib/avmtrf1/forponto/user.rb +1 -1
  22. data/lib/avmtrf1/git/cached_repository.rb +2 -2
  23. data/lib/avmtrf1/git/push_large/lfs_commit/helpers.rb +1 -1
  24. data/lib/avmtrf1/git/push_large/lfs_commit/push.rb +1 -1
  25. data/lib/avmtrf1/git/push_large/lfs_commit.rb +1 -1
  26. data/lib/avmtrf1/git/reference.rb +1 -1
  27. data/lib/avmtrf1/gitlab/repository.rb +2 -2
  28. data/lib/avmtrf1/ini/profile.rb +1 -1
  29. data/lib/avmtrf1/ini.rb +2 -2
  30. data/lib/avmtrf1/inventario_sistemas/parser/body_row.rb +1 -1
  31. data/lib/avmtrf1/inventario_sistemas/site_build/html_page_base/elements.rb +2 -2
  32. data/lib/avmtrf1/inventario_sistemas/site_build/html_page_base/layout.rb +21 -21
  33. data/lib/avmtrf1/inventario_sistemas/site_build/sistema.rb +2 -2
  34. data/lib/avmtrf1/inventario_sistemas/site_build.rb +3 -3
  35. data/lib/avmtrf1/jira/entities/issue.rb +2 -2
  36. data/lib/avmtrf1/jira/instance.rb +2 -2
  37. data/lib/avmtrf1/openvpn/config/builder.rb +1 -1
  38. data/lib/avmtrf1/openvpn/config/parser/builder.rb +1 -1
  39. data/lib/avmtrf1/openvpn/config/parser/simple.rb +1 -1
  40. data/lib/avmtrf1/oracle/connection/string_builder.rb +1 -2
  41. data/lib/avmtrf1/oracle/connection.rb +1 -1
  42. data/lib/avmtrf1/oracle/objects/sql_builder.rb +1 -1
  43. data/lib/avmtrf1/oracle/objects.rb +1 -1
  44. data/lib/avmtrf1/oracle/oci8.rb +2 -2
  45. data/lib/avmtrf1/oracle.rb +1 -1
  46. data/lib/avmtrf1/patches/avm/git/issue/complete.rb +3 -3
  47. data/lib/avmtrf1/patches/avm/git/issue.rb +1 -1
  48. data/lib/avmtrf1/patches/avm/git/launcher/base.rb +4 -4
  49. data/lib/avmtrf1/patches/avm/git/launcher.rb +1 -1
  50. data/lib/avmtrf1/patches/avm/git.rb +1 -1
  51. data/lib/avmtrf1/patches/avm.rb +1 -1
  52. data/lib/avmtrf1/patches.rb +1 -1
  53. data/lib/avmtrf1/php/docker_images/v5.rb +13 -13
  54. data/lib/avmtrf1/red/client.rb +1 -1
  55. data/lib/avmtrf1/redmine/instance.rb +1 -1
  56. data/lib/avmtrf1/rest_provider/request.rb +1 -1
  57. data/lib/avmtrf1/rest_provider/response.rb +1 -1
  58. data/lib/avmtrf1/result.rb +1 -1
  59. data/lib/avmtrf1/tools/msgraph/token_retrieve.rb +2 -2
  60. data/lib/avmtrf1/{ruby/gems → tools/rubygems}/dependency.rb +4 -4
  61. data/lib/avmtrf1/{ruby/gems → tools/rubygems}/not_found_error.rb +4 -4
  62. data/lib/avmtrf1/{ruby/gems.rb → tools/rubygems.rb} +2 -2
  63. data/lib/avmtrf1/tools/runner/forponto/resumos.rb +2 -2
  64. data/lib/avmtrf1/tools/runner/forponto/saldo.rb +1 -1
  65. data/lib/avmtrf1/tools/runner/git/gitlab/commit_link.rb +3 -3
  66. data/lib/avmtrf1/tools/runner/git/gitlab.rb +2 -2
  67. data/lib/avmtrf1/tools/runner/git/issues_check.rb +1 -1
  68. data/lib/avmtrf1/tools/runner/git/push_large.rb +5 -5
  69. data/lib/avmtrf1/tools/runner/git.rb +2 -2
  70. data/lib/avmtrf1/tools/runner/msgraph/request.rb +1 -1
  71. data/lib/avmtrf1/tools/runner/openvpn.rb +2 -2
  72. data/lib/avmtrf1/tools/runner/oracle.rb +2 -2
  73. data/lib/avmtrf1/tools/runner/red.rb +4 -4
  74. data/lib/avmtrf1/tools/runner.rb +6 -5
  75. data/lib/avmtrf1/tools/version.rb +1 -1
  76. metadata +58 -18
@@ -8,8 +8,7 @@ module Avmtrf1
8
8
 
9
9
  FIELDS = %w[user password host port service_name].freeze
10
10
 
11
- attr_accessor(*FIELDS)
12
- attr_accessor :string
11
+ attr_accessor(*FIELDS, :string)
13
12
 
14
13
  def initialize(options = nil)
15
14
  if options.is_a?(String)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- Dir["#{File.dirname(__FILE__)}/#{::File.basename(__FILE__, '.*')}/*.rb"].sort.each do |path|
3
+ Dir["#{File.dirname(__FILE__)}/#{File.basename(__FILE__, '.*')}/*.rb"].sort.each do |path|
4
4
  require path
5
5
  end
6
6
 
@@ -14,7 +14,7 @@ module Avmtrf1
14
14
  common_constructor :options
15
15
 
16
16
  def sql
17
- "SELECT * FROM (\n" +
17
+ "SELECT * FROM (\n" + # rubocop:disable Style/StringConcatenation
18
18
  [all_objects_sql, all_users_sql].map { |sub_sql| "\t(#{with_where_sql(sub_sql)})\n" }
19
19
  .join("\tUNION ALL\n") +
20
20
  ") order by object_type, owner, object_name\n"
@@ -26,7 +26,7 @@ module Avmtrf1
26
26
  def row_to_attributes(row)
27
27
  return nil if row.blank?
28
28
 
29
- COLUMNS_TO_ATTRIBUTES.map do |column, attribute|
29
+ COLUMNS_TO_ATTRIBUTES.map do |column, attribute| # rubocop:disable Style/MapToHash
30
30
  [attribute, row.fetch(column.to_s.upcase)]
31
31
  end.to_h
32
32
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avmtrf1/ruby/gems/dependency'
3
+ require 'avmtrf1/tools/rubygems/dependency'
4
4
 
5
5
  module Avmtrf1
6
6
  module Oracle
@@ -10,7 +10,7 @@ module Avmtrf1
10
10
 
11
11
  class << self
12
12
  def dependency
13
- @dependency ||= ::Avmtrf1::Ruby::Gems::Dependency.new('ruby-oci8', 'oci8')
13
+ @dependency ||= ::Avmtrf1::Tools::Rubygems::Dependency.new('ruby-oci8', 'oci8')
14
14
  end
15
15
 
16
16
  def require_lib
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- Dir["#{File.dirname(__FILE__)}/#{::File.basename(__FILE__, '.*')}/*.rb"].sort.each do |path|
3
+ Dir["#{File.dirname(__FILE__)}/#{File.basename(__FILE__, '.*')}/*.rb"].sort.each do |path|
4
4
  require path
5
5
  end
6
6
 
@@ -44,7 +44,7 @@ module Avmtrf1
44
44
  end
45
45
  end
46
46
 
47
- ::EacRubyUtils.patch(
48
- ::Avm::Git::Issue::Complete,
49
- ::Avmtrf1::Patches::Avm::Git::Issue::Complete
47
+ EacRubyUtils.patch(
48
+ Avm::Git::Issue::Complete,
49
+ Avmtrf1::Patches::Avm::Git::Issue::Complete
50
50
  )
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
4
+ EacRubyUtils.require_sub(__FILE__)
@@ -28,7 +28,7 @@ module Avmtrf1
28
28
 
29
29
  def parse_status_file(line)
30
30
  m = /\A(.)(.)\s*(\S.*)\z/.match(line.strip)
31
- return ::OpenStruct.new(stage: m[1], dirty: m[2], path: m[3]) if m
31
+ return ::OpenStruct.new(stage: m[1], dirty: m[2], path: m[3]) if m # rubocop:disable Style/OpenStructUse
32
32
 
33
33
  raise "\"#{line.strip}\" did not match pattern"
34
34
  end
@@ -40,7 +40,7 @@ module Avmtrf1
40
40
  end
41
41
  end
42
42
 
43
- ::EacRubyUtils.patch(
44
- ::Avm::Git::Launcher::Base,
45
- ::Avmtrf1::Patches::Avm::Git::Launcher::Base
43
+ EacRubyUtils.patch(
44
+ Avm::Git::Launcher::Base,
45
+ Avmtrf1::Patches::Avm::Git::Launcher::Base
46
46
  )
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
4
+ EacRubyUtils.require_sub(__FILE__)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
4
+ EacRubyUtils.require_sub(__FILE__)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
4
+ EacRubyUtils.require_sub(__FILE__)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/require_sub'
4
- ::EacRubyUtils.require_sub(__FILE__)
4
+ EacRubyUtils.require_sub(__FILE__)
@@ -8,20 +8,20 @@ module Avmtrf1
8
8
  module DockerImages
9
9
  class V5 < ::Avmtrf1::Php::DockerImages::Base
10
10
  MCRYPT_INSTALL = <<~CODE
11
- RUN docker-php-ext-install mcrypt
11
+ RUN docker-php-ext-install mcrypt
12
+ CODE
13
+ XDEBUG_INSTALL = <<~CODE
14
+ RUN apt-get install -y git
15
+ RUN cd /tmp && \
16
+ git clone https://github.com/xdebug/xdebug.git && \
17
+ cd xdebug && \
18
+ git checkout XDEBUG_2_5_5 && \
19
+ phpize && \
20
+ ./configure --enable-xdebug && \
21
+ make && \
22
+ make install && \
23
+ rm -rf /tmp/xdebug
12
24
  CODE
13
- XDEBUG_INSTALL = <<CODE
14
- RUN apt-get install -y git
15
- RUN cd /tmp && \
16
- git clone https://github.com/xdebug/xdebug.git && \
17
- cd xdebug && \
18
- git checkout XDEBUG_2_5_5 && \
19
- phpize && \
20
- ./configure --enable-xdebug && \
21
- make && \
22
- make install && \
23
- rm -rf /tmp/xdebug
24
- CODE
25
25
 
26
26
  # @return [String]
27
27
  def apt_setup
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'avmtrf1/red/server'
4
4
  require 'avmtrf1/red/helper'
5
- require 'pp'
5
+ require 'pp' # rubocop:disable Lint/RedundantRequireStatement
6
6
  require 'tempfile'
7
7
 
8
8
  module Avmtrf1
@@ -12,7 +12,7 @@ module Avmtrf1
12
12
  class << self
13
13
  def parse_issue_id(issue_id)
14
14
  m = ISSUE_ID_PATTERN.match(issue_id)
15
- m ? ::OpenStruct.new(provider_issue_id: m[1]) : nil
15
+ m ? ::OpenStruct.new(provider_issue_id: m[1]) : nil # rubocop:disable Style/OpenStructUse
16
16
  end
17
17
  end
18
18
 
@@ -10,7 +10,7 @@ module Avmtrf1
10
10
  common_constructor :url, :body_data_proc, default: [nil]
11
11
 
12
12
  def autenticate(username, password)
13
- self.auth = ::OpenStruct.new(username: username, password: password)
13
+ self.auth = ::OpenStruct.new(username: username, password: password) # rubocop:disable Style/OpenStructUse
14
14
  end
15
15
 
16
16
  def header(name, value)
@@ -31,7 +31,7 @@ module Avmtrf1
31
31
  body_str
32
32
  end
33
33
 
34
- def raise_unless_200
34
+ def raise_unless_200 # rubocop:disable Naming/VariableNumber
35
35
  return nil if status == 200
36
36
 
37
37
  raise self
@@ -10,7 +10,7 @@ module Avmtrf1
10
10
  lists.add_string :type, :success, :error, :neutral
11
11
 
12
12
  lists.type.values.each do |type| # rubocop:disable Style/HashEachMethods
13
- class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
13
+ class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 # rubocop:disable Style/DocumentDynamicEvalDefinition
14
14
  def self.#{type}(output)
15
15
  new(TYPE_#{type.upcase}, output)
16
16
  end
@@ -26,8 +26,8 @@ module Avmtrf1
26
26
  # @return [String]
27
27
  def result_string
28
28
  ::EacRubyUtils::Fs::Temp.on_file do |file|
29
- raise ::RuntimeError, result.pretty_inspect unless python_retrieve_command(file.to_path)
30
- .system
29
+ raise result.pretty_inspect.to_s unless python_retrieve_command(file.to_path)
30
+ .system
31
31
 
32
32
  file.read
33
33
  end
@@ -1,18 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'avmtrf1/ruby/gems/not_found_error'
4
+ require 'avmtrf1/tools/rubygems/not_found_error'
5
5
 
6
6
  module Avmtrf1
7
- module Ruby
8
- module Gems
7
+ module Tools
8
+ module Rubygems
9
9
  class Dependency
10
10
  common_constructor :gem_name, :lib_name
11
11
 
12
12
  def require_lib
13
13
  require lib_name
14
14
  rescue LoadError
15
- raise ::Avmtrf1::Ruby::Gems::NotFoundError, self
15
+ raise ::Avmtrf1::Tools::Rubygems::NotFoundError, self
16
16
  end
17
17
  end
18
18
  end
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avmtrf1
4
- module Ruby
5
- module Gems
4
+ module Tools
5
+ module Rubygems
6
6
  class NotFoundError < ::StandardError
7
7
  attr_reader :dependency
8
8
 
9
9
  def initialize(dependency)
10
10
  @dependency = dependency
11
- super("Gem \"#{dependency.gem_name}\" not found" \
12
- " (Library required: \"#{dependency.lib_name}\")")
11
+ super("Gem \"#{dependency.gem_name}\" not found " \
12
+ "(Library required: \"#{dependency.lib_name}\")")
13
13
  end
14
14
  end
15
15
  end
@@ -3,8 +3,8 @@
3
3
  require 'eac_ruby_utils/core_ext'
4
4
 
5
5
  module Avmtrf1
6
- module Ruby
7
- module Gems
6
+ module Tools
7
+ module Rubygems
8
8
  require_sub __FILE__
9
9
  end
10
10
  end
@@ -18,7 +18,7 @@ module Avmtrf1
18
18
  end
19
19
 
20
20
  def head_month
21
- today = ::Date.today
21
+ today = ::Date.today # rubocop:disable Rails/Date
22
22
  date = ::Date.civil(today.year, today.month, 1)
23
23
  runner_context.call(:user).month(date.year, date.month)
24
24
  end
@@ -37,7 +37,7 @@ module Avmtrf1
37
37
 
38
38
  def show_month_summaries(month)
39
39
  month.os_data.summaries.each do |s|
40
- infov ' * ' + summary_to_label(s), summary_to_value(s)
40
+ infov ' * ' + summary_to_label(s), summary_to_value(s) # rubocop:disable Style/StringConcatenation
41
41
  end
42
42
  end
43
43
 
@@ -58,7 +58,7 @@ module Avmtrf1
58
58
  end
59
59
 
60
60
  def show_month_end_resume(mba)
61
- infov ' * Left', minutes_to_s(mba.left) + ' ' + left_status(mba)
61
+ infov ' * Left', minutes_to_s(mba.left) + ' ' + left_status(mba) # rubocop:disable Style/StringConcatenation
62
62
  infov ' * After trigger', minutes_to_s(mba.after_trigger)
63
63
  infov ' * After trigger acum.', minutes_to_s(mba.after_trigger_acum)
64
64
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/runner/git'
3
+ require 'avm/git/runners/base'
4
4
  require 'avmtrf1/tools/core_ext'
5
5
  require 'avmtrf1/gitlab/commit'
6
6
  require 'avmtrf1/gitlab/repository'
@@ -8,7 +8,7 @@ require 'avmtrf1/gitlab/repository'
8
8
  module Avmtrf1
9
9
  module Tools
10
10
  class Runner
11
- class Git < ::Avm::Tools::Runner::Git
11
+ class Git < ::Avm::Git::Runners::Base
12
12
  class Gitlab
13
13
  class CommitLink
14
14
  runner_with :help, :output do
@@ -60,7 +60,7 @@ module Avmtrf1
60
60
  end
61
61
 
62
62
  def output_content
63
- commits.map { |c| commit_output(c) + "\n" }.join
63
+ commits.map { |c| commit_output(c) + "\n" }.join # rubocop:disable Style/StringConcatenation
64
64
  end
65
65
 
66
66
  def repository_banner
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/runner/git'
3
+ require 'avm/git/runners/base'
4
4
  require 'avmtrf1/tools/core_ext'
5
5
 
6
6
  module Avmtrf1
7
7
  module Tools
8
8
  class Runner
9
- class Git < ::Avm::Tools::Runner::Git
9
+ class Git < ::Avm::Git::Runners::Base
10
10
  class Gitlab
11
11
  require_sub __FILE__
12
12
  runner_with :help, :subcommands do
@@ -6,7 +6,7 @@ require 'avmtrf1/git/cached_repository'
6
6
  module Avmtrf1
7
7
  module Tools
8
8
  class Runner
9
- class Git < ::Avm::Tools::Runner::Git
9
+ class Git < ::Avm::Git::Runners::Base
10
10
  class IssuesCheck
11
11
  runner_with :help do
12
12
  desc 'Confronta situação das demandas no Git com a situação nos trackers.'
@@ -6,16 +6,16 @@ require 'avmtrf1/git/push_large'
6
6
  module Avmtrf1
7
7
  module Tools
8
8
  class Runner
9
- class Git < ::Avm::Tools::Runner::Git
9
+ class Git < ::Avm::Git::Runners::Base
10
10
  class PushLarge
11
11
  DEFAULT_REPO_PATH = '.'
12
12
  DEFAULT_REMOTE = 'origin'
13
13
 
14
14
  runner_with :help do
15
- desc 'Realiza push de repositórios grandes (Que falham com "pack exceeds maximum' \
16
- ' allowed size")'
17
- arg_opt '-C', '--repo-path', 'Caminho do repositório local' \
18
- " [default: #{DEFAULT_REPO_PATH}]."
15
+ desc 'Realiza push de repositórios grandes (Que falham com "pack exceeds maximum ' \
16
+ 'allowed size")'
17
+ arg_opt '-C', '--repo-path', 'Caminho do repositório local ' \
18
+ "[default: #{DEFAULT_REPO_PATH}]."
19
19
  arg_opt '-r', '--remote', "Nome do remoto [default: #{DEFAULT_REMOTE}]."
20
20
  pos_arg :source_ref
21
21
  pos_arg :target_ref
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/tools/runner/git'
3
+ require 'avm/git/runners/base'
4
4
  require 'avmtrf1/tools/core_ext'
5
5
 
6
6
  module Avmtrf1
7
7
  module Tools
8
8
  class Runner
9
- class Git < ::Avm::Tools::Runner::Git
9
+ class Git < ::Avm::Git::Runners::Base
10
10
  require_sub __FILE__
11
11
  end
12
12
  end
@@ -28,7 +28,7 @@ module Avmtrf1
28
28
  infov 'Response status', response.status
29
29
  infov 'Response body class', response.body_data.class
30
30
  infov 'Response body', '*'
31
- out response.body_data.to_yaml + "\n"
31
+ out response.body_data.to_yaml + "\n" # rubocop:disable Style/StringConcatenation
32
32
  end
33
33
 
34
34
  def request_uncached
@@ -54,9 +54,9 @@ module Avmtrf1
54
54
  infov 'Linha de comando', ::Shellwords.join(command.args)
55
55
  end
56
56
 
57
- def on_temp_files
57
+ def on_temp_files(&block)
58
58
  on_credentials_file do
59
- on_config_file { yield }
59
+ on_config_file(&block)
60
60
  end
61
61
  end
62
62
 
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avmtrf1/tools/core_ext'
4
- require 'avmtrf1/oracle/connection/base.rb'
5
- require 'avmtrf1/oracle/connection/string_builder.rb'
4
+ require 'avmtrf1/oracle/connection/base'
5
+ require 'avmtrf1/oracle/connection/string_builder'
6
6
 
7
7
  module Avmtrf1
8
8
  module Tools
@@ -13,8 +13,8 @@ module Avmtrf1
13
13
  runner_with :help do
14
14
  desc 'Utilidades para RED.'
15
15
  arg_opt '-i', '--red-ini', 'Arquivo red.ini com parâmetros de conexão e upload.'
16
- arg_opt '-p', '--red-profile', 'Perfil/seção do red.ini' \
17
- " [default: #{RED_PROFILE_DEFAULT}]."
16
+ arg_opt '-p', '--red-profile', 'Perfil/seção do red.ini ' \
17
+ "[default: #{RED_PROFILE_DEFAULT}]."
18
18
  arg_opt '--put', 'Envia um arquivo.'
19
19
  end
20
20
 
@@ -39,7 +39,7 @@ module Avmtrf1
39
39
 
40
40
  def file_put
41
41
  result = red_profile.put_file(file)
42
- require 'pp'
42
+ require 'pp' # rubocop:disable Lint/RedundantRequireStatement
43
43
  puts '>' * 20
44
44
  puts result
45
45
  puts '<' * 20
@@ -66,7 +66,7 @@ module Avmtrf1
66
66
  end
67
67
 
68
68
  def red_ini_profile
69
- return red_ini.profiles[red_profile_name] if red_ini.profiles.key?(red_profile_name)
69
+ return red_ini.profiles[red_profile_name] if red_ini.profiles.key?(red_profile_name)
70
70
 
71
71
  fatal_error "Perfil/seção \"#{red_profile_name}\" não encontrada em \"#{red_ini_path}\""
72
72
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'eac_config/node'
4
4
  require 'aranha/selenium/driver_factory/base'
5
- require 'avmtrf1/ruby/gems/not_found_error'
5
+ require 'avmtrf1/tools/rubygems/not_found_error'
6
6
  require 'avmtrf1/tools/application'
7
7
  require 'eac_ruby_base0/runner'
8
8
 
@@ -25,7 +25,7 @@ module Avmtrf1
25
25
  def run
26
26
  ::Aranha::Selenium::DriverFactory::Base.default_headless = parsed.headless?
27
27
  super
28
- rescue ::Avmtrf1::Ruby::Gems::NotFoundError => e
28
+ rescue ::Avmtrf1::Tools::Rubygems::NotFoundError => e
29
29
  on_gem_not_found(e.dependency)
30
30
  end
31
31
 
@@ -33,9 +33,10 @@ module Avmtrf1
33
33
 
34
34
  def on_gem_not_found(dependency)
35
35
  fatal_error "A gem \"#{dependency.gem_name}\" foi requerida " \
36
- "(Por \"require '#{dependency.lib_name}'\") e não encontrada. Para instalá-la:\n\n" \
37
- " gem install #{dependency.gem_name}\n\n" \
38
- 'Nota: procedimentos adicionais podem ser necessários.'
36
+ "(Por \"require '#{dependency.lib_name}'\") " \
37
+ "e não encontrada. Para instalá-la:\n\n " \
38
+ "gem install #{dependency.gem_name}\n\n" \
39
+ 'Nota: procedimentos adicionais podem ser necessários.'
39
40
  end
40
41
  end
41
42
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avmtrf1
4
4
  module Tools
5
- VERSION = '0.42.0'
5
+ VERSION = '0.42.2'
6
6
  end
7
7
  end