avm-eac_generic_base0 0.1.1 → 0.2.2

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: 19eb8fc5615a440793c9b2df1fa3befa7f60157f217d04ee345d22bd571e0b3d
4
+ data.tar.gz: d05fa9a0698840466e1dd815f20d81051dd0b6461a52abb2da928d4ce991ccd3
5
5
  SHA512:
6
- metadata.gz: f027c476642a8ddc117be7d0149d154a2a2c105a63ec7c4a137cfee770ac4540f420891bf79d873a45b9bc77286488f7f217a409141807220c22a719ed8ac948
7
- data.tar.gz: 144e10f0c6e0b28401c19fb4a1ffd0fca0f85c5cfa7e243d52a8172931f1c3e5a5eb562e073451b5d0e8ee11677a59eeac6029854c7b3abfd81de660994761e2
6
+ metadata.gz: ed2c301bdef7b3a7694340f899d951edf664ab9b03cd0fc9d9448011467fe280cc76d825a7fe6ba70f60897703242d1828b42b4f6caef5e09b5c643a74dd8446
7
+ data.tar.gz: af3f2e843f402be7bb7db7bead1e8f592c88eaf4e8cbcf9766d7c808b0293bd1614fb4d71c5f4bd5031c647a9daf2260d3fcb8217cc71dbfba43e10fda02701e
@@ -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.2'
6
6
  end
7
7
  end
data/locale/en.yml ADDED
@@ -0,0 +1,6 @@
1
+ en:
2
+ avm:
3
+ eac_generic_base0:
4
+ sources:
5
+ base:
6
+ version_bump_commit_message: Bump to '%{version}'.
data/locale/pt-BR.yml ADDED
@@ -0,0 +1,6 @@
1
+ pt-BR:
2
+ avm:
3
+ eac_generic_base0:
4
+ sources:
5
+ base:
6
+ version_bump_commit_message: Versão para '%{version}'.
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.2
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-07-15 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,8 +61,11 @@ 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
67
+ - locale/en.yml
68
+ - locale/pt-BR.yml
66
69
  homepage:
67
70
  licenses: []
68
71
  metadata: {}