lambda_deployment 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lambda_deployment/configuration.rb +5 -3
- data/lib/lambda_deployment/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cee5ecd45081eeb25e952b786091cafb838701cd
|
4
|
+
data.tar.gz: dac42999278efecc8551db272f7924afe654fa17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 729b2e012d79bb2d8b265d7d5f3c3f59794b48a925bf6761614e433f9e5e4db9a4cd015d540584b42b53e1ab44de420cf5b21b862c41bf22af35eacb6046a9b0
|
7
|
+
data.tar.gz: 954f3352675605f323e7e3ff9739b9ae06a64a15005cc4930ecd5b4e7336a31c0e8a034f9f9de5c181f8b79361353e16efe3e346818c8f573f89838d18a34464
|
@@ -14,10 +14,12 @@ module LambdaDeployment
|
|
14
14
|
@s3_sse = config.fetch('s3_sse', ENV.fetch('LAMBDA_S3_SSE', nil))
|
15
15
|
end
|
16
16
|
|
17
|
+
# lambda aliases must satisfy (?!^[0-9]+$)([a-zA-Z0-9-_]+)
|
17
18
|
def alias_name
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
tag = ENV['TAG'].to_s.gsub(/[^a-zA-Z0-9\-_]/, '')
|
20
|
+
return nil if tag.empty?
|
21
|
+
tag.prepend 'v' if tag =~ /^[0-9]+$/ # just a number like 123 so lets turn it into v123
|
22
|
+
tag
|
21
23
|
end
|
22
24
|
|
23
25
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lambda_deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zendesk CloudOps
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.5.1
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Lambda Deployment Library
|