avm-tools 0.67.0 → 0.68.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/local_projects/instance.rb +1 -1
- data/lib/avm/projects/stereotypes/git_subrepo/warp.rb +2 -2
- data/lib/avm/projects/stereotypes/rails_application.rb +2 -0
- data/lib/avm/projects/stereotypes/rails_application/local_project_mixin.rb +18 -0
- data/lib/avm/projects/stereotypes/rails_application/update.rb +14 -0
- data/lib/avm/tools/version.rb +1 -1
- data/lib/eac_launcher/git/sub_warp_base.rb +1 -1
- data/lib/eac_launcher/publish/base.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 804e613bfa303949fb0ed952f999d5815b6de62aea34e9c03c0e87ecf65f35b4
|
4
|
+
data.tar.gz: a86f89745be17ae8bc039beb9d0e28680481e30069975c809a9083e42ef17589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcd4890d0c29dc11ddd5c1cbce9c5d767900e5e9be10d763afcb91fd73cfdd715c0f6ae217c64fc82f5e87128dbad619500e2ee3a33c4500a29c49739b5a93dc
|
7
|
+
data.tar.gz: 89a8e507755008a2f7a18c0ee84ed2572588aff5ab12e0e9d5ec7e897a7c397f4cc6e1d2e7d83595d46fd3b835fcd3104dbb5cfebb38ae837113f25091169a85
|
@@ -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
|
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
|
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
|
data/lib/avm/tools/version.rb
CHANGED
@@ -12,7 +12,7 @@ module EacLauncher
|
|
12
12
|
r = find_parent_instance(instance.parent)
|
13
13
|
return r if r
|
14
14
|
|
15
|
-
::
|
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 ::
|
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.
|
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-
|
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
|