rabarber 3.0.0 → 3.0.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/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/rabarber/version.rb +1 -1
- data/rabarber.gemspec +6 -3
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dd689c4149da8e0f11b3e959b116be20b8364ca9546986a6064454b2eb25c44
|
4
|
+
data.tar.gz: c5f15810b3434ab5275573f8d154c1dd765d5136f5a9d42c6f7cdd28a27c0133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b53349cbf3d1fffc9a8a5acc0183eb18a3c6e928b87d613deb6502f60e1ee0ef4b1f49538c51249f07b27666562654f51a70713c7d30d7b41031d0610d340956
|
7
|
+
data.tar.gz: 44930f95235e429db06e8deca63148a7b89187d9d79724cd0708e42bb46b7486552e0d459cc73fc9a8ab6b248b1e6e2d69cd6a647220275f08a8a7fecc2526f6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -372,7 +372,7 @@ end
|
|
372
372
|
|
373
373
|
Rabarber supports multi-tenancy by providing a context feature. This allows you to define and authorize roles and rules within a specific context.
|
374
374
|
|
375
|
-
Every Rabarber method
|
375
|
+
Every Rabarber method can accept a context as an additional keyword argument. By default, the context is set to `nil`, meaning the roles are global. Thus, all examples from other sections of this README are valid for global roles. Apart from being global, the context can be an instance of ActiveRecord model or a class.
|
376
376
|
|
377
377
|
E.g., consider a model named `Project`, where each project has its owner and regular members. Roles can be defined like this:
|
378
378
|
|
data/lib/rabarber/version.rb
CHANGED
data/rabarber.gemspec
CHANGED
@@ -7,9 +7,12 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = Rabarber::VERSION
|
8
8
|
spec.authors = ["enjaku4", "trafium"]
|
9
9
|
spec.email = ["rabarber_gem@icloud.com"]
|
10
|
-
spec.metadata["rubygems_mfa_required"] = "true"
|
11
|
-
spec.summary = "Simple role-based authorization library for Ruby on Rails."
|
12
10
|
spec.homepage = "https://github.com/enjaku4/rabarber"
|
11
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
12
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
13
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
14
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
15
|
+
spec.summary = "Simple role-based authorization library for Ruby on Rails"
|
13
16
|
spec.license = "MIT"
|
14
17
|
spec.required_ruby_version = ">= 3.0", "< 3.4"
|
15
18
|
|
@@ -19,5 +22,5 @@ Gem::Specification.new do |spec|
|
|
19
22
|
|
20
23
|
spec.require_paths = ["lib"]
|
21
24
|
|
22
|
-
spec.
|
25
|
+
spec.add_dependency "rails", ">= 6.1", "< 7.3"
|
23
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabarber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- enjaku4
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '6.1'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '7.
|
23
|
+
version: '7.3'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '6.1'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '7.
|
33
|
+
version: '7.3'
|
34
34
|
description:
|
35
35
|
email:
|
36
36
|
- rabarber_gem@icloud.com
|
@@ -77,6 +77,9 @@ homepage: https://github.com/enjaku4/rabarber
|
|
77
77
|
licenses:
|
78
78
|
- MIT
|
79
79
|
metadata:
|
80
|
+
homepage_uri: https://github.com/enjaku4/rabarber
|
81
|
+
source_code_uri: https://github.com/enjaku4/rabarber
|
82
|
+
changelog_uri: https://github.com/enjaku4/rabarber/blob/main/CHANGELOG.md
|
80
83
|
rubygems_mfa_required: 'true'
|
81
84
|
post_install_message:
|
82
85
|
rdoc_options: []
|
@@ -99,5 +102,5 @@ requirements: []
|
|
99
102
|
rubygems_version: 3.2.33
|
100
103
|
signing_key:
|
101
104
|
specification_version: 4
|
102
|
-
summary: Simple role-based authorization library for Ruby on Rails
|
105
|
+
summary: Simple role-based authorization library for Ruby on Rails
|
103
106
|
test_files: []
|