with_connection 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.12
1
+ 0.1.13
@@ -9,31 +9,31 @@ module ActiveSupport
9
9
 
10
10
  def fetch(name, options=nil)
11
11
  with_connection do
12
- connection.fetch name, options
12
+ options ? connection.fetch(name, options) : connection.fetch(name)
13
13
  end
14
14
  end
15
15
 
16
16
  def read(name, options=nil)
17
17
  with_connection do
18
- connection.read name, options
18
+ options ? connection.read(name, options) : connection.read(name)
19
19
  end
20
20
  end
21
21
 
22
22
  def write(name, value, options=nil)
23
23
  with_connection do
24
- connection.write name, value, options
24
+ options ? connection.write(name, value, options) : connection.write(name, value)
25
25
  end
26
26
  end
27
27
 
28
28
  def exist?(name, options=nil)
29
29
  with_connection do
30
- connection.exist? name, options
30
+ options ? connection.exist?(name, options) : connection.exist?(name)
31
31
  end
32
32
  end
33
33
 
34
34
  def delete(name, options=nil)
35
35
  with_connection do
36
- connection.delete name, options
36
+ options ? connection.delete(name, options) : connection.delete(name)
37
37
  end
38
38
  end
39
39
 
@@ -45,13 +45,13 @@ module ActiveSupport
45
45
 
46
46
  def increment(name, amount = 1, options=nil)
47
47
  with_connection do
48
- connection.increment name, amount, options
48
+ options ? connection.increment(name, amount, options) : connection.increment(name, amount)
49
49
  end
50
50
  end
51
51
 
52
52
  def decrement(name, amount = 1, options=nil)
53
53
  with_connection do
54
- connection.decrement name, amount, options
54
+ options ? connection.decrement(name, amount, options) : connection.decrement(name, amount)
55
55
  end
56
56
  end
57
57
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "with_connection"
8
- s.version = "0.1.12"
8
+ s.version = "0.1.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: with_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: 4460793055233630791
117
+ hash: -2015607905547748004
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements: