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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 403cea1bec4fa94ef822c35dd730187c37d2532f4912f0a993558a88cb72ee6f
4
- data.tar.gz: 10915c9f9a72b76d575bedc3f2b4a3366b017a819d7e3990fb83c325d5280910
3
+ metadata.gz: 4af184a7ee762d834515f520ac5feaa6fd9ec234757fabe22dfe0a9587bf3e60
4
+ data.tar.gz: cdffc75f564331e4c26fa2b290bb3aabae75f642d02e67be8b6e5185d3880811
5
5
  SHA512:
6
- metadata.gz: d8489209dd65fd784b6e146ea344885b03af3d3ab51ae63dbfad9dd14d7ba54c588d49ca10a40a2883f00d74c2c6cd31ef4fab93c50efeb90e82dd335be81b21
7
- data.tar.gz: 2a0f094c8072894a5e00a49e6be905c69a9fe69c4d4e605b72fc0aba211eb4d5a06ed6e9500a375ffad839d433edf7cf33aa2bdfde5a14e4c6c7619cf04a24a8
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.directory?
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 [EacRubyUtils::Fs::Logs]
22
+ # @return [EacFs::Logs]
23
23
  def logs
24
- @logs ||= ::EacRubyUtils::Fs::Logs.new.add(:stdout).add(:stderr)
24
+ @logs ||= ::EacFs::Logs.new.add(:stdout).add(:stderr)
25
25
  end
26
26
 
27
27
  # @return [Avm::Sources::Tests::Result]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacGenericBase0
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
data/locale/en.yaml 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.yaml 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.0
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: 2021-11-30 00:00:00.000000000 Z
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.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.yaml
68
+ - locale/pt-BR.yaml
66
69
  homepage:
67
70
  licenses: []
68
71
  metadata: {}