sequel-privacy 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62f27f7d396ed16fefe728a75cd9de079eb55cc1e37c4fb7c56a3e444bf5724c
4
- data.tar.gz: 4ac98ed1bbbe88e4fac544fbfb70e7c080914106b765ca00a7d32f85188a516a
3
+ metadata.gz: 04b5728dab12a15490535725e9458d1039e17049f47e839e724b5464b1e39ee5
4
+ data.tar.gz: ddb26ed4c76c15b672043d2ac32ff4573b791befc8c9f3b1d0405e0c4ddcd6ba
5
5
  SHA512:
6
- metadata.gz: 9efc8715d5ca42841968eaa18ea0c611c57bc08734d6ebff1fdd79e0139acbabe2a50416fedd431e38f2ea74007c6c854387dd96cfc08dd6a36affd1d9808929
7
- data.tar.gz: aca4c137a6550bb30ef6d5c0254ddba6bde197b647c3a0c94f73a0a9090dd6d1256a46da17c6ba9091b197ff14c6b1695eb5361901c4eebe6ed3aeba235100f0
6
+ metadata.gz: 1b235a397d24fbfea16f557628554b5e64352a2872b54d9b51b36e81d13fe659be3b1a011e256626db7025dc7527b33e891866c116e4a1dbe4a03821209401c6
7
+ data.tar.gz: 105bb81dc55bb0970a224682c7ab30117758e882db8acac968802da1ed0fa06bd29145350d9de196dda2f6b5d0f81b7c58433e1107317ab8f4b7d297a5ee2c53
@@ -123,7 +123,7 @@ module Sequel
123
123
  # can :remove, AllowGroupAdmin, AllowSelfRemove
124
124
  # can :remove_all, AllowGroupAdmin
125
125
  # end
126
- sig { params(name: Symbol, block: T.proc.void).void }
126
+ sig { params(name: Symbol, block: T.proc.bind(AssociationPrivacyDSL).void).void }
127
127
  def association(name, &block)
128
128
  resolver = ->(policies) { resolve_policies(policies) }
129
129
  dsl = AssociationPrivacyDSL.new(@model_class, name, resolver)
@@ -260,7 +260,7 @@ module Sequel
260
260
  # can :edit, P::AllowSelf, P::AllowAdmins
261
261
  # field :email, P::AllowSelf
262
262
  # end
263
- sig { params(block: T.proc.void).void }
263
+ sig { params(block: T.proc.bind(PrivacyDSL).void).void }
264
264
  def privacy(&block)
265
265
  if privacy_finalized?
266
266
  Kernel.raise Sequel::Privacy::PrivacyAlreadyFinalizedError, "Privacy already finalized for #{self}"
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Sequel
5
5
  module Privacy
6
- VERSION = '0.2.0'
6
+ VERSION = '0.2.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-privacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Bales