avm-tools 0.44.0 → 0.44.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: 998ac2a1aa3e9b7cc2ef9ee50fb91ea89ea3e82aa5f185bbfe436bd6e3415b4f
4
- data.tar.gz: 6a807ba7c42769009199fb6ff63f81076f93bd21d26be66e5fb8bfe3f44e42a9
3
+ metadata.gz: 9be68fd9248dde307039746994095610b01d6573d51bcbb10fe5e2ea60401e5f
4
+ data.tar.gz: 96a8c8a84d42f093c3a9f294c5666a81f5dd4a16c175feb5628cfafddac42d31
5
5
  SHA512:
6
- metadata.gz: 7bf91fa6a966ef1c62031fe6422db8b4a1de4c96c0cb1e2e17c45204ee8e187b9c38c764de962900185e41cf5579472af8b0e9b996c08e0ab5f06347f8d6c446
7
- data.tar.gz: dbe91e4b2c7275183afdd29608f2bacd32d8f2c09c5b003562e444ac36e02cf2d71c1e4cdd2507da0b295b9bc41531b8c91b90aa81493f4ea6cfceff07de83fd
6
+ metadata.gz: 6474b6c59010f5e188f80fa6af2680b12f75c6b8c5cc0a944bbe6a8c85beb0be96654fa71eb59f86ebf8937e3cd270a83524b184ea8b7755742752f7c786a59d
7
+ data.tar.gz: 0cc329cd19e10c92ab7ffc38d1afda69bb03c07524a39e557d8d337084897c1b40330808a514603a64bba20d5185824a2fcc3464ddde5d3f6c32588addae644e
@@ -25,9 +25,10 @@ module Avm
25
25
  gemfile_path = configuration.if_present { |v| v.read_entry('ruby.rubocop.gemfile') }
26
26
  return nil unless gemfile_path.present?
27
27
 
28
- rubocop_command_by_gemfile_path(
29
- ::Pathname.new(gemfile_path).expand_path(configuration.storage_path.dirname)
30
- )
28
+ gemfile_path = ::Pathname.new(gemfile_path).expand_path(configuration.storage_path.parent)
29
+ raise "Gemfile path \"#{gemfile_path}\" does not exist" unless gemfile_path.exist?
30
+
31
+ rubocop_command_by_gemfile_path(gemfile_path.parent)
31
32
  end
32
33
 
33
34
  private
@@ -10,11 +10,11 @@ module Avm
10
10
  def gemfile_rubocop_command
11
11
  return nil unless rubocop_gemfile?
12
12
 
13
- rubocop_command_by_gemfile_path(mygem.gemfile_path)
13
+ rubocop_command_by_gemfile_path(mygem.root)
14
14
  end
15
15
 
16
16
  def rubocop_command_by_gemfile_path(path)
17
- mygem.bundle('exec', 'rubocop').envvar('BUNDLE_GEMFILE', path.to_s)
17
+ ::EacRubyGemsUtils::Gem.new(path).bundle('exec', 'rubocop')
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.44.0'
5
+ VERSION = '0.44.1'
6
6
  end
7
7
  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.44.0
4
+ version: 0.44.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: 2020-04-07 00:00:00.000000000 Z
11
+ date: 2020-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -84,14 +84,14 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '0.2'
87
+ version: '0.3'
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '0.2'
94
+ version: '0.3'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: eac_ruby_utils
97
97
  requirement: !ruby/object:Gem::Requirement