eac_tools 0.28.0 → 0.29.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: 7722b0da596d9938d82c6644ba890cb4a652ac1a59c1e5e076cf777755d62295
4
- data.tar.gz: 4186335c28edaa415fdede3bc509d5f1f435ef0156e199d2f8c7a4c8518733fb
3
+ metadata.gz: 702b93f483faabce748c237dafa2c8cb08d1f1eb4094a93f09166e4e0457c55e
4
+ data.tar.gz: cd78bbcf11c9da7593068a6667fb2acfdc6c09fa37a6ba7acabd61602915e378
5
5
  SHA512:
6
- metadata.gz: '0697f2a0047227a89cd7eb78a46a4dc42fda37bb8e73ee8574dd1c02eaa0578dd2e90732dd684ff296512f439184cff8b4e6cb8e5b94932e9fa21cb4c4a0138e'
7
- data.tar.gz: 2d8baec6a15bf0bccb580f8d60ec1a38213cd63db00366f40c6a827bc162f6e7ce113e8a48312f73428ee68c45e0e4f6759f9858d2045c005ca652b9dac41cae
6
+ metadata.gz: 87b38acdc3473f7c62ef5bbf64353fc83daca80c80e9dc8d88ca0d1ddb2225584e57ca81c4bf5a2f9d95abe59ee470da41fb1fc0ac16ff973c7f2e6520d95eb1
7
+ data.tar.gz: 30edd04c05f07e3d1616321ec2685dc0b00b25d3c165fbbf4fac6c109dc030fc2a7293f084d8229a4b8349e7ed1a8fb10e0ec04e66f00462a1a760ba4ce9ea6f
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.28.0)
5
- avm (~> 0.42)
4
+ eac_tools (0.29.0)
5
+ avm (~> 0.43)
6
6
  avm-eac_asciidoctor_base0 (~> 0.7)
7
7
  avm-eac_generic_base0 (~> 0.5)
8
8
  avm-eac_latex_base0 (~> 0.2)
@@ -11,10 +11,10 @@ PATH
11
11
  avm-eac_redmine_base0 (~> 0.14)
12
12
  avm-eac_redmine_plugin_base0 (~> 0.3)
13
13
  avm-eac_ruby_base1 (~> 0.20, >= 0.20.1)
14
- avm-eac_webapp_base0 (~> 0.7)
14
+ avm-eac_webapp_base0 (~> 0.8)
15
15
  avm-eac_wordpress_base0 (~> 0.2)
16
16
  avm-tools (~> 0.136)
17
- eac_ruby_utils (~> 0.102, >= 0.102.1)
17
+ eac_ruby_utils (~> 0.103)
18
18
 
19
19
  PATH
20
20
  remote: sub/avm-eac_asciidoctor_base0
@@ -88,12 +88,12 @@ PATH
88
88
  PATH
89
89
  remote: sub/avm-eac_webapp_base0
90
90
  specs:
91
- avm-eac_webapp_base0 (0.7.0)
92
- avm (~> 0.41, >= 0.41.1)
91
+ avm-eac_webapp_base0 (0.8.0)
92
+ avm (~> 0.42)
93
93
  avm-eac_generic_base0 (~> 0.5)
94
94
  avm-eac_postgresql_base0 (~> 0.2)
95
95
  avm-eac_ubuntu_base0 (~> 0.3)
96
- eac_ruby_utils (~> 0.102, >= 0.102.1)
96
+ eac_ruby_utils (~> 0.103)
97
97
 
98
98
  PATH
99
99
  remote: sub/avm-eac_wordpress_base0
@@ -124,12 +124,12 @@ PATH
124
124
  PATH
125
125
  remote: sub/avm
126
126
  specs:
127
- avm (0.42.0)
127
+ avm (0.43.0)
128
128
  eac_cli (~> 0.27, >= 0.27.8)
129
129
  eac_config (~> 0.11, >= 0.11.1)
130
130
  eac_docker (~> 0.4, >= 0.4.2)
131
131
  eac_git (~> 0.12, >= 0.12.2)
132
- eac_ruby_utils (~> 0.102, >= 0.102.1)
132
+ eac_ruby_utils (~> 0.103)
133
133
  eac_templates (~> 0.3, >= 0.3.1)
134
134
  filesize (~> 0.2)
135
135
  htmlbeautifier (~> 1.4, >= 1.4.2)
@@ -177,7 +177,7 @@ PATH
177
177
  PATH
178
178
  remote: sub/eac_ruby_utils
179
179
  specs:
180
- eac_ruby_utils (0.102.1)
180
+ eac_ruby_utils (0.103.0)
181
181
  activesupport (>= 4, < 7)
