eac_tools 0.55.6 → 0.56.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +34 -34
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/lib/avm/file_formats/base.rb +8 -41
  5. data/sub/avm/lib/avm/file_formats/file_result.rb +13 -0
  6. data/sub/avm/lib/avm/file_formats/unknown.rb +18 -0
  7. data/sub/avm/lib/avm/instances/base/auto_values/database.rb +12 -27
  8. data/sub/avm/lib/avm/registry/file_formats.rb +6 -0
  9. data/sub/avm/lib/avm/version.rb +1 -1
  10. data/sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec +1 -1
  11. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/apply.rb +34 -0
  12. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/match.rb +69 -0
  13. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base.rb +2 -2
  14. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
  15. data/sub/avm-eac_rails_base0/avm-eac_rails_base0.gemspec +2 -2
  16. data/sub/avm-eac_rails_base0/lib/avm/eac_rails_base0/version.rb +1 -1
  17. data/sub/avm-eac_rails_base1/avm-eac_rails_base1.gemspec +4 -4
  18. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb +3 -0
  19. data/sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/version.rb +1 -1
  20. data/sub/avm-eac_redmine_base0/avm-eac_redmine_base0.gemspec +3 -3
  21. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base/database.rb +2 -2
  22. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/base.rb +4 -1
  23. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/docker_image.rb +9 -0
  24. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/instances/runners.rb +1 -0
  25. data/sub/avm-eac_redmine_base0/lib/avm/eac_redmine_base0/version.rb +1 -1
  26. data/sub/avm-eac_redmine_base0/locale/en.yml +3 -2
  27. data/sub/avm-eac_redmine_base0/locale/pt-BR.yml +3 -2
  28. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +3 -3
  29. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb +19 -0
  30. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances.rb +11 -0
  31. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  32. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +4 -4
  33. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/file_formats/xml.rb +2 -2
  34. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  35. metadata +30 -32
  36. data/sub/avm/lib/avm/instances/base/auto_values/ruby.rb +0 -15
  37. data/sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/install_settings.sh.template +0 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e176be2d8f0c9e29fbc9ba3503447a80c898236928ee978f1f8e76654d9e9a72
4
- data.tar.gz: 1dac337bac73121e65ac2860f120188db5346e432d482e1ee14bfe4fffb1f815
3
+ metadata.gz: b39a13e0d2d3c95ec91b645a95b4194dd25550440a986de200e9e0867ef2ec31
4
+ data.tar.gz: b7135c790da9d47ce3675cced805478b9b16a4c9d27ee3454612bc5c86e9e2f2
5
5
  SHA512:
6
- metadata.gz: 56d88118b427b4287d6927928c4ad0c8b86f1c237630509ded2447e31cbd591333e32fb30093eb48f3f492070d124fae570b91644bff53dbf23611c1fefdc8c5
7
- data.tar.gz: 516158a86f663a07d2ed65915ca4f8434e823a7bbfbd429f83c515cb1a3a3052d10549693c50c92d78862b0ce63af8425adde0c1efab0f214e9709171d21d1bd
6
+ metadata.gz: f400d1cf29e23f6ffc9a87025d4765a7a601c9e0fd4c53925ccfc636bca411e840e94cb153cdc7cfd11ff32fb79111ba97d3b59389772260fdfc7d1e02861d6d
7
+ data.tar.gz: f22e7776248bc742fb3005aa4f3fbf3fb468f8efcafb890d14058ac3d4c93a3cd4012da2d99d0accaf7216ef8948cd359dcad8f7e543c6e8b1e372b5337e12de
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.55.6)
5
- avm (~> 0.64, >= 0.64.2)
4
+ eac_tools (0.56.0)
5
+ avm (~> 0.66)
6
6
  avm-eac_asciidoctor_base0 (~> 0.15)
7
- avm-eac_generic_base0 (~> 0.11)
7
+ avm-eac_generic_base0 (~> 0.12)
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)
11
11
  avm-eac_python_base0 (~> 0.2, >= 0.2.1)
12
- avm-eac_rails_base0 (~> 0.9)
13
- avm-eac_rails_base1 (~> 0.8)
14
- avm-eac_redmine_base0 (~> 0.18, >= 0.18.1)
12
+ avm-eac_rails_base0 (~> 0.9, >= 0.9.1)
13
+ avm-eac_rails_base1 (~> 0.8, >= 0.8.1)
14
+ avm-eac_redmine_base0 (~> 0.18, >= 0.18.2)
15
15
  avm-eac_redmine_plugin_base0 (~> 0.4)
16
- avm-eac_ruby_base1 (~> 0.29, >= 0.29.2)
17
- avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
16
+ avm-eac_ruby_base1 (~> 0.30)
17
+ avm-eac_webapp_base0 (~> 0.14)
18
18
  avm-eac_wordpress_base0 (~> 0.3)
