ibrain-core 0.2.3 → 0.2.4

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
  SHA256:
3
- metadata.gz: 9c01fb318f3aa91812d1bfa1e71f956260a51929f05bfe5a6ae642149f8219ba
4
- data.tar.gz: d15d09f9e9b6761d2ab5424a04b1c12185898493034683a5394a482041e59f73
3
+ metadata.gz: aad014a1809bbdc92cf12e40c1bb93a13676eb1784c3d70cfbc2ef9acec56bf4
4
+ data.tar.gz: ef00aca082945b77603b6cc5023b7d60361c4c2831b9202db188dbec73848126
5
5
  SHA512:
6
- metadata.gz: 4fd557d32f5ccdedcf916bccc2b3fd9d9af87a344276b9142946b9008b5b9681343801e80579a3564055b78c784cadf864a02faf014f1adddb423ad8d0c9b4da
7
- data.tar.gz: b2c18c0af1ab23dab608e93e8a6634d23a5c90d21eb734320aabf9a6b3e4f99afc01557b5c7633b5cf10eecb1ec0a827e133bdd65e3124544bd6cd83566ae5a7
6
+ metadata.gz: 675dedca74cf17d386a6eca4b6daf6d34a92ee8c4162e657fc01c9c514438aab8d260ac1ca8c0697c16bd5e6ecfafa6324577ae8327341662cb2e8aa60929663
7
+ data.tar.gz: 7957cc215b57e8d4dfd028442664aa5734f9de61da5cf8208e15a9c352b5a27edabf7e7abcb332d6c13d918157394ab8fd31768f6fc92107b75e1f06a9725f9c
@@ -3,11 +3,11 @@
3
3
  module Ibrain
4
4
  module Extentions
5
5
  class Roles < GraphQL::Schema::FieldExtension
6
- def after_resolve(object:, arguments:, **rest)
6
+ def after_resolve(object:, value:, **_rest)
7
7
  raise IbrainErrors::PermissionError.new("You not have permission to access #{field&.name}") if is_invalid_role(object)
8
8
 
9
9
  # yield the current time as `memo`
10
- yield(object, arguments, rest)
10
+ value
11
11
  end
12
12
 
13
13
  private
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibrain
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
 
6
6
  def self.ibrain_version
7
7
  VERSION
8
8
  end
9
9
 
10
10
  def self.previous_ibrain_minor_version
11
- '0.2.2'
11
+ '0.2.3'
12
12
  end
13
13
 
14
14
  def self.ibrain_gem_version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibrain-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Nguyen Van
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-07 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-session_store