182
182
  addressable (~> 2.8)
183
183
  bundler
@@ -187,7 +187,7 @@ PATH
187
187
  GEM
188
188
  remote: https://rubygems.org/
189
189
  specs:
190
- activesupport (6.1.6.1)
190
+ activesupport (6.1.7)
191
191
  concurrent-ruby (~> 1.0, >= 1.0.2)
192
192
  i18n (>= 1.6, < 2)
193
193
  minitest (>= 5.1)
@@ -195,8 +195,8 @@ GEM
195
195
  zeitwerk (~> 2.3)
196
196
  addressable (2.8.1)
197
197
  public_suffix (>= 2.0.2, < 6.0)
198
- aranha-parsers (0.14.2)
199
- activesupport (~> 6.1.6, >= 6.1.6.1)
198
+ aranha-parsers (0.14.3)
199
+ activesupport (>= 4.0.0)
200
200
  addressable (~> 2.8, >= 2.8.1)
201
201
  curb (~> 0.9, >= 0.9.11)
202
202
  eac_ruby_utils (~> 0.102, >= 0.102.1)
@@ -307,13 +307,13 @@ GEM
307
307
  rspec-mocks (~> 3.11.0)
308
308
  rspec-core (3.11.0)
309
309
  rspec-support (~> 3.11.0)
310
- rspec-expectations (3.11.0)
310
+ rspec-expectations (3.11.1)
311
311
  diff-lcs (>= 1.2.0, < 2.0)
312
312
  rspec-support (~> 3.11.0)
313
313
  rspec-mocks (3.11.1)
314
314
  diff-lcs (>= 1.2.0, < 2.0)
315
315
  rspec-support (~> 3.11.0)
316
- rspec-support (3.11.0)
316
+ rspec-support (3.11.1)
317
317
  rubocop (0.80.1)
318
318
  jaro_winkler (~> 1.5.1)
319
319
  parallel (~> 1.10)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.28.0'
4
+ VERSION = '0.29.0'
5
5
  end
data/sub/avm/avm.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency 'eac_config', '~> 0.11', '>= 0.11.1'
17
17
  s.add_dependency 'eac_docker', '~> 0.4', '>= 0.4.2'
18
18
  s.add_dependency 'eac_git', '~> 0.12', '>= 0.12.2'
19
- s.add_dependency 'eac_ruby_utils', '~> 0.102', '>= 0.102.1'
19
+ s.add_dependency 'eac_ruby_utils', '~> 0.103'
20
20
  s.add_dependency 'eac_templates', '~> 0.3', '>= 0.3.1'
21
21
  s.add_dependency 'filesize', '~> 0.2'
22
22
  s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.2'
@@ -8,7 +8,8 @@ module Avm
8
8
  class Base
9
9
  module AutoValues
10
10
  module Install
11
- (::Avm::Entries::UriBuilder::ENTRIES_FIELDS + %w[data_path groupname]).each do |component|
11
+ (::Avm::Entries::UriBuilder::ENTRIES_FIELDS + %w[data_path email groupname])
12
+ .each do |component|
12
13
  method_suffix = "install_#{component}"
13
14
  define_method "auto_#{method_suffix}" do
