eac_tools 0.53.0 → 0.55.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 +28 -28
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm/avm.gemspec +1 -1
- data/sub/avm/lib/avm/scms/auto_commit/file_resource_name.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/auto_commit/for_file.rb +31 -0
- data/sub/avm/lib/avm/sources/auto_commit.rb +11 -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/subs.rb +5 -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/auto_commit.rb +2 -2
- 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
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/child_of.rb +16 -0
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/child_of_spec.rb +26 -0
- metadata +26 -26
- 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
@@ -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.62'
|
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'
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
require 'eac_cli/core_ext'
|
4
4
|
require 'avm/file_formats/search_formatter'
|
5
|
-
require 'avm/scms/auto_commit/for_file'
|
6
5
|
require 'avm/scms/auto_commit/rules'
|
6
|
+
require 'avm/sources/auto_commit/for_file'
|
7
7
|
|
8
8
|
module Avm
|
9
9
|
module Tools
|
@@ -21,7 +21,7 @@ module Avm
|
|
21
21
|
def run
|
22
22
|
format_files
|
23
23
|
files.each do |file|
|
24
|
-
::Avm::
|
24
|
+
::Avm::Sources::AutoCommit::ForFile.new(runner_context.call(:source), file, rules)
|
25
25
|
.run
|
26
26
|
end
|
27
27
|
end
|
@@ -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!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
|
5
|
+
class Pathname
|
6
|
+
# Indicate if +self+ is child of +parent_path+.
|
7
|
+
#
|
8
|
+
# @return [Boolean]
|
9
|
+
def child_of?(parent_path)
|
10
|
+
self_parts = expand_path.each_filename.to_a
|
11
|
+
parent_parts = parent_path.expand_path.each_filename.to_a
|
12
|
+
return false if self_parts == parent_parts
|
13
|
+
|
14
|
+
parent_parts.zip(self_parts).all? { |x, y| x == y }
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/patches/pathname/child_of'
|
4
|
+
|
5
|
+
RSpec.describe ::Pathname do
|
6
|
+
describe 'child_of?' do
|
7
|
+
[
|
8
|
+
['/foo/bar/baz', '/foo/bar', true],
|
9
|
+
['/foo/../foo/bar/../bar/baz', '/foo/bar', true],
|
10
|
+
['/foo/bar/baz', '/foo/../foo/bar/../bar', true],
|
11
|
+
['/foo/bar/baz', '/boink', false],
|
12
|
+
['/foo/bar/../not_bar/baz', '/foo/bar', false],
|
13
|
+
['/foo/bar/../bar_not/baz', '/foo/bar', false],
|
14
|
+
['/foo', '/foo/bar', false],
|
15
|
+
['/foo', '/bar', false],
|
16
|
+
['/foo', '/foo', false]
|
17
|
+
].each do |test_values|
|
18
|
+
child_path, parent_path, expected_value = test_values
|
19
|
+
context "when child=\"#{child_path}\" and parent=\"#{parent_path}\"" do
|
20
|
+
it do
|
21
|
+
expect(Pathname(child_path).child_of?(Pathname(parent_path))).to be(expected_value)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
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.55.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-20 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.62'
|
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.62'
|
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,34 +236,28 @@ dependencies:
|
|
242
236
|
requirements:
|
243
237
|
- - "~>"
|
244
238
|
- !ruby/object:Gem::Version
|
245
|
-
version: '0.
|
239
|
+
version: '0.145'
|
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.145'
|
253
247
|
- !ruby/object:Gem::Dependency
|
254
248
|
name: eac_ruby_utils
|
255
249
|
requirement: !ruby/object:Gem::Requirement
|
256
250
|
requirements:
|
257
251
|
- - "~>"
|
258
252
|
- !ruby/object:Gem::Version
|
259
|
-
version: '0.
|
260
|
-
- - ">="
|
261
|
-
- !ruby/object:Gem::Version
|
262
|
-
version: 0.110.1
|
253
|
+
version: '0.111'
|
263
254
|
type: :runtime
|
264
255
|
prerelease: false
|
265
256
|
version_requirements: !ruby/object:Gem::Requirement
|
266
257
|
requirements:
|
267
258
|
- - "~>"
|
268
259
|
- !ruby/object:Gem::Version
|
269
|
-
version: '0.
|
270
|
-
- - ">="
|
271
|
-
- !ruby/object:Gem::Version
|
272
|
-
version: 0.110.1
|
260
|
+
version: '0.111'
|
273
261
|
- !ruby/object:Gem::Dependency
|
274
262
|
name: eac_ruby_gem_support
|
275
263
|
requirement: !ruby/object:Gem::Requirement
|
@@ -392,7 +380,6 @@ files:
|
|
392
380
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
|
393
381
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
|
394
382
|
- 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
383
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/docker.rb
|
397
384
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources/docker/runner.rb
|
398
385
|
- sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb
|
@@ -671,6 +658,7 @@ files:
|
|
671
658
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb
|
672
659
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb
|
673
660
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
|
661
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb
|
674
662
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
|
675
663
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb
|
676
664
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb
|
@@ -688,7 +676,6 @@ files:
|
|
688
676
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb
|
689
677
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
|
690
678
|
- 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
679
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb
|
693
680
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb
|
694
681
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb
|
@@ -921,7 +908,9 @@ files:
|
|
921
908
|
- sub/avm-git/lib/avm/git/scms/git/interval.rb
|
922
909
|
- sub/avm-git/lib/avm/git/scms/git/milestones.rb
|
923
910
|
- sub/avm-git/lib/avm/git/scms/git/run_commit.rb
|
911
|
+
- sub/avm-git/lib/avm/git/scms/git_sub_base.rb
|
924
912
|
- sub/avm-git/lib/avm/git/scms/git_subrepo.rb
|
913
|
+
- sub/avm-git/lib/avm/git/scms/git_subtree.rb
|
925
914
|
- sub/avm-git/lib/avm/git/scms/provider.rb
|
926
915
|
- sub/avm-git/lib/avm/git/subrepo_check.rb
|
927
916
|
- sub/avm-git/lib/avm/git/subrepo_check/parent.rb
|
@@ -931,6 +920,8 @@ files:
|
|
931
920
|
- sub/avm-git/lib/avm/git/vendor.rb
|
932
921
|
- sub/avm-git/lib/avm/git/vendor/github.rb
|
933
922
|
- sub/avm-git/lib/avm/git/version.rb
|
923
|
+
- sub/avm-git/locale/en.yml
|
924
|
+
- sub/avm-git/locale/pt-BR.yml
|
934
925
|
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec.rb
|
935
926
|
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.source.out
|
936
927
|
- sub/avm-git/spec/lib/avm/git/commit/diff_tree_line_spec_files/add.target.yaml
|
@@ -1169,6 +1160,7 @@ files:
|
|
1169
1160
|
- sub/avm/lib/avm/scms/inflector.rb
|
1170
1161
|
- sub/avm/lib/avm/scms/interval.rb
|
1171
1162
|
- sub/avm/lib/avm/scms/null.rb
|
1163
|
+
- sub/avm/lib/avm/scms/null/commit.rb
|
1172
1164
|
- sub/avm/lib/avm/self/docker_image.rb
|
1173
1165
|
- sub/avm/lib/avm/self/instance.rb
|
1174
1166
|
- sub/avm/lib/avm/self/instance/entry_keys.rb
|
@@ -1178,16 +1170,22 @@ files:
|
|
1178
1170
|
- sub/avm/lib/avm/source_generators/option_list.rb
|
1179
1171
|
- sub/avm/lib/avm/source_generators/runner.rb
|
1180
1172
|
- sub/avm/lib/avm/sources.rb
|
1173
|
+
- sub/avm/lib/avm/sources/auto_commit.rb
|
1174
|
+
- sub/avm/lib/avm/sources/auto_commit/for_file.rb
|
1181
1175
|
- sub/avm/lib/avm/sources/base.rb
|
1182
1176
|
- sub/avm/lib/avm/sources/base/application.rb
|
1183
1177
|
- sub/avm/lib/avm/sources/base/configuration.rb
|
1184
1178
|
- sub/avm/lib/avm/sources/base/instance.rb
|
1185
1179
|
- sub/avm/lib/avm/sources/base/locale.rb
|
1180
|
+
- sub/avm/lib/avm/sources/base/organizational.rb
|
1186
1181
|
- sub/avm/lib/avm/sources/base/parent.rb
|
1187
1182
|
- sub/avm/lib/avm/sources/base/stereotype.rb
|
1188
1183
|
- sub/avm/lib/avm/sources/base/subs.rb
|
1189
1184
|
- sub/avm/lib/avm/sources/base/subs_paths.rb
|
1190
1185
|
- sub/avm/lib/avm/sources/base/testing.rb
|
1186
|
+
- sub/avm/lib/avm/sources/base/update.rb
|
1187
|
+
- sub/avm/lib/avm/sources/base/update_sub.rb
|
1188
|
+
- sub/avm/lib/avm/sources/base/version_bump.rb
|
1191
1189
|
- sub/avm/lib/avm/sources/configuration.rb
|
1192
1190
|
- sub/avm/lib/avm/sources/configuration/rubocop.rb
|
1193
1191
|
- sub/avm/lib/avm/sources/runner.rb
|
@@ -1759,6 +1757,7 @@ files:
|
|
1759
1757
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/assert_parent.rb
|
1760
1758
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_noext.rb
|
1761
1759
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
|
1760
|
+
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/child_of.rb
|
1762
1761
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/if_exist.rb
|
1763
1762
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb
|
1764
1763
|
- sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb
|
@@ -1846,6 +1845,7 @@ files:
|
|
1846
1845
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/assert_parent_spec.rb
|
1847
1846
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_noext_spec.rb
|
1848
1847
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
|
1848
|
+
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/child_of_spec.rb
|
1849
1849
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb
|
1850
1850
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb
|
1851
1851
|
- sub/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.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
|