envirobly 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/envirobly/config.rb +8 -0
- data/lib/envirobly/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: 29cfdb4affffdb5f853e57d37894479e210ee71979e225d73e949cef6f224ab4
|
|
4
|
+
data.tar.gz: 7ba7f8036944a5c819e5bf5e6ad8322bbe5d2e212828535938445109051b773f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6a725cea2759dcf2b4144b7a50c05a65d933f2b8e445768e160294df3630b523fe63c86e13e6f8dc3cffc60e38044b7237bc43ed90bef1eb40e171b6e59e15e
|
|
7
|
+
data.tar.gz: 864be10b4d1225342847e6910736d9a1e1b2486428a18295cd29db6c1ca531c2d806d721a005b34d5ba3494c974ea571ee26c46ca27dc3fa5550caf7ec7cffcd
|
data/lib/envirobly/config.rb
CHANGED
|
@@ -123,6 +123,7 @@ class Envirobly::Config
|
|
|
123
123
|
VALID_SERVICE_KEYS = %i[
|
|
124
124
|
type
|
|
125
125
|
image
|
|
126
|
+
build
|
|
126
127
|
engine_version
|
|
127
128
|
instance_type
|
|
128
129
|
min_instances
|
|
@@ -139,6 +140,7 @@ class Envirobly::Config
|
|
|
139
140
|
aliases
|
|
140
141
|
]
|
|
141
142
|
NAME_FORMAT = /\A[a-z0-9\-_\.\/]+\z/i
|
|
143
|
+
BUILD_VALUE_FORMAT = /\Av[\d+]\z/
|
|
142
144
|
def validate_services(services)
|
|
143
145
|
unless services.is_a?(Hash)
|
|
144
146
|
@errors << "`services` key must be a hash."
|
|
@@ -159,6 +161,12 @@ class Envirobly::Config
|
|
|
159
161
|
unless VALID_SERVICE_KEYS.include?(attribute)
|
|
160
162
|
@errors << "Service `#{name}` attribute `#{attribute}` is not a valid attribute."
|
|
161
163
|
end
|
|
164
|
+
|
|
165
|
+
if attribute == :build
|
|
166
|
+
unless value =~ BUILD_VALUE_FORMAT
|
|
167
|
+
@errors << "Service `#{name}` attribute `#{attribute}` format needs to be a number prefixed with letter \"v\", for example \"v1\"."
|
|
168
|
+
end
|
|
169
|
+
end
|
|
162
170
|
end
|
|
163
171
|
|
|
164
172
|
BUILD_DEFAULTS.each do |attribute, options|
|
data/lib/envirobly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: envirobly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Starsi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|