19
19
  avm-git (~> 0.13, >= 0.13.1)
20
20
  avm-tools (~> 0.145, >= 0.145.1)
@@ -47,8 +47,8 @@ PATH
47
47
  PATH
48
48
  remote: sub/avm-eac_generic_base0
49
49
  specs:
50
- avm-eac_generic_base0 (0.11.0)
51
- avm (~> 0.64, >= 0.64.1)
50
+ avm-eac_generic_base0 (0.12.0)
51
+ avm (~> 0.66)
52
52
  eac_ruby_utils (~> 0.112)
53
53
 
54
54
  PATH
@@ -84,30 +84,30 @@ PATH
84
84
  PATH
85
85
  remote: sub/avm-eac_rails_base0
86
86
  specs:
87
- avm-eac_rails_base0 (0.9.0)
88
- avm-eac_rails_base1 (~> 0.8)
89
- eac_ruby_utils (~> 0.109)
87
+ avm-eac_rails_base0 (0.9.1)
88
+ avm-eac_rails_base1 (~> 0.8, >= 0.8.1)
89
+ eac_ruby_utils (~> 0.112)
90
90
 
91
91
  PATH
92
92
  remote: sub/avm-eac_rails_base1
93
93
  specs:
94
- avm-eac_rails_base1 (0.8.0)
95
- avm (~> 0.57)
96
- avm-eac_ruby_base1 (~> 0.27, >= 0.27.3)
97
- avm-eac_webapp_base0 (~> 0.13)
98
- eac_ruby_utils (~> 0.109)
94
+ avm-eac_rails_base1 (0.8.1)
95
+ avm (~> 0.65)
96
+ avm-eac_ruby_base1 (~> 0.30)
97
+ avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
98
+ eac_ruby_utils (~> 0.112)
99
99
 
100
100
  PATH
101
101
  remote: sub/avm-eac_redmine_base0
102
102
  specs:
103
- avm-eac_redmine_base0 (0.18.1)
104
- avm (~> 0.64, >= 0.64.1)
103
+ avm-eac_redmine_base0 (0.18.2)
104
+ avm (~> 0.65)
105
105
  avm-eac_generic_base0 (~> 0.11)
106
- avm-eac_rails_base1 (~> 0.8)
106
+ avm-eac_rails_base1 (~> 0.8, >= 0.8.1)
107
107
  avm-eac_ubuntu_base0 (~> 0.4, >= 0.4.1)
108
108
  curb (~> 0.9, >= 0.9.11)
109
109
  eac_fs (~> 0.16)
110
- eac_rest (~> 0.7, >= 0.7.2)
110
+ eac_rest (~> 0.7, >= 0.7.3)
111
111
  eac_ruby_utils (~> 0.112)
112
112
 
113
113
  PATH
@@ -120,10 +120,10 @@ PATH
120
120
  PATH
121
121
  remote: sub/avm-eac_ruby_base1
122
122
  specs:
123
- avm-eac_ruby_base1 (0.29.2)
124
- aranha-parsers (~> 0.16)
125
- avm (~> 0.63)
126
- avm-eac_generic_base0 (~> 0.10)
123
+ avm-eac_ruby_base1 (0.30.0)
124
+ aranha-parsers (~> 0.17)
125
+ avm (~> 0.65)
126
+ avm-eac_generic_base0 (~> 0.11)
127
127
  eac_ruby_utils (~> 0.112)
128
128
 
129
129
  PATH
@@ -137,13 +137,13 @@ PATH
137
137
  PATH
138
138
  remote: sub/avm-eac_webapp_base0
139
139
  specs:
140
- avm-eac_webapp_base0 (0.13.1)
141
- avm (~> 0.60)
142
- avm-eac_generic_base0 (~> 0.9)
140
+ avm-eac_webapp_base0 (0.14.0)
141
+ avm (~> 0.66)
142
+ avm-eac_generic_base0 (~> 0.12)
143
143
  avm-eac_postgresql_base0 (~> 0.2, >= 0.2.3)
144
- avm-eac_ubuntu_base0 (~> 0.4)
144
+ avm-eac_ubuntu_base0 (~> 0.4, >= 0.4.1)
145
145
  avm-files (~> 0.6)
146
- eac_ruby_utils (~> 0.110, >= 0.110.1)
146
+ eac_ruby_utils (~> 0.112)
147
147
 
148
148
  PATH
149
149
  remote: sub/avm-eac_wordpress_base0
@@ -194,7 +194,7 @@ PATH
194
194
  PATH
195
195
  remote: sub/avm
196
196
  specs:
