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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2bb595b73b4dce896085b7e4e4984ee9636b4ae
4
- data.tar.gz: c27280d0320cfe4a0557453575740767e0fe36a5
3
+ metadata.gz: cee5ecd45081eeb25e952b786091cafb838701cd
4
+ data.tar.gz: dac42999278efecc8551db272f7924afe654fa17
5
5
  SHA512:
6
- metadata.gz: 82ca4fa570fa88ad914906ee7f732cc4c2491daba315a6e6033939dd2ac7b23f1d84c5a6353ee2f64a432f73ee9c66b4c3dc9273157d865274c25e15dbb61a23
7
- data.tar.gz: 71e68f7a774dfcff7523c36c847fa4469ce42f626bb3c0acdd3f2977fe3e9c253bdd0e6207f8708b3db491a5ff8b8844c7e9183ccea1cbcaf3d0f7e5bcd26311
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
- # lambda aliases only allow select characters in the name so this strips them out
19
- # Member must satisfy regular expression pattern: (?!^[0-9]+$)([a-zA-Z0-9-_]+)
20
- ENV['TAG'].to_s.gsub(/[^\da-zA-Z\-_]/, '')[/([0-9]+)([a-zA-Z0-9\-_]+)/]
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
@@ -1,3 +1,3 @@
1
1
  module LambdaDeployment
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
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.3
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.6.8
105
+ rubygems_version: 2.5.1
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Lambda Deployment Library