avm 0.68.0 → 0.69.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: 46e1377fa15fec46de929ea19865c646a3505e4b017ce614d90f78dadd2251cd
4
- data.tar.gz: d79b5728e7c89b32e20ec430c87cbe9dbb0f50644645f796edf67da2ce7cbef6
3
+ metadata.gz: bd7769c233c47e084dedc71f52d43c93aef1ed251f9f0ba0fcd9fe25d38b5cd8
4
+ data.tar.gz: 20400fe033dd9bf515f3c971179b5b22ed6097879c317946e6a59d6f5b0544f7
5
5
  SHA512:
6
- metadata.gz: 18d7483e604e82fbe29ea9adfe1ba16463def7927faf24f074557fa37b58012d29251ebf4e85bd422a048a2e1c71608a3e8c7606e18517df6f745b3fc5b5ff8d
7
- data.tar.gz: 02b27be5b600b610ec0e6cf334682ec853160def0406fa317ab288da4d0c553d07f0cc54553d05952303572900d73699e6c57a040a3e3f2ddceab43fde1eafba
6
+ metadata.gz: 447679562bdfd2d1da1d38ee1e34eecb3214d0c4763316cf75b69d2b91661c783b732252992e11e1abafab0f34fd38ab7ba3b505c9ff6381c7e9331a378d3cee
7
+ data.tar.gz: 38a20f723ac5c348a755cc4b558d89b37acafeafb20e4fc027c314bea5a3717194767ab3afaf533892f16632d250f65ae911bb5b96ca98b7a277769c171fea3b
@@ -45,9 +45,20 @@ module Avm
45
45
  end
46
46
  end
47
47
 
48
+ # @param id [Symbol]
49
+ # @return [Avm::Data::Unit]
50
+ def unit(identifier)
51
+ units[identifier.to_sym] || raise("No unit found with identifier \"#{identifier}\"")
52
+ end
53
+
48
54
  def units
49
55
  @units ||= {}
50
56
  end
57
+
58
+ # @return [Enumerable<String>]
59
+ def units_ids
60
+ units.keys
61
+ end
51
62
  end
52
63
  end
53
64
  end
@@ -17,7 +17,7 @@ module Avm
17
17
  self.options = self.class.lists.option.hash_keys_validate!(options)
18
18
  end
19
19
 
20
- before_load :clear_files
20
+ before_load :clear
21
21
 
22
22
  # @return [Pathname]
23
23
  def files_path
@@ -33,7 +33,7 @@ module Avm
33
33
  instance_command('tar', '-xzf', '-', '-C', files_path)
34
34
  end
35
35
 
36
- def clear_files
36
+ def clear
37
37
  infom "Removing all files under #{files_path}..."
38
38
  instance_command('mkdir', '-p', files_path).execute!
39
39
  instance_command('find', files_path, '-mindepth', 1, '-delete').execute!
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.68.0'
4
+ VERSION = '0.69.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.68.0
4
+ version: 0.69.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: 2023-05-06 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.31'
39
+ version: '0.32'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.31'
46
+ version: '0.32'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eac_config
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '0.112'
115
+ version: '0.113'
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '0.112'
122
+ version: '0.113'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: eac_templates
125
125
  requirement: !ruby/object:Gem::Requirement