kasket 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kasket/select_manager_mixin.rb +1 -1
- data/lib/kasket/version.rb +1 -1
- data/test/find_one_test.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce801eb80f7eda453f07735fd934423d4fb925ca
|
4
|
+
data.tar.gz: 5815830b14132e65b2f0395dfb5eef1a1fcaa344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89cbd7cb351b9e25af6b5f02afe1715e0c5a56556303161ee00846a1e087822eec8ca591d67a9e63dea6e80bbcae15cec901195567dd1c1cb800fa960a4fb017
|
7
|
+
data.tar.gz: 5bf55e25bfbe743cc1dc6a1236cda1afc1cc3df0b34513acbc99d3f15973593fcf11a639e306f02beecfa6add59f665277dd774167293910888d07906a74710c
|
data/lib/kasket/version.rb
CHANGED
data/test/find_one_test.rb
CHANGED
@@ -48,4 +48,14 @@ class FindOneTest < ActiveSupport::TestCase
|
|
48
48
|
other_blog.posts.find(post.id)
|
49
49
|
end
|
50
50
|
end
|
51
|
+
|
52
|
+
should "use same scope when finding on has_many" do
|
53
|
+
post = Blog.first.posts.first
|
54
|
+
blog = Blog.first
|
55
|
+
Rails.cache.clear
|
56
|
+
|
57
|
+
post = blog.posts.find_by_id(post.id)
|
58
|
+
key = post.kasket_key.sub(%r{(/id=#{post.id})}, "/blog_id=#{Blog.first.id}\\1")
|
59
|
+
assert(Kasket.cache.read(key))
|
60
|
+
end
|
51
61
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kasket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
176
|
rubyforge_project:
|
177
|
-
rubygems_version: 2.0.
|
177
|
+
rubygems_version: 2.0.3
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: A write back caching layer on active record
|