eac_tools 0.77.0 → 0.77.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/eac_tools/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/rubocop.rb +28 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +72 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +6 -3
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
- metadata +6 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f517b6d6540d86de71eb838d6bb96479c1991ec194ca1d60b420e3d7318f7f4
|
4
|
+
data.tar.gz: be11c1bbf741c6c9a39e6108c312f9cc2d11a75e924da7b59be2a5ffb4c569e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8108ddd620e8ca590551490a742d1f3bbf35090f3df2e5b11bcbff00c6c8625720468f13dd710a097e38cb815e5f012c2d93759d8facc8e62a82defdfba5ba
|
7
|
+
data.tar.gz: f8ef025927b82d16f5ab1f9ae34f2e60d648923a9a748fb93c466d8846523204a53a0f8344c47303c9c1bd5caaaa98b4c5c8bb129f1fe5962088cef5a839eba9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.77.
|
4
|
+
eac_tools (0.77.1)
|
5
5
|
avm (~> 0.79)
|
6
6
|
avm-eac_asciidoctor_base0 (~> 0.19)
|
7
7
|
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
@@ -13,7 +13,7 @@ PATH
|
|
13
13
|
avm-eac_rails_base1 (~> 0.9, >= 0.9.3)
|
14
14
|
avm-eac_redmine_base0 (~> 0.21)
|
15
15
|
avm-eac_redmine_plugin_base0 (~> 0.4)
|
16
|
-
avm-eac_ruby_base1 (~> 0.
|
16
|
+
avm-eac_ruby_base1 (~> 0.32)
|
17
17
|
avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
|
18
18
|
avm-eac_wordpress_base0 (~> 0.3, >= 0.3.1)
|
19
19
|
avm-git (~> 0.13, >= 0.13.4)
|
@@ -106,12 +106,12 @@ PATH
|
|
106
106
|
PATH
|
107
107
|
remote: sub/avm-eac_ruby_base1
|
108
108
|
specs:
|
109
|
-
avm-eac_ruby_base1 (0.
|
109
|
+
avm-eac_ruby_base1 (0.32.0)
|
110
110
|
aranha-parsers (~> 0.21)
|
111
111
|
avm (~> 0.79)
|
112
|
-
avm-eac_generic_base0 (~> 0.12)
|
112
|
+
avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
|
113
113
|
eac_envs-http (~> 0.4, >= 0.4.1)
|
114
|
-
eac_ruby_utils (~> 0.119, >= 0.119.
|
114
|
+
eac_ruby_utils (~> 0.119, >= 0.119.2)
|
115
115
|
|
116
116
|
PATH
|
117
117
|
remote: sub/avm-eac_ubuntu_base0
|
data/lib/eac_tools/version.rb
CHANGED
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.add_dependency 'aranha-parsers', '~> 0.21'
|
16
16
|
s.add_dependency 'avm', '~> 0.79'
|
17
|
-
s.add_dependency 'avm-eac_generic_base0', '~> 0.12'
|
17
|
+
s.add_dependency 'avm-eac_generic_base0', '~> 0.12', '>= 0.12.1'
|
18
18
|
s.add_dependency 'eac_envs-http', '~> 0.4', '>= 0.4.1'
|
19
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.
|
19
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
|
20
20
|
|
21
21
|
s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
|
22
22
|
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.6.0'
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_generic_base0/sources/base'
|
4
|
+
require 'avm/eac_ruby_base1/sources/base/bundle_command'
|
5
|
+
require 'avm/eac_ruby_base1/sources/bundle_update'
|
6
|
+
require 'eac_ruby_utils/core_ext'
|
7
|
+
|
8
|
+
module Avm
|
9
|
+
module EacRubyBase1
|
10
|
+
module Sources
|
11
|
+
class Base < ::Avm::EacGenericBase0::Sources::Base
|
12
|
+
module Rubocop
|
13
|
+
RUBOCOP_CONFIG_SUBPATH = '.rubocop.yml'
|
14
|
+
|
15
|
+
# @return [Avm::EacRubyBase1::Sources::Base::RubocopCommand]
|
16
|
+
def rubocop_command
|
17
|
+
::Avm::EacRubyBase1::Sources::Base::RubocopCommand.new(self)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Pathname]
|
21
|
+
def rubocop_config_path
|
22
|
+
path.join(RUBOCOP_CONFIG_SUBPATH)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,72 @@
|
|
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
|
+
class RubocopCommand
|
11
|
+
acts_as_immutable
|
12
|
+
immutable_accessor :ignore_parent_exclusion, :autocorrect, :autocorrect_all,
|
13
|
+
type: :boolean
|
14
|
+
immutable_accessor :file, type: :array
|
15
|
+
common_constructor :source
|
16
|
+
delegate :execute, :execute!, :system, :system!, to: :bundle_command
|
17
|
+
|
18
|
+
# @return [Enumerable]
|
19
|
+
def immutable_constructor_args
|
20
|
+
[source]
|
21
|
+
end
|
22
|
+
|
23
|
+
# @return [Gemspec::Version]
|
24
|
+
def version
|
25
|
+
@version ||= ::Gemspec::Version.new(
|
26
|
+
source.bundle('exec', 'rubocop', '--version').execute!
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
# @return [String]
|
33
|
+
def autocorrect_option
|
34
|
+
'--auto-correct'
|
35
|
+
end
|
36
|
+
|
37
|
+
# @return [String]
|
38
|
+
def autocorrect_all_option
|
39
|
+
'--auto-correct-all'
|
40
|
+
end
|
41
|
+
|
42
|
+
# @return [String]
|
43
|
+
def ignore_parent_exclusion_option
|
44
|
+
'--ignore-parent-exclusion'
|
45
|
+
end
|
46
|
+
|
47
|
+
# @return [Avm::EacRubyBase1::Sources::Base::BundleCommand]
|
48
|
+
def bundle_command
|
49
|
+
source.bundle(*bundle_command_args)
|
50
|
+
end
|
51
|
+
|
52
|
+
# @return [Array<String>]
|
53
|
+
def bundle_command_args
|
54
|
+
%w[exec rubocop] + rubocop_command_args
|
55
|
+
end
|
56
|
+
|
57
|
+
# @return [Array<String>]
|
58
|
+
def rubocop_command_args
|
59
|
+
r = ['--config', source.rubocop_config_path]
|
60
|
+
r << ignore_parent_exclusion_option if ignore_parent_exclusion?
|
61
|
+
if autocorrect_all?
|
62
|
+
r << autocorrect_all_option
|
63
|
+
elsif autocorrect?
|
64
|
+
r << autocorrect_option
|
65
|
+
end
|
66
|
+
r + files
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb
CHANGED
@@ -24,6 +24,11 @@ module Avm
|
|
24
24
|
__locale: source.locale)
|
25
25
|
end
|
26
26
|
|
27
|
+
def format_gemspec
|
28
|
+
source.rubocop_command.ignore_parent_exclusion(true).autocorrect(true)
|
29
|
+
.file(source.gemspec_path).system!
|
30
|
+
end
|
31
|
+
|
27
32
|
# @return [Array<String>]
|
28
33
|
def requirements_list_uncached
|
29
34
|
::Avm::EacRubyBase1::PreferredVersionRequirements.new(
|
@@ -48,9 +53,7 @@ module Avm
|
|
48
53
|
def update_gemspec
|
49
54
|
gemspec.dependency(gem_name).version_specs = requirements_list
|
50
55
|
gemspec.write(source.gemspec_path)
|
51
|
-
|
52
|
-
source.path, ['-a', '--ignore-parent-exclusion', source.gemspec_path]
|
53
|
-
).run
|
56
|
+
format_gemspec
|
54
57
|
end
|
55
58
|
end
|
56
59
|
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.77.
|
4
|
+
version: 0.77.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: 2023-10-
|
11
|
+
date: 2023-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -212,20 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: '0.
|
216
|
-
- - ">="
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
version: 0.31.2
|
215
|
+
version: '0.32'
|
219
216
|
type: :runtime
|
220
217
|
prerelease: false
|
221
218
|
version_requirements: !ruby/object:Gem::Requirement
|
222
219
|
requirements:
|
223
220
|
- - "~>"
|
224
221
|
- !ruby/object:Gem::Version
|
225
|
-
version: '0.
|
226
|
-
- - ">="
|
227
|
-
- !ruby/object:Gem::Version
|
228
|
-
version: 0.31.2
|
222
|
+
version: '0.32'
|
229
223
|
- !ruby/object:Gem::Dependency
|
230
224
|
name: avm-eac_webapp_base0
|
231
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -714,6 +708,8 @@ files:
|
|
714
708
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
|
715
709
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb
|
716
710
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb
|
711
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb
|
712
|
+
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb
|
717
713
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
|
718
714
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb
|
719
715
|
- sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb
|