avm 0.67.1 → 0.69.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/data/package.rb +11 -0
- data/lib/avm/instances/data/files_unit.rb +2 -2
- data/lib/avm/version.rb +1 -1
- metadata +8 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd7769c233c47e084dedc71f52d43c93aef1ed251f9f0ba0fcd9fe25d38b5cd8
|
4
|
+
data.tar.gz: 20400fe033dd9bf515f3c971179b5b22ed6097879c317946e6a59d6f5b0544f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 447679562bdfd2d1da1d38ee1e34eecb3214d0c4763316cf75b69d2b91661c783b732252992e11e1abafab0f34fd38ab7ba3b505c9ff6381c7e9331a378d3cee
|
7
|
+
data.tar.gz: 38a20f723ac5c348a755cc4b558d89b37acafeafb20e4fc027c314bea5a3717194767ab3afaf533892f16632d250f65ae911bb5b96ca98b7a277769c171fea3b
|
data/lib/avm/data/package.rb
CHANGED
@@ -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 :
|
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
|
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
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.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-
|
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,20 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 0.30.1
|
39
|
+
version: '0.32'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
44
|
- - "~>"
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version: '0.
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 0.30.1
|
46
|
+
version: '0.32'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: eac_config
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,28 +112,28 @@ dependencies:
|
|
118
112
|
requirements:
|
119
113
|
- - "~>"
|
120
114
|
- !ruby/object:Gem::Version
|
121
|
-
version: '0.
|
115
|
+
version: '0.113'
|
122
116
|
type: :runtime
|
123
117
|
prerelease: false
|
124
118
|
version_requirements: !ruby/object:Gem::Requirement
|
125
119
|
requirements:
|
126
120
|
- - "~>"
|
127
121
|
- !ruby/object:Gem::Version
|
128
|
-
version: '0.
|
122
|
+
version: '0.113'
|
129
123
|
- !ruby/object:Gem::Dependency
|
130
124
|
name: eac_templates
|
131
125
|
requirement: !ruby/object:Gem::Requirement
|
132
126
|
requirements:
|
133
127
|
- - "~>"
|
134
128
|
- !ruby/object:Gem::Version
|
135
|
-
version: '0.
|
129
|
+
version: '0.5'
|
136
130
|
type: :runtime
|
137
131
|
prerelease: false
|
138
132
|
version_requirements: !ruby/object:Gem::Requirement
|
139
133
|
requirements:
|
140
134
|
- - "~>"
|
141
135
|
- !ruby/object:Gem::Version
|
142
|
-
version: '0.
|
136
|
+
version: '0.5'
|
143
137
|
- !ruby/object:Gem::Dependency
|
144
138
|
name: filesize
|
145
139
|
requirement: !ruby/object:Gem::Requirement
|