bleib 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6fa5132b7e6a2a8e711ae6344c9301827dd85292847239ac7ce80f0a76d2ea1
4
- data.tar.gz: 3ac0d02964d70e9cf5ce16fe25e0f6dec5827770e55ddac1052bd61973cbdad2
3
+ metadata.gz: cfacab65e190c07d73363c14af3c48590d3f6afdce6896901beb2c09361730f6
4
+ data.tar.gz: 4474ecffb8900d66cbc0a7052e28c080e5c76cc028103c3b1e7b1e6e5336a444
5
5
  SHA512:
6
- metadata.gz: 06bbfd17d0eb644385eeb352af430da3ac94c0d4adcb6fbf3f08340958163ff6f0a6bf06b6646d14ab57bddb5c6124e9a8bcee884c14258dd9d59b1fc4e040d5
7
- data.tar.gz: d3ab55b5c415b858ff04c4ad34a97835aa48dfa0cf27ec96c04c4790bcf8851c6c9821ba3329d17f782133021afbf9c48b8e3457143e6b3072718c57d8b35ba0
6
+ metadata.gz: d2cb63b8df3aa67a0b9325dc754888e974e77ad3fc613490ae2b1cd11d7026c942be83565ea877af164793a466b006444221966ec90e5b3c65c48f5c9ce8bafc
7
+ data.tar.gz: b294ea7648dfd25ea1fb8b454b70ecb0c49e8485ebbc7cab0d5954b088dddbcb171bed1fb34fb88564ca0237935fa10f76560f5ac214b2218b043cbde9f8a217
@@ -54,11 +54,10 @@ module Bleib
54
54
  end
55
55
 
56
56
  def in_all_tenant_contexts
57
- tenants = []
58
- tenants << ENV.fetch('BLEIB_DEFAULT_TENANT', 'public')
59
- Apartment::Tenant.each { |tenant| tenants << tenant }
57
+ tenants = [ENV.fetch('BLEIB_DEFAULT_TENANT', 'public')] +
58
+ Apartment.tenant_names
60
59
 
61
- tenants.each do |tenant|
60
+ tenants.uniq.each do |tenant|
62
61
  Apartment::Tenant.switch(tenant) do
63
62
  yield
64
63
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Bleib
2
- VERSION = '0.0.10'.freeze
4
+ VERSION = '0.0.11'
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bleib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puzzle ITC
@@ -45,8 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  requirements: []
48
- rubyforge_project:
49
- rubygems_version: 2.7.6.2
48
+ rubygems_version: 3.1.2
50
49
  signing_key:
51
50
  specification_version: 4
52
51
  summary: Use a rake task to wait on database and migrations.