aserto-rails 0.30.0 → 0.31.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: db5e72e6292b71ced35b0f37998cc46901356c44dfce224981a1196a0d978f0f
4
- data.tar.gz: 72a97cb5107d799c1087636838d283b60ddd1092fcff6c9c06c5fe4cca9fe3ed
3
+ metadata.gz: c6138c50a5b16b731f0391ec8c57f025366510e60e90758190641bdd2b8ebfd6
4
+ data.tar.gz: ccdf1e401cefdfacc6e4eef97440d23844ad9a05cf3c370ae6311457f8d59394
5
5
  SHA512:
6
- metadata.gz: 30f24678897474717e27bc9120ce84a5535472efede444fa0054c48b403fd3ba3a4501f60824da2a126e560f94c245bbbda0b8a47bd34184f8d8cfa9358d9905
7
- data.tar.gz: abd7814fc2cb926ed1e0f1e99b57f550e91c3cdc54f1b8b6ac0629cc67529d5c223e7647a432614ca82590bedf1550c91c313650e3c55fdee3587910b010ac18
6
+ metadata.gz: ef3ebb97a4a288f82e5a713c4e969d5c78b1e361b2ff2abb066055a4d7b74f735fe4f2842deb522a66924d237a5aeca0105afcf7fc136a5f7124b8cacaac4304
7
+ data.tar.gz: c1fdae7c17863115f5542abd3a70236b500a42aac65e7338b6756c9c75a2054fb38e7cabb45463e199e9205ba27577597c75c65956e931bb2bddfe2a3debc466
data/README.md CHANGED
@@ -10,7 +10,7 @@ Aserto authorization library for Ruby and Ruby on Rails.
10
10
  Built on top of [aserto](https://github.com/aserto-dev/aserto-ruby) and [aserto-grpc-authz](https://github.com/aserto-dev/ruby-grpc-authz).
11
11
 
12
12
  ## Prerequisites
13
- * [Ruby](https://www.ruby-lang.org/en/downloads/) 2.7 or newer.
13
+ * [Ruby](https://www.ruby-lang.org/en/downloads/) 3.0 or newer.
14
14
  * [Rails](https://rubyonrails.org/) 6 or newer.
15
15
  * An [Aserto](https://console.aserto.com) account.
16
16
 
@@ -215,7 +215,7 @@ The current user's permissions can then be checked using the `allowed?`, `visibl
215
215
  Prerequisites:
216
216
 
217
217
  - go >= 1.17 to run mage
218
- - Ruby >= 2.7.0 to run the code
218
+ - Ruby >= 3.0 to run the code
219
219
 
220
220
 
221
221
  Run `bundle install` to install dependencies. Then, run `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.30.0
1
+ 0.31.0
@@ -53,9 +53,9 @@ module Aserto
53
53
  #
54
54
  # @raise Aserto::AccessDenied
55
55
  #
56
- def check!(object_id:, object_type:, relation:)
56
+ def check!(object_id:, object_type:, relation:, options: {})
57
57
  raise Aserto::AccessDenied unless Aserto::AuthClient.new(request).check(
58
- object_id: object_id, object_type: object_type, relation: relation
58
+ object_id: object_id, object_type: object_type, relation: relation, options: options
59
59
  )
60
60
  end
61
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aserto-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aserto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-27 00:00:00.000000000 Z
11
+ date: 2024-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aserto
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.30.1
19
+ version: 0.31.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.30.1
26
+ version: 0.31.0
27
27
  description: Aserto authorization library for Ruby and Ruby on Rails
28
28
  email:
29
29
  - aserto@aserto.com