tagged-cache 1.0.2 → 1.0.3

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.3 2010-10-07
2
+
3
+ * Fixed bug: :raw => true option in #read_multi is unnecessary.
4
+
1
5
  === 1.0.2 2010-10-07
2
6
 
3
7
  * Fixed bug: TaggedStore#read_tags does not escape keys.
@@ -1,5 +1,5 @@
1
1
  require "active_support/core_ext/integer/time"
2
- require "active_support/core_ext/hash"
2
+ require "active_support/core_ext/hash/except"
3
3
 
4
4
  module ActiveSupport
5
5
  module Cache
@@ -61,9 +61,9 @@ module ActiveSupport
61
61
 
62
62
  def read_tags(*keys)
63
63
  instrument(:read_tags, keys) do
64
- options = keys.extract_options! || {}
64
+ options = keys.extract_options!
65
65
  keys = keys.map { |k| expanded_tag(k) }
66
- tags = @tag_store.read_multi(*(keys << options.merge(:raw => true)))
66
+ tags = @tag_store.read_multi(*keys)
67
67
  (keys - tags.keys).each do |unknown_tag|
68
68
  tags[unknown_tag] = read_tag(unknown_tag)
69
69
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagged-cache
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Ageev