penthouse 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/penthouse/tenants/schema_tenant.rb +2 -0
- data/lib/penthouse/version.rb +1 -1
- data/penthouse.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 903efdccdbb3cd2476fe638deb5bb472f0faa977
|
4
|
+
data.tar.gz: eecb11d73383cac4fa3aaa00a6101ba6df499ffe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e91aac39296735a634e62170d3ddbf757c9df7e298dda3a6c9acf72e533c8ca30bc0440aafd62c7b5b69b3781602cd6dc7f937b1374169f501084ea26bfb1a48
|
7
|
+
data.tar.gz: 912a686f7a45dff8a1ea076e12ebfd504023f62d53c967ac6930b18139f54125d73146edc0407227d51331567b97e7c2733f5e2cf8d3a40f3cc1b219837495bd
|
@@ -40,10 +40,12 @@ module Penthouse
|
|
40
40
|
begin
|
41
41
|
# set the search path to include the tenant
|
42
42
|
ActiveRecord::Base.connection.schema_search_path = persistent_schemas.dup.unshift(tenant_schema).join(", ")
|
43
|
+
ActiveRecord::Base.connection.clear_query_cache
|
43
44
|
block.yield(self)
|
44
45
|
ensure
|
45
46
|
# reset the search path back to the default
|
46
47
|
ActiveRecord::Base.connection.schema_search_path = persistent_schemas.dup.unshift(previous_schema).join(", ")
|
48
|
+
ActiveRecord::Base.connection.clear_query_cache
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
data/lib/penthouse/version.rb
CHANGED
data/penthouse.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['ryan@ryantownsend.co.uk']
|
11
11
|
|
12
12
|
spec.summary = %q{Multi-tenancy framework. Out of the box, supports Postgres schemas and per-tenant databases}
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/shiftcommerce/penthouse'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
16
|
spec.bindir = 'exe'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: penthouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Townsend
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -244,7 +244,7 @@ files:
|
|
244
244
|
- lib/penthouse/tenants/schema_tenant.rb
|
245
245
|
- lib/penthouse/version.rb
|
246
246
|
- penthouse.gemspec
|
247
|
-
homepage: https://github.com/
|
247
|
+
homepage: https://github.com/shiftcommerce/penthouse
|
248
248
|
licenses: []
|
249
249
|
metadata: {}
|
250
250
|
post_install_message:
|