tck-lambdas 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tck/lambdas/aws_function.rb +13 -2
- data/lib/tck/lambdas/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: c61dd189f557744f188d942c50b07ea1e1c1843b
|
4
|
+
data.tar.gz: 047c35b22c77f15ff2164f3e5e677f1d77c69d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be15a18f604cf72e2efb8dad9b1d13015b15c3aeee01a0347963f9e5b9506799f5cd8801010748bd98813f84b2aee2477450dc291a5e4bc0d4041cadf211f491
|
7
|
+
data.tar.gz: acd672f52eca004beee5f72fba7acb52398479c96b6118cc634f07e2f31a793e586326ab470262e42230999928dda581fee1f59ca880865659e5c689dbc8b477
|
@@ -13,7 +13,17 @@ module Tck
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.yaml
|
16
|
-
|
16
|
+
if File.exist?('.lambdas.yml')
|
17
|
+
current_timestamp = File.mtime('.lambdas.yml')
|
18
|
+
if @timestamp == current_timestamp
|
19
|
+
@yaml
|
20
|
+
else
|
21
|
+
@timestamp = current_timestamp
|
22
|
+
@yaml = YAML.load_file('.lambdas.yml')
|
23
|
+
end
|
24
|
+
else
|
25
|
+
{}
|
26
|
+
end
|
17
27
|
end
|
18
28
|
|
19
29
|
def self.clean_tmps!
|
@@ -23,7 +33,8 @@ module Tck
|
|
23
33
|
|
24
34
|
def initialize(name)
|
25
35
|
@name = name.to_s
|
26
|
-
@conf = yaml
|
36
|
+
@conf = yaml && yaml[@name] || {}
|
37
|
+
@timestamp = nil
|
27
38
|
end
|
28
39
|
|
29
40
|
def function_name
|
data/lib/tck/lambdas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tck-lambdas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Garcia Samblas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|