penthouse 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/penthouse/active_job.rb +17 -0
- data/lib/penthouse/sidekiq/middleware/client.rb +1 -1
- data/lib/penthouse/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1b6d19ee617c554c080a828dbce840a3431879a
|
4
|
+
data.tar.gz: b4c6b6ae7398e7b0bb78e5b17539865a3479e1ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ef4839e0ffcfcc637b82732e167f49e90e96e077d319d55ed483247ae2176e284770c6a05a4a214704adea35f41d004929cecff799e9431869fc3a4a6fa5fb
|
7
|
+
data.tar.gz: 8cef1801324324d687794256e80f5622505f0f8ce74715a5508c923b546519fc80895f1f746b69e7a71be1384a769d37d969f595871787cdc3a731157c39c9a3
|
data/README.md
CHANGED
@@ -18,8 +18,10 @@ If you're using Rails, you just need to configure an initializer at `config/init
|
|
18
18
|
require 'penthouse'
|
19
19
|
# include the standard Rack app
|
20
20
|
require 'penthouse/app'
|
21
|
-
# include the automated Sidekiq integration, should you
|
21
|
+
# include the automated Sidekiq integration, should you need it
|
22
22
|
require 'penthouse/sidekiq' if defined?(Sidekiq)
|
23
|
+
# include the automated ActiveJob integration, should you need it
|
24
|
+
require 'penthouse/active_job' if defined?(ActiveJob)
|
23
25
|
# require the relevant router/runner you wish to use
|
24
26
|
require 'penthouse/routers/subdomain_router'
|
25
27
|
require 'penthouse/runners/schema_runner'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Penthouse
|
2
|
+
module ActiveJob
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
class_methods do
|
6
|
+
def execute(job_data)
|
7
|
+
Penthouse.switch(job_data['tenant']) do
|
8
|
+
super
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def serialize
|
14
|
+
super.merge('tenant' => Penthouse.tenant)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/penthouse/version.rb
CHANGED
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.
|
4
|
+
version: 0.11.0
|
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-03-
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- bin/console
|
197
197
|
- bin/setup
|
198
198
|
- lib/penthouse.rb
|
199
|
+
- lib/penthouse/active_job.rb
|
199
200
|
- lib/penthouse/app.rb
|
200
201
|
- lib/penthouse/configuration.rb
|
201
202
|
- lib/penthouse/migrator.rb
|