lacquer 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,15 +5,24 @@ Rails drop in for Varnish support.
5
5
  == Install
6
6
  Basic installation
7
7
 
8
- rails generate lacquer
8
+ rails generate lacquer install
9
9
 
10
10
  config/initializers/lacquer.rb
11
11
 
12
12
  Lacquer.configure do |config|
13
+ # Globally enable/disable cache
13
14
  config.enable_cache = true
15
+
16
+ # Unless overridden in a controller or action, the default will be used
14
17
  config.default_ttl = 1.week
18
+
19
+ # Can be :none, :delayed_job, :resque
15
20
  config.job_backend = :none
16
- config.varnish_servers << { :host => '0.0.0.0', :port => 6082 }
21
+
22
+ # Array of Varnish servers to manage
23
+ config.varnish_servers << {
24
+ :host => '0.0.0.0', :port => 6082
25
+ }
17
26
  end
18
27
 
19
28
  app/controllers/application_controller.rb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lacquer}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Russ Smith"]
12
- s.date = %q{2010-06-14}
12
+ s.date = %q{2010-06-15}
13
13
  s.description = %q{Rails drop in for Varnish support.}
14
14
  s.email = %q{russ@bashme.org}
15
15
  s.extra_rdoc_files = [
@@ -2,4 +2,4 @@ Description:
2
2
  Installs Lacquer into your Rails application.
3
3
 
4
4
  Example:
5
- rails generate lacquer
5
+ rails generate lacquer install
@@ -7,7 +7,7 @@ class TestLacquer < ActiveSupport::TestCase
7
7
  end
8
8
 
9
9
  @telnet_mock = mock('Net::Telnet')
10
- @telnet_mock.stubs(:puts)
10
+ @telnet_mock.stubs(:cmd)
11
11
 
12
12
  @controller = ControllerClass.new
13
13
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Russ Smith
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-14 00:00:00 -07:00
17
+ date: 2010-06-15 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20