avm-tools 0.70.0 → 0.70.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: 4f29b6293211fb41769c831fee400ab44f3e7b23cce9a80cbe43fe66ff6c793f
4
- data.tar.gz: b4ae8baa035b47388bf6266033a3a901911adbbf3841a4c5dc401bbf2e5081b8
3
+ metadata.gz: dd285f0a29d0c49864ce1fa57b8278572d5410c02c1adb88d4f45c5ebfccc5c8
4
+ data.tar.gz: 1dbb0d31d4615cbb006b799d66206a2d0055afc7a9912a7475f72b8fc36c3094
5
5
  SHA512:
6
- metadata.gz: 12892c4a448f9238bd4e3ec55e1c4f03761a0a29ed5fb0fcf5a65962c314eae74903a4e1412acdeef945b896dc44f6f22bdaf4a3c989b78edd8b2f880efb32fe
7
- data.tar.gz: 1f24a30ed4cd5f821ade563da4e1e3595cc3416fec7037ff847a988d8dc49f932a45c15143a3637a155ed5372027e2fd3be66c97bf34f99b53f55e234a2553b5
6
+ metadata.gz: 7e0e34a9d411c7f5be515ec78bb4a738e43ff45e1779194d69a0072de9487e7b788fff436f9bf354fcb846a89507d4ee77c36fa4fd3177b7775c9300ec56daf5
7
+ data.tar.gz: a26a2065cd2022da2e0edd69d50735666d940310f1faf7d8a23919fc87e47b4dc8bc33cca7c38c15be422f499d3b2f017bc2b8e61086b3d7a31feb755fe6ae17
@@ -6,9 +6,11 @@ module Avm
6
6
  module Git
7
7
  class AutoCommitPath
8
8
  enable_console_speaker
9
- common_constructor :git, :path
9
+ common_constructor :git, :path do
10
+ self.path = path.to_pathname
11
+ end
10
12
 
11
- CLASS_NAME_PATTERNS = [%r{lib/(.+)\.rb\z}, %r{app/[^/]+/(.+)\.rb\z}].freeze
13
+ CLASS_NAME_PATTERNS = [%r{lib/((?!.*/lib/).+)\.rb\z}, %r{app/[^/]+/(.+)\.rb\z}].freeze
12
14
 
13
15
  def run
14
16
  banner
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/self'
3
+ require 'avm/self/root'
4
4
  require 'i18n'
5
5
 
6
6
  module Avm
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/self'
3
+ require 'avm/self/root'
4
4
  require 'eac_ruby_utils/patches/object/template'
5
5
 
6
6
  ::EacRubyUtils::Templates::Searcher.default.included_paths <<
@@ -16,10 +16,6 @@ module Avm
16
16
  def instance
17
17
  @instance ||= ::Avm::Self::Instance.by_id('avm-tools_self')
18
18
  end
19
-
20
- def root
21
- ::Pathname.new('../..').expand_path(__dir__)
22
- end
23
19
  end
24
20
  end
25
21
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'pathname'
4
+
5
+ module Avm
6
+ module Self
7
+ class << self
8
+ def root
9
+ ::Pathname.new('../../..').expand_path(__dir__)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.70.0'
5
+ VERSION = '0.70.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.70.0
4
+ version: 0.70.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-10-08 00:00:00.000000000 Z
11
+ date: 2020-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -440,6 +440,7 @@ files:
440
440
  - lib/avm/self/docker_image.rb
441
441
  - lib/avm/self/instance.rb
442
442
  - lib/avm/self/instance/entry_keys.rb
443
+ - lib/avm/self/root.rb
443
444
  - lib/avm/stereotypes.rb
444
445
  - lib/avm/stereotypes/eac_rails_base0.rb
445
446
  - lib/avm/stereotypes/eac_redmine_base0.rb