mongoid_ability 0.1.12 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/lib/mongoid_ability/version.rb +1 -1
- data/mongoid_ability.gemspec +3 -3
- data/test/test_helper.rb +1 -21
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 225d1019815882c9280a0f92597e5199581f1f8f
|
4
|
+
data.tar.gz: 1d2edb5a2f80405ddef495491609a3506a3d5c0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 539b76b3c72236ce6a53854bdc19f2ced104d5acc05ff06932adc9a5a7209d25fa644e5f9366db76c5af98d0943f57ce52bb4e75234e78d714608dbd0e157735
|
7
|
+
data.tar.gz: 65b46d6e3a6f196f45fc07774190b91291d9a0f6bdd380411c06cc40ad5a7c9821fb47bc574288c769cdf8026d3628ee3fcae01e4b8a3b532a17b9b1b114772a
|
data/Gemfile
CHANGED
data/mongoid_ability.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'mongoid_ability/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "mongoid_ability"
|
8
8
|
spec.version = MongoidAbility::VERSION
|
9
|
-
spec.authors = ["
|
9
|
+
spec.authors = ["Tomáš Celizna"]
|
10
10
|
spec.email = ["tomas.celizna@gmail.com"]
|
11
11
|
spec.summary = %q{Custom Ability class that allows CanCanCan authorization library store permissions in MongoDB via the Mongoid gem.}
|
12
12
|
spec.description = %q{Custom Ability class that allows CanCanCan authorization library store permissions in MongoDB via the Mongoid gem.}
|
@@ -19,11 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "cancancan", "~> 1.9"
|
22
|
-
spec.add_dependency "mongoid", "~>
|
22
|
+
spec.add_dependency "mongoid", "~> 5.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.6"
|
25
25
|
spec.add_development_dependency "coveralls"
|
26
|
-
spec.add_development_dependency "database_cleaner"
|
26
|
+
spec.add_development_dependency "database_cleaner", ">= 1.5.1"
|
27
27
|
spec.add_development_dependency "guard"
|
28
28
|
spec.add_development_dependency "guard-minitest"
|
29
29
|
spec.add_development_dependency "minitest"
|
data/test/test_helper.rb
CHANGED
@@ -14,28 +14,8 @@ if ENV["CI"]
|
|
14
14
|
Coveralls.wear!
|
15
15
|
end
|
16
16
|
|
17
|
-
ENV["MONGOID_TEST_HOST"] ||= "localhost"
|
18
|
-
ENV["MONGOID_TEST_PORT"] ||= "27017"
|
19
|
-
|
20
|
-
HOST = ENV["MONGOID_TEST_HOST"]
|
21
|
-
PORT = ENV["MONGOID_TEST_PORT"].to_i
|
22
|
-
|
23
|
-
def database_id
|
24
|
-
"mongoid_ability_test"
|
25
|
-
end
|
26
|
-
|
27
|
-
CONFIG = {
|
28
|
-
sessions: {
|
29
|
-
default: {
|
30
|
-
database: database_id,
|
31
|
-
hosts: [ "#{HOST}:#{PORT}" ]
|
32
|
-
}
|
33
|
-
},
|
34
|
-
options: { preload_models: true }
|
35
|
-
}
|
36
|
-
|
37
17
|
Mongoid.configure do |config|
|
38
|
-
config.
|
18
|
+
config.connect_to('mongoid_ability_test')
|
39
19
|
end
|
40
20
|
|
41
21
|
DatabaseCleaner.orm = :mongoid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_ability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Tomáš Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.5.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.5.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: guard
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|