aserto-rails 0.30.0 → 0.30.1
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 +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: 8d645132ed1cd5757c6c1d8c795b0cddab950f2be5cf90ef74411a86567b470d
|
|
4
|
+
data.tar.gz: f9cb34952224a4195a3322afc81f6f4e138d2c845fb9da6e55fe0ae7dac54f3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 124e32e4d2c36f91b07509414eead1811dfe92401137d027bec6ebd677baf01e2cc35502b4918760f220470a13fd8a85e36d7960bdbf52f454473f362d6fca47
|
|
7
|
+
data.tar.gz: f1f984fcae8dbbf6d457c0681d8d7bd01524716bddb466f3902c11e076b0b1f40342e5e2385214f21d75a720c4ea675e139eee30c5c286184a3078d287297a46
|
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.30.
|
|
1
|
+
0.30.1
|
|
@@ -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.
|
|
4
|
+
version: 0.30.1
|
|
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-01-31 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.
|
|
19
|
+
version: 0.30.6
|
|
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.
|
|
26
|
+
version: 0.30.6
|
|
27
27
|
description: Aserto authorization library for Ruby and Ruby on Rails
|
|
28
28
|
email:
|
|
29
29
|
- aserto@aserto.com
|