right_support 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -127,7 +127,6 @@ module RightSupport::DB
127
127
 
128
128
  attr_reader :default_keyspace
129
129
  attr_accessor :column_family
130
- attr_accessor :custom_operation_exception
131
130
 
132
131
  @@current_keyspace = nil
133
132
 
@@ -184,18 +183,9 @@ module RightSupport::DB
184
183
 
185
184
  def with_keyspace(kyspc, &block)
186
185
  @@current_keyspace = (kyspc + "_" + (ENV['RACK_ENV'] || 'development'))
187
- begin
188
- block.call
189
- rescue Exception => e
190
- if !self.custom_operation_exception.nil? && self.custom_operation_exception.kind_of?(Proc)\
191
- && e.kind_of?(Thrift::Exception)
192
- custom_operation_exception.call
193
- else
194
- raise e
195
- end
186
+ block.call
196
187
  ensure
197
188
  @@current_keyspace = nil
198
- end
199
189
  end
200
190
 
201
191
  # Client connected to Cassandra server
@@ -7,7 +7,7 @@ spec = Gem::Specification.new do |s|
7
7
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
8
8
 
9
9
  s.name = 'right_support'
10
- s.version = '2.2.1'
10
+ s.version = '2.2.2'
11
11
  s.date = '2012-06-27'
12
12
 
13
13
  s.authors = ['Tony Spataro', 'Sergey Sergyenko', 'Ryan Williamson', 'Lee Kirchhoff', 'Sergey Enin']
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_support
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 1
10
- version: 2.2.1
9
+ - 2
10
+ version: 2.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tony Spataro