cache_replace 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTdiNzUyNjYyM2NkYzA2ZjhmMjcyNDE3Nzg0M2Q4NGViZjM0NzY3ZA==
4
+ OTFlYjk2NzQ1NGE4YWVlOWQ0ODUwMTBiZmY5MjZjN2Q1NzQ0MDlhMw==
5
5
  data.tar.gz: !binary |-
6
- NGZlMDZlYWNhOTVkNTE4ZTFiNzAyMGE1NTNmMDQyMTNhMTAwM2E2Yg==
6
+ NGE2MzkxNzJkMjAxYjliMWE5Y2Q3YmFlOGY1M2I0ZTZhNWFhNDhkZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2FkMmIyY2Q2YTVjNzBlYzMwZjg4ODY2ZmU4NjI2NjE5MTE3ZDcyNDQ5MjEy
10
- MDY0OTFlMGU1ZjI1YWU2MjJhNGZjNjJjMmM2Zjc3N2M0MzA4NGZkNDdkY2I5
11
- NDU3YzdmMTVkODg5OWI2MmE1MGZjNjQyZDk1NzdkMjA5NDk2OWU=
9
+ NzVhNGYzNjljMDhhYjQ1OGM4YjljMDM4ZmY1MjhhODNjYTQxMTJhZTQwMDNl
10
+ Yjc1MzU3NDE3NDU4MDkxY2MwZjU0NDkyZWMwYjQ4MzcwZWQwZWVkYTBhNjM3
11
+ OWE5NWE2MzI0ZjQ1Njc0YjRmZTRmODE0ODdhMThlNDNhNWZiOGE=
12
12
  data.tar.gz: !binary |-
13
- NzlkNjU0ODkxMGU0OWE4OGYzZDliZTE0MDE3Mzg4NTQ4NDMyMjRhMDhlM2Mz
14
- NGMyYzMzMGQ0NmU4ZjVlZjIwNDNjY2JmYzQ1Y2U5YmMyODVhYzE4MWExNGU0
15
- ODRiZjJhMTUwZmU3YTgyZGFhYTE0ODVkOWYzOWEyZjRlMjZjZTQ=
13
+ MDE4Yzg2MGY1Y2VmNTBjZDI1YTc1MWI5NzJjMmUwYjEzMTg0NGVhZDEwN2Jl
14
+ OWFlODZjNzJhMGJmNjE0MTNjZDllM2QzZWE0ZGQ4YmI5ZGRmMzU3YzAzYzNi
15
+ MTdkZGE0MzdmYjgzYWEwN2I2ZTJiYjgwYTk0YTg5NTZlOGJmY2Y=
@@ -1,3 +1,3 @@
1
1
  module CacheReplace
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/cache_replace.rb CHANGED
@@ -40,12 +40,13 @@ module CacheReplace
40
40
  raw fragment
41
41
  end
42
42
 
43
- CACHE_FRAGMENT_KEY = '____>>'
43
+ CACHE_REPLACE_KEY_OPEN = '<cr '
44
44
 
45
- # string key containing the partial file name or placeholder key
46
- # it should return a string that your renderer will never contain
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 "#{CACHE_FRAGMENT_KEY}#{key.to_s}"
49
+ raw "#{CACHE_REPLACE_KEY_OPEN}#{key.to_s}>"
49
50
  end
50
51
 
51
52
  private
@@ -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::CACHE_FRAGMENT_KEY + "some/thing", @renderer.cache_replace_key("some/thing")
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2013-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack