mongoid-multitenancy 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +16 -1
- data/Gemfile +0 -2
- data/gemfiles/Gemfile.mongoid-6 +14 -0
- data/gemfiles/Gemfile.mongoid-7 +14 -0
- data/lib/mongoid/multitenancy/version.rb +1 -1
- data/mongoid-multitenancy.gemspec +1 -1
- data/spec/spec_helper.rb +0 -6
- metadata +13 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 620341a8f6aca85ff9aa07f1d1ef64350c83761b
|
4
|
+
data.tar.gz: 9084759b68045627f30ebda29c78bbfbc1bde545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 219017bd332374bb672778f8c100a237c3e97d065bd4fe4d0ca8299f382260f222bab417ed9610d4ab6afc9ea37bf73562680b61ad94a3bca00cadcda1ca5861
|
7
|
+
data.tar.gz: 5fb5ec2e0f34dd22a9b2b4c06a158e035370f38baad826da42fd0d7e4365043eb2ad4870a25ad62696afa87f1c548cf1a07771dbcdccbd47f5c09816a9f8a7b5
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
2
3
|
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [2.0.2] - 2018-08-23
|
8
|
+
### Added
|
9
|
+
|
10
|
+
* Support of mongoid 7
|
11
|
+
|
12
|
+
## [2.0.1] - 2017-12-14
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
* Add ensure block in method with_tenant
|
16
|
+
|
17
|
+
## [2.0] - 2017-07-21
|
3
18
|
### New Features
|
4
19
|
|
5
20
|
* Add support for mongoid 6
|
data/Gemfile
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'mongoid', '~> 6.0'
|
4
|
+
|
5
|
+
gem 'rake'
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem 'database_cleaner'
|
9
|
+
gem 'coveralls', require: false
|
10
|
+
gem 'rspec', '~> 3.1'
|
11
|
+
gem 'yard'
|
12
|
+
gem 'mongoid-rspec', git: 'https://github.com/mongoid-rspec/mongoid-rspec.git'
|
13
|
+
gem 'rubocop', require: false
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'mongoid', '~> 7.0'
|
4
|
+
|
5
|
+
gem 'rake'
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem 'database_cleaner'
|
9
|
+
gem 'coveralls', require: false
|
10
|
+
gem 'rspec', '~> 3.1'
|
11
|
+
gem 'yard'
|
12
|
+
gem 'mongoid-rspec', git: 'https://github.com/mongoid-rspec/mongoid-rspec.git'
|
13
|
+
gem 'rubocop', require: false
|
14
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -15,12 +15,6 @@ require 'mongoid'
|
|
15
15
|
require 'mongoid-multitenancy'
|
16
16
|
require 'mongoid-rspec'
|
17
17
|
|
18
|
-
if Mongoid::VERSION.start_with? '5'
|
19
|
-
Mongo::Logger.logger.level = ::Logger::FATAL
|
20
|
-
elsif Mongoid::VERSION.start_with? '4'
|
21
|
-
Moped.logger = nil
|
22
|
-
end
|
23
|
-
|
24
18
|
require_relative 'support/shared_examples'
|
25
19
|
require_relative 'support/mongoid_matchers'
|
26
20
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-multitenancy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aymeric Brisse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6
|
19
|
+
version: '6'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '8'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '6
|
29
|
+
version: '6'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '8'
|
27
33
|
description: MultiTenancy with Mongoid
|
28
34
|
email:
|
29
35
|
- aymeric.brisse@mperfect-memory.com
|
@@ -39,6 +45,8 @@ files:
|
|
39
45
|
- LICENSE.TXT
|
40
46
|
- README.md
|
41
47
|
- Rakefile
|
48
|
+
- gemfiles/Gemfile.mongoid-6
|
49
|
+
- gemfiles/Gemfile.mongoid-7
|
42
50
|
- lib/mongoid-multitenancy.rb
|
43
51
|
- lib/mongoid/multitenancy.rb
|
44
52
|
- lib/mongoid/multitenancy/document.rb
|
@@ -88,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
96
|
version: '0'
|
89
97
|
requirements: []
|
90
98
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.6.
|
99
|
+
rubygems_version: 2.6.14.1
|
92
100
|
signing_key:
|
93
101
|
specification_version: 4
|
94
102
|
summary: Support of a multi-tenant database with Mongoid
|