petergate 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/generators/petergate/install_generator.rb +2 -2
- data/lib/petergate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6f44d8656504773acf2b8946f2c14ce77fda799
|
4
|
+
data.tar.gz: 77298fcd06e03a11273067354daec37d8c111f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10e312a02b00d5ddab2bdb0f9103ed8c94c3bb066b0dcdfa7f1542ce3ddc0f2f4893a6f21c15334fb10ea789d73a4663c3c81e489797d93500793a466a1f5bc5
|
7
|
+
data.tar.gz: 5deb1c11f2334a27f0943a1917927e1007a1baf64e22a7a469ac9653403f4af3effc2e288afed6fe38a3841bc5b41ab88be43935b24e4b97b80b4b92c4a36ba7
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Petergate
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/
|
3
|
+
[![Build Status](https://travis-ci.org/elorest/petergate.svg)](https://travis-ci.org/elorest/petergate)
|
4
4
|
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/isaacsloan/petergate?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/petergate.svg)](http://badge.fury.io/rb/petergate)
|
6
6
|
|
@@ -14,13 +14,13 @@ module Petergate
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def insert_into_user_model
|
17
|
-
inject_into_file "app/models/user.rb", after: /^class\sUser < ActiveRecord::Base/ do
|
17
|
+
inject_into_file "app/models/user.rb", after: /^class\sUser < ActiveRecord::Base|^class User < ApplicationRecord/ do
|
18
18
|
<<-'RUBY'
|
19
19
|
|
20
20
|
############################################################################################
|
21
21
|
## PeterGate Roles ##
|
22
22
|
## The :user role is added by default and shouldn't be included in this list. ##
|
23
|
-
## The :root_admin can access any page regardless of access settings. Use with caution!
|
23
|
+
## The :root_admin can access any page regardless of access settings. Use with caution! ##
|
24
24
|
## The multiple option can be set to true if you need users to have multiple roles. ##
|
25
25
|
petergate(roles: [:admin, :editor], multiple: false) ##
|
26
26
|
############################################################################################
|
data/lib/petergate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: petergate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Sloan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|