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: 24aa20aaf6a9532a50996747bf5e328a12ba77a36a3c3ae6927bf8ac9466c8f1
4
- data.tar.gz: c387fed68657af821af0797378ab0d08fc7d80eef45ccaeefde2abb8271f761b
3
+ metadata.gz: 47ecb176c996657d1d9e72881b93b3b29dff0518d1c957561bc00412965eec0d
4
+ data.tar.gz: 3b24d2d5850e266c4dec9ee2fc31d567dfdec13cfe7b6ddd88aae3052b5f2a0f
5
5
  SHA512:
6
- metadata.gz: 94bddd1b1916210512cb344d34b66ab585247e0c6e40384c28160f11f5dc8787b63129e4bfc4bd1488f8fd0747d22dee319450d250e48ae9f3c10220a6436c75
7
- data.tar.gz: 3c296b9e22bb51acb02526071bdea364372a5d7743ae9c382b121c4e6d837cd45afe62d28da062aa82183abc6d2ae8ff17745f688d24e94f60859979c9403618
6
+ metadata.gz: 4adf77f72d4e96cad42f6bca67e8a39a42d33109bad8cdb46aaf1050313161a75a10365ffe8950370864fe8e525d891feda8c7a6977b7f987e19b65befc4ad14
7
+ data.tar.gz: 0c70f3e8d5f16b4f63e388eefef4ac1a5c05caff9738ba03805e7963af0ff0585d6dada3a06f9f81b2f70d0788a4217aa4c5e135fcd67497f1a00d43fd10c4ce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pundit_scaffold_generator (0.1.2)
4
+ pundit_scaffold_generator (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,14 +1,14 @@
1
1
  require '<%= File.exist?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
2
2
 
3
- RSpec.describe <%= class_name %>Policy, type: :policy do
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
@@ -4,11 +4,11 @@ class <%= class_name %>Policy < ApplicationPolicy
4
4
  super
5
5
  end
6
6
 
7
- def create?
7
+ def show?
8
8
  super
9
9
  end
10
10
 
11
- def show?
11
+ def create?
12
12
  super
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PunditScaffoldGenerator
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
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.2
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-16 00:00:00.000000000 Z
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