avm 0.88.0 → 0.89.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/entries/base.rb +12 -1
- data/lib/avm/sources/base/application.rb +3 -1
- data/lib/avm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6075d36e5e733521b4bdfc5c8bcb519c173940145aa0d80eb56e3f1a4d5e9e04
|
4
|
+
data.tar.gz: dde7cdd3eca6a7396cd94292e623228736e4ae4a0a24de9fe463779e5a4ff70d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6e5a83a67e21df0dbf555ffeda85ae6ad70ba082423b2b9c6941db98c4d6959eb8adc81c05f0f679d0530f132a97fd25a536a53cee1b671547f805ea85636e7
|
7
|
+
data.tar.gz: 6800f9edb5f46f5b20a27049ad67c795b02e50146357342d18a446424e057168c96f4cbaf32fadc89a21e778a19467c57d9ee781b73ae8631100e06279132ec7
|
data/lib/avm/entries/base.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'eac_config/entry_path'
|
3
4
|
require 'eac_ruby_utils/core_ext'
|
4
5
|
require 'avm/entries/entry'
|
5
6
|
|
@@ -19,12 +20,22 @@ module Avm
|
|
19
20
|
id
|
20
21
|
end
|
21
22
|
|
23
|
+
# @raise
|
24
|
+
# @return [void]
|
25
|
+
def entries_provider_id!
|
26
|
+
return entries_provider_id unless
|
27
|
+
entries_provider_id.include?(::EacConfig::EntryPath::PART_SEPARATOR)
|
28
|
+
|
29
|
+
raise ".entries_provider_id \"#{entries_provider_id}\" cannot have " \
|
30
|
+
"\"#{::EacConfig::EntryPath::PART_SEPARATOR}\" (EacConfig::EntryPath::PART_SEPARATOR)"
|
31
|
+
end
|
32
|
+
|
22
33
|
def entry(suffix, options = {})
|
23
34
|
::Avm::Entries::Entry.new(self, suffix, options)
|
24
35
|
end
|
25
36
|
|
26
37
|
def path_prefix
|
27
|
-
@path_prefix ||= [entries_provider_id].freeze
|
38
|
+
@path_prefix ||= [entries_provider_id!].freeze
|
28
39
|
end
|
29
40
|
|
30
41
|
def read_entry(entry_suffix, options = {})
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avm/applications/base'
|
4
|
+
require 'eac_config/entry_path'
|
4
5
|
require 'eac_ruby_utils/core_ext'
|
5
6
|
|
6
7
|
module Avm
|
@@ -26,7 +27,8 @@ module Avm
|
|
26
27
|
|
27
28
|
# @return [String]
|
28
29
|
def application_id_by_directory
|
29
|
-
path.basename.to_path
|
30
|
+
path.basename.to_path.gsub(::EacConfig::EntryPath::PART_SEPARATOR, '-')
|
31
|
+
.gsub(/\A-+/, '').gsub(/-+\z/, '')
|
30
32
|
end
|
31
33
|
end
|
32
34
|
end
|
data/lib/avm/version.rb
CHANGED
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.
|
4
|
+
version: 0.89.0
|
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: 2024-03-
|
11
|
+
date: 2024-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_cli
|