197
- avm (0.64.2)
197
+ avm (0.66.0)
198
198
  aranha-parsers (~> 0.17)
199
199
  eac_cli (~> 0.30, >= 0.30.1)
200
200
  eac_config (~> 0.12)
@@ -334,7 +334,7 @@ GEM
334
334
  os (1.1.4)
335
335
  parallel (1.22.1)
336
336
  parseconfig (1.1.2)
337
- parser (3.2.1.1)
337
+ parser (3.2.2.0)
338
338
  ast (~> 2.4.1)
339
339
  parslet (2.0.0)
340
340
  public_suffix (5.0.1)
@@ -353,7 +353,7 @@ GEM
353
353
  rspec-expectations (3.12.2)
354
354
  diff-lcs (>= 1.2.0, < 2.0)
355
355
  rspec-support (~> 3.12.0)
356
- rspec-mocks (3.12.4)
356
+ rspec-mocks (3.12.5)
357
357
  diff-lcs (>= 1.2.0, < 2.0)
358
358
  rspec-support (~> 3.12.0)
359
359
  rspec-support (3.12.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.55.6'
4
+ VERSION = '0.56.0'
5
5
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'avm/file_formats/utf8_assert'
4
3
  require 'eac_fs/file_info'
5
4
  require 'ostruct'
6
5
 
@@ -10,10 +9,10 @@ module Avm
10
9
  enable_abstract_methods
11
10
  compare_by :class
12
11
 
13
- def apply(files)
14
- old_content = Hash[files.map { |f| [f, File.read(f)] }]
15
- ::Avm::FileFormats::Utf8Assert.assert_files(files) { internal_apply(files) }
16
- files.map { |f| build_file_result(f, old_content[f]) }
12
+ # @params files [Enumerable<Pathname>]
13
+ # @return [Enumerable<Avm::FileFormats::FileResult>]
14
+ def apply(_files)
15
+ raise_abstract_method __method__
17
16
  end
18
17
 
19
18
  # @param path [Pathname]
@@ -26,42 +25,10 @@ module Avm
26
25
  self.class.name.demodulize
27
26
  end
28
27
 
29
- def match?(file)
30
- match_by_filename?(file) || match_by_type?(file)
31
- end
32
-
33
- def valid_basenames
34
- constant_or_array('VALID_BASENAMES')
35
- end
36
-
37
- def valid_types
38
- constant_or_array('VALID_TYPES')
39
- end
40
-
41
- private
42
-
43
- def constant_or_array(name)
44
- return [] unless self.class.const_defined?(name)
45
-
46
- self.class.const_get(name)
47
- end
48
-
49
- def build_file_result(file, old_content)
50
- ::OpenStruct.new(file: file, format: self.class,
51
- changed: (old_content != File.read(file)))
52
- end
53
-
54
- def match_by_filename?(file)
55
- valid_basenames.any? do |valid_basename|
56
- file.basename.fnmatch?(valid_basename)
57
- end
58
- end
59
-
60
- def match_by_type?(file)
61
- info = ::EacFs::FileInfo.new(file)
62
- return unless info.content_type.type == 'text'
63
-
64
- valid_types.include?(info.content_type.subtype)
28
+ # @param file [Pathname]
29
+ # @return [Boolean]
30
+ def match?(_file)
31
+ raise_abstract_method __method__
65
32
  end
66
33
  end
67
34
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/file_formats/utf8_assert'
4
+ require 'eac_fs/file_info'
5
+ require 'ostruct'
6
+
7
+ module Avm
8
+ module FileFormats
9
+ class FileResult
10
+ common_constructor :file, :format, :changed
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/file_formats/base'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module FileFormats
8
+ class Unknown < ::Avm::FileFormats::Base
9
+ # @params files [Enumerable<Pathname>]
10
+ # @return [Enumerable<Avm::FileFormats::FileResult>]
11
+ def apply(files)
12
+ files.map do |file|
13
+ ::Avm::FileFormats::FileResult.new(file, self.class, false)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -7,8 +7,9 @@ module Avm
7
7
  class Base
8
8
  module AutoValues
9
9
  module Database
10
+ LOCAL_ADDRESS = '127.0.0.1'
10
11
  DEFAULT_EXTRA = ''
11
- DEFAULT_HOSTNAME = '127.0.0.1'
12
+ DEFAULT_HOSTNAME = LOCAL_ADDRESS
12
13
  DEFAULT_LIMIT = 5
13
14
  DEFAULT_PORTS = {
14
15
  'postgresql' => 5432,
@@ -19,8 +20,16 @@ module Avm
19
20
  DEFAULT_SYSTEM = 'postgresql'
20
21
  DEFAULT_TIMEOUT = 5000
21
22
 
22
- def auto_database_extra
23
- database_auto_common('hostname') || DEFAULT_EXTRA
23
+ %w[extra hostname limit system timeout].each do |attr|
24
+ define_method "auto_database_#{attr}" do
25
+ database_auto_common(attr) || self.class.const_get("default_#{attr}".upcase)
26
+ end
27
+ end
28
+
29
+ %w[username password].each do |attr|
30
+ define_method "auto_database_#{attr}" do
31
+ database_auto_common(attr) || id
32
+ end
24
33
  end
25
34
 
26
35
  def auto_database_name
@@ -28,34 +37,10 @@ module Avm
28
37
  ::Avm::Instances::EntryKeys::DATABASE_NAME) || id
29
38
  end
30
39
 
31
- def auto_database_hostname
32
- database_auto_common('hostname') || DEFAULT_HOSTNAME
33
- end
34
-
35
- def auto_database_limit
36
- database_auto_common('limit') || DEFAULT_LIMIT
37
- end
38
-
39
- def auto_database_password
40
- database_auto_common('password') || id
41
- end
42
-
43
40
  def auto_database_port
44
41
  database_auto_common('port') || database_port_by_system
45
42
  end
46
43
 
47
- def auto_database_username
48
- database_auto_common('username') || id
49
- end
50
-
51
- def auto_database_system
52
- database_auto_common('system') || DEFAULT_SYSTEM
53
- end
54
-
55
- def auto_database_timeout
56
- database_auto_common('timeout') || DEFAULT_TIMEOUT
57
- end
58
-
59
44
  private
60
45
 
61
46
  def database_auto_common(suffix)
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/file_formats/unknown'
3
4
  require 'avm/registry/from_gems'
4
5
 
5
6
  module Avm
@@ -9,6 +10,11 @@ module Avm
9
10
  def class_detect(klass, detect_args)
10
11
  klass.new if klass.new.match?(detect_args.first)
11
12
  end
13
+
14
+ # @return [Avm::FileFormats::Base, Avm::FileFormats::Unknown]
15
+ def detect_optional(*registered_initialize_args)
16
+ super || ::Avm::FileFormats::Unknown.new
17
+ end
12
18
  end
13
19
  end
14
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.64.2'
4
+ VERSION = '0.66.0'
5
5
  end
@@ -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.64', '>= 0.64.1'
15
+ s.add_dependency 'avm', '~> 0.66'
16
16
  s.add_dependency 'eac_ruby_utils', '~> 0.112'
17
17
 
18
18
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/file_formats/base'
4
+ require 'avm/file_formats/file_result'
5
+ require 'avm/file_formats/utf8_assert'
6
+ require 'eac_ruby_utils/core_ext'
7
+
8
+ module Avm
9
+ module EacGenericBase0
10
+ class FileFormats
11
+ class Base < ::Avm::FileFormats::Base
12
+ class Apply
13
+ enable_method_class
14
+ common_constructor :file_format, :files
15
+
16
+ # @return [Enumerable<Avm::FileFormats::FileResult>]
17
+ def result
18
+ old_content = Hash[files.map { |f| [f, File.read(f)] }]
19
+ ::Avm::FileFormats::Utf8Assert.assert_files(files) { file_format.internal_apply(files) }
20
+ files.map { |f| file_result(f, old_content[f]) }
21
+ end
22
+
23
+ # @param path [Pathname]
24
+ # @param old_content [String]
25
+ # @return [Avm::FileFormats::FileResult]
26
+ def file_result(file, old_content)
27
+ ::Avm::FileFormats::FileResult.new(file, file_format.class,
28
+ old_content != File.read(file))
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/file_formats/base'
4
+ require 'eac_fs/file_info'
5
+ require 'eac_ruby_utils/core_ext'
6
+
7
+ module Avm
8
+ module EacGenericBase0
9
+ class FileFormats
10
+ class Base < ::Avm::FileFormats::Base
11
+ class Match
12
+ DEFAULT_TYPE = 'text'
13
+
14
+ common_constructor :file_format, :file
15
+
16
+ # @return [Boolean]
17
+ def result
18
+ result_by_filename? || result_by_type?
19
+ end
20
+
21
+ # @return [Array<String>]
22
+ def valid_basenames
23
+ constant_or_array('VALID_BASENAMES')
24
+ end
25
+
26
+ # @return [Array<String>]
27
+ def valid_types
28
+ constant_or_array('VALID_TYPES').map do |mime_type|
29
+ mime_type_sanitize(mime_type)
30
+ end
31
+ end
32
+
33
+ protected
34
+
35
+ # @return [String]
36
+ def mime_type_sanitize(mime_type)
37
+ if mime_type.split('/').count > 1
38
+ mime_type
39
+ else
40
+ "#{DEFAULT_TYPE}/#{mime_type}"
41
+ end
42
+ end
43
+
44
+ private
45
+
46
+ # @return [Array<String>]
47
+ def constant_or_array(name)
48
+ return [] unless file_format.class.const_defined?(name)
49
+
50
+ file_format.class.const_get(name)
51
+ end
52
+
53
+ # @return [Boolean]
54
+ def result_by_filename?
55
+ valid_basenames.any? do |valid_basename|
56
+ file.basename.fnmatch?(valid_basename)
57
+ end
58
+ end
59
+
60
+ # @return [Boolean]
61
+ def result_by_type?
62
+ info = ::EacFs::FileInfo.new(file)
63
+ valid_types.include?(info.content_type.mime_type)
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -7,7 +7,7 @@ module Avm
7
7
  module EacGenericBase0
8
8
  class FileFormats
9
9
  class Base < ::Avm::FileFormats::Base
10
- require_sub __FILE__, include_modules: true
10
+ require_sub __FILE__, include_modules: true, require_dependency: true
11
11
 
12
12
  VALID_BASENAMES = %w[*.asm *.bat *.coffee *.java *.js *.rb *.s *.sql *.tex *.url *.yml
13
13
  *.yaml].freeze
@@ -21,7 +21,7 @@ module Avm
21
21
  # @param file [Pathname]
22
22
  # @return [Boolean]
23
23
  def match?(file)
24
- super(file) || !file.exist?
24
+ ::Avm::EacGenericBase0::FileFormats::Base::Match.new(self, file).result || !file.exist?
25
25
  end
26
26
 
27
27
  def file_apply(file)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacGenericBase0
5
- VERSION = '0.11.0'
5
+ VERSION = '0.12.0'
6
6
  end
7
7
  end
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm-eac_rails_base1', '~> 0.8'
16
- s.add_dependency 'eac_ruby_utils', '~> 0.109'
15
+ s.add_dependency 'avm-eac_rails_base1', '~> 0.8', '>= 0.8.1'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.112'
17
17
 
18
18
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
19
19
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase0
5
- VERSION = '0.9.0'
5
+ VERSION = '0.9.1'
6
6
  end
7
7
  end
@@ -12,10 +12,10 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.57'
16
- s.add_dependency 'avm-eac_ruby_base1', '~> 0.27', '>= 0.27.3'
17
- s.add_dependency 'avm-eac_webapp_base0', '~> 0.13'
18
- s.add_dependency 'eac_ruby_utils', '~> 0.109'
15
+ s.add_dependency 'avm', '~> 0.65'
16
+ s.add_dependency 'avm-eac_ruby_base1', '~> 0.30'
17
+ s.add_dependency 'avm-eac_webapp_base0', '~> 0.13', '>= 0.13.1'
18
+ s.add_dependency 'eac_ruby_utils', '~> 0.112'
19
19
 
20
20
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
21
21
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/eac_rails_base1/instances/runners'
4
+ require 'avm/eac_ruby_base1/instances/mixin'
4
5
  require 'avm/eac_ruby_base1/sources/base'
5
6
  require 'avm/eac_webapp_base0/instances/base'
6
7
 
@@ -8,6 +9,8 @@ module Avm
8
9
  module EacRailsBase1
9
10
  module Instances
10
11
  class Base < ::Avm::EacWebappBase0::Instances::Base
12
+ include ::Avm::EacRubyBase1::Instances::Mixin
13
+
11
14
  DEFAULT_RAILS_ENVIRONMENT = 'production'
12
15
 
13
16
  def bundle(*args)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase1
5
- VERSION = '0.8.0'
5
+ VERSION = '0.8.1'
6
6
  end
7
7
  end
@@ -12,13 +12,13 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.64', '>= 0.64.1'
15
+ s.add_dependency 'avm', '~> 0.65'
16
16
  s.add_dependency 'avm-eac_generic_base0', '~> 0.11'
17
- s.add_dependency 'avm-eac_rails_base1', '~> 0.8'
17
+ s.add_dependency 'avm-eac_rails_base1', '~> 0.8', '>= 0.8.1'
18
18
  s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.4', '>= 0.4.1'
19
19
  s.add_dependency 'curb', '~> 0.9', '>= 0.9.11'
20
20
  s.add_dependency 'eac_fs', '~> 0.16'
21
- s.add_dependency 'eac_rest', '~> 0.7', '>= 0.7.2'
21
+ s.add_dependency 'eac_rest', '~> 0.7', '>= 0.7.3'
22
22
  s.add_dependency 'eac_ruby_utils', '~> 0.112'
23
23
 
24
24
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
@@ -8,8 +8,8 @@ module Avm
8
8
  module Instances
9
9
  class Base < ::Avm::EacRailsBase1::Instances::Base
10
10
  module Database
11
- DATABASE_INTERNAL_HOSTNAME = 'localhost'
12
- DEFAULT_POSTGRESQL_VERSION = '12'
11
+ DATABASE_INTERNAL_HOSTNAME = ::Avm::Instances::Base::AutoValues::Database::LOCAL_ADDRESS
12
+ DEFAULT_POSTGRESQL_VERSION = ''
13
13
 
14
14
  common_concern do
15
15
  uri_components_entries_values 'postgresql', %w[version]
@@ -6,14 +6,17 @@ require 'avm/eac_redmine_base0/instances/docker_image'
6
6
  require 'avm/eac_redmine_base0/instances/runners'
7
7
  require 'avm/eac_redmine_base0/instances/rest_api'
8
8
  require 'avm/eac_rails_base1/instances/base'
9
+ require 'avm/eac_ruby_base1/instances/mixin'
9
10
 
10
11
  module Avm
11
12
  module EacRedmineBase0
12
13
  module Instances
13
14
  class Base < ::Avm::EacRailsBase1::Instances::Base
14
- require_sub __FILE__, include_modules: true
15
+ require_sub __FILE__, include_modules: true, require_dependency: true
15
16
  enable_simple_cache
16
17
 
18
+ include ::Avm::EacRubyBase1::Instances::Mixin
19
+
17
20
  def docker_image_class
18
21
  ::Avm::EacRedmineBase0::Instances::DockerImage
19
22
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
+ require 'avm/eac_redmine_base0/instances/deploy'
4
5
  require 'avm/eac_ubuntu_base0/instances/base'
5
6
  require 'avm/instances/docker_image'
6
7
  require 'eac_templates/core_ext'
@@ -63,6 +64,14 @@ module Avm
63
64
  ::Addressable::URI.parse(instance.web_url).path.present?
64
65
  end
65
66
 
67
+ def write_in_provide_dir
68
+ super
69
+
70
+ ::Avm::EacRedmineBase0::Instances::Deploy.template.child('config')
71
+ .child('install.sh.template')
72
+ .apply_to_file(variables_source, provide_dir.join('install_settings.sh'))
73
+ end
74
+
66
75
  private
67
76
 
68
77
  def eac_ubuntu_base0_instance
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/eac_redmine_base0/instances/deploy'
3
4
  require 'eac_ruby_utils/core_ext'
4
5
 
5
6
  module Avm
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRedmineBase0
5
- VERSION = '0.18.1'
5
+ VERSION = '0.18.2'
6
6
  end
7
7
  end
@@ -1,5 +1,6 @@
1
1
  en:
2
2
  avm:
3
3
  eac_redmine_base0:
4
- core_update:
5
- git_commit_message: "Core: update to '%{version}'."
4
+ sources:
5
+ core_update:
6
+ git_commit_message: "Core: update to '%{version}'."
@@ -1,5 +1,6 @@
1
1
  pt-BR:
2
2
  avm:
3
3
  eac_redmine_base0:
4
- core_update:
5
- git_commit_message: "Core: atualiza para '%{version}'."
4
+ sources:
5
+ core_update:
6
+ git_commit_message: "Core: atualiza para '%{version}'."
@@ -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 'aranha-parsers', '~> 0.16'
16
- s.add_dependency 'avm', '~> 0.63'
17
- s.add_dependency 'avm-eac_generic_base0', '~> 0.10'
15
+ s.add_dependency 'aranha-parsers', '~> 0.17'
16
+ s.add_dependency 'avm', '~> 0.65'
17
+ s.add_dependency 'avm-eac_generic_base0', '~> 0.11'
18
18
  s.add_dependency 'eac_ruby_utils', '~> 0.112'
19
19
 
20
20
  s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacRubyBase1
7
+ module Instances
8
+ module Mixin
9
+ DEFAULT_RUBY_VERSION = '2.7.7'
10
+ RUBY_VERSION_KEY = 'ruby.version'
11
+
12
+ def auto_ruby_version
13
+ inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, RUBY_VERSION_KEY) ||
14
+ DEFAULT_RUBY_VERSION
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacRubyBase1
7
+ module Instances
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.29.2'
5
+ VERSION = '0.30.0'
6
6
  end
