avm-eac_generic_base0 0.12.2 → 0.14.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/eac_generic_base0/sources/base.rb +24 -0
- data/lib/avm/eac_generic_base0/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7146b087985df95edd070a202ef7909c9c6a0770939f5ef83a0570a20b8dee7e
|
4
|
+
data.tar.gz: e17df92f8d8e53a17ac1d16593829598be67466e1121344029f1117d9ae3aeef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e30c2478794776d40a32483f8f9c5a7a757ae08f3ac039f0cb1fe93ed7a1e4070345466f059e74021ec37424abc6902789638827dbcf20f3668ef54c868aa36
|
7
|
+
data.tar.gz: b3d633520c89f593bc4ce83800f7ac0c4bbbed66c1b4bcb39f3a4661ef4127a5cb63b2c86f41d176b1a0ea1edb491ff704c84f9514b8fad94ad3882ef128e085
|
@@ -10,9 +10,33 @@ module Avm
|
|
10
10
|
require_sub __FILE__, include_modules: true
|
11
11
|
enable_abstract_methods
|
12
12
|
|
13
|
+
VERSION_FILE_SUBPATH = 'VERSION'
|
14
|
+
|
13
15
|
def valid?
|
14
16
|
configuration_paths.any?(&:exist?)
|
15
17
|
end
|
18
|
+
|
19
|
+
# @return [Avm::VersionNumber, nil]
|
20
|
+
def version
|
21
|
+
return nil unless version_file.file?
|
22
|
+
|
23
|
+
::Avm::VersionNumber.new(version_file.read)
|
24
|
+
end
|
25
|
+
|
26
|
+
# @param target_version [Avm::VersionNumber]
|
27
|
+
def version=(target_version)
|
28
|
+
version_file.write("#{target_version}\n")
|
29
|
+
end
|
30
|
+
|
31
|
+
# @param target_version [Avm::VersionNumber]
|
32
|
+
def version_bump_do_changes(target_version)
|
33
|
+
self.version = target_version
|
34
|
+
end
|
35
|
+
|
36
|
+
# @return [Pathname]
|
37
|
+
def version_file
|
38
|
+
path.join(VERSION_FILE_SUBPATH)
|
39
|
+
end
|
16
40
|
end
|
17
41
|
end
|
18
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_generic_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,48 +16,48 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.94'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.94.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.94'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.94.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: eac_ruby_utils
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.124'
|
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.
|
46
|
+
version: '0.124'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: eac_ruby_gem_support
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.10'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
60
|
+
version: '0.10'
|
61
61
|
description:
|
62
62
|
email:
|
63
63
|
executables: []
|