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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6c629b94d4e04c22b7ba4ced5dcc85505ea9c42beee46f9c8da0425162e18b2
4
- data.tar.gz: 9dcf48348042d239c28f06f8fd3929f969c6aeec617a6ff42627dd7852214d06
3
+ metadata.gz: 6075d36e5e733521b4bdfc5c8bcb519c173940145aa0d80eb56e3f1a4d5e9e04
4
+ data.tar.gz: dde7cdd3eca6a7396cd94292e623228736e4ae4a0a24de9fe463779e5a4ff70d
5
5
  SHA512:
6
- metadata.gz: f2950767199e1896dfb94a130217180d1a1af131243b6a481e3c1933712431979ab5d4bb6d60e1198c9cca1c486d975e28a30a7ac4bbe58d2839412ef9123c70
7
- data.tar.gz: 30fc4e3457bbe3f360ac32b6480d886b62aee435e4376327e4d1b9bffd7c88e11939704908f28c486191c01416516800e3f58169bdb65b08d07d3469b5609432
6
+ metadata.gz: b6e5a83a67e21df0dbf555ffeda85ae6ad70ba082423b2b9c6941db98c4d6959eb8adc81c05f0f679d0530f132a97fd25a536a53cee1b671547f805ea85636e7
7
+ data.tar.gz: 6800f9edb5f46f5b20a27049ad67c795b02e50146357342d18a446424e057168c96f4cbaf32fadc89a21e778a19467c57d9ee781b73ae8631100e06279132ec7
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.88.0'
4
+ VERSION = '0.89.0'
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.88.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-23 00:00:00.000000000 Z
11
+ date: 2024-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_cli