envirobly 0.7.0 → 0.7.1

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: 6226263c06257afa2005e3f2294d191e2c94f3984945373425279c52093bc39b
4
- data.tar.gz: d5a51f52257f763c81419d62fc75fde808a4499fdfc7f9fc1847190f5771c55c
3
+ metadata.gz: 29cfdb4affffdb5f853e57d37894479e210ee71979e225d73e949cef6f224ab4
4
+ data.tar.gz: 7ba7f8036944a5c819e5bf5e6ad8322bbe5d2e212828535938445109051b773f
5
5
  SHA512:
6
- metadata.gz: 4a426ce35d69e3b38f3873d5181e0f57601d8404bf08f30cfb1e8e32728fb753d5ebfcfcbd328365ece306358d2efc77c3b61e05006e92a5c31711560805e67d
7
- data.tar.gz: 0b48b6e836a7ee0c9449dbc1b61a2462030b2bd3420132f955d449d70ee3017544350a580208d539a4bebeb18faff161c8da908c4ddc3eaf03d8b08d8b0e0424
6
+ metadata.gz: f6a725cea2759dcf2b4144b7a50c05a65d933f2b8e445768e160294df3630b523fe63c86e13e6f8dc3cffc60e38044b7237bc43ed90bef1eb40e171b6e59e15e
7
+ data.tar.gz: 864be10b4d1225342847e6910736d9a1e1b2486428a18295cd29db6c1ca531c2d806d721a005b34d5ba3494c974ea571ee26c46ca27dc3fa5550caf7ec7cffcd
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module Envirobly
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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.0
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-09-25 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor