pundit_scaffold_generator 0.1.0 → 0.1.1

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: 0f768b2a77b5f28b046055d2518e604fde5bcd0c2ddc239fe7a849b7a80b6abb
4
- data.tar.gz: 05440a83f2c85b190d11d1a6ffe914387e5a184f8cf458e355d1e477234d0628
3
+ metadata.gz: c0f2f446b8ae644e1563f27a9c237f5220e930ff09172299830ea75005f8a95b
4
+ data.tar.gz: 94449bd7b46aca62f9bef5f00915585ea7a263c277fc7bdb3f2cba9c24be458e
5
5
  SHA512:
6
- metadata.gz: c072752483ba23786a210dcafcbcb4af2974757027f8e24b0fcce804d6d73ff9ac05b3fd3d83f4722f3ae04a4e5e7988c5a25f6a921ec3d6292578236a23f674
7
- data.tar.gz: 26cafb88d96a4823d7fe84021c6060faa60be8af3c40d75f7d6bcbc0335052d0130d91ae3d6a9a9ef458e881f3510a1cc0b0cccb66f37e53be95566636fdbb43
6
+ metadata.gz: 80c67cb49bef1ce626f9eff4085929a23c8632c994981e1fc1603b4d60d284c5cda904b7f61d222617d37752def830986c07640f09db2edcc1ae8f79befac1e0
7
+ data.tar.gz: 03eb1aff9f5ee5188c201222a9b2b546f3fe6a517220a9fb7648c554ebc18631f9ff3536803a32101fc61df191a979f646c18f6f94a2db0d25bc570f32c84a71
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pundit_scaffold_generator (0.1.0)
4
+ pundit_scaffold_generator (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,24 +1,19 @@
1
1
  # PunditScaffoldGenerator
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ Gem `pundit` is quite a popular authorization tool for Rails projects.
4
+ Unfortunately it lacks the code to produce the files during `rails generate scaffold`.
4
5
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pundit_scaffold_generator`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+ This gem is intendet to close the hole.
6
7
 
7
8
  ## Installation
8
9
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+ Add the line `gem 'pundit_scaffold_generator'` to your `Gemfile` in the group `:development, :test` and run `bundle install`
10
11
 
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18
12
 
19
13
  ## Usage
20
14
 
21
- TODO: Write usage instructions here
15
+ The code for `<model>_policy.rb` and `<model>_policy_spec.rb` will be generated automatically when you run `rails generate scaffold` command.
16
+
22
17
 
23
18
  ## Development
24
19
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PunditScaffoldGenerator
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Kulikov