bleib 0.0.10 → 0.0.11
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 +4 -4
- data/lib/bleib/migrations.rb +3 -4
- data/lib/bleib/version.rb +3 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfacab65e190c07d73363c14af3c48590d3f6afdce6896901beb2c09361730f6
|
4
|
+
data.tar.gz: 4474ecffb8900d66cbc0a7052e28c080e5c76cc028103c3b1e7b1e6e5336a444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2cb63b8df3aa67a0b9325dc754888e974e77ad3fc613490ae2b1cd11d7026c942be83565ea877af164793a466b006444221966ec90e5b3c65c48f5c9ce8bafc
|
7
|
+
data.tar.gz: b294ea7648dfd25ea1fb8b454b70ecb0c49e8485ebbc7cab0d5954b088dddbcb171bed1fb34fb88564ca0237935fa10f76560f5ac214b2218b043cbde9f8a217
|
data/lib/bleib/migrations.rb
CHANGED
@@ -54,11 +54,10 @@ module Bleib
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def in_all_tenant_contexts
|
57
|
-
tenants = []
|
58
|
-
|
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
|
data/lib/bleib/version.rb
CHANGED
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.
|
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
|
-
|
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.
|