isaca-rails 0.4.9 → 0.5.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
  SHA256:
3
- metadata.gz: c752365d4f3c3c7ccf1ed087fa7006498a638d208adcc89fe3e608fb10cd9e6c
4
- data.tar.gz: 9e188d05e4eec4f351fafeef745ac52438e9e84d12ada99dcaa6cb86c7a85190
3
+ metadata.gz: 90c702697899fa3268bb9f7e7b9520b40fd5d3b7effd2ed3de3b8626cb44bb4d
4
+ data.tar.gz: 799f89cdc87027c6330c3cb2a07545e6ea18068bcd7be37661c70afb1774e4bc
5
5
  SHA512:
6
- metadata.gz: 65f388ba725168dbf2a511de8b36b7520797272896be4aa0af81575331afd4c10e59f8daa4b6f9f06f4bda4365a3a8e46f87e8d1567dc1ad8950ee17e1186fca
7
- data.tar.gz: f7e87b83341866b40fdb3d26e9638085bc0ff67d2599c7b94dfa803fa30e7a24307c3c44af7aa3042097f24b42c55b48c5c74675f8df55af9fb52a62b341905a
6
+ metadata.gz: 0a5961e510658f1922bbbe6dba3a0c58a6c83b8f045a6b605b66c36e5f4f17003087861ac58a7928dd892f6379acc930fb7733c8d8c42a57f359aacbe68c7522
7
+ data.tar.gz: 1c4efa1deb6a46bec6c88ff47bab3aceca1a19915f5fc33ac4eef6fd194cc1d5df720250a6e4a73480a0abd61cd760faf9749d0731a2da98232cb32a73446044
@@ -59,7 +59,7 @@ module Isaca
59
59
  end
60
60
 
61
61
  def user_has_privilege?(user, privilege)
62
- user.claims.select {|c| c.privilege.to_sym == privilege}.any?
62
+ user.claims.where(privilege: privilege).any?
63
63
  end
64
64
 
65
65
  def claim_symbols(claim_params, state)
@@ -1,5 +1,5 @@
1
1
  module Isaca
2
2
  module Rails
3
- VERSION = '0.4.9'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isaca-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Orahood
8
- autorequire:
8
+ - Shaun Eutsey
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-07-10 00:00:00.000000000 Z
12
+ date: 2021-09-08 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
@@ -223,6 +224,7 @@ dependencies:
223
224
  description: Description of Isaca::Rails.
224
225
  email:
225
226
  - morahood@gmail.com
227
+ - seutsey@isaca.org
226
228
  executables: []
227
229
  extensions: []
228
230
  extra_rdoc_files: []
@@ -285,10 +287,10 @@ files:
285
287
  - lib/isaca/rails/user.rb
286
288
  - lib/isaca/rails/version.rb
287
289
  - lib/tasks/isaca/rails_tasks.rake
288
- homepage:
290
+ homepage:
289
291
  licenses: []
290
292
  metadata: {}
291
- post_install_message:
293
+ post_install_message:
292
294
  rdoc_options: []
293
295
  require_paths:
294
296
  - lib
@@ -303,8 +305,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
305
  - !ruby/object:Gem::Version
304
306
  version: '0'
305
307
  requirements: []
306
- rubygems_version: 3.0.3
307
- signing_key:
308
+ rubygems_version: 3.2.27
309
+ signing_key:
308
310
  specification_version: 4
309
311
  summary: Summary of Isaca::Rails.
310
312
  test_files: []