avm-git 0.17.0 → 0.18.0

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: 127237b1bf254ced145bd74a7f70317df4f455b000e27a4f8b9b0a6a8dd37353
4
- data.tar.gz: f619d4b32d1ded3780f8176bba97729c925ca941d3caf6ba22c02920a4140cbb
3
+ metadata.gz: bf97b89acb920c9514d401a710131a0bb8ad9327aad672c6c91978397ae5dccb
4
+ data.tar.gz: 35c6c026cc095641b5cff53095822ea2ea115460d7137b8fa5e2d05c2f4ccf4a
5
5
  SHA512:
6
- metadata.gz: 15892e24b21bbac290597b6f3d08fd50bdbe799f45be0be157f4976b99a4e372bf66d26ba64610c3dfcf92648260aec65a6ba4714ad878d66d71e2ca5978ceb1
7
- data.tar.gz: 0c3b1519d8298e997db7540d7538b6701f88d9adfd82b8b9c9a315306cecbee80b3a02c8654cdc3f8d6480326d743b29c912252ce43dec7fd43b53f5048bb5bc
6
+ metadata.gz: 333a246e74865cf9e6e648b7a026e1bc3f98800dcf8b913f828fd11936d55faaa04545e8f2250e991d6fa43721242653cd4767bfa78ae1150349fcf624f1dc30
7
+ data.tar.gz: 8031a058c80ad3479e072fd3506bd5de4a8d4ec8f74bbd141f41f734763319cf561f7762cff6960e456db78654fcc75e2264acba73beec35057782ce9d1c1543
@@ -23,7 +23,7 @@ module Avm
23
23
  delegate :descendant?, :merge_base, :rev_parse, to: :eac_git
24
24
 
25
25
  def initialize(path)
26
- super(path)
26
+ super
27
27
 
28
28
  @eac_git = ::EacGit::Local.new(path)
29
29
  end
@@ -9,7 +9,7 @@ module Avm
9
9
  class Git < ::Avm::Scms::Base
10
10
  class Interval < ::Avm::Scms::Interval
11
11
  def initialize(scm, from, to)
12
- super(scm, from, to)
12
+ super
13
13
  self.from = scm.commit(from)
14
14
  self.to = scm.commit(to)
15
15
  end
@@ -9,16 +9,24 @@ module Avm
9
9
  module Git
10
10
  module Scms
11
11
  class GitSubtree < ::Avm::Git::Scms::GitSubBase
12
+ # @return [Boolean]
13
+ def no_other_git_scm?
14
+ (::Avm::Git::Scms::Provider.new.all - [self.class])
15
+ .lazy.map { |scm_class| scm_class.new(path) }.none?(&:valid?)
16
+ end
17
+
18
+ # @return [Boolean]
19
+ def parent_git_scm?
20
+ ::Avm::Git::Scms::Provider.new.all.any? { |scm_class| parent_scm.is_a?(scm_class) }
21
+ end
22
+
12
23
  def update
13
24
  # Do nothing
14
25
  end
15
26
 
27
+ # @return [Boolean]
16
28
  def valid?
17
- return false unless ::Avm::Git::Scms::Provider
18
- .new.all.any? { |scm_class| parent_scm.is_a?(scm_class) }
19
-
20
- (::Avm::Git::Scms::Provider.new.all - [self.class])
21
- .lazy.map { |scm_class| scm_class.new(path) }.none?(&:valid?)
29
+ parent_git_scm? && no_other_git_scm?
22
30
  end
23
31
  end
24
32
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Git
5
- VERSION = '0.17.0'
5
+ VERSION = '0.18.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.17.0
4
+ version: 0.18.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: 2024-02-20 00:00:00.000000000 Z
11
+ date: 2024-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,34 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.86'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.86.1
19
+ version: '0.94'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.86'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.86.1
26
+ version: '0.94'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: avm-files
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '0.7'
33
+ version: '0.8'
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '0.7'
40
+ version: '0.8'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: eac_git
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +58,14 @@ dependencies:
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '0.121'
61
+ version: '0.122'
68
62
  type: :runtime
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '0.121'
68
+ version: '0.122'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: git
77
71
  requirement: !ruby/object:Gem::Requirement