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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78860e1b29122f53abd190170cc0863f77b1d57f4f55d4c361e9310032b8e2ad
4
- data.tar.gz: 1b7745d3e8622c27a7ff8a677727c2b817c77dba8800ada5d9655d4fe0aec442
3
+ metadata.gz: b0b418d9b1ed08366231a9eb768d3156dec350496875ec58b623dc34ada87082
4
+ data.tar.gz: c05a8ea7a8d5e7c6034e690ec5945dd601a71a921b0a86805e707fdb09452ebd
5
5
  SHA512:
6
- metadata.gz: 0233a92bea4006de6139c966ff94af9dcbdfe57a411e697e21f496c6c763507b463f809e6c5c4f261f1706ff7bf5768e5a6f9c6ed8c98d4317f430cadaaed5b8
7
- data.tar.gz: 4f376b72fb97b40517a32fc1dbe4b0fcbfe79daa3e3113675a23003be672b21447f41cdc0689d7fcb8d91e2aa670c12dd9b2869d5a1609aaf4f9bbf4e92a7603
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([^\:]+):(.*)\z/.match(l.strip)
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,6 +5,7 @@ module Avm
5
5
  module Launcher
6
6
  class PublishBase < ::Avm::Launcher::Publish::Base
7
7
  include ::EacRubyUtils::SimpleCache
8
+
8
9
  enable_speaker
9
10
 
10
11
  CHECKERS = %w[remote_url remote_fetch publish_remote_no_exist remote_equal remote_following
@@ -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
@@ -7,6 +7,7 @@ module Avm
7
7
  class Commit < ::Avm::Scms::Commit
8
8
  class Deploy
9
9
  include ::Avm::Files::Appendable
10
+
10
11
  enable_simple_cache
11
12
 
12
13
  attr_reader :build_dir, :commit, :target_env, :target_path
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Git
5
- VERSION = '0.20.2'
5
+ VERSION = '0.21.0'
6
6
  end
7
7
  end
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.20.2
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-07-25 00:00:00.000000000 Z
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.97'
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.97'
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.5'
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.5'
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,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Git
5
- module LauncherStereotypes
6
- class GitSubtree
7
- class Publish < ::Avm::Git::Launcher::PublishBase
8
- end
9
- end
10
- end
11
- end
12
- end
@@ -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