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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30e995586fe10f4742d811609f6bec4984f94477
4
- data.tar.gz: f347ac8670aea77661d0c2f47ef363fcaada59d6
3
+ metadata.gz: e6f44d8656504773acf2b8946f2c14ce77fda799
4
+ data.tar.gz: 77298fcd06e03a11273067354daec37d8c111f99
5
5
  SHA512:
6
- metadata.gz: 51f517cd8074d4172d3bc886370fdeeeee817356aa2aa8c1c022954d02c9ef89ada2e95f2a713fa61ae4b8c94ba72ac7fcba8aaa268e302fe229b1c0269a5976
7
- data.tar.gz: 178d3848800c5284298cb8dfebdd035ae917df5074ea695ae7730744e8897d7b7cb4ba6f1ed2353f0c34cc39dec852fdb10c00620839cbf00ec90bc6dbfa4a8f
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/isaacsloan/petergate.svg)](https://travis-ci.org/isaacsloan/petergate)
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
  ############################################################################################
@@ -1,3 +1,3 @@
1
1
  module Petergate
2
- VERSION = "1.6.3"
2
+ VERSION = "1.6.4"
3
3
  end
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.3
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-06-08 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler