avm-git 0.2.0 → 0.3.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: d0d9b01de7c9963912122916516e1865d3aa9189d1dcdbb6d3357232200b3943
4
- data.tar.gz: f7b440303d272191767c46f98f9d5a56e723caca304151033ddc3361b20294cb
3
+ metadata.gz: '08807ed5f28720bdc1346119e0edce88d09298e8922f393cdb747dad2f5a264c'
4
+ data.tar.gz: 872be582ce4574a19dcca64367fc4daf382e87aec182cbe9480dcf2719652f27
5
5
  SHA512:
6
- metadata.gz: 76101b99b34145270d3464d1a4163d1107dceee14af57b0cafb520f89fd49ba59ffaf5c5972c22ab270abda64196a8c0d98f060a63ff9c081738ca3998bb1714
7
- data.tar.gz: b181e8e2d5f05929c57408ef392d9658bd3999dce78a03ee75a3cbb927bb252310f1d2b4cb0ed04f2d133763def2995dcdbe42e93d36b55b011d36cf21370085
6
+ metadata.gz: 1af7e9a4aa25da4313b005f9cb82a44b0b9a081959927ebebac2b1405647ae8f06bf6e3ed0cc689ff90785445bd66e5f92da5086670baaeaca3642b04abf3ffc
7
+ data.tar.gz: 68cf014ecfabb42b1cacf3d689a3311d5f397ccf30912164b9287d8adb53af62a72153d9366d358de418bc2aa751913b61aa915b62c197c981be6fb5e8ddd15f
@@ -28,7 +28,7 @@ module Avm
28
28
 
29
29
  def test_performer
30
30
  ::Avm::Sources::Tests::Builder
31
- .new(::Avm::Sources::Base.new(@git))
31
+ .new(::Avm::Registry.sources.detect(@git))
32
32
  .include_main(true)
33
33
  .include_subs(true)
34
34
  .performer
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/git/scms/git_subrepo'
3
4
  require 'avm/scms/base'
4
5
  require 'eac_ruby_utils/core_ext'
5
6
 
@@ -56,6 +57,13 @@ module Avm
56
57
  commit_dirty(message)
57
58
  end
58
59
 
60
+ # @return [Enumerable<Avm::Git::Scms::GitSubrepo>]
61
+ def subs
62
+ git_repo.subrepos.map do |subrepo|
63
+ ::Avm::Git::Scms::GitSubrepo.new(subrepo.subpath.expand_path(path))
64
+ end
65
+ end
66
+
59
67
  def valid?
60
68
  path.join('.git').exist?
61
69
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Git
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.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.2.0
4
+ version: 0.3.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: 2021-11-21 00:00:00.000000000 Z
11
+ date: 2021-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-files