pundit_scaffold_generator 0.1.3 → 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: 5558d45b38aa8befeb21c0e96d7b5634409410bc0e3475425bf98467db464e7d
4
- data.tar.gz: 27bd55ea337c2104b5965022d102e54b01e36aad4066d291f77eaeada541f8fa
3
+ metadata.gz: 47ecb176c996657d1d9e72881b93b3b29dff0518d1c957561bc00412965eec0d
4
+ data.tar.gz: 3b24d2d5850e266c4dec9ee2fc31d567dfdec13cfe7b6ddd88aae3052b5f2a0f
5
5
  SHA512:
6
- metadata.gz: f8a4843742d9e2c6f45dd25a0f43cf7d01711105e0ee496ccbcb42b48137d79e5bafae68dd8b6b69a76b3e19c2436654958363a72a9f368afa691e22e7cabecb
7
- data.tar.gz: 9f7f690a04fdbbcf532f530a7b4ad02e635829636e49c28e94a1c668f812822ba0739664b15801cf9a385c570f8b47a396467790d99ff3d17a2f8f0302eecfa9
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.3)
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.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pundit_scaffold_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Kulikov