soar_ldap 0.0.3 → 0.0.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: f92adb7366c4f51c3a65a3b3ba255d56da24686a
4
- data.tar.gz: 814d64bbe751e44ede0deff1bc20ae26bfadb0f5
3
+ metadata.gz: 63658e6893f282a62f703a2e6c1d5f5734d94008
4
+ data.tar.gz: 95999804011b2260bfd7d1e39f05659562686135
5
5
  SHA512:
6
- metadata.gz: 1938f6af71b5e91fff7298170355f31d587721127f2828bcaca9bafbca2ce5188923f646456d01252aef80b2c722abb338ea4a2194aced9ef3fac8bf792adcd5
7
- data.tar.gz: 50d74325c45b23f903a4cc9c6d96bdd7a12843ab32edb6002a6686375a59f78c243f8ccb30e7b75c97cd388fcb13e9534d43efd748b4d89708dba1d3a1aa4718
6
+ metadata.gz: 6877f14f3bacda03e3d02bea9d0480bc5b7eb0b07f3ed84ea1572789151f1c9eaf986fcf0a9638d321b77bb8fa802741646bc70a45207fa4229ab37237c29962
7
+ data.tar.gz: 0404f937502e379f798d163520c66dfbf3b23becb0ea346a1cb59c6a98c3396061807aa876acf4baa86cc7f072bd424bd3444d061d5e16aa50bcf891c1b0d86e
@@ -1,3 +1,3 @@
1
1
  module SoarLdap
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/soar_ldap.rb CHANGED
@@ -28,9 +28,7 @@ module SoarLdap
28
28
  @configuration = nil
29
29
  validate_configuration(configuration)
30
30
  remember_configuration(configuration)
31
- @freshness = configuration['freshness']
32
- @freshness ||= 0
33
- @cache = ::Persistent::Cache.new("soar_ldap", @freshness, Persistent::Cache::STORAGE_RAM)
31
+ initialize_cache(configuration)
34
32
  end
35
33
 
36
34
  def bootstrapped?
@@ -136,5 +134,11 @@ module SoarLdap
136
134
  @cache[connection.to_s] ||= {}
137
135
  @cache[connection.to_s][identifier] = result
138
136
  end
137
+
138
+ def initialize_cache(configuration)
139
+ @freshness = configuration['freshness']
140
+ @freshness ||= 0
141
+ @cache = ::Persistent::Cache.new("soar_ldap", @freshness, Persistent::Cache::STORAGE_RAM)
142
+ end
139
143
  end
140
144
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_ldap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan