penthouse 0.10.0 → 0.10.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: 630e16a626e98056947ee452543c51b346c8f824
4
- data.tar.gz: 874cfaac96eadc4c2422fd89fb560d24631785ff
3
+ metadata.gz: a540a09483ff7827355af80b564a62796e698265
4
+ data.tar.gz: f12bab76ecd04155e5b0f973768bd1602094bed1
5
5
  SHA512:
6
- metadata.gz: 4712d7689969aa7d49c699154f142003a67342350b6d2f4f54151c2c6874d5f0552028a3aee600ca2f0715c77c9427ac3246923725dee64344cb38efadb011f1
7
- data.tar.gz: 360452921333e1e31542dc0934dd04b2a37a86dcf8b5c8ded4209d99882df6651ed2f582f17174fd5440e5da9f449a12ac27614d804bfb5ce35977faff786b6e
6
+ metadata.gz: 114e39f5fe4562765d631f685d5f96381354109e3376de368555f20b43f35b408a024130cf5ba406bdea26e01db20b2d139f21a0ec13361db3ab0f8c4cff5da3
7
+ data.tar.gz: 298151315806a14957da6539121dc64917a2c4dcf71d979187db560dcdebe1803871ee5d59f3667b71d49c98ca64cdddaaf8a8182fb39d0c98c6b38455d9efd0
data/.codeclimate.yml ADDED
@@ -0,0 +1,16 @@
1
+ engines:
2
+ duplication:
3
+ enabled: true
4
+ config:
5
+ languages:
6
+ - ruby
7
+ reek:
8
+ enabled: true
9
+ bundler-audit:
10
+ enabled: true
11
+ rubocop:
12
+ enabled: true
13
+ ratings:
14
+ paths:
15
+ - Gemfile.lock
16
+ - "**.rb"
@@ -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 { load(db_schema_file) }
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
@@ -1,3 +1,3 @@
1
1
  module Penthouse
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
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, default_tenant: self.tenant, runner: self.configuration.runner, &block)
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.0
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"