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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19eb8fc5615a440793c9b2df1fa3befa7f60157f217d04ee345d22bd571e0b3d
|
4
|
+
data.tar.gz: d05fa9a0698840466e1dd815f20d81051dd0b6461a52abb2da928d4ce991ccd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
20
|
+
::Avm::Registry.scms.detect_optional(path).present?
|
18
21
|
end
|
19
22
|
end
|
20
23
|
end
|
data/locale/en.yml
ADDED
data/locale/pt-BR.yml
ADDED
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.
|
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:
|
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.
|
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.
|
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: {}
|