avm-tools 0.62.3 → 0.62.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 373072ac50452efe90c4a8408828dff28b48209d5a387709d89972678ab92e21
4
- data.tar.gz: 2f09de5ac81af5bc0992c6c3facb97e908001deffcd5d0f17492fc0258aa415c
3
+ metadata.gz: 38f999acefb3965e6b892798012b79d38fe80aed211c008efbb4f0e7d0d1de11
4
+ data.tar.gz: 6bb113d722f19ce336368e675d3785aee55ee1f63e2e67cc3ff3b681c9de5811
5
5
  SHA512:
6
- metadata.gz: 7a9f83824449276c9fedbd9d7ef07aa8e124f8de1d948c477bb9734c57cfbffef29b1416e249edc5de11e5a23ee9d02c982a9e80d6b9a40b9f9b5a011807d27b
7
- data.tar.gz: 5a09becd99a994a50fa875ae2566262c461d3f9bd6557b670c8a1e81d59768f736e59bbad5cbea127efb4ae6476d7104347169b13958c0d15dde5a158e41a5de
6
+ metadata.gz: 979ca70b0e402b50b7b5a92340d1da20312937e4d9fa7df4bb1dd358e08f68f63a9e973109abb3d5568e5d7e0e4ebef672ed03dbd74d8dc1e992069e1e90bcc1
7
+ data.tar.gz: 990a1f70e3317c05ac0764b4dfe0d28183eae7723f1b599cfaf2bf7ac192226f45a370f9b6ef29e9bfe367427f67fb3a57cec5764d48d4773601856a2cc9bbfa
@@ -17,15 +17,23 @@ module Avm
17
17
  internal_find_path(path.expand_path)
18
18
  end
19
19
 
20
- private
21
-
22
- def internal_find_path(absolute_pathname)
20
+ def find_in_path(path)
21
+ absolute_pathname = path.to_pathname.expand_path
23
22
  if absolute_pathname.directory?
24
23
  FILENAMES.each do |filename|
25
24
  file = absolute_pathname.join(filename)
26
25
  return new(file) if file.exist?
27
26
  end
28
27
  end
28
+ nil
29
+ end
30
+
31
+ private
32
+
33
+ def internal_find_path(absolute_pathname)
34
+ r = find_in_path(absolute_pathname)
35
+ return r if r.present?
36
+
29
37
  internal_find_path(absolute_pathname.dirname) unless absolute_pathname.root?
30
38
  end
31
39
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_ruby_gems_utils/gem'
3
+ require 'avm/patches/eac_ruby_gems_utils/gem'
4
4
 
5
5
  module Avm
6
6
  module Instances
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_gems_utils/gem'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module Patches
8
+ module EacRubyGemsUtils
9
+ module Gem
10
+ enable_simple_cache
11
+
12
+ private
13
+
14
+ def configuration_uncached
15
+ ::Avm::Instances::Configuration.find_in_path(root)
16
+ end
17
+
18
+ def gemfile_path_uncached
19
+ return super unless configuration.present? && configuration.rubocop_gemfile.present?
20
+
21
+ configuration.rubocop_gemfile
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+
28
+ ::EacRubyGemsUtils::Gem.prepend(::Avm::Patches::EacRubyGemsUtils::Gem)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_ruby_gems_utils/gem'
3
+ require 'avm/patches/eac_ruby_gems_utils/gem'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
 
6
6
  module Avm
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_ruby_gems_utils/gem'
3
+ require 'avm/patches/eac_ruby_gems_utils/gem'
4
4
  require 'eac_ruby_utils/core_ext'
5
5
  require 'eac_ruby_utils/on_clean_ruby_environment'
6
6
 
@@ -14,7 +14,7 @@ module Avm
14
14
  end
15
15
 
16
16
  def rubocop_command_by_gemfile_path(path)
17
- ::EacRubyGemsUtils::Gem.new(path).bundle('exec', 'rubocop')
17
+ ::EacRubyGemsUtils::Gem.new(path).bundle('exec', 'rubocop').chdir_root
18
18
  end
19
19
 
20
20
  def rubocop_gemfile?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.62.3'
5
+ VERSION = '0.62.4'
6
6
  end
7
7
  end
@@ -64,7 +64,7 @@ module EacRubyGemsUtils
64
64
  end
65
65
 
66
66
  def gemfile_lock_path_uncached
67
- root.join('Gemfile.lock')
67
+ gemfile_path.basename_sub { |b| "#{b}.lock" }
68
68
  end
69
69
 
70
70
  def gemspec_path_uncached
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyGemsUtils
4
- VERSION = '0.6.1'
4
+ VERSION = '0.6.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.62.3
4
+ version: 0.62.4
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-08-08 00:00:00.000000000 Z
11
+ date: 2020-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -374,6 +374,7 @@ files:
374
374
  - lib/avm/local_projects/instance.rb
375
375
  - lib/avm/local_projects/jobs/update.rb
376
376
  - lib/avm/patches.rb
377
+ - lib/avm/patches/eac_ruby_gems_utils/gem.rb
377
378
  - lib/avm/patches/object/template.rb
378
379
  - lib/avm/path_string.rb
379
380
  - lib/avm/projects.rb