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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64d2891bd03cfe98748018e40712b68c81a26467
4
- data.tar.gz: 3f2acac21ea83819168a2067d6301bb2b9d7e5c8
3
+ metadata.gz: 225d1019815882c9280a0f92597e5199581f1f8f
4
+ data.tar.gz: 1d2edb5a2f80405ddef495491609a3506a3d5c0f
5
5
  SHA512:
6
- metadata.gz: 316adff0b176f72a3c466c994f2b21ce2dfa9e46c6f4deb9c22f88b649ba5418e75c05600e73053594bd1ae79d96177da2c9f4b2e79fd39429740566ebed9a27
7
- data.tar.gz: b6a891d92177bf8d0c0e94fb96b6b35a1b8e98517e8c4c9962558ce23eadb5035718da235ae273c47935debedd10cf520546913da54961606b80aec01e23228e
6
+ metadata.gz: 539b76b3c72236ce6a53854bdc19f2ced104d5acc05ff06932adc9a5a7209d25fa644e5f9366db76c5af98d0943f57ce52bb4e75234e78d714608dbd0e157735
7
+ data.tar.gz: 65b46d6e3a6f196f45fc07774190b91291d9a0f6bdd380411c06cc40ad5a7c9821fb47bc574288c769cdf8026d3628ee3fcae01e4b8a3b532a17b9b1b114772a
data/Gemfile CHANGED
@@ -2,3 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in mongoid_ability.gemspec
4
4
  gemspec
5
+
6
+ # TEMP
7
+ group :test do
8
+ gem 'database_cleaner', git: 'https://github.com/DatabaseCleaner/database_cleaner.git'
9
+ end
@@ -1,3 +1,3 @@
1
1
  module MongoidAbility
2
- VERSION = "0.1.12"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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 = ["Tomas Celizna"]
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", "~> 4.0"
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.load_configuration(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.1.12
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Tomas Celizna
7
+ - Tomáš Celizna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-01 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
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: '0'
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: '0'
82
+ version: 1.5.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: guard
85
85
  requirement: !ruby/object:Gem::Requirement