tck-lambdas 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cba545028ea561590c8b312bbb3752ed3447b0f
4
- data.tar.gz: 6ca2a38d254191aeaa4e0424e8e29206bfaf0907
3
+ metadata.gz: c61dd189f557744f188d942c50b07ea1e1c1843b
4
+ data.tar.gz: 047c35b22c77f15ff2164f3e5e677f1d77c69d32
5
5
  SHA512:
6
- metadata.gz: 0a0d5035fd41829b66b4d6af792bc0a4c0f33617937e981e1d3c58fbfc235cc94ec9c8d44b588a9d78e5a78068f8bf8ce9c93f94c691bc0c927795f4d37d4a20
7
- data.tar.gz: b3b2e6fa2d68dcf624217e2be3ca54228c199326ee728d368a59ac2384202c3e672a25db58211cf542f7c4fe45df398807ab5726b72ff01513eb6106eea4affa
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
- @yaml ||= File.exist?('.lambdas.yml') ? YAML.load_file('.lambdas.yml') : nil
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 ? yaml[@name] : {}
36
+ @conf = yaml && yaml[@name] || {}
37
+ @timestamp = nil
27
38
  end
28
39
 
29
40
  def function_name
@@ -1,5 +1,5 @@
1
1
  module Tck
2
2
  module Lambdas
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
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.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-12 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor