eac_tools 0.21.0 → 0.22.0

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: 107915a05b1fbd0d59621404605a2f620b5e276cdd06decb8a57198e2beb901f
4
- data.tar.gz: 654a27855b25bdf9174a24339f89e2d5a47d4e8b5651cce205f831cec4b6e3f1
3
+ metadata.gz: 04cbda8d8b53185b46e806e22d26098771f627a4574eb028e9836905e700a27d
4
+ data.tar.gz: 7862b02bf94a320aee41d7ef63052b2049484a5f1540392268b41402b4eb6ba4
5
5
  SHA512:
6
- metadata.gz: e02293121107031d6beb1017e9a7213063a784ea36b86f469bdf0ab4b57cdef7688cc0f387eea857d69b545a5e2b7906a695b99628ce625b1e2041bfcf01dc76
7
- data.tar.gz: 262e1a80690e74215af7ba055fbf78773b3e2e007b90e741b9e2fab8fabcefec60b1cc386601e5937bce9511f88004fb8ed6066739f2418c86e849446a078073
6
+ metadata.gz: d51e79b98e8a886236b82b1cafbbe7e3f817cf4dcc18bce329f19d4d5a176a2ae10c78ed5ca871d6de8e79b31244687bccfd0a4fdca71bf88e9e806aa6faab28
7
+ data.tar.gz: 42d8f5266e63f7dac0bf2f952bea10d9ad342fd223c1f41ea7984aeb3f37bce37dc5389bd00da9411607badf39bfed74f24b3fac04dd4bd6a3b3b4a2b55c4736
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.21.0)
5
- avm (~> 0.35)
4
+ eac_tools (0.22.0)
5
+ avm (~> 0.35, >= 0.35.1)
6
6
  avm-eac_asciidoctor_base0 (~> 0.4)
7
7
  avm-eac_generic_base0 (~> 0.5)
8
8
  avm-eac_latex_base0 (~> 0.1, >= 0.1.1)
@@ -10,10 +10,10 @@ PATH
10
10
  avm-eac_rails_base1 (~> 0.4, >= 0.4.2)
11
11
  avm-eac_redmine_base0 (~> 0.11)
12
12
  avm-eac_redmine_plugin_base0 (~> 0.3)
13
- avm-eac_ruby_base1 (~> 0.18)
13
+ avm-eac_ruby_base1 (~> 0.19)
14
14
  avm-eac_webapp_base0 (~> 0.3, >= 0.3.1)
15
15
  avm-eac_wordpress_base0 (~> 0.1, >= 0.1.1)
16
- avm-tools (~> 0.132)
16
+ avm-tools (~> 0.132, >= 0.132.1)
17
17
  eac_ruby_utils (~> 0.98)
18
18
 
19
19
  PATH
@@ -80,10 +80,10 @@ PATH
80
80
  PATH
81
81
  remote: sub/avm-eac_ruby_base1
82
82
  specs:
83
- avm-eac_ruby_base1 (0.18.0)
84
- avm (~> 0.34)
85
- avm-eac_generic_base0 (~> 0.2)
86
- eac_ruby_utils (~> 0.95, >= 0.95.1)
83
+ avm-eac_ruby_base1 (0.19.0)
84
+ avm (~> 0.35, >= 0.35.1)
85
+ avm-eac_generic_base0 (~> 0.5)
86
+ eac_ruby_utils (~> 0.98)
87
87
 
88
88
  PATH
89
89
  remote: sub/avm-eac_webapp_base0
@@ -106,33 +106,33 @@ PATH
106
106
  PATH
107
107
  remote: sub/avm-tools
108
108
  specs:
109
- avm-tools (0.132.0)
110
- aranha-parsers (~> 0.4)
111
- avm (~> 0.34)
112
- avm-eac_ruby_base1 (~> 0.8)
109
+ avm-tools (0.132.1)
110
+ aranha-parsers (~> 0.14, >= 0.14.1)
111
+ avm (~> 0.35, >= 0.35.1)
112
+ avm-eac_ruby_base1 (~> 0.19)
113
113
  avm-eac_ubuntu_base0 (~> 0.3)
114
- avm-files (~> 0.1)
115
- avm-git (~> 0.3, >= 0.3.1)
116
- clipboard (~> 1.3, >= 1.3.3)
117
- curb (~> 0.9.10)
114
+ avm-files (~> 0.3, >= 0.3.2)
115
+ avm-git (~> 0.4)
116
+ clipboard (~> 1.3, >= 1.3.6)
117
+ curb (~> 0.9, >= 0.9.11)
118
118
  eac_git (~> 0.12, >= 0.12.1)
119
- eac_ruby_base0 (~> 0.16, >= 0.16.4)
119
+ eac_ruby_base0 (~> 0.16, >= 0.16.6)
120
120
  eac_templates (~> 0.3, >= 0.3.1)
121
- git (~> 1.7)
122
- ruby-progressbar (~> 1.10, >= 1.10.1)
121
+ git (~> 1.11)
122
+ ruby-progressbar (~> 1.11)
123
123
 
124
124
  PATH
125
125
  remote: sub/avm
126
126
  specs:
