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 +4 -4
- data/lib/avm/instances/configuration.rb +11 -3
- data/lib/avm/instances/configuration/_tests.rb +1 -1
- data/lib/avm/patches/eac_ruby_gems_utils/gem.rb +28 -0
- data/lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb +1 -1
- data/lib/avm/ruby/rubocop/_gemfile.rb +2 -2
- data/lib/avm/tools/version.rb +1 -1
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +1 -1
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38f999acefb3965e6b892798012b79d38fe80aed211c008efbb4f0e7d0d1de11
|
4
|
+
data.tar.gz: 6bb113d722f19ce336368e675d3785aee55ee1f63e2e67cc3ff3b681c9de5811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
@@ -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
|
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?
|
data/lib/avm/tools/version.rb
CHANGED
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.
|
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-
|
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
|