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 +4 -4
- data/README.md +2 -2
- data/VERSION +1 -1
- data/lib/aserto/rails/controller_additions.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6138c50a5b16b731f0391ec8c57f025366510e60e90758190641bdd2b8ebfd6
|
4
|
+
data.tar.gz: ccdf1e401cefdfacc6e4eef97440d23844ad9a05cf3c370ae6311457f8d59394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/)
|
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 >=
|
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.
|
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.
|
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:
|
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.
|
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.
|
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
|