pundit-matchers 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pundit/matchers.rb +8 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 093d792efab35a52d2323239c1a743e67e6d9e8e
4
- data.tar.gz: 114b33b8bd33f2fcffd816d01ac7370dc47cc3e4
3
+ metadata.gz: 8a107f9850cec3d77bce20866a01785d61e2504e
4
+ data.tar.gz: 1e9e2002a82f622e3355f8c138ee0c35fe4af121
5
5
  SHA512:
6
- metadata.gz: 24076c702f7f4cc4b9c0eaa880400c773df365b5459763fbd5cb5a84194fe15ee03864c05a18a0f4d6f3e834f28dc8a42184f3ac602fd346dbd25062b22ff6e2
7
- data.tar.gz: b51fb79d247ff289cf108b99b991451e02e24cb9ee29c423f76203564593919e353d894d4d9707bf8bf2ce450320aff03a1507e80870e959b6139f5fd50c8392
6
+ metadata.gz: 19fac269273c7411d7c0bd13e02ac8cbb97993b86f8783f7e5336c0edd4533529a970500b3182f430e00094dd24804c59db907eeb0af10af10058eb88bb7eff1
7
+ data.tar.gz: 3ca539cd281d580845c05b4d41c3b3ec0cdcbd218b5aa72dba52379b049329e6e38360f1014feba0f162e96c4a8c2e38f98e70b85d1df51fe0b8b34256153bc2
@@ -1,8 +1,15 @@
1
1
  require 'rspec/core'
2
- require 'pundit/matchers/configuration'
3
2
 
4
3
  module Pundit
5
4
  module Matchers
5
+ class Configuration
6
+ attr_accessor :user_alias
7
+
8
+ def initialize
9
+ @user_alias = :user
10
+ end
11
+ end
12
+
6
13
  class << self
7
14
  def configure
8
15
  yield(configuration)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pundit-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Alley