right_support 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
-
|
180
|
-
|
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
|
data/right_support.gemspec
CHANGED
@@ -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.
|
11
|
-
s.date = '2012-09-
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 2.5.
|
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-
|
22
|
+
date: 2012-09-25 00:00:00 -07:00
|
23
23
|
default_executable:
|
24
24
|
dependencies: []
|
25
25
|
|