acts_as_tenant 0.4.2 → 0.4.3

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: abc77aadd13ef4f32cbbbe8af35e7d48177b6cba
4
- data.tar.gz: 0f151185b5ff68073c2bc85655e3972907453482
3
+ metadata.gz: 82220bfda9712aaff3d6d06aa5ddbd236290d861
4
+ data.tar.gz: a2e325e8ed0ef37fb3a2bf0ab606eeede7e6907b
5
5
  SHA512:
6
- metadata.gz: '087f67e11e1cb133274eaa45ce505c0b535df937e8f49149e898f83eb92e69f321ce0ab58d36a8ea5aa36d38e5b6a5bf637a56c71a872effeda875dc707576f2'
7
- data.tar.gz: 60b79f39295a57bee878532cb697ac8b5570afed65bc9ffeb01a0daa80167f2c074788e1a46855ed321d12aae18135f237ef86de360b30c58728e0f1966dcdb1
6
+ metadata.gz: e64518b47c7500dad952b6ffe4f1faf5b5d23965fd997fa98bef9a5fd9abd33613dac5b743d8aaec146495d615998d7677d67112efc69387e6d76397e83b1683
7
+ data.tar.gz: 535154c7c6ac8e4044fbdc989b931e78fc307027aa154e8b14fc63abd658b76d418d19c0abfbbff3265add12a2a1b861a22fa66f03c89ff419ac1870648ce233
@@ -1,3 +1,7 @@
1
+ 0.4.3
2
+ -----
3
+ * allow 'optional' relations
4
+ * Sidekiq fixes
1
5
  * Replace all `before_filter` with `before_action` for Rails 5.1 compatibility
2
6
 
3
7
  0.4.1
@@ -90,7 +90,7 @@ module ActsAsTenant
90
90
  ActsAsTenant.add_global_record_model(self) if options[:has_global_records]
91
91
 
92
92
  # Create the association
93
- valid_options = options.slice(:foreign_key, :class_name, :inverse_of)
93
+ valid_options = options.slice(:foreign_key, :class_name, :inverse_of, :optional)
94
94
  fkey = valid_options[:foreign_key] || ActsAsTenant.fkey
95
95
  belongs_to tenant, valid_options
96
96
 
@@ -38,6 +38,10 @@ Sidekiq.configure_server do |config|
38
38
  chain.add ActsAsTenant::Sidekiq::Client
39
39
  end
40
40
  config.server_middleware do |chain|
41
- chain.insert_before Sidekiq::Middleware::Server::RetryJobs, ActsAsTenant::Sidekiq::Server
41
+ if defined?(Sidekiq::Middleware::Server::RetryJobs)
42
+ chain.insert_before Sidekiq::Middleware::Server::RetryJobs, ActsAsTenant::Sidekiq::Server
43
+ else
44
+ chain.add ActsAsTenant::Sidekiq::Server
45
+ end
42
46
  end
43
47
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsTenant
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_tenant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erwin Matthijssen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-04 00:00:00.000000000 Z
11
+ date: 2018-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: request_store