lock_and_cache 1.0.1 → 1.0.2

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: 9845e5a7f52feea98d5f059df539cd79258ba24d
4
- data.tar.gz: 58865bd7f3a4a94516bc16e7eed6b4d26b53fba3
3
+ metadata.gz: ce75840f5c7d5b2f97e11c3e9e1cd557e7090c03
4
+ data.tar.gz: 0884f62ed8c7d5e45fea3308f1eac1ea66c6960c
5
5
  SHA512:
6
- metadata.gz: 57db24888a5da3addfc922b470a5cd7e1da892f5c227326413669165277d3f6aa017ab1812ca3514439fa4965c81c6627b7ecd324edb752ff0cd6b0949e78b46
7
- data.tar.gz: 8cafb78639eb731bf7c439bfb101d65a8ec5633a2cecf68af33445e1a1224428302d1d64b2f304c13f74accc4c42e48c88e1f29975f38fb429597cfe3a3c9bbc
6
+ metadata.gz: 1d326c161215f2cd475d604e38fcc4eda775c1d58e6a7d0786f013bec67c815e240f086e4000a5bd77bdd0c90ee7c8d8d47267b764b3d231be6c7f2225beec80
7
+ data.tar.gz: 41740e0801216977844fdf40af31a0aea6cf5cb16d7f721fc93c3451d4090155be961f0d324aabc35bcf18960503f1de836fc770152ccacd22498a8e034ca0b0
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 1.0.2 / 2015-08-06
2
+
3
+ * Bug fixes
4
+
5
+ * Put LockAndCache.flush back
6
+
1
7
  1.0.1 / 2015-08-06
2
8
 
3
9
  * Bug fixes
@@ -21,6 +21,13 @@ module LockAndCache
21
21
  @storage
22
22
  end
23
23
 
24
+ # Flush LockAndCache's storage
25
+ #
26
+ # @note If you are sharing a redis database, it will clear it...
27
+ def LockAndCache.flush
28
+ storage.flushdb
29
+ end
30
+
24
31
  # @param seconds [Numeric] Lock expiry in seconds.
25
32
  #
26
33
  # @note Can be overridden by putting `expires:` in your call to `#lock_and_cache`
@@ -1,3 +1,3 @@
1
1
  module LockAndCache
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -61,7 +61,7 @@ end
61
61
 
62
62
  describe LockAndCache do
63
63
  before do
64
- LockAndCache.storage.flushdb
64
+ LockAndCache.flush
65
65
  end
66
66
 
67
67
  it 'has a version number' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lock_and_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seamus Abshere