memcached-seanl 0.19.5.1 → 0.19.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.19.5.2. Remove artificial error
2
+
1
3
  v0.19.5.1. Test that I'm really using the right module
2
4
 
3
5
  v0.19.5. Fix autoconf datestamps.
@@ -24,7 +24,6 @@ class Memcached
24
24
  @logger = opts[:logger]
25
25
  logger.info { "memcached #{VERSION} #{servers.inspect}" } if logger
26
26
  super(servers, opts)
27
- raise RuntimeError
28
27
  end
29
28
 
30
29
  def logger=(logger)
@@ -60,6 +59,9 @@ class Memcached
60
59
  # Wraps Memcached#set.
61
60
  def set(key, value, ttl=@default_ttl, raw=false)
62
61
  super(key, value, ttl, !raw)
62
+ true
63
+ rescue NotStored, NotFound
64
+ false
63
65
  end
64
66
 
65
67
  # Alternative to #set. Accepts a key, value, and an optional options hash supporting the
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{memcached-seanl}
5
- s.version = "0.19.5.1"
5
+ s.version = "0.19.5.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sean Lynch"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcached-seanl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 193
4
+ hash: 199
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 19
9
9
  - 5
10
- - 1
11
- version: 0.19.5.1
10
+ - 2
11
+ version: 0.19.5.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Sean Lynch