eac_tools 0.53.0 → 0.54.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +25 -25
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/lib/avm/scms/base/commits.rb +7 -0
- data/sub/avm/lib/avm/scms/commit_info.rb +13 -0
- data/sub/avm/lib/avm/scms/null/commit.rb +15 -0
- data/sub/avm/lib/avm/scms/null.rb +7 -0
- data/sub/avm/lib/avm/sources/base/configuration.rb +12 -6
- data/sub/avm/lib/avm/sources/base/locale.rb +7 -0
- data/sub/avm/lib/avm/sources/base/organizational.rb +32 -0
- data/sub/avm/lib/avm/sources/base/update.rb +43 -0
- data/sub/avm/lib/avm/sources/base/update_sub.rb +57 -0
- data/sub/avm/lib/avm/sources/base/version_bump.rb +29 -0
- data/sub/avm/lib/avm/sources/base.rb +1 -1
- data/sub/avm/lib/avm/version.rb +1 -1
- data/sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec +1 -1
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb +1 -5
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb +22 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +0 -4
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +0 -5
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +1 -3
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- data/sub/avm-eac_ruby_base1/locale/en.yml +3 -4
- data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +3 -4
- data/sub/avm-git/avm-git.gemspec +3 -3
- data/sub/avm-git/lib/avm/git/scms/git/change_tracker.rb +2 -2
- data/sub/avm-git/lib/avm/git/scms/git/commits.rb +13 -9
- data/sub/avm-git/lib/avm/git/scms/git_sub_base.rb +17 -0
- data/sub/avm-git/lib/avm/git/scms/git_subrepo.rb +2 -5
- data/sub/avm-git/lib/avm/git/scms/git_subtree.rb +26 -0
- data/sub/avm-git/lib/avm/git/scms/provider.rb +3 -1
- data/sub/avm-git/lib/avm/git/version.rb +1 -1
- data/sub/avm-git/locale/en.yml +6 -0
- data/sub/avm-git/locale/pt-BR.yml +6 -0
- data/sub/avm-tools/avm-tools.gemspec +4 -4
- data/sub/avm-tools/lib/avm/tools/runner/source/subs.rb +2 -1
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- data/sub/avm-tools/spec/lib/avm/tools/runner/source/issue/complete_spec.rb +1 -0
- metadata +20 -18
- data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb +0 -35
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update.rb +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa6e9611db77983e7a2e2c85a80c76b1f862a1f1995a787396bb162819379e54
|
4
|
+
data.tar.gz: 11b3d60caf8f8cac1ada36e41cf280f01ea7ac6b37e79284193ff09f9a06bbf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 073ba61cf82fc77a0676ea984e82840d661cd70ccac1faa1af088f1758ecfe9f895aefca5603ed107fe109d9aa3fbf2c0606b954e321994af7cc8d977169e8fb
|
7
|
+
data.tar.gz: 78cfcc7f331d552ec6e541d752d4d21e87c8eee70083f0257118564987d0dec0eb83849f3c5666439a1223baa2d012f85b2ace8fb751d4da32b8a80734c23e45
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.
|
5
|
-
avm (~> 0.
|
4
|
+
eac_tools (0.54.0)
|
5
|
+
avm (~> 0.61)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.15)
|
7
|
-
avm-eac_generic_base0 (~> 0.
|
7
|
+
avm-eac_generic_base0 (~> 0.10)
|
8
8
|
avm-eac_latex_base0 (~> 0.3)
|
9
9
|
avm-eac_php_base0 (~> 0.4, >= 0.4.1)
|
10
10
|
avm-eac_postgresql_base0 (~> 0.2, >= 0.2.3)
|
@@ -13,10 +13,10 @@ PATH
|
|
13
13
|
avm-eac_rails_base1 (~> 0.8)
|
14
14
|
avm-eac_redmine_base0 (~> 0.18)
|
15
15
|
avm-eac_redmine_plugin_base0 (~> 0.4)
|
16
|
-
avm-eac_ruby_base1 (~> 0.
|
16
|
+
avm-eac_ruby_base1 (~> 0.29)
|
17
17
|
avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
|
18
18
|
avm-eac_wordpress_base0 (~> 0.3)
|
19
|
-
avm-tools (~> 0.
|
19
|
+
avm-tools (~> 0.144)
|
20
20
|
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
21
21
|
|
22
22
|
PATH
|
@@ -45,8 +45,8 @@ PATH
|
|
45
45
|
PATH
|
46
46
|
remote: sub/avm-eac_generic_base0
|
47
47
|
specs:
|
48
|
-
avm-eac_generic_base0 (0.
|
49
|
-
avm (~> 0.
|
48
|
+
avm-eac_generic_base0 (0.10.0)
|
49
|
+
avm (~> 0.61)
|
50
50
|
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
51
51
|
|
52
52
|
PATH
|
@@ -118,9 +118,9 @@ PATH
|
|
118
118
|
PATH
|
119
119
|
remote: sub/avm-eac_ruby_base1
|
120
120
|
specs:
|
121
|
-
avm-eac_ruby_base1 (0.
|
122
|
-
avm (~> 0.
|
123
|
-
avm-eac_generic_base0 (~> 0.
|
121
|
+
avm-eac_ruby_base1 (0.29.0)
|
122
|
+
avm (~> 0.61)
|
123
|
+
avm-eac_generic_base0 (~> 0.10)
|
124
124
|
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
125
125
|
|
126
126
|
PATH
|
@@ -163,35 +163,35 @@ PATH
|
|
163
163
|
PATH
|
164
164
|
remote: sub/avm-git
|
165
165
|
specs:
|
166
|
-
avm-git (0.
|
167
|
-
avm (~> 0.
|
166
|
+
avm-git (0.12.0)
|
167
|
+
avm (~> 0.61)
|
168
168
|
avm-files (~> 0.6)
|
169
169
|
eac_git (~> 0.14)
|
170
170
|
eac_ruby_utils (~> 0.110, >= 0.110.1)
|
171
|
-
git (~> 1.13)
|
171
|
+
git (~> 1.13, >= 1.13.1)
|
172
172
|
|
173
173
|
PATH
|
174
174
|
remote: sub/avm-tools
|
175
175
|
specs:
|
176
|
-
avm-tools (0.
|
176
|
+
avm-tools (0.144.0)
|
177
177
|
aranha-parsers (~> 0.14, >= 0.14.4)
|
178
|
-
avm (~> 0.
|
179
|
-
avm-eac_ruby_base1 (~> 0.
|
178
|
+
avm (~> 0.61)
|
179
|
+
avm-eac_ruby_base1 (~> 0.29)
|
180
180
|
avm-eac_ubuntu_base0 (~> 0.4)
|
181
181
|
avm-files (~> 0.6)
|
182
|
-
avm-git (~> 0.
|
182
|
+
avm-git (~> 0.12)
|
183
183
|
clipboard (~> 1.3, >= 1.3.6)
|
184
184
|
curb (~> 0.9, >= 0.9.11)
|
185
185
|
eac_git (~> 0.14)
|
186
186
|
eac_ruby_base0 (~> 0.17, >= 0.17.1)
|
187
187
|
eac_templates (~> 0.3, >= 0.3.2)
|
188
|
-
git (~> 1.13)
|
188
|
+
git (~> 1.13, >= 1.13.1)
|
189
189
|
ruby-progressbar (~> 1.11)
|
190
190
|
|
191
191
|
PATH
|
192
192
|
remote: sub/avm
|
193
193
|
specs:
|
194
|
-
avm (0.
|
194
|
+
avm (0.61.0)
|
195
195
|
aranha-parsers (~> 0.14, >= 0.14.4)
|
196
196
|
eac_cli (~> 0.30)
|
197
197
|
eac_config (~> 0.12)
|
@@ -263,7 +263,7 @@ PATH
|
|
263
263
|
GEM
|
264
264
|
remote: https://rubygems.org/
|
265
265
|
specs:
|
266
|
-
activesupport (6.1.7)
|
266
|
+
activesupport (6.1.7.1)
|
267
267
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
268
268
|
i18n (>= 1.6, < 2)
|
269
269
|
minitest (>= 5.1)
|
@@ -291,7 +291,7 @@ GEM
|
|
291
291
|
eac_templates (0.3.2)
|
292
292
|
eac_config (~> 0.11, >= 0.11.1)
|
293
293
|
eac_ruby_utils (~> 0.102, >= 0.102.1)
|
294
|
-
faraday (1.10.
|
294
|
+
faraday (1.10.3)
|
295
295
|
faraday-em_http (~> 1.0)
|
296
296
|
faraday-em_synchrony (~> 1.0)
|
297
297
|
faraday-excon (~> 1.1)
|
@@ -320,7 +320,7 @@ GEM
|
|
320
320
|
faraday_middleware (1.2.0)
|
321
321
|
faraday (~> 1.0)
|
322
322
|
filesize (0.2.0)
|
323
|
-
git (1.13.
|
323
|
+
git (1.13.1)
|
324
324
|
addressable (~> 2.8)
|
325
325
|
rchardet (~> 1.8)
|
326
326
|
hpricot (0.8.6)
|
@@ -332,7 +332,7 @@ GEM
|
|
332
332
|
minitest (5.17.0)
|
333
333
|
multipart-post (2.2.3)
|
334
334
|
net-ssh (4.2.0)
|
335
|
-
nokogiri (1.
|
335
|
+
nokogiri (1.14.0-x86_64-linux)
|
336
336
|
racc (~> 1.4)
|
337
337
|
ofx-parser (1.1.0)
|
338
338
|
hpricot (>= 0.6)
|
@@ -344,7 +344,7 @@ GEM
|
|
344
344
|
parslet (2.0.0)
|
345
345
|
public_suffix (5.0.1)
|
346
346
|
racc (1.6.2)
|
347
|
-
rack (3.0.
|
347
|
+
rack (3.0.4.1)
|
348
348
|
rainbow (3.1.1)
|
349
349
|
rchardet (1.8.0)
|
350
350
|
rexml (3.2.5)
|
@@ -358,7 +358,7 @@ GEM
|
|
358
358
|
rspec-expectations (3.12.2)
|
359
359
|
diff-lcs (>= 1.2.0, < 2.0)
|
360
360
|
rspec-support (~> 3.12.0)
|
361
|
-
rspec-mocks (3.12.
|
361
|
+
rspec-mocks (3.12.3)
|
362
362
|
diff-lcs (>= 1.2.0, < 2.0)
|
363
363
|
rspec-support (~> 3.12.0)
|
364
364
|
rspec-support (3.12.0)
|
data/lib/eac_tools/version.rb
CHANGED
@@ -16,6 +16,13 @@ module Avm
|
|
16
16
|
raise_abstract_method __method__
|
17
17
|
end
|
18
18
|
|
19
|
+
# @param commit_to_reset [Avm::Scms::Commit]
|
20
|
+
# @param commit_info [Avm::Scms::CommitInfo]
|
21
|
+
# @return [Avm::Scms::Commit]
|
22
|
+
def reset_and_commit(_commit_to_reset, _commit_info)
|
23
|
+
raise_abstract_method __method__
|
24
|
+
end
|
25
|
+
|
19
26
|
# @param commit_info [Avm::Scms::CommitInfo]
|
20
27
|
# @return [Avm::Scms::Commit]
|
21
28
|
def run_commit(_commit_info)
|
@@ -5,6 +5,19 @@ require 'eac_ruby_utils/core_ext'
|
|
5
5
|
module Avm
|
6
6
|
module Scms
|
7
7
|
class CommitInfo
|
8
|
+
class << self
|
9
|
+
# @param source [Avm::Scms::CommitInfo, String]
|
10
|
+
# @return [Avm::Scms::CommitInfo]
|
11
|
+
def assert(source)
|
12
|
+
return source if source.is_a?(self)
|
13
|
+
return new if source.nil?
|
14
|
+
return new.message(source) if source.is_a?(::String)
|
15
|
+
return assert(source.call) if source.is_a?(::Proc)
|
16
|
+
|
17
|
+
raise "Unmapped assertion for #{source.to_debug}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
8
21
|
enable_immutable
|
9
22
|
|
10
23
|
immutable_accessor :fixup, :message
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/scms/base'
|
4
|
+
require 'avm/scms/commit'
|
5
|
+
require 'eac_ruby_utils/core_ext'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module Scms
|
9
|
+
class Null < ::Avm::Scms::Base
|
10
|
+
class Commit < ::Avm::Scms::Commit
|
11
|
+
common_constructor :scm
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -6,6 +6,13 @@ require 'eac_ruby_utils/core_ext'
|
|
6
6
|
module Avm
|
7
7
|
module Scms
|
8
8
|
class Null < ::Avm::Scms::Base
|
9
|
+
require_sub __FILE__
|
10
|
+
|
11
|
+
# @return [Avm::Scms::Null::Commit]
|
12
|
+
def head_commit
|
13
|
+
@head_commit ||= Avm::Scms::Null::Commit.new(self)
|
14
|
+
end
|
15
|
+
|
9
16
|
def update
|
10
17
|
# Do nothing
|
11
18
|
end
|
@@ -22,6 +22,13 @@ module Avm
|
|
22
22
|
configuration.entry(*entry_args)
|
23
23
|
end
|
24
24
|
|
25
|
+
# The possible absolute paths for configuration files.
|
26
|
+
#
|
27
|
+
# @return [Array<Pathname>]
|
28
|
+
def configuration_paths
|
29
|
+
CONFIGURATION_FILENAMES.map { |filename| path.join(filename) }
|
30
|
+
end
|
31
|
+
|
25
32
|
# @return [EacRubyUtils::Envs::Command, nil]
|
26
33
|
def configuration_value_to_env_command(value)
|
27
34
|
return value if value.is_a?(::EacRubyUtils::Envs::Command)
|
@@ -51,10 +58,10 @@ module Avm
|
|
51
58
|
|
52
59
|
# @return [EacConfig::YamlFileNode]
|
53
60
|
def configuration_uncached
|
54
|
-
|
55
|
-
configuration_with_filename(
|
61
|
+
configuration_paths.each do |config_path|
|
62
|
+
configuration_with_filename(config_path, true)
|
56
63
|
end
|
57
|
-
configuration_with_filename(
|
64
|
+
configuration_with_filename(configuration_paths.first, false)
|
58
65
|
end
|
59
66
|
|
60
67
|
# @return [String]
|
@@ -68,9 +75,8 @@ module Avm
|
|
68
75
|
end
|
69
76
|
|
70
77
|
# @return [EacConfig::YamlFileNode, nil]
|
71
|
-
def configuration_with_filename(
|
72
|
-
|
73
|
-
return ::EacConfig::YamlFileNode.new(file_path) if !needs_exist || file_path.exist?
|
78
|
+
def configuration_with_filename(config_path, needs_exist)
|
79
|
+
return ::EacConfig::YamlFileNode.new(config_path) if !needs_exist || config_path.exist?
|
74
80
|
|
75
81
|
nil
|
76
82
|
end
|
@@ -20,6 +20,13 @@ module Avm
|
|
20
20
|
def default_locale
|
21
21
|
::I18n.default_locale
|
22
22
|
end
|
23
|
+
|
24
|
+
# @param entry_suffix [String]
|
25
|
+
# @param values [Hash]
|
26
|
+
# @return [String]
|
27
|
+
def i18n_translate(entry_suffix, values = {})
|
28
|
+
self.class.i18n_translate(entry_suffix, values.merge(__locale: locale))
|
29
|
+
end
|
23
30
|
end
|
24
31
|
end
|
25
32
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Sources
|
7
|
+
class Base
|
8
|
+
module Organizational
|
9
|
+
DEFAULT_ORGANIZATIONAL = false
|
10
|
+
ORGANIZATIONAL_KEY = 'organizational'
|
11
|
+
|
12
|
+
# @return [Boolean]
|
13
|
+
def organizational?
|
14
|
+
if organizational_entry.found?
|
15
|
+
organizational_entry.value.to_bool
|
16
|
+
else
|
17
|
+
default_organizational
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def organizational_entry
|
22
|
+
configuration.entry(ORGANIZATIONAL_KEY)
|
23
|
+
end
|
24
|
+
|
25
|
+
# @return [Boolean]
|
26
|
+
def default_organizational
|
27
|
+
DEFAULT_ORGANIZATIONAL
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Sources
|
7
|
+
class Base
|
8
|
+
module Update
|
9
|
+
# To override in subclasses.
|
10
|
+
def on_sub_updated
|
11
|
+
# Do nothing
|
12
|
+
end
|
13
|
+
|
14
|
+
def update
|
15
|
+
update_self
|
16
|
+
update_subs
|
17
|
+
end
|
18
|
+
|
19
|
+
def update_self
|
20
|
+
scm.commit_if_change(-> { update_self_commit_message }) do
|
21
|
+
update_self_content
|
22
|
+
parent.if_present(&:on_sub_updated)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# Update source self content.
|
27
|
+
#
|
28
|
+
# To override in subclasses.
|
29
|
+
def update_self_content
|
30
|
+
# Do nothing
|
31
|
+
end
|
32
|
+
|
33
|
+
def update_self_commit_message
|
34
|
+
i18n_translate(__method__)
|
35
|
+
end
|
36
|
+
|
37
|
+
def update_subs
|
38
|
+
subs.each { |sub| update_sub(sub) }
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Sources
|
7
|
+
class Base
|
8
|
+
class UpdateSub
|
9
|
+
enable_method_class
|
10
|
+
|
11
|
+
common_constructor :source, :sub
|
12
|
+
|
13
|
+
def result
|
14
|
+
update_version
|
15
|
+
return unless sub.organizational?
|
16
|
+
|
17
|
+
sub.update
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def update_version
|
23
|
+
base_commit = source.scm.head_commit
|
24
|
+
sub.scm.update
|
25
|
+
on_update_version_commit_change(base_commit) unless base_commit == source.scm.head_commit
|
26
|
+
end
|
27
|
+
|
28
|
+
def on_update_version_commit_change(base_commit)
|
29
|
+
source.on_sub_updated if no_scm_updated?
|
30
|
+
source.scm.reset_and_commit(base_commit, update_version_commit_info)
|
31
|
+
end
|
32
|
+
|
33
|
+
def no_scm_updated?
|
34
|
+
source.scm.head_commit.no_scm_changed_files.any?
|
35
|
+
end
|
36
|
+
|
37
|
+
# @param commit_info [Avm::Scms::CommitInfo]
|
38
|
+
def update_version_commit_info
|
39
|
+
Avm::Scms::CommitInfo.new.message(
|
40
|
+
no_scm_updated? ? update_version_no_scm_message : update_version_scm_message
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
# @return [String]
|
45
|
+
def update_version_no_scm_message
|
46
|
+
source.i18n_translate(__method__, application_id: sub.application_id,
|
47
|
+
path: sub.relative_path, version: sub.version)
|
48
|
+
end
|
49
|
+
|
50
|
+
# @return [String]
|
51
|
+
def update_version_scm_message
|
52
|
+
sub.scm.i18n_translate(__method__)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/sources/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Sources
|
8
|
+
class Base
|
9
|
+
module VersionBump
|
10
|
+
# @return [Avm::Scms::Commit, nil]
|
11
|
+
def version_bump(target_version)
|
12
|
+
scm.commit_if_change(version_bump_commit_message(target_version)) do
|
13
|
+
version_bump_do_changes(target_version)
|
14
|
+
parent.if_present(&:on_sub_updated)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# @return [String]
|
19
|
+
def version_bump_commit_message(target_version)
|
20
|
+
i18n_translate(__method__, version: target_version, __locale: locale)
|
21
|
+
end
|
22
|
+
|
23
|
+
def version_bump_do_changes(_target_version)
|
24
|
+
raise_abstract_method(__METHOD__)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/sub/avm/lib/avm/version.rb
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,locale}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.61'
|
16
16
|
s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
|
17
17
|
|
18
18
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
@@ -10,12 +10,8 @@ module Avm
|
|
10
10
|
require_sub __FILE__, include_modules: true
|
11
11
|
enable_abstract_methods
|
12
12
|
|
13
|
-
def update
|
14
|
-
# Do nothing
|
15
|
-
end
|
16
|
-
|
17
13
|
def valid?
|
18
|
-
|
14
|
+
configuration_paths.any?(&:exist?)
|
19
15
|
end
|
20
16
|
end
|
21
17
|
end
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.files = Dir['{lib,locale,template}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
16
|
-
s.add_dependency 'avm-eac_generic_base0', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.61'
|
16
|
+
s.add_dependency 'avm-eac_generic_base0', '~> 0.10'
|
17
17
|
s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
|
18
18
|
|
19
19
|
s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_generic_base0/sources/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRubyBase1
|
8
|
+
module Sources
|
9
|
+
class Base < ::Avm::EacGenericBase0::Sources::Base
|
10
|
+
module Update
|
11
|
+
def on_sub_updated
|
12
|
+
update_self_content
|
13
|
+
end
|
14
|
+
|
15
|
+
def update_self_content
|
16
|
+
bundle_update.execute!
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -8,10 +8,6 @@ module Avm
|
|
8
8
|
module Sources
|
9
9
|
class Base < ::Avm::EacGenericBase0::Sources::Base
|
10
10
|
module VersionBump
|
11
|
-
def after_sub_version_bump_do_changes
|
12
|
-
bundle('install').chdir_root.execute!
|
13
|
-
end
|
14
|
-
|
15
11
|
def version_bump_do_changes(target_version)
|
16
12
|
self.version = target_version
|
17
13
|
bundle('install').chdir_root.execute!
|
@@ -3,7 +3,6 @@
|
|
3
3
|
require 'avm/eac_generic_base0/sources/base'
|
4
4
|
require 'avm/eac_ruby_base1/rubygems/version_file'
|
5
5
|
require 'avm/eac_ruby_base1/sources/runners'
|
6
|
-
require 'avm/eac_ruby_base1/sources/update'
|
7
6
|
require 'avm/version_number'
|
8
7
|
require 'eac_ruby_utils/core_ext'
|
9
8
|
|
@@ -57,10 +56,6 @@ module Avm
|
|
57
56
|
gemfile_path.exist? || gemspec_path.present?
|
58
57
|
end
|
59
58
|
|
60
|
-
def update
|
61
|
-
::Avm::EacRubyBase1::Sources::Update.new(self)
|
62
|
-
end
|
63
|
-
|
64
59
|
# @return [Avm::VersionNumber]
|
65
60
|
def version
|
66
61
|
version_file.value.if_present { |v| ::Avm::VersionNumber.new(v) }
|
@@ -2,9 +2,8 @@ en:
|
|
2
2
|
avm:
|
3
3
|
eac_ruby_base1:
|
4
4
|
sources:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
update_gemfile_lock_commit_message: 'All gems: update.'
|
5
|
+
base:
|
6
|
+
update_self_commit_message: 'All gems: update.'
|
7
|
+
update_version_no_scm_message: "Gem \"%{application_id}\" (Local): update to '%{version}'."
|
9
8
|
update_dependency_requirements:
|
10
9
|
commit_message: "Gem \"%{name}\": update to '%{requirements_list}'."
|
@@ -2,9 +2,8 @@ pt-BR:
|
|
2
2
|
avm:
|
3
3
|
eac_ruby_base1:
|
4
4
|
sources:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
update_gemfile_lock_commit_message: 'Todas as gems: atualiza.'
|
5
|
+
base:
|
6
|
+
update_self_commit_message: 'Todas as gems: atualiza.'
|
7
|
+
update_version_no_scm_message: "Gem \"%{application_id}\" (Local): atualiza para '%{version}'."
|
9
8
|
update_dependency_requirements:
|
10
9
|
commit_message: "Gem \"%{name}\": atualiza para '%{requirements_list}'."
|
data/sub/avm-git/avm-git.gemspec
CHANGED
@@ -10,13 +10,13 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ['Put here the authors']
|
11
11
|
s.summary = 'Put here de description.'
|
12
12
|
|
13
|
-
s.files = Dir['{lib}/**/*']
|
13
|
+
s.files = Dir['{lib,locale}/**/*']
|
14
14
|
|
15
|
-
s.add_dependency 'avm', '~> 0.
|
15
|
+
s.add_dependency 'avm', '~> 0.61'
|
16
16
|
s.add_dependency 'avm-files', '~> 0.6'
|
17
17
|
s.add_dependency 'eac_git', '~> 0.14'
|
18
18
|
s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
|
19
|
-
s.add_dependency 'git', '~> 1.13'
|
19
|
+
s.add_dependency 'git', '~> 1.13', '>= 1.13.1'
|
20
20
|
|
21
21
|
s.add_development_dependency 'aranha-parsers', '~> 0.8', '>= 0.8.5'
|
22
22
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.4'
|
@@ -7,7 +7,7 @@ module Avm
|
|
7
7
|
module Scms
|
8
8
|
class Git < ::Avm::Scms::Base
|
9
9
|
class ChangeTracker
|
10
|
-
common_constructor :git_scm, :
|
10
|
+
common_constructor :git_scm, :commit_info
|
11
11
|
attr_reader :starting_commit
|
12
12
|
delegate :git_repo, to: :git_scm
|
13
13
|
|
@@ -22,7 +22,7 @@ module Avm
|
|
22
22
|
git_scm.commit_dirty
|
23
23
|
return nil if starting_commit == git_repo.head
|
24
24
|
|
25
|
-
git_scm.reset_and_commit(starting_commit,
|
25
|
+
git_scm.reset_and_commit(starting_commit, commit_info)
|
26
26
|
end
|
27
27
|
|
28
28
|
private
|
@@ -20,21 +20,24 @@ module Avm
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
# @param commit_info [Avm::Scms::CommitInfo]
|
23
24
|
# @return [Avm::Git::Scms::Git::Commit,nil]
|
24
|
-
def commit_dirty(
|
25
|
+
def commit_dirty(commit_info = nil)
|
25
26
|
return nil unless git_repo.dirty?
|
26
27
|
|
28
|
+
commit_info = ::Avm::Scms::CommitInfo.assert(commit_info)
|
29
|
+
commit_info = commit_info.message(COMMIT_DIRTY_DEFAULT_MESSAGE) if
|
30
|
+
commit_info.message.blank?
|
31
|
+
|
27
32
|
git_repo.command('add', '.').execute!
|
28
|
-
|
29
|
-
'commit', '-m',
|
30
|
-
message.call_if_proc.if_present(COMMIT_DIRTY_DEFAULT_MESSAGE)
|
31
|
-
).execute!
|
33
|
+
run_commit(commit_info)
|
32
34
|
head_commit
|
33
35
|
end
|
34
36
|
|
37
|
+
# @param commit_info [Avm::Scms::CommitInfo]
|
35
38
|
# @return [Avm::Git::Scms::Git::Commit,nil]
|
36
|
-
def commit_if_change(
|
37
|
-
tracker = ::Avm::Git::Scms::Git::ChangeTracker.new(self,
|
39
|
+
def commit_if_change(commit_info = nil)
|
40
|
+
tracker = ::Avm::Git::Scms::Git::ChangeTracker.new(self, commit_info)
|
38
41
|
tracker.start
|
39
42
|
yield
|
40
43
|
tracker.stop
|
@@ -45,10 +48,11 @@ module Avm
|
|
45
48
|
commit(git_repo.head)
|
46
49
|
end
|
47
50
|
|
51
|
+
# @param commit_info [Avm::Scms::CommitInfo]
|
48
52
|
# @return [Avm::Git::Scms::Git::Commit]
|
49
|
-
def reset_and_commit(commit_to_reset,
|
53
|
+
def reset_and_commit(commit_to_reset, commit_info)
|
50
54
|
git_repo.command('reset', '--soft', commit(commit_to_reset).git_commit.id).execute!
|
51
|
-
commit_dirty(
|
55
|
+
commit_dirty(commit_info)
|
52
56
|
end
|
53
57
|
end
|
54
58
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/scms/base'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Git
|
8
|
+
module Scms
|
9
|
+
class GitSubBase < ::Avm::Scms::Base
|
10
|
+
enable_abstract_methods
|
11
|
+
|
12
|
+
delegate :changed_files, :commit_if_change, :current_milestone_base_commit, :interval,
|
13
|
+
:head_commit, :reset_and_commit, :run_commit, to: :parent_scm
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,16 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/scms/
|
3
|
+
require 'avm/git/scms/git_sub_base'
|
4
4
|
require 'eac_git/local'
|
5
5
|
require 'eac_ruby_utils/core_ext'
|
6
6
|
|
7
7
|
module Avm
|
8
8
|
module Git
|
9
9
|
module Scms
|
10
|
-
class GitSubrepo < ::Avm::Scms::
|
11
|
-
delegate :changed_files, :commit_if_change, :current_milestone_base_commit, :interval,
|
12
|
-
:head_commit, :run_commit, to: :parent_scm
|
13
|
-
|
10
|
+
class GitSubrepo < ::Avm::Git::Scms::GitSubBase
|
14
11
|
def update
|
15
12
|
git_subrepo.command('clean').execute!
|
16
13
|
git_subrepo.command('pull').execute!
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/git/scms/provider'
|
4
|
+
require 'avm/git/scms/git_sub_base'
|
5
|
+
require 'avm/scms/base'
|
6
|
+
require 'eac_ruby_utils/core_ext'
|
7
|
+
|
8
|
+
module Avm
|
9
|
+
module Git
|
10
|
+
module Scms
|
11
|
+
class GitSubtree < ::Avm::Git::Scms::GitSubBase
|
12
|
+
def update
|
13
|
+
# Do nothing
|
14
|
+
end
|
15
|
+
|
16
|
+
def valid?
|
17
|
+
return false unless ::Avm::Git::Scms::Provider
|
18
|
+
.new.all.any? { |scm_class| parent_scm.is_a?(scm_class) }
|
19
|
+
|
20
|
+
(::Avm::Git::Scms::Provider.new.all - [self.class])
|
21
|
+
.lazy.map { |scm_class| scm_class.new(path) }.none?(&:valid?)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -2,13 +2,15 @@
|
|
2
2
|
|
3
3
|
require 'avm/git/scms/git'
|
4
4
|
require 'avm/git/scms/git_subrepo'
|
5
|
+
require 'avm/git/scms/git_subtree'
|
5
6
|
require 'eac_ruby_utils/core_ext'
|
6
7
|
|
7
8
|
module Avm
|
8
9
|
module Git
|
9
10
|
module Scms
|
10
11
|
class Provider
|
11
|
-
SCMS = [::Avm::Git::Scms::Git, ::Avm::Git::Scms::GitSubrepo
|
12
|
+
SCMS = [::Avm::Git::Scms::Git, ::Avm::Git::Scms::GitSubrepo,
|
13
|
+
::Avm::Git::Scms::GitSubtree].freeze
|
12
14
|
|
13
15
|
def all
|
14
16
|
SCMS
|
@@ -15,17 +15,17 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
16
16
|
|
17
17
|
s.add_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.4'
|
18
|
-
s.add_dependency 'avm', '~> 0.
|
19
|
-
s.add_dependency 'avm-eac_ruby_base1', '~> 0.
|
18
|
+
s.add_dependency 'avm', '~> 0.61'
|
19
|
+
s.add_dependency 'avm-eac_ruby_base1', '~> 0.29'
|
20
20
|
s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.4'
|
21
21
|
s.add_dependency 'avm-files', '~> 0.6'
|
22
|
-
s.add_dependency 'avm-git', '~> 0.
|
22
|
+
s.add_dependency 'avm-git', '~> 0.12'
|
23
23
|
s.add_dependency 'clipboard', '~> 1.3', '>= 1.3.6'
|
24
24
|
s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
|
25
25
|
s.add_dependency 'eac_git', '~> 0.14'
|
26
26
|
s.add_dependency 'eac_ruby_base0', '~> 0.17', '>= 0.17.1'
|
27
27
|
s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.2'
|
28
|
-
s.add_dependency 'git', '~> 1.13'
|
28
|
+
s.add_dependency 'git', '~> 1.13', '>= 1.13.1'
|
29
29
|
s.add_dependency 'ruby-progressbar', '~> 1.11'
|
30
30
|
|
31
31
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
|
@@ -17,6 +17,7 @@ require 'fileutils'
|
|
17
17
|
eac_local_repos.assert_remote_url(remote_name, remote_repos.root_path.to_path)
|
18
18
|
local_repos.command('checkout', '-b', issue_ref).execute!
|
19
19
|
local_repos.file('myfile1.txt').touch
|
20
|
+
local_repos.file(::Avm::Sources::Base::Configuration::CONFIGURATION_FILENAMES.first).touch
|
20
21
|
local_repos.command('add', '.').execute!
|
21
22
|
local_repos.command('commit', '-m', 'myfile1.txt').execute!
|
22
23
|
local_repos.command('push', 'origin', issue_ref).execute!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.54.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: 2023-01-
|
11
|
+
date: 2023-01-19 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.61'
|
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.61'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-eac_asciidoctor_base0
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.10'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.10'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: avm-eac_latex_base0
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,20 +188,14 @@ dependencies:
|
|
188
188
|
requirements:
|
189
189
|
- - "~>"
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: '0.
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 0.28.1
|
191
|
+
version: '0.29'
|
195
192
|
type: :runtime
|
196
193
|
prerelease: false
|
197
194
|
version_requirements: !ruby/object:Gem::Requirement
|
198
195
|
requirements:
|
199
196
|
- - "~>"
|
200
197
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0.
|
202
|
-
- - ">="
|
203
|
-
- !ruby/object:Gem::Version
|
204
|
-
version: 0.28.1
|
198
|
+
version: '0.29'
|
205
199
|
- !ruby/object:Gem::Dependency
|
206
200
|
name: avm-eac_webapp_base0
|
207
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -242,14 +236,14 @@ dependencies:
|
|
242
236
|
requirements:
|
243
237
|
- - "~>"
|
244
238
|
- !ruby/object:Gem::Version
|
245
|
-
version: '0.
|
239
|
+
version: '0.144'
|
246
240
|
type: :runtime
|
247
241
|
prerelease: false
|
248
242
|
version_requirements: !ruby/object:Gem::Requirement
|
249
243
|
requirements:
|
250
244
|
- - "~>"
|
251
245
|
- !ruby/object:Gem::Version
|
252
|
-
version: '0.
|
246
|
+
version: '0.144'
|
253
247
|
- !ruby/object:Gem::Dependency
|
254
248
|
name: eac_ruby_utils
|
255
249
|
requirement: !ruby/object:Gem::Requirement
|
@@ -392,7 +386,6 @@ files:
|
|
392
386
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
|
393
387
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
|
394
388
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base.rb
|
395
|
-
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/base/version_bump.rb
|
396
389
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/docker.rb
|
397
390
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/docker/runner.rb
|
398
391
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb
|
@@ -671,6 +664,7 @@ files:
|
|
671
664
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb
|
672
665
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb
|
673
666
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
|
667
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb
|
674
668
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
|
675
669
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb
|
676
670
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb
|
@@ -688,7 +682,6 @@ files:
|
|
688
682
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb
|
689
683
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
|
690
684
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb
|
691
|
-
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update.rb
|
692
685
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb
|
693
686
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb
|
694
687
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb
|
@@ -921,7 +914,9 @@ files:
|
|
921
914
|
- sub/avm-git/lib/avm/git/scms/git/interval.rb
|
922
915
|
- sub/avm-git/lib/avm/git/scms/git/milestones.rb
|
923
916
|
- sub/avm-git/lib/avm/git/scms/git/run_commit.rb
|
917
|
+
- sub/avm-git/lib/avm/git/scms/git_sub_base.rb
|
924
918
|
- sub/avm-git/lib/avm/git/scms/git_subrepo.rb
|
919
|
+
- sub/avm-git/lib/avm/git/scms/git_subtree.rb
|
925
920
|
- sub/avm-git/lib/avm/git/scms/provider.rb
|
926
921
|
- sub/avm-git/lib/avm/git/subrepo_check.rb
|
927
922
|
- sub/avm-git/lib/avm/git/subrepo_check/parent.rb
|
@@ -931,6 +926,8 @@ files:
|
|
931
926
|
- sub/avm-git/lib/avm/git/vendor.rb
|
932
927
|
- sub/avm-git/lib/avm/git/vendor/github.rb
|
933
928
|
- sub/avm-git/lib/avm/git/version.rb
|
929
|
+
- sub/avm-git/locale/en.yml
|
930
|
+
- sub/avm-git/locale/pt-BR.yml
|
934
931
|
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb
|
935
932
|
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out
|
936
933
|
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml
|
@@ -1169,6 +1166,7 @@ files:
|
|
1169
1166
|
- sub/avm/lib/avm/scms/inflector.rb
|
1170
1167
|
- sub/avm/lib/avm/scms/interval.rb
|
1171
1168
|
- sub/avm/lib/avm/scms/null.rb
|
1169
|
+
- sub/avm/lib/avm/scms/null/commit.rb
|
1172
1170
|
- sub/avm/lib/avm/self/docker_image.rb
|
1173
1171
|
- sub/avm/lib/avm/self/instance.rb
|
1174
1172
|
- sub/avm/lib/avm/self/instance/entry_keys.rb
|
@@ -1183,11 +1181,15 @@ files:
|
|
1183
1181
|
- sub/avm/lib/avm/sources/base/configuration.rb
|
1184
1182
|
- sub/avm/lib/avm/sources/base/instance.rb
|
1185
1183
|
- sub/avm/lib/avm/sources/base/locale.rb
|
1184
|
+
- sub/avm/lib/avm/sources/base/organizational.rb
|
1186
1185
|
- sub/avm/lib/avm/sources/base/parent.rb
|
1187
1186
|
- sub/avm/lib/avm/sources/base/stereotype.rb
|
1188
1187
|
- sub/avm/lib/avm/sources/base/subs.rb
|
1189
1188
|
- sub/avm/lib/avm/sources/base/subs_paths.rb
|
1190
1189
|
- sub/avm/lib/avm/sources/base/testing.rb
|
1190
|
+
- sub/avm/lib/avm/sources/base/update.rb
|
1191
|
+
- sub/avm/lib/avm/sources/base/update_sub.rb
|
1192
|
+
- sub/avm/lib/avm/sources/base/version_bump.rb
|
1191
1193
|
- sub/avm/lib/avm/sources/configuration.rb
|
1192
1194
|
- sub/avm/lib/avm/sources/configuration/rubocop.rb
|
1193
1195
|
- sub/avm/lib/avm/sources/runner.rb
|
@@ -1,35 +0,0 @@
|
|
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
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/core_ext'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module EacRubyBase1
|
7
|
-
module Sources
|
8
|
-
class Update
|
9
|
-
require_sub __FILE__
|
10
|
-
enable_simple_cache
|
11
|
-
enable_speaker
|
12
|
-
common_constructor :source do
|
13
|
-
perform
|
14
|
-
end
|
15
|
-
|
16
|
-
def bundle_update
|
17
|
-
infom 'Running "bundle update && bundle install"...'
|
18
|
-
source.bundle_update.execute!
|
19
|
-
end
|
20
|
-
|
21
|
-
protected
|
22
|
-
|
23
|
-
def perform
|
24
|
-
update_gemfile_lock
|
25
|
-
update_subs
|
26
|
-
end
|
27
|
-
|
28
|
-
def update_gemfile_lock
|
29
|
-
source.scm.commit_if_change(-> { update_gemfile_lock_commit_message }) do
|
30
|
-
bundle_update
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def update_gemfile_lock_commit_message
|
35
|
-
i18n_translate(__method__, __locale: source.locale)
|
36
|
-
end
|
37
|
-
|
38
|
-
def update_subs
|
39
|
-
source.subs.each do |sub|
|
40
|
-
::Avm::EacRubyBase1::Sources::Update::SubUpdate.new(self, sub)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|