penthouse 0.9.0 → 0.10.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 630e16a626e98056947ee452543c51b346c8f824
|
4
|
+
data.tar.gz: 874cfaac96eadc4c2422fd89fb560d24631785ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4712d7689969aa7d49c699154f142003a67342350b6d2f4f54151c2c6874d5f0552028a3aee600ca2f0715c77c9427ac3246923725dee64344cb38efadb011f1
|
7
|
+
data.tar.gz: 360452921333e1e31542dc0934dd04b2a37a86dcf8b5c8ded4209d99882df6651ed2f582f17174fd5440e5da9f449a12ac27614d804bfb5ce35977faff786b6e
|
@@ -1,8 +1,12 @@
|
|
1
|
-
module Penthouse
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
module Penthouse
|
2
|
+
module Sidekiq
|
3
|
+
module Middleware
|
4
|
+
class Client
|
5
|
+
def call(worker_class, item, queue, redis_pool=nil)
|
6
|
+
item['tenant'] ||= Penthouse.current_tenant
|
7
|
+
yield
|
8
|
+
end
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
@@ -1,8 +1,12 @@
|
|
1
|
-
module
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
module Penthouse
|
2
|
+
module Sidekiq
|
3
|
+
module Middleware
|
4
|
+
class Server
|
5
|
+
def call(worker_class, item, queue)
|
6
|
+
Penthouse.switch(item['tenant']) do
|
7
|
+
yield
|
8
|
+
end
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
data/lib/penthouse/version.rb
CHANGED