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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c38ddec7cbb763f8fe21c663051a825ac342e325
4
- data.tar.gz: 6566d061de75d4b9cf092ef1864b35c0e061ffc8
3
+ metadata.gz: 620341a8f6aca85ff9aa07f1d1ef64350c83761b
4
+ data.tar.gz: 9084759b68045627f30ebda29c78bbfbc1bde545
5
5
  SHA512:
6
- metadata.gz: a7844d83386cdea3bfdcb7eddf5a91cdb85e346530d91de291eacc07d767fda5a04ec0baec47a44171459a69c0ebf91d516b4cff751b4bc026c36baa54f49e26
7
- data.tar.gz: 1fa4b30f02ac4ae4c51a93f8cf0af9f6bf209059cc9b05b179c011da3fd507b463d416255660d09891e3c141d92fa1a7434261e164c6f0d311c159eec163610a
6
+ metadata.gz: 219017bd332374bb672778f8c100a237c3e97d065bd4fe4d0ca8299f382260f222bab417ed9610d4ab6afc9ea37bf73562680b61ad94a3bca00cadcda1ca5861
7
+ data.tar.gz: 5fb5ec2e0f34dd22a9b2b4c06a158e035370f38baad826da42fd0d7e4365043eb2ad4870a25ad62696afa87f1c548cf1a07771dbcdccbd47f5c09816a9f8a7b5
data/.travis.yml CHANGED
@@ -4,6 +4,8 @@ rvm:
4
4
  - 2.3.0
5
5
  - 2.4.1
6
6
  gemfile:
7
+ - gemfiles/Gemfile.mongoid-6
8
+ - gemfiles/Gemfile.mongoid-7
7
9
  - Gemfile
8
10
  services:
9
11
  - mongodb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
- ## 2.0
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
@@ -1,7 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'mongoid', '~> 6.0'
4
-
5
3
  gem 'rake'
6
4
 
7
5
  group :test do
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Mongoid
2
2
  module Multitenancy
3
3
  # Version
4
- VERSION = '2.0.1'.freeze
4
+ VERSION = '2.0.2'.freeze
5
5
  end
6
6
  end
@@ -15,5 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ['lib']
16
16
  gem.version = Mongoid::Multitenancy::VERSION
17
17
 
18
- gem.add_dependency('mongoid', '~> 6.0')
18
+ gem.add_dependency('mongoid', '~> 6', '< 8')
19
19
  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.1
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: 2017-12-14 00:00:00.000000000 Z
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.0'
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.0'
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.13
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