cache_replace 0.0.1 → 0.1.0
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 +8 -8
- data/lib/cache_replace/version.rb +1 -1
- data/lib/cache_replace.rb +5 -4
- data/test/cache_replace_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTFlYjk2NzQ1NGE4YWVlOWQ0ODUwMTBiZmY5MjZjN2Q1NzQ0MDlhMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGE2MzkxNzJkMjAxYjliMWE5Y2Q3YmFlOGY1M2I0ZTZhNWFhNDhkZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzVhNGYzNjljMDhhYjQ1OGM4YjljMDM4ZmY1MjhhODNjYTQxMTJhZTQwMDNl
|
10
|
+
Yjc1MzU3NDE3NDU4MDkxY2MwZjU0NDkyZWMwYjQ4MzcwZWQwZWVkYTBhNjM3
|
11
|
+
OWE5NWE2MzI0ZjQ1Njc0YjRmZTRmODE0ODdhMThlNDNhNWZiOGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDE4Yzg2MGY1Y2VmNTBjZDI1YTc1MWI5NzJjMmUwYjEzMTg0NGVhZDEwN2Jl
|
14
|
+
OWFlODZjNzJhMGJmNjE0MTNjZDllM2QzZWE0ZGQ4YmI5ZGRmMzU3YzAzYzNi
|
15
|
+
MTdkZGE0MzdmYjgzYWEwN2I2ZTJiYjgwYTk0YTg5NTZlOGJmY2Y=
|
data/lib/cache_replace.rb
CHANGED
@@ -40,12 +40,13 @@ module CacheReplace
|
|
40
40
|
raw fragment
|
41
41
|
end
|
42
42
|
|
43
|
-
|
43
|
+
CACHE_REPLACE_KEY_OPEN = '<cr '
|
44
44
|
|
45
|
-
# string key containing the partial file name or placeholder key
|
46
|
-
#
|
45
|
+
# string key containing the partial file name or placeholder key.
|
46
|
+
# It is a tag that should never be returned to be rendered by the
|
47
|
+
# client, but if so, it will be hidden since CR is not a valid html tag.
|
47
48
|
def cache_replace_key(key)
|
48
|
-
raw "#{
|
49
|
+
raw "#{CACHE_REPLACE_KEY_OPEN}#{key.to_s}>"
|
49
50
|
end
|
50
51
|
|
51
52
|
private
|
data/test/cache_replace_test.rb
CHANGED
@@ -16,7 +16,7 @@ class CacheReplaceTest < Test::Unit::TestCase
|
|
16
16
|
|
17
17
|
context "#cache_replace_key" do
|
18
18
|
should "return key with prefix" do
|
19
|
-
assert_equal CacheReplace::
|
19
|
+
assert_equal CacheReplace::CACHE_REPLACE_KEY_OPEN + "some/thing>", @renderer.cache_replace_key("some/thing")
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cache_replace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tee Parham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|