dogtag 1.2.0 → 1.2.1

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: fc1c486ed7bc7f2d149a712b662e54318d7dd1c1
4
- data.tar.gz: 411fb7a933d1ddb2e5fcefb2a341caae79d42893
3
+ metadata.gz: 30994b71b3d3f4fe46d6bad9f37697714d50a404
4
+ data.tar.gz: 1839f477f5d8dff1fe188ee9326e24302989c82a
5
5
  SHA512:
6
- metadata.gz: 5af3d85d8dc0596de7666725fbf24e734d05ad1ff6d4b32103e59f51a3bbf6a1a9d3325adcf32c61ae9f96699e9bb60ec434f1f1d8f05bb7c14245ff56ab5a61
7
- data.tar.gz: 98002f29bcd79b377c6bdbb3cfb704780d208b010fa35f8b3dd360f1f39221f6fcca29035cc19dc48b400dd2c558a32186c6eff48d827109b7a2a8acc16bfef7
6
+ metadata.gz: 6ba8b3146e0706823746fbe630376e35450615dcbe789db138aedf0dfd668f62abbcc3557ae57e28780191ce796fe90809519633c3c4c45897d229fc3be0f480
7
+ data.tar.gz: 501efc644f6547948545706bf2796a79a19470bc536e2ac396e6804c15ba1cfaebe6592d347b14b9221adc85c693366715c1e012d586609e2b23ffb7bbd87e9a
data/README.md CHANGED
@@ -37,7 +37,7 @@ Dogtag.generate_id data_type
37
37
  ```ruby
38
38
  data_type = 42
39
39
  count = 100
40
- Dogtag.generate_id data_type, count
40
+ Dogtag.generate_ids data_type, count
41
41
  ```
42
42
 
43
43
  *Note: The available data type ID numbers are current 0 - 255.*
@@ -41,6 +41,10 @@ module Dogtag
41
41
  redis_response
42
42
  rescue Redis::CommandError => err
43
43
  if @tries < MAX_TRIES
44
+ # Clear out the cache of the Lua script SHA to force a reload. This
45
+ # is necessary after a Redis restart
46
+ @@lua_script_sha = nil
47
+
44
48
  # Exponentially sleep more and more on each try
45
49
  sleep (@tries * @tries).to_f / 900
46
50
  retry
@@ -1,3 +1,3 @@
1
1
  module Dogtag
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dogtag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-20 00:00:00.000000000 Z
11
+ date: 2017-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis