right_support 2.5.0 → 2.5.1

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.
@@ -176,8 +176,9 @@ module RightSupport::DB
176
176
  # block(Proc):: Code that will be called in keyspace context
177
177
  def with_keyspace(keyspace, append_env=true, &block)
178
178
  @@current_keyspace = keyspace
179
- if append_env
180
- @@current_keyspace = "#{@@current_keyspace}_#{ENV['RACK_ENV'] || 'development'}"
179
+ env = ENV['RACK_ENV'] || 'development'
180
+ if append_env && @@current_keyspace !~ /_#{env}$/
181
+ @@current_keyspace = "#{@@current_keyspace}_#{env}"
181
182
  end
182
183
  block.call
183
184
  ensure
@@ -1,5 +1,6 @@
1
1
  require 'openssl'
2
- require 'openssl/ssl'
2
+ # Under Ruby 1.8 the OpenSSL bindings have a stuttering problem
3
+ require 'openssl/ssl' if RUBY_VERSION < '1.9'
3
4
 
4
5
  module RightSupport::Net
5
6
  module SSL
@@ -7,8 +7,8 @@ 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.5.0'
11
- s.date = '2012-09-19'
10
+ s.version = '2.5.1'
11
+ s.date = '2012-09-25'
12
12
 
13
13
  s.authors = ['Tony Spataro', 'Sergey Sergyenko', 'Ryan Williamson', 'Lee Kirchhoff', 'Sergey Enin']
14
14
  s.email = 'support@rightscale.com'
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 5
9
- - 0
10
- version: 2.5.0
9
+ - 1
10
+ version: 2.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tony Spataro
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2012-09-19 00:00:00 -07:00
22
+ date: 2012-09-25 00:00:00 -07:00
23
23
  default_executable:
24
24
  dependencies: []
25
25