7
7
  end
@@ -12,12 +12,12 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.60'
16
- s.add_dependency 'avm-eac_generic_base0', '~> 0.9'
15
+ s.add_dependency 'avm', '~> 0.66'
16
+ s.add_dependency 'avm-eac_generic_base0', '~> 0.12'
17
17
  s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.3'
18
- s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.4'
18
+ s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.4', '>= 0.4.1'
19
19
  s.add_dependency 'avm-files', '~> 0.6'
20
- s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
20
+ s.add_dependency 'eac_ruby_utils', '~> 0.112'
21
21
 
22
22
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
23
23
  end
@@ -7,8 +7,8 @@ module Avm
7
7
  module EacWebappBase0
8
8
  module FileFormats
9
9
  class Xml < ::Avm::EacGenericBase0::FileFormats::Base
10
- VALID_BASENAMES = %w[*.xml].freeze
11
- VALID_TYPES = ['xml'].freeze
10
+ VALID_BASENAMES = %w[*.svg *.xml].freeze
11
+ VALID_TYPES = ['image/svg+xml', 'xml'].freeze
12
12
 
13
13
  def internal_apply(files)
14
14
  format_command(files).system!
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.13.1'
5
+ VERSION = '0.14.0'
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.55.6
4
+ version: 0.56.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-03-31 00:00:00.000000000 Z
11
+ date: 2023-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.64'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.64.2
19
+ version: '0.66'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.64'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.64.2
26
+ version: '0.66'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: avm-eac_asciidoctor_base0
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +44,14 @@ dependencies:
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0.11'
47
+ version: '0.12'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '0.11'
54
+ version: '0.12'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: avm-eac_latex_base0
63
57
  requirement: !ruby/object:Gem::Requirement
@@ -139,6 +133,9 @@ dependencies:
139
133
  - - "~>"
140
134
  - !ruby/object:Gem::Version
141
135
  version: '0.9'
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 0.9.1
142
139
  type: :runtime
143
140
  prerelease: false
144
141
  version_requirements: !ruby/object:Gem::Requirement
@@ -146,6 +143,9 @@ dependencies:
146
143
  - - "~>"
147
144
  - !ruby/object:Gem::Version
148
145
  version: '0.9'
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: 0.9.1
149
149
  - !ruby/object:Gem::Dependency
150
150
  name: avm-eac_rails_base1
151
151
  requirement: !ruby/object:Gem::Requirement
@@ -153,6 +153,9 @@ dependencies:
153
153
  - - "~>"
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0.8'
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: 0.8.1
156
159
  type: :runtime
157
160
  prerelease: false
158
161
  version_requirements: !ruby/object:Gem::Requirement
@@ -160,6 +163,9 @@ dependencies:
160
163
  - - "~>"
161
164
  - !ruby/object:Gem::Version
162
165
  version: '0.8'
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: 0.8.1
163
169
  - !ruby/object:Gem::Dependency
164
170
  name: avm-eac_redmine_base0
165
171
  requirement: !ruby/object:Gem::Requirement
@@ -169,7 +175,7 @@ dependencies:
169
175
  version: '0.18'
