tagged-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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.2 2010-10-07
2
+
3
+ * Fixed bug: TaggedStore#read_tags does not escape keys.
4
+
1
5
  === 1.0.1 2010-10-07
2
6
 
3
7
  * Fixed bug: incorrect Hash#delete using to filter options.
@@ -62,9 +62,9 @@ module ActiveSupport
62
62
  def read_tags(*keys)
63
63
  instrument(:read_tags, keys) do
64
64
  options = keys.extract_options! || {}
65
- tag_names = keys.map { |k| expanded_tag(k) }
65
+ keys = keys.map { |k| expanded_tag(k) }
66
66
  tags = @tag_store.read_multi(*(keys << options.merge(:raw => true)))
67
- (tag_names - tags.keys).each do |unknown_tag|
67
+ (keys - tags.keys).each do |unknown_tag|
68
68
  tags[unknown_tag] = read_tag(unknown_tag)
69
69
  end
70
70
  tags
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Ageev