lambda_deployment 0.1.2 → 0.1.3

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: 71d6b81ea24189e6be42c41508175fe9df1f4e73
4
- data.tar.gz: a4d92d5224477d52c7def79a8fec9e4770e09651
3
+ metadata.gz: c2bb595b73b4dce896085b7e4e4984ee9636b4ae
4
+ data.tar.gz: c27280d0320cfe4a0557453575740767e0fe36a5
5
5
  SHA512:
6
- metadata.gz: 75c1c43f7b158fe8f1425a6e73ba45ac83a1f16c98f69fe5f20e3a10e971bac81d93f9f3d41220b266c5c6ada9243baaaff89524afb8927ab806a850b74648bd
7
- data.tar.gz: 5fbdc5b3ec4b9c2b0165af2f9893999cb5fc27bb22105e4abe45e5643ffc3b31c76cd2bae82edef4f0deb1e681667573590b278d9d3efb88aab7c2dfc9e41881
6
+ metadata.gz: 82ca4fa570fa88ad914906ee7f732cc4c2491daba315a6e6033939dd2ac7b23f1d84c5a6353ee2f64a432f73ee9c66b4c3dc9273157d865274c25e15dbb61a23
7
+ data.tar.gz: 71e68f7a774dfcff7523c36c847fa4469ce42f626bb3c0acdd3f2977fe3e9c253bdd0e6207f8708b3db491a5ff8b8844c7e9183ccea1cbcaf3d0f7e5bcd26311
@@ -15,7 +15,9 @@ module LambdaDeployment
15
15
  end
16
16
 
17
17
  def alias_name
18
- ENV['TAG'].to_s[/\d.*/]
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
21
  end
20
22
 
21
23
  private
@@ -1,3 +1,3 @@
1
1
  module LambdaDeployment
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambda_deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zendesk CloudOps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2017-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core