170
176
  - - ">="
171
177
  - !ruby/object:Gem::Version
172
- version: 0.18.1
178
+ version: 0.18.2
173
179
  type: :runtime
174
180
  prerelease: false
175
181
  version_requirements: !ruby/object:Gem::Requirement
@@ -179,7 +185,7 @@ dependencies:
179
185
  version: '0.18'
180
186
  - - ">="
181
187
  - !ruby/object:Gem::Version
182
- version: 0.18.1
188
+ version: 0.18.2
183
189
  - !ruby/object:Gem::Dependency
184
190
  name: avm-eac_redmine_plugin_base0
185
191
  requirement: !ruby/object:Gem::Requirement
@@ -200,40 +206,28 @@ dependencies:
200
206
  requirements:
201
207
  - - "~>"
202
208
  - !ruby/object:Gem::Version
203
- version: '0.29'
204
- - - ">="
205
- - !ruby/object:Gem::Version
206
- version: 0.29.2
209
+ version: '0.30'
207
210
  type: :runtime
208
211
  prerelease: false
209
212
  version_requirements: !ruby/object:Gem::Requirement
210
213
  requirements:
211
214
  - - "~>"
212
215
  - !ruby/object:Gem::Version
213
- version: '0.29'
214
- - - ">="
215
- - !ruby/object:Gem::Version
216
- version: 0.29.2
216
+ version: '0.30'
217
217
  - !ruby/object:Gem::Dependency
