mongoid_ability 0.4.3 → 1.0.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mongoid_ability/lock.rb +1 -1
- data/lib/mongoid_ability/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e6c83227c58a27548a247cbf0de7931eccaed58
|
|
4
|
+
data.tar.gz: 4cfe776c15b918916f2f6d20acd786a6674755ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c79d13c3df3c743fe5c6c8cc5272336590dc4f24b666ec798b8c355898f4bcf6a63b4c3e418506342af415165048bbb0aa8f8e72f6771f42eb8e18d97733a3a2
|
|
7
|
+
data.tar.gz: 4d8a1b214ab11100d361d31d46ee4a607642951f9727e967fb70e395b0282dcc9967153b1482c9cffd750e6bc18fba8d3f9a63c952055e352c58c935e41f5929
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 1.0.0
|
|
2
|
+
|
|
3
|
+
* conforms to '[MONGOID-4418](https://jira.mongodb.org/browse/MONGOID-4418) Don't allow PersistenceContext method as field names' by renaming the `Lock` field `:options` to `:opts` (but aliasing it `as: :options`). As a result the `Mongoid::Ability` API stays unchanged, however in some cases it might be necessary to migrate the values from the `:options` fields to the new `:opts`.
|
|
4
|
+
|
|
1
5
|
# 0.4.3
|
|
2
6
|
|
|
3
7
|
* stub `default_locks` in tests to avoid brittle tests
|
data/lib/mongoid_ability/lock.rb
CHANGED
|
@@ -7,7 +7,7 @@ module MongoidAbility
|
|
|
7
7
|
base.class_eval do
|
|
8
8
|
field :action, type: Symbol, default: :read
|
|
9
9
|
field :outcome, type: Boolean, default: false
|
|
10
|
-
field :options, type: Hash, default: {}
|
|
10
|
+
field :opts, as: :options, type: Hash, default: {}
|
|
11
11
|
|
|
12
12
|
belongs_to :subject, polymorphic: true, touch: true, optional: true
|
|
13
13
|
|
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: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomas Celizna
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cancancan
|
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
207
207
|
version: '0'
|
|
208
208
|
requirements: []
|
|
209
209
|
rubyforge_project:
|
|
210
|
-
rubygems_version: 2.
|
|
210
|
+
rubygems_version: 2.5.2
|
|
211
211
|
signing_key:
|
|
212
212
|
specification_version: 4
|
|
213
213
|
summary: Custom Ability class that allows CanCanCan authorization library store permissions
|