avm-git 0.20.2 → 0.21.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 +4 -4
- data/lib/avm/git/launcher/base/subrepo.rb +1 -1
- data/lib/avm/git/launcher/publish_base.rb +1 -0
- data/lib/avm/git/launcher_stereotypes/provider.rb +1 -2
- data/lib/avm/git/scms/git/commit/deploy.rb +1 -0
- data/lib/avm/git/version.rb +1 -1
- metadata +6 -15
- data/lib/avm/git/launcher_stereotypes/git_subtree/publish.rb +0 -12
- data/lib/avm/git/launcher_stereotypes/git_subtree/warp.rb +0 -29
- data/lib/avm/git/launcher_stereotypes/git_subtree.rb +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0b418d9b1ed08366231a9eb768d3156dec350496875ec58b623dc34ada87082
|
4
|
+
data.tar.gz: c05a8ea7a8d5e7c6034e690ec5945dd601a71a921b0a86805e707fdb09452ebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf029066dcc41686308390877d56bc580ec79739640ac270d4dd0ae67fd08779d97626330d016c29c4db6e10a4984424e4a967b21d6f2c21cd932753612925d0
|
7
|
+
data.tar.gz: 7a2437bdf7e348f5ae7370b3cc1262e90a84e231cc8ab63bed5c9ab45405da2c067a10200b21df5dc0c0362393ef0056265b851cd48f039a5d710f2941d08cbb
|
@@ -28,7 +28,7 @@ module Avm
|
|
28
28
|
def subrepo_status_parse_output(output)
|
29
29
|
r = {}.with_indifferent_access
|
30
30
|
output.each_line do |l|
|
31
|
-
m = /\A([
|
31
|
+
m = /\A([^:]+):(.*)\z/.match(l.strip)
|
32
32
|
next unless m && m[2].present?
|
33
33
|
|
34
34
|
r[m[1].strip] = m[2].strip
|
@@ -5,8 +5,7 @@ module Avm
|
|
5
5
|
module LauncherStereotypes
|
6
6
|
class Provider
|
7
7
|
STEREOTYPES = [::Avm::Git::LauncherStereotypes::Git,
|
8
|
-
::Avm::Git::LauncherStereotypes::GitSubrepo
|
9
|
-
::Avm::Git::LauncherStereotypes::GitSubtree].freeze
|
8
|
+
::Avm::Git::LauncherStereotypes::GitSubrepo].freeze
|
10
9
|
|
11
10
|
def all
|
12
11
|
STEREOTYPES
|
data/lib/avm/git/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.98'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.98'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-files
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,20 +104,14 @@ dependencies:
|
|
104
104
|
requirements:
|
105
105
|
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version: '0.
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.5.1
|
107
|
+
version: '0.6'
|
111
108
|
type: :development
|
112
109
|
prerelease: false
|
113
110
|
version_requirements: !ruby/object:Gem::Requirement
|
114
111
|
requirements:
|
115
112
|
- - "~>"
|
116
113
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
118
|
-
- - ">="
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version: 0.5.1
|
114
|
+
version: '0.6'
|
121
115
|
- !ruby/object:Gem::Dependency
|
122
116
|
name: avm-tools
|
123
117
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,9 +193,6 @@ files:
|
|
199
193
|
- lib/avm/git/launcher_stereotypes/git_subrepo.rb
|
200
194
|
- lib/avm/git/launcher_stereotypes/git_subrepo/publish.rb
|
201
195
|
- lib/avm/git/launcher_stereotypes/git_subrepo/warp.rb
|
202
|
-
- lib/avm/git/launcher_stereotypes/git_subtree.rb
|
203
|
-
- lib/avm/git/launcher_stereotypes/git_subtree/publish.rb
|
204
|
-
- lib/avm/git/launcher_stereotypes/git_subtree/warp.rb
|
205
196
|
- lib/avm/git/launcher_stereotypes/provider.rb
|
206
197
|
- lib/avm/git/organize.rb
|
207
198
|
- lib/avm/git/organize/reference_update.rb
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Avm
|
4
|
-
module Git
|
5
|
-
module LauncherStereotypes
|
6
|
-
class GitSubtree
|
7
|
-
class Warp < ::Avm::Git::Launcher::WarpBase
|
8
|
-
include ::Avm::Git::Launcher::SubWarpBase
|
9
|
-
|
10
|
-
private
|
11
|
-
|
12
|
-
def current_ref
|
13
|
-
instance.cache_key("git_subtree.parent.#{cache_git.git.object('HEAD').sha}") do
|
14
|
-
cache_git.subtree_split(to_parent_git_path)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def source_instance
|
19
|
-
parent_instance
|
20
|
-
end
|
21
|
-
|
22
|
-
def source_remote_name
|
23
|
-
instance.project_name
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Avm
|
4
|
-
module Git
|
5
|
-
module LauncherStereotypes
|
6
|
-
class GitSubtree
|
7
|
-
require_sub __FILE__
|
8
|
-
include Avm::Launcher::Stereotype
|
9
|
-
|
10
|
-
class << self
|
11
|
-
def match?(path)
|
12
|
-
return false if other_git_stereotype?(path)
|
13
|
-
return false unless other_nogit_stereotype?(path)
|
14
|
-
|
15
|
-
parent = parent_git(path.parent_path)
|
16
|
-
return false unless parent
|
17
|
-
|
18
|
-
::Git.open(parent.real).remote(path.real.basename).url ? true : false
|
19
|
-
end
|
20
|
-
|
21
|
-
def color
|
22
|
-
:green
|
23
|
-
end
|
24
|
-
|
25
|
-
def parent_git(parent_path)
|
26
|
-
return nil unless parent_path
|
27
|
-
|
28
|
-
if ::Avm::Git::LauncherStereotypes::Git.match?(parent_path)
|
29
|
-
parent_path
|
30
|
-
else
|
31
|
-
parent_git(parent_path.parent_path)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
def other_git_stereotype?(path)
|
36
|
-
::Avm::Git::LauncherStereotypes::Git.match?(path) ||
|
37
|
-
::Avm::Git::LauncherStereotypes::GitSubrepo.match?(path)
|
38
|
-
end
|
39
|
-
|
40
|
-
def other_nogit_stereotype?(path)
|
41
|
-
Avm::Launcher::Stereotype.nogit_stereotypes.any? { |s| s.match?(path) }
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|