avm 0.16.0 → 0.18.1

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: 59be9763f9939521d5a34ae5bcf81f0f3254c2af762c636b985be4446625a451
4
- data.tar.gz: 0da41ea1af0c32847b3d87b2599b111a864416903324db9739f952e3397f812c
3
+ metadata.gz: be0e77328fe54bdc9f2c63ee0c6f5bc234e9b993bf9c3174a376ecae7673f476
4
+ data.tar.gz: 9d69cca78549d8f6b000a3efae2f6ea836cca9ec751cfca5a434caf2582f403b
5
5
  SHA512:
6
- metadata.gz: 4708d781a6096808e219b7faac09509e45d9256a555844ae02430abf12fc63bed126e4928f0352334fe79c9030aa23e086299d2c17cc1cd4432372ff315af41f
7
- data.tar.gz: 1774e77a51d87c16e2f7ca0968626ded0302f708e1cae6516ab51f2195e32f858550143f9a23c54265ccb0da8587426bc72e89bc8e1a1b58de46edc365395f90
6
+ metadata.gz: 02b7a49f870144d0c730708d7f31f5279b763cdd660215934b40c775506551717009847f2b4fcfe03b730345ed8c8dce4a0b68d0816d06dce759c02a139da714
7
+ data.tar.gz: 6a0ff9b34c497834575e288309987be34c449e68f000bdc139730c369dcb18469e51ea121b00289326a29b23bf7481c5b4ecc7dd35096a4c30dee33e2d487f20
@@ -37,7 +37,7 @@ module Avm
37
37
  end
38
38
 
39
39
  def auto_database_password
40
- database_auto_common('password')
40
+ database_auto_common('password') || id
41
41
  end
42
42
 
43
43
  def auto_database_port
@@ -45,7 +45,7 @@ module Avm
45
45
  end
46
46
 
47
47
  def auto_database_username
48
- database_auto_common('username')
48
+ database_auto_common('username') || id
49
49
  end
50
50
 
51
51
  def auto_database_system
@@ -9,8 +9,8 @@ module Avm
9
9
  module AutoValues
10
10
  module Mailer
11
11
  ::Avm::Instances::EntryKeys.all.select { |c| c.to_s.start_with?('mailer.') }
12
- .reject { |c| c == ::Avm::Instances::EntryKeys::MAILER_ID }
13
- .each do |mailer_key|
12
+ .reject { |c| c == ::Avm::Instances::EntryKeys::MAILER_ID }
13
+ .each do |mailer_key|
14
14
  define_method ::Avm::Instances::Entry.auto_value_method_name(mailer_key) do
15
15
  mailer_auto_common(mailer_key)
16
16
  end
@@ -43,11 +43,14 @@ module Avm
43
43
 
44
44
  {
45
45
  '' => %w[data_fs_path fs_path host_id name source_instance_id],
46
+ admin: %w[username password api_key],
46
47
  database: %w[id hostname limit name password port system timeout username extra],
47
48
  docker: %w[registry],
49
+ fs: %w[url],
48
50
  mailer: {
49
51
  '' => %w[id from reply_to],
50
- smtp: %w[address port domain username password authentication starttls_auto]
52
+ smtp: %w[address port domain username password authentication openssl_verify_mode
53
+ starttls_auto tls]
51
54
  },
52
55
  ssh: %w[hostname port url username],
53
56
  web: %w[authority hostname path port scheme url userinfo]
@@ -17,7 +17,7 @@ module Avm
17
17
 
18
18
  def detect_optional(*registered_initialize_args)
19
19
  registered_modules.reverse.lazy.map { |klass| klass.new(*registered_initialize_args) }
20
- .find(&:valid?)
20
+ .find(&:valid?)
21
21
  end
22
22
 
23
23
  def provider_module_suffix
@@ -40,7 +40,7 @@ module Avm
40
40
 
41
41
  def registered_modules_uncached
42
42
  registered_gems.flat_map { |registry| modules_from_registry(registry) }
43
- .select { |v| valid_registered_module?(v) }.uniq
43
+ .select { |v| valid_registered_module?(v) }.uniq
44
44
  end
45
45
 
46
46
  def modules_from_registry(registry)
@@ -4,7 +4,7 @@ require 'avm/registry'
4
4
 
5
5
  ::RSpec.shared_examples 'not_in_avm_registry' do |registry_method = nil|
6
6
  registry_method.if_present(::Avm::Registry.registries) { |v| [::Avm::Registry.send(v)] }
7
- .each do |registry|
7
+ .each do |registry|
8
8
  context "when registry is #{registry}" do
9
9
  it 'is not in the avm registry' do
10
10
  expect(registry.registered_modules).not_to include(described_class)
@@ -33,7 +33,7 @@ module Avm
33
33
  # @return [Array<Avm::Sources::Tests::Single>]
34
34
  def available_units
35
35
  @available_units ||= ([main_source] + main_source.subs)
36
- .map { |a_source| create_unit(a_source) }
36
+ .map { |a_source| create_unit(a_source) }
37
37
  end
38
38
 
39
39
  def available_units_from_main
data/lib/avm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.16.0'
4
+ VERSION = '0.18.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-19 00:00:00.000000000 Z
11
+ date: 2022-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_cli
@@ -146,34 +146,34 @@ dependencies:
146
146
  requirements:
147
147
  - - "~>"
148
148
  - !ruby/object:Gem::Version
149
- version: '0.7'
150
- - - ">="
149
+ version: '0.14'
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.7.2
152
+ version: 0.14.1
153
153
  type: :development
154
154
  prerelease: false
155
155
  version_requirements: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0.7'
160
- - - ">="
159
+ version: '0.14'
160
+ - - "~>"
161
161
  - !ruby/object:Gem::Version
162
- version: 0.7.2
162
+ version: 0.14.1
163
163
  - !ruby/object:Gem::Dependency
164
164
  name: eac_ruby_gem_support
165
165
  requirement: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - "~>"
168
168
  - !ruby/object:Gem::Version
169
- version: '0.2'
169
+ version: 0.5.1
170
170
  type: :development
171
171
  prerelease: false
172
172
  version_requirements: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - "~>"
175
175
  - !ruby/object:Gem::Version
176
- version: '0.2'
176
+ version: 0.5.1
177
177
  description:
178
178
  email:
179
179
  executables: []