berater 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 04cc88a51db5eca83f7843c1d34cf86213a0ca412fd404e3fff88b3b6994ea8d
4
- data.tar.gz: 4eb67771a03cd0f4179d8d80655efcad738cb877b2fb5813399f136dc743090c
3
+ metadata.gz: 22b4ddfe5c7a48fbb3314743adf40d6c4c04e1c70198c210f34226065bd47f39
4
+ data.tar.gz: d4e917aba67a6aebf1e19f1bba80fce705b8e8e7a9f2e4f07045f8fdac36044d
5
5
  SHA512:
6
- metadata.gz: 9715ae524f7b0fdbbd60d352546ac86a0984f4a5e8966351ae00057e976c391076c270677b29f83c813043c24ad6fa7cae571f224df6400e98fa43bdb4f06cb6
7
- data.tar.gz: 16999ff18ea843d12ce6b847b79ddf3bc2b4372cf01371a63d36213ccc27717e06e8794f6b4a519a59af7cba1afaed3cc3ca92a5baed60302e6f1fe114dd29ac
6
+ metadata.gz: cd3724e47146912f01e01614341414447ea8cf86ebefbb75a2baf6079c46bc782a2c006df9ddfdf4b402d3f3ab7c55f2e02b9764e60e52994c0d6dd7eda9b804
7
+ data.tar.gz: 9b9c77973b16f11399d87924b1c279cb4274c91cdffe8e89a1e1b5d8881e9cefe9f75bf91e86e0160cacf748c137633f33250892ffc047fabe65c6eb4dc9b3aa
@@ -68,7 +68,6 @@ module Berater
68
68
  local exists
69
69
  local count
70
70
  local lock
71
- local ts = unpack(redis.call('TIME'))
72
71
 
73
72
  -- check to see if key already exists
74
73
  if ttl == 0 then
@@ -1,3 +1,3 @@
1
1
  module Berater
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -87,7 +87,7 @@ describe Berater::ConcurrencyLimiter do
87
87
  expect(limiter.limit).to be_a Berater::ConcurrencyLimiter::Lock
88
88
  expect { limiter }.to be_incapacitated
89
89
 
90
- sleep(1)
90
+ Timecop.travel(1)
91
91
 
92
92
  expect(limiter.limit).to be_a Berater::ConcurrencyLimiter::Lock
93
93
  expect(limiter.limit).to be_a Berater::ConcurrencyLimiter::Lock
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper