penthouse 0.12.0 → 0.12.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9901a76e3311f855d6ee6ca8d654c71f85e83ed8
4
- data.tar.gz: 48832ed750877f9368e9d27541bf4b93cabb21c5
3
+ metadata.gz: 903efdccdbb3cd2476fe638deb5bb472f0faa977
4
+ data.tar.gz: eecb11d73383cac4fa3aaa00a6101ba6df499ffe
5
5
  SHA512:
6
- metadata.gz: eeabfea803c0467bc39ec9a629c650b2a2d25061e8effa341a7efb1e90ec8632c0da07c8788ec6fff5a726a35adf2ff06c4c9935c8588514987a818fcc0e519a
7
- data.tar.gz: a35faf59909bd4e05ecf4e772ccddaa31fe10519968e38d2508d1ed7e62893e6fd6556dc0d71d33a215c8079eb4760c688aba2864dc519a9197f41536715e2a5
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
 
@@ -1,3 +1,3 @@
1
1
  module Penthouse
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
@@ -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/ryantownsend/penthouse'
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.0
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: 2016-04-19 00:00:00.000000000 Z
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/ryantownsend/penthouse
247
+ homepage: https://github.com/shiftcommerce/penthouse
248
248
  licenses: []
249
249
  metadata: {}
250
250
  post_install_message: