perforated 0.10.0 → 0.10.1

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: 907c4447153261709537b4ff03efd368be94f59a
4
- data.tar.gz: 2761cf1f6cc3f8938b2eef515972ced97274c968
3
+ metadata.gz: 4bda0987fe1d2c771be6e19748c825890fc0ad63
4
+ data.tar.gz: c3510ca5f9fc68891a7b328226f05fb2df57d680
5
5
  SHA512:
6
- metadata.gz: 98b9a3c654f3908efc2d0e78f3dc1d2f8297cd6554d31ba4d13acfdb903222f8163fecbc534528053fd660edef089dfa8df94dc661df566d6981fdb6086d1e6b
7
- data.tar.gz: e03fb7f70a5b36f4e0a4ed36d939b38dda8cbf9bbdb43e88d54f8650f8cf2d5c27793787c48620a7a81fb70990881b956c505a9fabbfa8bd1e119f317b33a183
6
+ metadata.gz: b51bdd681d3965fb5d32f3d79014a3083a1488a09b65e3690172368c66bd5a9ea2dd60a46df78d274e8a60e0127c7e661b7be73adda4f168001244033a1caad4
7
+ data.tar.gz: 7f37e0dc9b27a0a7cc5b733e4dea38f5649a7c1577ec14c50f83663c7d272acbc1d7d1e9aac7998b1ce9bda503c1eb33b52a1b34038a66357fc2c6aa745ec3f8
@@ -1,3 +1,7 @@
1
+ ## v0.10.1 2015-01-05
2
+
3
+ * Fixed: Safely return an empty hash when there aren't any keys.
4
+
1
5
  ## v0.10.0 2014-12-10
2
6
 
3
7
  * Changed: No longer support batching during serialization. See cb00076 for more
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ gemspec
4
4
 
5
5
  gem 'oj'
6
6
  gem 'redis'
7
- gem 'redis-activesupport', github: 'redis-store/redis-activesupport'
7
+ gem 'readthis'
@@ -6,7 +6,7 @@ require 'benchmark'
6
6
  require 'perforated'
7
7
  require 'active_support/core_ext/object'
8
8
  require 'redis'
9
- require 'redis-activesupport'
9
+ require 'readthis'
10
10
 
11
11
  Structure = Struct.new(:id) do
12
12
  def to_json
@@ -32,7 +32,7 @@ Benchmark.bm do |x|
32
32
  puts "Total Objects: #{ObjectSpace.count_objects[:TOTAL]}"
33
33
 
34
34
  Perforated.configure do |config|
35
- config.cache = ActiveSupport::Cache::RedisStore.new(host: 'localhost', db: 5)
35
+ config.cache = Readthis::Cache.new('redis://localhost:6379/5')
36
36
  end
37
37
 
38
38
  Perforated.cache.clear
@@ -30,6 +30,8 @@ module Perforated
30
30
  def fetch_multi(keyed, &block)
31
31
  keys = keyed.keys.map(&:dup)
32
32
 
33
+ return {} unless keys.any?
34
+
33
35
  Perforated::Compatibility.fetch_multi(*keys, &block)
34
36
  end
35
37
 
@@ -1,3 +1,3 @@
1
1
  module Perforated
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perforated
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Selbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-10 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport