avm-eac_generic_base0 0.1.1 → 0.2.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: 35702f3e046dcdd2f1b8b49d93994aee8c3501d7b4a0d5a69ee48f9f14b453ab
4
- data.tar.gz: 60bcc281514f1252523cd63bc65948cf5d53231e5c22dbd1dde1706613df7753
3
+ metadata.gz: 2d615da702742a8c2a1b5c1f28deb6dcdedb2bc6a43b4d6594d7bc0d3f06526d
4
+ data.tar.gz: '08e4bd0a07cb9d56267215b8f32a1342b87eb35dc9232f6026f6eb76d80fa67a'
5
5
  SHA512:
6
- metadata.gz: f027c476642a8ddc117be7d0149d154a2a2c105a63ec7c4a137cfee770ac4540f420891bf79d873a45b9bc77286488f7f217a409141807220c22a719ed8ac948
7
- data.tar.gz: 144e10f0c6e0b28401c19fb4a1ffd0fca0f85c5cfa7e243d52a8172931f1c3e5a5eb562e073451b5d0e8ee11677a59eeac6029854c7b3abfd81de660994761e2
6
+ metadata.gz: 60788df77ca1d4af07d0cffb6f0616a51e48fed0dc5cf246b4fab016dad86363c2106ff25e2765ce97ee85f4640adc87613fa3ef4c82a66cb4e0f4dfb3ecfdf4
7
+ data.tar.gz: 71b17355433603ac9b5067028b3fad76972148499c504166dd385b586335ff8e76909fc6a3288748e31bcb034c0f8319c0e3edb6baa109a3afd22aa90f3f160c
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/sources/base'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module EacGenericBase0
8
+ module Sources
9
+ class Base < ::Avm::Sources::Base
10
+ module VersionBump
11
+ def after_sub_version_bump_do_changes
12
+ # Do nothing
13
+ end
14
+
15
+ # @return [Avm::Scms::Commit, nil]
16
+ def version_bump(target_version)
17
+ scm.commit_if_change(version_bump_commit_message(target_version)) do
18
+ version_bump_do_changes(target_version)
19
+ parent.if_present(&:after_sub_version_bump_do_changes)
20
+ end
21
+ end
22
+
23
+ # @return [String]
24
+ def version_bump_commit_message(target_version)
25
+ i18n_translate(__method__, version: target_version, __locale: locale)
26
+ end
27
+
28
+ def version_bump_do_changes(_target_version)
29
+ raise_abstract_method(__METHOD__)
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -8,13 +8,16 @@ module Avm
8
8
  module EacGenericBase0
9
9
  module Sources
10
10
  class Base < ::Avm::Sources::Base
11
+ require_sub __FILE__, include_modules: true
12
+ enable_abstract_methods
13
+
11
14
  # @return [Avm::EacGenericBase0::Sources::Tester]
12
15
  def tester_class
13
16
  Avm::EacGenericBase0::Sources::Tester
14
17
  end
15
18
 
16
19
  def valid?
17
- path.directory?
20
+ ::Avm::Registry.scms.detect_optional(path).present?
18
21
  end
19
22
  end
20
23
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacGenericBase0
5
- VERSION = '0.1.1'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-eac_generic_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.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-12-06 00:00:00.000000000 Z
11
+ date: 2022-06-14 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.10'
19
+ version: '0.19'
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.10'
26
+ version: '0.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: eac_ruby_utils
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,6 +61,7 @@ files:
61
61
  - lib/avm/eac_generic_base0.rb
62
62
  - lib/avm/eac_generic_base0/sources.rb
63
63
  - lib/avm/eac_generic_base0/sources/base.rb
64
+ - lib/avm/eac_generic_base0/sources/base/version_bump.rb
64
65
  - lib/avm/eac_generic_base0/sources/tester.rb
65
66
  - lib/avm/eac_generic_base0/version.rb
66
67
  homepage: