avm-eac_generic_base0 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/eac_generic_base0/sources/base/version_bump.rb +35 -0
- data/lib/avm/eac_generic_base0/sources/base.rb +4 -1
- data/lib/avm/eac_generic_base0/sources/tester.rb +2 -2
- data/lib/avm/eac_generic_base0/version.rb +1 -1
- data/locale/en.yaml +6 -0
- data/locale/pt-BR.yaml +6 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4af184a7ee762d834515f520ac5feaa6fd9ec234757fabe22dfe0a9587bf3e60
|
4
|
+
data.tar.gz: cdffc75f564331e4c26fa2b290bb3aabae75f642d02e67be8b6e5185d3880811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92dd41ed2159254b2d9e68abb4a510f8fa317c37a8b7d508c9753b4ed8a4a7c995d5b90fcb88bd7dbbed734e621dab77b4e3b43ea71f95b161d8557be2dcc874
|
7
|
+
data.tar.gz: 165a8ebe7fb439542dd7f57c7624056f72cd739c055cca35539ae3bac555631bf246658b601cc3dbda905edfd406fdd7352133ec13a2a61bfc45318990d70498
|
@@ -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
|
@@ -19,9 +19,9 @@ module Avm
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
# @return [
|
22
|
+
# @return [EacFs::Logs]
|
23
23
|
def logs
|
24
|
-
@logs ||= ::
|
24
|
+
@logs ||= ::EacFs::Logs.new.add(:stdout).add(:stderr)
|
25
25
|
end
|
26
26
|
|
27
27
|
# @return [Avm::Sources::Tests::Result]
|
data/locale/en.yaml
ADDED
data/locale/pt-BR.yaml
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.1
|
4
|
+
version: 0.2.1
|
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-07 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.yaml
|
68
|
+
- locale/pt-BR.yaml
|
66
69
|
homepage:
|
67
70
|
licenses: []
|
68
71
|
metadata: {}
|