cachetastic 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,6 @@
18
18
  # servers:
19
19
  # - 127.0.0.1:11211
20
20
  class Cachetastic::Adapters::Memcache < Cachetastic::Adapters::Base
21
- require 'memcache'
22
21
 
23
22
  def setup
24
23
  self.conn = MemCache.new(self.servers, self.store_options.merge({:namespace => self.namespace}))
data/lib/cachetastic.rb CHANGED
@@ -6,6 +6,14 @@ require 'yaml'
6
6
  require 'zlib'
7
7
  require 'pp'
8
8
  require 'drb'
9
+ begin
10
+ require 'memcache'
11
+ rescue Exception => e
12
+ # if you don't have memcache installed, don't
13
+ # blow up, print a message, and you can't use
14
+ # the memcache adapter.
15
+ puts e.message
16
+ end
9
17
 
10
18
  module Cachetastic #:nodoc:#
11
19
  module Caches #:nodoc:#
@@ -2,4 +2,4 @@
2
2
  gem_name: cachetastic
3
3
  package: cachetastic
4
4
  project: magrathea
5
- version: 1.4.1
5
+ version: 1.4.2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cachetastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-03-14 00:00:00 -04:00
13
+ date: 2008-03-26 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16