penthouse 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +16 -0
- data/lib/penthouse/tenants/migratable.rb +6 -1
- data/lib/penthouse/version.rb +1 -1
- data/lib/penthouse.rb +1 -1
- data/penthouse.gemspec +1 -0
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a540a09483ff7827355af80b564a62796e698265
|
4
|
+
data.tar.gz: f12bab76ecd04155e5b0f973768bd1602094bed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 114e39f5fe4562765d631f685d5f96381354109e3376de368555f20b43f35b408a024130cf5ba406bdea26e01db20b2d139f21a0ec13361db3ab0f8c4cff5da3
|
7
|
+
data.tar.gz: 298151315806a14957da6539121dc64917a2c4dcf71d979187db560dcdebe1803871ee5d59f3667b71d49c98ca64cdddaaf8a8182fb39d0c98c6b38455d9efd0
|
data/.codeclimate.yml
ADDED
@@ -16,7 +16,12 @@ module Penthouse
|
|
16
16
|
def migrate(db_schema_file: Penthouse.configuration.db_schema_file)
|
17
17
|
if File.exist?(db_schema_file)
|
18
18
|
# run the migrations within this schema
|
19
|
-
call
|
19
|
+
call do
|
20
|
+
# don't output all the log messages
|
21
|
+
ActiveRecord::Schema.verbose = false
|
22
|
+
# run the schema file to migrate this tenant
|
23
|
+
load(db_schema_file)
|
24
|
+
end
|
20
25
|
else
|
21
26
|
raise ArgumentError, "#{db_schema_file} does not exist"
|
22
27
|
end
|
data/lib/penthouse/version.rb
CHANGED
data/lib/penthouse.rb
CHANGED
@@ -43,7 +43,7 @@ module Penthouse
|
|
43
43
|
# @param block [Block] the code to execute
|
44
44
|
# @yield [String, Symbol] the identifier for the tenant
|
45
45
|
# @return [void]
|
46
|
-
def each_tenant(tenant_identifiers: self.tenant_identifiers,
|
46
|
+
def each_tenant(tenant_identifiers: self.tenant_identifiers, runner: self.configuration.runner, &block)
|
47
47
|
tenant_identifiers.each do |tenant_identifier|
|
48
48
|
switch(tenant_identifier, runner: runner, &block)
|
49
49
|
end
|
data/penthouse.gemspec
CHANGED
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
# testing
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.4.0'
|
27
27
|
spec.add_development_dependency 'simplecov', '~> 0.11.2'
|
28
|
+
spec.add_development_dependency 'rubocop', '~> 0.38'
|
28
29
|
# web
|
29
30
|
spec.add_development_dependency 'rack', '~> 1.6.4'
|
30
31
|
# db
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: penthouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Townsend
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.11.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.38'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.38'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rack
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +185,7 @@ executables: []
|
|
171
185
|
extensions: []
|
172
186
|
extra_rdoc_files: []
|
173
187
|
files:
|
188
|
+
- ".codeclimate.yml"
|
174
189
|
- ".gitignore"
|
175
190
|
- ".rspec"
|
176
191
|
- ".ruby-gemset"
|