envirobly 0.6.1 → 0.7.0

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: 3e30e5017a85588ff1c6122ffb0a3fbb13b132793ca8a53a25b05e3402cdebc5
4
- data.tar.gz: ff5049f4c3f9679586cfa6595ac52070eaaf8e10e34a9f96ec054a3df583e9c5
3
+ metadata.gz: 6226263c06257afa2005e3f2294d191e2c94f3984945373425279c52093bc39b
4
+ data.tar.gz: d5a51f52257f763c81419d62fc75fde808a4499fdfc7f9fc1847190f5771c55c
5
5
  SHA512:
6
- metadata.gz: d4aa3b80f59d1dbe19a045e802a36341d7b7393ec7320c9382fecbaa3f8182800b86b6b25bb1af02ff69badc3efb1fd200e2229314b20ed8960ed894f567d562
7
- data.tar.gz: fa4076c20c3cda9c05a6c356ea125aec3879ce68b4448c6becda3448ce8cb8a37c0dc8525fa8f4f4fdd85161e01a18efaad78dde37bfc80b4e4ebe15b85d84f1
6
+ metadata.gz: 4a426ce35d69e3b38f3873d5181e0f57601d8404bf08f30cfb1e8e32728fb753d5ebfcfcbd328365ece306358d2efc77c3b61e05006e92a5c31711560805e67d
7
+ data.tar.gz: 0b48b6e836a7ee0c9449dbc1b61a2462030b2bd3420132f955d449d70ee3017544350a580208d539a4bebeb18faff161c8da908c4ddc3eaf03d8b08d8b0e0424
@@ -36,7 +36,6 @@ class Envirobly::Config
36
36
  @result = @project.slice(:services)
37
37
  set_project_url
38
38
  merge_environment_overrides! unless @environment.nil?
39
- transform_env_var_values!
40
39
  append_image_tags!
41
40
  end
42
41
 
@@ -68,16 +67,6 @@ class Envirobly::Config
68
67
  @project_url = dig :project
69
68
  end
70
69
 
71
- def transform_env_var_values!
72
- @result[:services].each do |name, service|
73
- service.fetch(:env, {}).each do |key, value|
74
- if value.is_a?(Hash) && value.has_key?(:file)
75
- @result[:services][name][:env][key] = @commit.file_content(value.fetch(:file)).strip
76
- end
77
- end
78
- end
79
- end
80
-
81
70
  NON_BUILDABLE_TYPES = %w[ postgres mysql valkey ]
82
71
  BUILD_DEFAULTS = {
83
72
  dockerfile: [ "Dockerfile", :file_exists? ],
@@ -149,7 +138,7 @@ class Envirobly::Config
149
138
  private
150
139
  aliases
151
140
  ]
152
- NAME_FORMAT = /\A[a-z0-9\-_]+\z/
141
+ NAME_FORMAT = /\A[a-z0-9\-_\.\/]+\z/i
153
142
  def validate_services(services)
154
143
  unless services.is_a?(Hash)
155
144
  @errors << "`services` key must be a hash."
@@ -158,7 +147,7 @@ class Envirobly::Config
158
147
 
159
148
  services.each do |name, service|
160
149
  unless name =~ NAME_FORMAT
161
- @errors << "`#{name}` is not a valid service name. Allowed characters: a-z, 0-9, -, _"
150
+ @errors << "`#{name}` is not a valid service name. Use aplhanumeric characters, dash, underscore, slash or dot."
162
151
  end
163
152
 
164
153
  unless service.is_a?(Hash)
@@ -201,7 +190,7 @@ class Envirobly::Config
201
190
 
202
191
  environments.each do |environment, services|
203
192
  unless environment =~ NAME_FORMAT
204
- @errors << "`#{environment}` is not a valid environment name. Allowed characters: a-z, 0-9, -, _"
193
+ @errors << "`#{environment}` is not a valid environment name. Use aplhanumeric characters, dash, underscore, slash or dot."
205
194
  end
206
195
 
207
196
  validate_services services
@@ -1,3 +1,3 @@
1
1
  module Envirobly
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
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.6.1
4
+ version: 0.7.0
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-24 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: mocha
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: activesupport
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  requirements: []
154
- rubygems_version: 3.5.18
168
+ rubygems_version: 3.5.20
155
169
  signing_key:
156
170
  specification_version: 4
157
171
  summary: Envirobly command line interface