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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fc3874b06359df0fba37050d4d67178930055ff
4
- data.tar.gz: d6b58a71fc1cea44d3777e8199f7a9c7d6c20cf4
3
+ metadata.gz: 7e6c83227c58a27548a247cbf0de7931eccaed58
4
+ data.tar.gz: 4cfe776c15b918916f2f6d20acd786a6674755ff
5
5
  SHA512:
6
- metadata.gz: 2b5a18e5d2662ba5e5edfb7cac7e7a0295eb78ad35affa6b879e009985978454dff6c0e142feacf0e2bccdd85142f3714f177a9bb4dfdfaa15a7ba89eb6faf34
7
- data.tar.gz: a465b49e5904ee8b06fbed035b6a95a439fbb9fc3e5c79f4769de2b59a05702c986e3e64d0a94c60de73aa1fd71e9659f88cf283f7e3aa3a016199f6a3618b7d
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module MongoidAbility
2
- VERSION = '0.4.3'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
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.3
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-01-30 00:00:00.000000000 Z
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.4.5.1
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