pundit_scaffold_generator 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47ecb176c996657d1d9e72881b93b3b29dff0518d1c957561bc00412965eec0d
|
4
|
+
data.tar.gz: 3b24d2d5850e266c4dec9ee2fc31d567dfdec13cfe7b6ddd88aae3052b5f2a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4adf77f72d4e96cad42f6bca67e8a39a42d33109bad8cdb46aaf1050313161a75a10365ffe8950370864fe8e525d891feda8c7a6977b7f987e19b65befc4ad14
|
7
|
+
data.tar.gz: 0c70f3e8d5f16b4f63e388eefef4ac1a5c05caff9738ba03805e7963af0ff0585d6dada3a06f9f81b2f70d0788a4217aa4c5e135fcd67497f1a00d43fd10c4ce
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
require '<%= File.exist?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
|
2
2
|
|
3
|
-
|
3
|
+
describe <%= class_name %>Policy, type: :policy do
|
4
4
|
subject(:policy) { described_class }
|
5
5
|
let(:allow) { permit user, <%= file_name %> }
|
6
6
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_bot -%>
|
7
7
|
let(:user) { create :user }
|
8
|
-
let(:<%= file_name %>) {create :<%= file_name %>}
|
8
|
+
let(:<%= file_name %>) { create :<%= file_name %> }
|
9
9
|
<% else -%>
|
10
10
|
let(:user) { User.new }
|
11
|
-
let(:<%= file_name %>) {<%= class_name %>.new }
|
11
|
+
let(:<%= file_name %>) { <%= class_name %>.new }
|
12
12
|
<% end -%>
|
13
13
|
|
14
14
|
permissions :index? do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pundit_scaffold_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Kulikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
When your project uses pundit gem for authorization this gem generates
|