127
- avm (0.35.0)
128
- eac_cli (~> 0.27, >= 0.27.6)
127
+ avm (0.35.1)
128
+ eac_cli (~> 0.27, >= 0.27.8)
129
129
  eac_config (~> 0.10)
130
- eac_docker (~> 0.3)
131
- eac_git (~> 0.6)
132
- eac_ruby_utils (~> 0.97)
133
- eac_templates (~> 0.1, >= 0.1.1)
130
+ eac_docker (~> 0.4, >= 0.4.2)
131
+ eac_git (~> 0.12, >= 0.12.1)
132
+ eac_ruby_utils (~> 0.98)
133
+ eac_templates (~> 0.3, >= 0.3.1)
134
134
  filesize (~> 0.2)
135
- htmlbeautifier (~> 1.3, >= 1.3.1)
135
+ htmlbeautifier (~> 1.4, >= 1.4.2)
136
136
  minitar (~> 0.9)
137
137
 
138
138
  PATH
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.21.0'
4
+ VERSION = '0.22.0'
5
5
  end
data/sub/avm/avm.gemspec CHANGED
@@ -12,14 +12,14 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*']
14
14
 
15
- s.add_dependency 'eac_cli', '~> 0.27', '>= 0.27.6'
15
+ s.add_dependency 'eac_cli', '~> 0.27', '>= 0.27.8'
16
16
  s.add_dependency 'eac_config', '~> 0.10'
17
- s.add_dependency 'eac_docker', '~> 0.3'
18
- s.add_dependency 'eac_git', '~> 0.6'
19
- s.add_dependency 'eac_ruby_utils', '~> 0.97'
20
- s.add_dependency 'eac_templates', '~> 0.1', '>= 0.1.1'
17
+ s.add_dependency 'eac_docker', '~> 0.4', '>= 0.4.2'
18
+ s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.1'
19
+ s.add_dependency 'eac_ruby_utils', '~> 0.98'
20
+ s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.1'
21
21
  s.add_dependency 'filesize', '~> 0.2'
22
- s.add_dependency 'htmlbeautifier', '~> 1.3', '>= 1.3.1'
22
+ s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.2'
23
23
  s.add_dependency 'minitar', '~> 0.9'
24
24
 
25
25
  s.add_development_dependency 'aranha-parsers', '~> 0.14', '~> 0.14.1'
@@ -7,10 +7,12 @@ module Avm
7
7
  module Instances
8
8
  class Runner < ::Avm::Runners::Base
9
9
  class << self
10
- def instance_class
11
- ::Avm.const_get(stereotype_name).const_get('Instance')
10
+ def application_stereotype
11
+ ::Avm::Registry.application_stereotypes.detect(stereotype_name)
12
12
  end
13
13
 
14
+ delegate :instance_class, to: :application_stereotype
15
+
14
16
  def stereotype_module
15
17
  ::Avm.const_get(stereotype_name)
16
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.35.0'
4
+ VERSION = '0.35.1'
5
5
  end
@@ -5,9 +5,7 @@ require 'eac_ruby_utils/core_ext'
5
5
  module Avm
6
6
  module With
7
7
  module ApplicationStereotype
8
- common_concern do
9
- include ClassMethods
10
- end
8
+ common_concern
11
9
 
12
10
  module ClassMethods
13
11
  # @return [Avm::ApplicationStereotype::Base]
@@ -12,9 +12,9 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.34'
16
- s.add_dependency 'avm-eac_generic_base0', '~> 0.2'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.95', '>= 0.95.1'
15
+ s.add_dependency 'avm', '~> 0.35', '>= 0.35.1'
16
+ s.add_dependency 'avm-eac_generic_base0', '~> 0.5'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.98'
18
18
 
19
19
  s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
20
20
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'avm/eac_generic_base0/sources/base'
4
4
  require 'avm/eac_ruby_base1/sources/base/bundle_command'
5
+ require 'avm/eac_ruby_base1/sources/bundle_update'
5
6
  require 'eac_ruby_utils/core_ext'
6
7
 
7
8
  module Avm
@@ -18,6 +19,11 @@ module Avm
18
19
  .envvar_gemfile
19
20
  end
20
21
 
22
+ # @return [Avm::EacRubyBase1::Sources::BundleUpdate]
23
+ def bundle_update
24
+ ::Avm::EacRubyBase1::Sources::BundleUpdate.new(self)
25
+ end
26
+
21
27
  # @return [String]
22
28
  def configured_gemfile_path
23
29
  configuration_entry(CONFIGURED_GEMFILE_PATH_ENTRY_KEY).value
@@ -0,0 +1,23 @@
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 BundleUpdate
9
+ common_constructor :source
10
+ delegate :bundle, to: :source
11
+
12
+ def execute!
13
+ bundle('update').execute! + bundle('install').execute!
14
+ end
15
+
16
+ def system!
17
+ bundle('update').system!
18
+ bundle('install').system!
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -9,7 +9,7 @@ module Avm
9
9
  module Sources
10
10
  module Runners
11
11
  class UpdateDependenciesRequirements
12
- runner_with :help, :subcommands do
12
+ runner_with :help do
13
13
  bool_opt '-a', '--all'
