hiera-router 0.3.7 → 0.3.8

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: 90751f504280dac34446f8828a953231c32797cb
4
- data.tar.gz: ff992a9564ae7735fafc05dc7798a20616ebb3c6
3
+ metadata.gz: 195952fdfc13469cd0e964f0f08cd4331011ed3f
4
+ data.tar.gz: 611d3d57d2a4df80f2bbf681236560fbf9e8d74a
5
5
  SHA512:
6
- metadata.gz: 1df859f645d6dc5c46cd2d430e641b04170bcf41d2733340ff04885013a2c4d6d0e4a4eac3d66cb77e60743b0576af93e9b9d5862fd92cd4aeb72626c84ea962
7
- data.tar.gz: bd0bd5d0b02242f0c69b6db42d43348b86bf401433ba6cf9e6cf41f5c41524324ca78d495443357b3359f3b9cadbd4f667ef778f8bdf1a1758599d9a26152e09
6
+ metadata.gz: 680057f568fb7d2a918f828fb0ab519393d7f18750289aa163b2d1a30de706475887bb6bc3f606c4077e8789468496134d59f2c30f8d3799e711c6114626962f
7
+ data.tar.gz: 2d1c1904bfca4c5cb69666fafeb7371a34890e7c4544d4f35f6e793ec1e9b8fb6c4ebc63bf3d9fa189fe7a1178586c0dd1f4a18d4ac9c6cc3b1ea3094cf8f23a
@@ -23,7 +23,7 @@ class Hiera
23
23
  @cache = cache || Filecache.new
24
24
  @bigcache = {}
25
25
  @backends = {}
26
- @cache = 60 # Cache all values for 1 minute
26
+ @cache_time = 60 # Cache all values for 1 minute
27
27
  Hiera.debug("[hiera-router] I'm here!")
28
28
  self.config = Config.config
29
29
 
@@ -72,7 +72,7 @@ class Hiera
72
72
  cache_key = options.to_s
73
73
  cached_value = @bigcache[cache_key]
74
74
  if cached_value
75
- return cached_value[:value] if cached_value[:time] > Time.now - @cache
75
+ return cached_value[:value] if cached_value[:time] > Time.now - @cache_time
76
76
  end
77
77
  answer = nil
78
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste