guarda 0.2.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6589ad1f554cc85e4de7d7741dbae1f3dadca5ce9470ff8193608e3780f3f9f8
4
- data.tar.gz: f58af82e04958ae3224d63655ea0c0557600f66dc30007a8c52bb4968720d281
3
+ metadata.gz: 8ffe343cd6f4cd51a1b384fdb4e1299d14960e574a60fd2ef7e5d03298563289
4
+ data.tar.gz: 60096b5bd502a631c19b5df0a028fd2e4d96828645da9409f47a53f19ea74b95
5
5
  SHA512:
6
- metadata.gz: e3fdf34785e8357041d476f2425856427b49951dcf371a85f2fefbb68e66e4b24fed6f4f9c8a422bee288fe1da19ed6aa4a3faa9538ffeacaa7323de27d83013
7
- data.tar.gz: f9320de4e0061852cc22c39fb377cef0e8a20eaa499b6aa491d5e22d20cf8db739321c8ee79570d1dcc58127e0579c543ada8a478c1248c53aeafceccc581a06
6
+ metadata.gz: 6b1b618a33b3b7a27322cad51b872af9aca19d3d309dbeaf3004112e82b808c859bab5e4c688be6d6f0d98e6ef5ec4359f7573e464e105e8a64563b7d12e2170
7
+ data.tar.gz: 01bea2ae2c82935e7cfead682f1cedcee50ccace4810b14e1f5f4f5cfbb0d3e20f85fe19eaceccfb904693480c77d1e429e405c26ebcbc3f8da18366f79507fc
data/guarda.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["abdul@hey.com"]
10
10
 
11
11
  spec.summary = "Another authorization gem"
12
- spec.homepage = "https://wwww.guidedrails.com"
12
+ spec.homepage = "https://www.guidedrails.com"
13
13
  spec.license = "MIT"
14
14
  spec.required_ruby_version = ">= 3.1.0"
15
15
 
@@ -19,7 +19,7 @@ module Guarda
19
19
  raise(NotAuthorizedError, self.class)
20
20
  end
21
21
 
22
- def policy(controller, record)
22
+ def policy(controller, record = nil)
23
23
  PolicyFinder.find(controller).new(record)
24
24
  end
25
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Guarda
4
- VERSION = "0.2.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guarda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdullah Hashim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-28 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -66,11 +66,11 @@ files:
66
66
  - lib/guarda/policy_finder.rb
67
67
  - lib/guarda/version.rb
68
68
  - sig/guarda.rbs
69
- homepage: https://wwww.guidedrails.com
69
+ homepage: https://www.guidedrails.com
70
70
  licenses:
71
71
  - MIT
72
72
  metadata:
73
- homepage_uri: https://wwww.guidedrails.com
73
+ homepage_uri: https://www.guidedrails.com
74
74
  source_code_uri: https://github.com/Guided-Rails/guarda
75
75
  post_install_message:
76
76
  rdoc_options: []