14
15
  uri_component_entry_value(
@@ -49,7 +49,7 @@ module Avm
49
49
  admin: URI_FIELDS + %w[api_key],
50
50
  database: URI_FIELDS + %w[id limit name system timeout extra],
51
51
  docker: %w[registry],
52
- install: URI_FIELDS + %w[id data_path groupname],
52
+ install: URI_FIELDS + %w[id data_path email groupname],
53
53
  mailer: {
54
54
  '' => %w[id from reply_to],
55
55
  smtp: URI_FIELDS + %w[address domain authentication openssl_verify_mode starttls_auto tls]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.42.0'
4
+ VERSION = '0.43.0'
5
5
  end
@@ -12,11 +12,11 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.41', '>= 0.41.1'
15
+ s.add_dependency 'avm', '~> 0.42'
16
16
  s.add_dependency 'avm-eac_generic_base0', '~> 0.5'
17
17
  s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2'
18
18
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
19
- s.add_dependency 'eac_ruby_utils', '~> 0.102', '>= 0.102.1'
19
+ s.add_dependency 'eac_ruby_utils', '~> 0.103'
20
20
 
21
21
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
22
22
  end
@@ -8,10 +8,15 @@ require 'eac_templates/core_ext'
8
8
  module Avm
9
9
  module EacWebappBase0
10
10
  class ApacheHost
11
+ APACHE_DIRECTORY_EXTRA_CONFIG_KEY = 'install.apache_directory_extra_config'
11
12
  JOBS = %w[write_available_no_ssl_site enable_no_ssl_site remove_ssl_site reload_apache
12
13
  run_certbot enable_ssl_site reload_apache].freeze
13
14
  include ::Avm::Jobs::Base
14
15
 
16
+ def directory_extra_config
17
+ instance.entry(APACHE_DIRECTORY_EXTRA_CONFIG_KEY).value.if_present { |v| " #{v}\n" }
18
+ end
19
+
15
20
  def no_ssl_site_content
16
21
  ::Avm::EacWebappBase0::ApacheHost
17
22
  .template.child('no_ssl.conf')
@@ -61,7 +66,7 @@ module Avm
61
66
  instance.host_env.command(
62
67
  'sudo', 'certbot', '--apache', '--domain', instance.read_entry('web.hostname'),
63
68
  '--redirect', '--non-interactive', '--agree-tos',
64
- '--email', instance.read_entry('admin.email')
69
+ '--email', instance.install_email
65
70
  ).system!
66
71
  end
67
72
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.7.0'
5
+ VERSION = '0.8.0'
6
6
  end
7
7
  end
@@ -7,5 +7,5 @@
7
7
  Allow from all
8
8
  Options -MultiViews
9
9
  Require all granted
10
- </Directory>
10
+ %%DIRECTORY_EXTRA_CONFIG%% </Directory>
11
11
  </VirtualHost>
@@ -2,7 +2,7 @@
2
2
 
3
3
  class Object
4
4
  def pretty_debug(options = {})
5
- print_debug_title(options)
5
+ print_debug_options(options)
6
6
 
7
7
  STDERR.write(pretty_inspect)
8
8
 
@@ -10,18 +10,22 @@ class Object
10
10
  end
11
11
 
12
12
  def print_debug(options = {})
13
- print_debug_title(options)
13
+ print_debug_options(options)
14
14
  STDERR.write(to_debug + "\n")
15
15
 
16
16
  self
17
17
  end
18
18
 
19
- def print_debug_title(title)
20
- if title.is_a?(::Hash)
21
- return unless title[:title]
19
+ def print_debug_label(label)
20
+ STDERR.write("#{label}: ")
21
+ end
22
22
 
23
- title = title[:title]
24
- end
23
+ def print_debug_options(options)
24
+ options[:title].if_present { |v| print_debug_title(v) }
25
+ options[:label].if_present { |v| print_debug_label(v) }
26
+ end
27
+
28
+ def print_debug_title(title)
25
29
  char = '='
26
30
  STDERR.write(char * (4 + title.length) + "\n")
27
31
  STDERR.write("#{char} #{title} #{char}\n")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.102.1'
4
+ VERSION = '0.103.0'
5
5
  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.28.0
4
+ version: 0.29.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-09-08 00:00:00.000000000 Z
11
+ date: 2022-09-14 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.42'
19
+ version: '0.43'
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.42'
26
+ version: '0.43'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_asciidoctor_base0
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '0.7'
151
+ version: '0.8'
152
152
  type: :runtime
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '0.7'
158
+ version: '0.8'
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: avm-eac_wordpress_base0
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -190,20 +190,14 @@ dependencies:
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '0.102'
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: 0.102.1
193
+ version: '0.103'
197
194
  type: :runtime
198
195
  prerelease: false
199
196
  version_requirements: !ruby/object:Gem::Requirement
200
197
  requirements:
201
198
  - - "~>"
202
199
  - !ruby/object:Gem::Version
203
- version: '0.102'
204
- - - ">="
205
- - !ruby/object:Gem::Version
206
- version: 0.102.1
200
+ version: '0.103'
207
201
  - !ruby/object:Gem::Dependency
208
202
  name: eac_ruby_gem_support
209
203
  requirement: !ruby/object:Gem::Requirement
@@ -775,7 +769,6 @@ files:
775
769
  - sub/avm/lib/avm/instances.rb
776
770
  - sub/avm/lib/avm/instances/base.rb
777
771
  - sub/avm/lib/avm/instances/base/auto_values.rb
778
- - sub/avm/lib/avm/instances/base/auto_values/admin.rb
779
772
  - sub/avm/lib/avm/instances/base/auto_values/data.rb
780
773
  - sub/avm/lib/avm/instances/base/auto_values/database.rb
781
774
  - sub/avm/lib/avm/instances/base/auto_values/install.rb
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Instances
5
- class Base
6
- module AutoValues
7
- module Admin
8
- def auto_admin_email
9
- inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, 'admin.email')
10
- end
11
-
12
- def auto_admin_name
13
- inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, 'admin.name')
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end