avm-tools 0.67.0 → 0.68.0

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: 916ea6c3a654cc81c07739fffab5013f51cf9e83a7cf8b1163abef48c6fa7ea8
4
- data.tar.gz: 7393ff7addec4974fccb0b95b1b6bc5e625e05decc8e695696a1511f4d40c472
3
+ metadata.gz: 804e613bfa303949fb0ed952f999d5815b6de62aea34e9c03c0e87ecf65f35b4
4
+ data.tar.gz: a86f89745be17ae8bc039beb9d0e28680481e30069975c809a9083e42ef17589
5
5
  SHA512:
6
- metadata.gz: 70c1fa8e342208bfd2af99796da13e6cad4d86bb1e28f15b92212c5255fbb5de56dbd88a70ac89c84106a82dac44c1429c3bbf1524932034ef797bc690e4c7b3
7
- data.tar.gz: 2b20f95259f5603547d3484d5771babb52eeaa43be785b0afe16460ac0bac584d8143ec70df2f53e6e567fdd99ad19498375a78eccb7f876c7ad445b44496f83
6
+ metadata.gz: fcd4890d0c29dc11ddd5c1cbce9c5d767900e5e9be10d763afcb91fd73cfdd715c0f6ae217c64fc82f5e87128dbad619500e2ee3a33c4500a29c49739b5a93dc
7
+ data.tar.gz: 89a8e507755008a2f7a18c0ee84ed2572588aff5ab12e0e9d5ec7e897a7c397f4cc6e1d2e7d83595d46fd3b835fcd3104dbb5cfebb38ae837113f25091169a85
@@ -54,7 +54,7 @@ module Avm
54
54
 
55
55
  def source_stereotypes_mixins
56
56
  stereotypes.each do |s|
57
- s.local_project_mixin_module.if_present { |v| extend(v) }
57
+ s.local_project_mixin_module.if_present { |v| singleton_class.include(v) }
58
58
  end
59
59
  end
60
60
  end
@@ -32,7 +32,7 @@ module Avm
32
32
  return if parent_git_warped.rev_parse(subrepo_parent_hash) &&
33
33
  parent_git_warped.descendant?('HEAD', subrepo_parent_hash)
34
34
 
35
- raise EacLauncher::Instances::Errors::Base,
35
+ raise Avm::Launcher::Errors::Base,
36
36
  "Subrepo parent hash \"#{subrepo_parent_hash}\"" \
37
37
  " not found in \"#{parent_git_warped}\""
38
38
  end
@@ -42,7 +42,7 @@ module Avm
42
42
  h = data['Pull Parent']
43
43
  return h if h.present?
44
44
 
45
- raise EacLauncher::Instances::Errors::Base, "Subrepo parent hash is blank: #{data}"
45
+ raise Avm::Launcher::Errors::Base, "Subrepo parent hash is blank: #{data}"
46
46
  end
47
47
 
48
48
  def init_aux
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/projects/stereotype'
4
+ require 'eac_ruby_utils/core_ext'
4
5
 
5
6
  module Avm
6
7
  module Projects
7
8
  module Stereotypes
8
9
  class RailsApplication
10
+ require_sub __FILE__
9
11
  include Avm::Projects::Stereotype
10
12
 
11
13
  class << self
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/projects/stereotypes/ruby_gem/local_project_mixin'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module Projects
8
+ module Stereotypes
9
+ class RailsApplication
10
+ module LocalProjectMixin
11
+ common_concern do
12
+ include ::Avm::Projects::Stereotypes::RubyGem::LocalProjectMixin
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/projects/stereotypes/ruby_gem/update'
4
+
5
+ module Avm
6
+ module Projects
7
+ module Stereotypes
8
+ class RailsApplication
9
+ class Update < ::Avm::Projects::Stereotypes::RubyGem::Update
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.67.0'
5
+ VERSION = '0.68.0'
6
6
  end
7
7
  end
@@ -12,7 +12,7 @@ module EacLauncher
12
12
  r = find_parent_instance(instance.parent)
13
13
  return r if r
14
14
 
15
- ::EacLauncher::Instances::Errors::Base.new('Git parent not found')
15
+ ::Avm::Launcher::Errors::Base.new('Git parent not found')
16
16
  end
17
17
 
18
18
  def find_parent_instance(current)
@@ -35,7 +35,7 @@ module EacLauncher
35
35
 
36
36
  def check_with_rescue
37
37
  internal_check
38
- rescue ::EacLauncher::Instances::Errors::Base => e
38
+ rescue ::Avm::Launcher::Errors::Base => e
39
39
  ::EacLauncher::Publish::CheckResult.blocked("Error: #{e}")
40
40
  rescue ::EacLauncher::Git::Error => e
41
41
  ::EacLauncher::Publish::CheckResult.blocked("Git error: #{e}")
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.67.0
4
+ version: 0.68.0
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-09-02 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -397,6 +397,8 @@ files:
397
397
  - lib/avm/projects/stereotypes/git_subtree/publish.rb
398
398
  - lib/avm/projects/stereotypes/git_subtree/warp.rb
399
399
  - lib/avm/projects/stereotypes/rails_application.rb
400
+ - lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb
401
+ - lib/avm/projects/stereotypes/rails_application/update.rb
400
402
  - lib/avm/projects/stereotypes/redmine_plugin.rb
401
403
  - lib/avm/projects/stereotypes/ruby_gem.rb
402
404
  - lib/avm/projects/stereotypes/ruby_gem/local_project_mixin.rb