envirobly 0.7.0 → 0.7.2

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: a1ffc05f7ea0f1e40889fa8a817bd44f9cf9fc3ee4d7197e48f46bd17706b017
4
+ data.tar.gz: 053373d7435caa5b10d301afafd3ef76777f29bffb59c108cd6ef4399d666061
5
5
  SHA512:
6
- metadata.gz: 4a426ce35d69e3b38f3873d5181e0f57601d8404bf08f30cfb1e8e32728fb753d5ebfcfcbd328365ece306358d2efc77c3b61e05006e92a5c31711560805e67d
7
- data.tar.gz: 0b48b6e836a7ee0c9449dbc1b61a2462030b2bd3420132f955d449d70ee3017544350a580208d539a4bebeb18faff161c8da908c4ddc3eaf03d8b08d8b0e0424
6
+ metadata.gz: f0d071e480b64d91210ae0eb422d29707950c3288ca7e8a85354bfbaff1e78bec44e0bb88606edf264aab94bf2478e85fd6a85fba1f920e2b028c55c457bdc3b
7
+ data.tar.gz: ee38e1c77c0b66b90d4b36d3c89a217caef7f71f1e9c34d32ac4731eba898b265519e018501a5d5ebe41f644ca5e8534e04cf07b4ef5afa592595f60ddd5f453
@@ -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
@@ -135,10 +136,12 @@ class Envirobly::Config
135
136
  release_command
136
137
  env
137
138
  health_check
139
+ http
138
140
  private
139
141
  aliases
140
142
  ]
141
143
  NAME_FORMAT = /\A[a-z0-9\-_\.\/]+\z/i
144
+ BUILD_VALUE_FORMAT = /\Av[\d+]\z/
142
145
  def validate_services(services)
143
146
  unless services.is_a?(Hash)
144
147
  @errors << "`services` key must be a hash."
@@ -159,6 +162,12 @@ class Envirobly::Config
159
162
  unless VALID_SERVICE_KEYS.include?(attribute)
160
163
  @errors << "Service `#{name}` attribute `#{attribute}` is not a valid attribute."
161
164
  end
165
+
166
+ if attribute == :build
167
+ unless value =~ BUILD_VALUE_FORMAT
168
+ @errors << "Service `#{name}` attribute `#{attribute}` format needs to be a number prefixed with letter \"v\", for example \"v1\"."
169
+ end
170
+ end
162
171
  end
163
172
 
164
173
  BUILD_DEFAULTS.each do |attribute, options|
@@ -1,3 +1,3 @@
1
1
  module Envirobly
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.2"
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.2
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-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.5.20
168
+ rubygems_version: 3.5.22
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Envirobly command line interface