218
218
  name: avm-eac_webapp_base0
219
219
  requirement: !ruby/object:Gem::Requirement
220
220
  requirements:
221
221
  - - "~>"
222
222
  - !ruby/object:Gem::Version
223
- version: '0.13'
224
- - - ">="
225
- - !ruby/object:Gem::Version
226
- version: 0.13.1
223
+ version: '0.14'
227
224
  type: :runtime
228
225
  prerelease: false
229
226
  version_requirements: !ruby/object:Gem::Requirement
230
227
  requirements:
231
228
  - - "~>"
232
229
  - !ruby/object:Gem::Version
233
- version: '0.13'
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: 0.13.1
230
+ version: '0.14'
237
231
  - !ruby/object:Gem::Dependency
238
232
  name: avm-eac_wordpress_base0
239
233
  requirement: !ruby/object:Gem::Requirement
@@ -419,7 +413,9 @@ files:
419
413
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
420
414
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats.rb
421
415
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base.rb
416
+ - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/apply.rb
422
417
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/file_resource_name_helper.rb
418
+ - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/match.rb
423
419
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb
424
420
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
425
421
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb
@@ -631,7 +627,6 @@ files:
631
627
  - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/Dockerfile_apache_setup
632
628
  - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_http_virtualhost.conf.template
633
629
  - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/apache_https_virtualhost.conf.template
634
- - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/install_settings.sh.template
635
630
  - sub/avm-eac_redmine_base0/template/avm/eac_redmine_base0/instances/docker_image/start.sh.template
636
631
  - sub/avm-eac_redmine_plugin_base0/Gemfile
637
632
  - sub/avm-eac_redmine_plugin_base0/avm-eac_redmine_plugin_base0.gemspec
@@ -665,6 +660,8 @@ files:
665
660
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats.rb
666
661
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb
667
662
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb
663
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances.rb
664
+ - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb
668
665
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb
669
666
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb
670
667
  - sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb
@@ -1110,7 +1107,9 @@ files:
1110
1107
  - sub/avm/lib/avm/executables.rb
1111
1108
  - sub/avm/lib/avm/file_formats.rb
1112
1109
  - sub/avm/lib/avm/file_formats/base.rb
1110
+ - sub/avm/lib/avm/file_formats/file_result.rb
1113
1111
  - sub/avm/lib/avm/file_formats/search_formatter.rb
1112
+ - sub/avm/lib/avm/file_formats/unknown.rb
1114
1113
  - sub/avm/lib/avm/file_formats/utf8_assert.rb
1115
1114
  - sub/avm/lib/avm/instances.rb
1116
1115
  - sub/avm/lib/avm/instances/base.rb
@@ -1118,7 +1117,6 @@ files:
1118
1117
  - sub/avm/lib/avm/instances/base/auto_values/data.rb
1119
1118
  - sub/avm/lib/avm/instances/base/auto_values/database.rb
1120
1119
  - sub/avm/lib/avm/instances/base/auto_values/mailer.rb
1121
- - sub/avm/lib/avm/instances/base/auto_values/ruby.rb
1122
1120
  - sub/avm/lib/avm/instances/base/auto_values/source.rb
1123
1121
  - sub/avm/lib/avm/instances/base/dockerizable.rb
1124
1122
  - sub/avm/lib/avm/instances/base/entry_keys.rb
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Avm
4
- module Instances
5
- class Base
6
- module AutoValues
7
- module Ruby
8
- def auto_ruby_version
9
- inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID, 'ruby.version')
10
- end
11
- end
12
- end
13
- end
14
- end
15
- end
@@ -1,33 +0,0 @@
1
- # Database
2
- export postgresql_internal='%%database_internal%%'
3
- export postgresql_host='%%DATABASE.HOSTNAME%%'
4
- export postgresql_port='%%DATABASE.PORT%%'
5
- export postgresql_user='%%DATABASE.USERNAME%%'
6
- export postgresql_password='%%DATABASE.PASSWORD%%'
7
- export postgresql_database='%%DATABASE.NAME%%'
8
- export postgresql_extra_settings='%%DATABASE.EXTRA%%'
9
-
10
- # Git Hosting
11
- export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
12
- export git_repositories_hierarchical_organisation=false
13
-
14
- # Web
15
- if [ '%%WEB.SCHEME%%' == 'https' ]; then
16
- export address_https='true'
17
- else
18
- export address_https='false'
19
- fi
20
- export address_host='%%WEB.AUTHORITY%%'
21
- export address_path='%%WEB.PATH%%'
22
-
23
- # Mail settings
24
- export smtp_server='%%MAILER.SMTP.ADDRESS%%'
25
- export smtp_port='%%MAILER.SMTP.PORT%%'
26
- export smtp_domain='%%MAILER.SMTP.DOMAIN%%'
27
- export smtp_tls='%%MAILER.SMTP.TLS%%'
28
- export smtp_enable_starttls_auto='%%MAILER.SMTP.STARTTLS_AUTO%%'
29
- export smtp_openssl_verify_mode='%%MAILER.SMTP.OPENSSL_VERIFY_MODE%%'
30
- export smtp_authentication='%%MAILER.SMTP.AUTHENTICATION%%'
31
- export smtp_username='%%MAILER.SMTP.USERNAME%%'
32
- export smtp_password='%%MAILER.SMTP.PASSWORD%%'
33
- export mail_from='%%MAILER.FROM%%'