super_auth 0.1.3 → 0.1.5
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/.ruby-version +1 -0
- data/Gemfile +4 -3
- data/Gemfile.lock +40 -3
- data/README.md +154 -10
- data/db/migrate/1_users.rb +6 -4
- data/db/migrate/2_groups.rb +7 -3
- data/db/migrate/3_permissions.rb +6 -2
- data/db/migrate/4_roles.rb +7 -3
- data/db/migrate/5_resources.rb +6 -4
- data/db/migrate/6_edge.rb +11 -9
- data/db/migrate/7_authorization.rb +39 -0
- data/lib/basic_loader.rb +11 -0
- data/lib/super_auth/active_record/authorization.rb +3 -0
- data/lib/super_auth/active_record/by_current_user.rb +24 -0
- data/lib/super_auth/active_record/edge.rb +3 -0
- data/lib/super_auth/active_record/group.rb +3 -0
- data/lib/super_auth/active_record/permission.rb +3 -0
- data/lib/super_auth/active_record/resource.rb +3 -0
- data/lib/super_auth/active_record/role.rb +3 -0
- data/lib/super_auth/active_record/user.rb +8 -0
- data/lib/super_auth/active_record.rb +3 -0
- data/lib/super_auth/authorization.rb +2 -0
- data/lib/super_auth/edge.rb +153 -99
- data/lib/super_auth/group.rb +1 -1
- data/lib/super_auth/nestable.rb +2 -2
- data/lib/super_auth/permission.rb +11 -11
- data/lib/super_auth/railtie.rb +41 -0
- data/lib/super_auth/resource.rb +1 -1
- data/lib/super_auth/role.rb +1 -1
- data/lib/super_auth/user.rb +16 -16
- data/lib/super_auth/version.rb +1 -1
- data/lib/super_auth.rb +66 -20
- data/lib/tasks/super_auth_tasks.rake +14 -0
- metadata +17 -3
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: super_auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Frias
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sequel
|
|
@@ -46,6 +46,7 @@ extensions: []
|
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
48
|
- ".rspec"
|
|
49
|
+
- ".ruby-version"
|
|
49
50
|
- CHANGELOG.md
|
|
50
51
|
- Gemfile
|
|
51
52
|
- Gemfile.lock
|
|
@@ -58,16 +59,29 @@ files:
|
|
|
58
59
|
- db/migrate/4_roles.rb
|
|
59
60
|
- db/migrate/5_resources.rb
|
|
60
61
|
- db/migrate/6_edge.rb
|
|
62
|
+
- db/migrate/7_authorization.rb
|
|
61
63
|
- lib/basic_loader.rb
|
|
62
64
|
- lib/super_auth.rb
|
|
65
|
+
- lib/super_auth/active_record.rb
|
|
66
|
+
- lib/super_auth/active_record/authorization.rb
|
|
67
|
+
- lib/super_auth/active_record/by_current_user.rb
|
|
68
|
+
- lib/super_auth/active_record/edge.rb
|
|
69
|
+
- lib/super_auth/active_record/group.rb
|
|
70
|
+
- lib/super_auth/active_record/permission.rb
|
|
71
|
+
- lib/super_auth/active_record/resource.rb
|
|
72
|
+
- lib/super_auth/active_record/role.rb
|
|
73
|
+
- lib/super_auth/active_record/user.rb
|
|
74
|
+
- lib/super_auth/authorization.rb
|
|
63
75
|
- lib/super_auth/edge.rb
|
|
64
76
|
- lib/super_auth/group.rb
|
|
65
77
|
- lib/super_auth/nestable.rb
|
|
66
78
|
- lib/super_auth/permission.rb
|
|
79
|
+
- lib/super_auth/railtie.rb
|
|
67
80
|
- lib/super_auth/resource.rb
|
|
68
81
|
- lib/super_auth/role.rb
|
|
69
82
|
- lib/super_auth/user.rb
|
|
70
83
|
- lib/super_auth/version.rb
|
|
84
|
+
- lib/tasks/super_auth_tasks.rake
|
|
71
85
|
homepage: https://github.com/JonathanFrias/super_auth
|
|
72
86
|
licenses:
|
|
73
87
|
- MIT
|
|
@@ -90,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
104
|
- !ruby/object:Gem::Version
|
|
91
105
|
version: '0'
|
|
92
106
|
requirements: []
|
|
93
|
-
rubygems_version: 3.
|
|
107
|
+
rubygems_version: 3.4.19
|
|
94
108
|
signing_key:
|
|
95
109
|
specification_version: 4
|
|
96
110
|
summary: Make Unauthenticated State Unrepresentable
|