14
14
  pos_arg :gem_name, repeat: true, optional: true
15
15
  end
@@ -14,10 +14,8 @@ module Avm
14
14
  end
15
15
 
16
16
  def bundle_update
17
- infom 'Running "bundle update"...'
18
- source.bundle('update').execute!
19
- infom 'Running "bundle install"...'
20
- source.bundle('install').execute!
17
+ infom 'Running "bundle update && bundle install"...'
18
+ source.bundle_update.execute!
21
19
  end
22
20
 
23
21
  protected
@@ -35,9 +35,16 @@ module Avm
35
35
  ::Avm::EacRubyBase1::Rubygems::Gemspec.from_file(source.gemspec_path)
36
36
  end
37
37
 
38
+ def parent_bundle
39
+ return unless source.parent.if_present { |v| v.is_a?(::Avm::EacRubyBase1::Sources::Base) }
40
+
41
+ source.parent.bundle_update.execute!
42
+ end
43
+
38
44
  def update_code
39
45
  update_gemspec
40
46
  source.bundle.system!
47
+ parent_bundle
41
48
  end
42
49
 
43
50
  def update_gemspec
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.18.0'
5
+ VERSION = '0.19.0'
6
6
  end
7
7
  end
@@ -14,19 +14,19 @@ Gem::Specification.new do |s|
14
14
  s.bindir = 'exe'
15
15
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
16
16
 
17
- s.add_dependency 'aranha-parsers', '~> 0.4'
18
- s.add_dependency 'avm', '~> 0.34'
19
- s.add_dependency 'avm-eac_ruby_base1', '~> 0.8'
17
+ s.add_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
18
+ s.add_dependency 'avm', '~> 0.35', '>= 0.35.1'
19
+ s.add_dependency 'avm-eac_ruby_base1', '~> 0.19'
20
20
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
21
- s.add_dependency 'avm-files', '~> 0.1'
22
- s.add_dependency 'avm-git', '~> 0.3', '>= 0.3.1'
23
- s.add_dependency 'clipboard', '~> 1.3', '>= 1.3.3'
24
- s.add_dependency 'curb', '~> 0.9.10'
21
+ s.add_dependency 'avm-files', '~> 0.3', '>= 0.3.2'
22
+ s.add_dependency 'avm-git', '~> 0.4'
23
+ s.add_dependency 'clipboard', '~> 1.3', '>= 1.3.6'
24
+ s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
25
25
  s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.1'
26
- s.add_dependency 'eac_ruby_base0', '~> 0.16', '>= 0.16.4'
26
+ s.add_dependency 'eac_ruby_base0', '~> 0.16', '>= 0.16.6'
27
27
  s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.1'
28
- s.add_dependency 'git', '~> 1.7'
29
- s.add_dependency 'ruby-progressbar', '~> 1.10', '>= 1.10.1'
28
+ s.add_dependency 'git', '~> 1.11'
29
+ s.add_dependency 'ruby-progressbar', '~> 1.11'
30
30
 
31
31
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
32
32
  end
@@ -22,7 +22,9 @@ module Avm
22
22
  private
23
23
 
24
24
  def instance_uncached
25
- ::Avm::Registry.instances.detect(parsed.instance_id)
25
+ parsed.instance_id.if_present do |v|
26
+ ::Avm::Registry.instances.detect(v)
27
+ end
26
28
  end
27
29
  end
28
30
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.132.0'
5
+ VERSION = '0.132.1'
6
6
  end
7
7
  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.21.0
4
+ version: 0.22.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: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.35'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.35.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.35'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.35.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: avm-eac_asciidoctor_base0
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -146,14 +152,14 @@ dependencies:
146
152
  requirements:
147
153
  - - "~>"
148
154
  - !ruby/object:Gem::Version
149
- version: '0.18'
155
+ version: '0.19'
150
156
  type: :runtime
151
157
  prerelease: false
152
158
  version_requirements: !ruby/object:Gem::Requirement
153
159
  requirements:
154
160
  - - "~>"
155
161
  - !ruby/object:Gem::Version
156
- version: '0.18'
162
+ version: '0.19'
157
163
  - !ruby/object:Gem::Dependency
158
164
  name: avm-eac_webapp_base0
159
165
  requirement: !ruby/object:Gem::Requirement
@@ -201,6 +207,9 @@ dependencies:
201
207
  - - "~>"
202
208
  - !ruby/object:Gem::Version
203
209
  version: '0.132'
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: 0.132.1
204
213
  type: :runtime
205
214
  prerelease: false
206
215
  version_requirements: !ruby/object:Gem::Requirement
@@ -208,6 +217,9 @@ dependencies:
208
217
  - - "~>"
209
218
  - !ruby/object:Gem::Version
210
219
  version: '0.132'
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 0.132.1
211
223
  - !ruby/object:Gem::Dependency
212
224
  name: eac_ruby_utils
213
225
  requirement: !ruby/object:Gem::Requirement
@@ -465,6 +477,7 @@ files:
465
477
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb
466
478
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb
467
479
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb
480
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb
468
481
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb
469
482
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb
470
483
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb