layercake 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.markdown +8 -6
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/layercake.gemspec +1 -4
  5. metadata +5 -18
data/README.markdown CHANGED
@@ -7,12 +7,14 @@ It is built on the idea that memory store is the most efficient store with no ne
7
7
  ## Installation
8
8
 
9
9
  The order of the arguments are defining the layers, where the first ones are on the lowest/closest levels.
10
- `ActionController::Base.cache_store = Layercake::Store.new(:memory_store, :mem_cache_store => ['localhost', 11211])`
11
-
12
- Use it like you would normally use any cache store.
13
- `Rails.cache.fetch`
14
- `Rails.cache.write`
15
- `Rails.cache.read`
10
+ Add this in your application.rb (Rails 3 anyway)
11
+ `config.cache_store = Layercake::Store.new(:memory_store, :mem_cache_store => 'localhost:11211')`
12
+ (localhost:11211 is default, and not really necessary to specify)
13
+
14
+ Use it like you would normally use any cache store.
15
+ `Rails.cache.fetch
16
+ Rails.cache.write
17
+ Rails.cache.read`
16
18
  all the options given will be passed on to the individual cache stores
17
19
 
18
20
  ## Tests
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ It is built on the idea that memory store is the most efficient store with no ne
11
11
  gem.email = "peter.haza@gmail.com"
12
12
  gem.homepage = "http://github.com/phaza/layercake"
13
13
  gem.authors = ["Peter Haza"]
14
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
+ # gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
15
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/layercake.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{layercake}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Haza"]
@@ -45,12 +45,9 @@ It is built on the idea that memory store is the most efficient store with no ne
45
45
  s.specification_version = 3
46
46
 
47
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
49
48
  else
50
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
51
49
  end
52
50
  else
53
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
54
51
  end
55
52
  end
56
53
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: layercake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Peter Haza
@@ -17,21 +17,8 @@ cert_chain: []
17
17
 
18
18
  date: 2010-10-08 00:00:00 +02:00
19
19
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: thoughtbot-shoulda
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
33
- type: :development
34
- version_requirements: *id001
20
+ dependencies: []
21
+
35
22
  description: |-
36
23
  LayerCake is a simple gem that allows you to specify more than one cache store in rails.
37
24
  It is built on the idea that memory store is the most efficient store with no network or file overhead, but serves multi-process or multi-server architectures, hence a fallback like filestore or memcached store is necessary.