sleepy 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/sleepy.rb +2 -2
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
data/lib/sleepy.rb CHANGED
@@ -14,7 +14,7 @@ module Weary
14
14
  class Request
15
15
 
16
16
  def self.sleepy
17
- @@sleepy ||= Memcached.new
17
+ @@sleepy ||= Memcached.new(ENV["MEMCACHE_SERVERS"])
18
18
  end
19
19
 
20
20
  def sleepy
@@ -64,7 +64,7 @@ module Weary
64
64
  sleepy.set("0:#{uri}", response)
65
65
  end
66
66
  rescue
67
- sleepy.get("0:#{uri}") rescue nil
67
+ response = sleepy.get("0:#{uri}") rescue nil
68
68
  end
69
69
  response
70
70
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sleepy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - steflewandowski
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-17 00:00:00 +01:00
18
+ date: 2010-12-30 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency