mongoid-tenant 0.0.8 → 0.0.9

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: 05977824630fa2458706fd4f9df02c28b770884d
4
- data.tar.gz: 6f8976a2cf9c0debc07841b29c6cf71d7be1c529
3
+ metadata.gz: f596fa03923b51830f3dfbfab679e338c26be15a
4
+ data.tar.gz: ea8b4ab0e44a8e9ff471cd89c2c7cfa988b5dab8
5
5
  SHA512:
6
- metadata.gz: 949f8b62dbb9c8da303e0f99f59bd54475dd769d855a4f3eccb418bcc0c97cbbdbf10fb2a7873728e42f40a76e4d8cce7a9ccff9f92b4f9c1c5573eb0f31ba23
7
- data.tar.gz: bb5bb3faf2c946d3ed02578d21210eaf8a1665f1950eb4abb417260ac3c21a34907b5cf616aeb43c2dba0f0b938c171481d49d99ddd0684ae470e289e20b5485
6
+ metadata.gz: 5f73f523622b0027f7a2c7264f1053c9705169dc9e1798361f319e20480d1054834a47286dca892c92dd6f421876b5b2dcaa399317e117ff6f6323d1ce123c08
7
+ data.tar.gz: ecbebbb2efd9984dc3fdc94d6ff6882e23fcf6a1cd9b11985e06c0942e5ff7e5ee50396babf30573cce02317db3bc0f37cf703cead0c1cb16633e3538edb561e
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'mongoid', '5.0.0.beta'
5
+ gem 'mongoid'
6
6
 
7
7
  group :test do
8
8
  gem 'guard'
@@ -1,6 +1,6 @@
1
1
  module Mongoid
2
2
  # Mongoid::Tenant::VERSION
3
3
  module Tenant
4
- VERSION = '0.0.8'.freeze
4
+ VERSION = '0.0.9'.freeze
5
5
  end
6
6
  end
@@ -11,9 +11,9 @@ module Mongoid
11
11
  extend ActiveSupport::Concern
12
12
 
13
13
  included do
14
- store_in database: lambda do
14
+ store_in database: lambda {
15
15
  Thread.current[:tenancy] || raise('No tenancy set!')
16
- end
16
+ }
17
17
 
18
18
  def tenancy
19
19
  Thread.current[:tenancy]
@@ -30,6 +30,6 @@ describe Mongoid::Tenant do
30
30
 
31
31
  it 'should interfer with tenant w/o tenancy' do
32
32
  expect { Article.create!(title: 'A Very Nice Coffeeshop') }
33
- .to raise_error(NoMethodError)
33
+ .to raise_error(RuntimeError)
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-tenant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Piccinini