petergate 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aec1bde4df29afecb38a53b0c956fe239f8889e3
4
- data.tar.gz: a7582407ab840880df7a812f2b7d7762a3d58bd6
3
+ metadata.gz: c8614c351db2a61ee0040c2f379605c6ab3f4586
4
+ data.tar.gz: 84eda46c801abe0aaa4427fea3ba6ee07a29d95d
5
5
  SHA512:
6
- metadata.gz: 820ba53bae0f59f4d9d09428408f6ff2c09a50bb57cef671c4cab230289567c4d8da3ec137494e2f5607c2bd98daa95c6dfaa183c01a37dfb383ddfb65d479d6
7
- data.tar.gz: acd4474ee4e1864464a27d0587b98d1ce386464997f4d2d88090af9b3fbb036022187aea0c79d06bac99daa452c694ffc431caed5f2556e4ca5045a86ecd2132
6
+ metadata.gz: ab730b12b8e0be1ad96446e12e3b8039f726d612afce48952fde65b788063667ff6bdc8b0e156db826f1fd4de4e574d996a1175f7766bb72e44772c50476dede
7
+ data.tar.gz: 9479be126855e4963dba38036dc084c88fb8b9dafc59ffa12dc3ba290c1a6e001cdb79a248ed20cab65ae9ce518ef79ef7d6afbcfeb17112758f50a720c023b3
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Petergate
2
2
 
3
- Simple User Authorizations.
3
+ Easy to use and read action and content based authorizations.
4
4
 
5
- ## Installation
5
+ Installation
6
+ ------
6
7
 
7
8
  Add this line to your application's Gemfile:
8
9
 
@@ -28,7 +29,8 @@ petergate(roles: [:admin])
28
29
  ```
29
30
  to your User model.
30
31
 
31
- ## Usage
32
+ Usage
33
+ ------
32
34
 
33
35
  Setup permissions in your controllers the same as you would for a before filter like so:
34
36
 
@@ -36,12 +38,22 @@ Setup permissions in your controllers the same as you would for a before filter
36
38
  access all: [:show, :index], user: AllRest
37
39
  ```
38
40
 
39
- Inside your views you can use logged_in?(:admin, :customer) to show or hide content.
41
+ Inside your views you can use logged_in?(:admin, :customer, :etc) to show or hide content.
40
42
 
41
43
  ```erb
42
- <%= link_to "destroy", destroy_listing_path(listing) if logged_in?(:admin, :customer) %>
44
+ <%= link_to "destroy", destroy_listing_path(listing) if logged_in?(:admin, :customer, :etc) %>
43
45
  ```
44
46
 
47
+ Credits
48
+ -------
49
+
50
+ PeterGate is written and maintaned by Isaac Sloan and friends.
51
+
52
+ Currently funded and maintained by [RingSeven](http://ringseven.com)
53
+
54
+ ![RingSeven](https://avatars1.githubusercontent.com/u/8309133?v=3&s=200)
55
+
56
+
45
57
  ## Contributing
46
58
 
47
59
  1. Fork it ( https://github.com/isaacsloan/petergate/fork )
@@ -1,3 +1,3 @@
1
1
  module Petergate
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
data/petergate.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["isaac@isaacsloan.com"]
11
11
  spec.summary = %q{Authorization system allowing verbose easy read controller syntax.}
12
12
  spec.description = %q{Authorization system.}
13
- spec.homepage = "https://github.com/isaacsloan/petergate"
13
+ spec.homepage = "https://github.com/ringseven/petergate"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
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: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,7 +56,7 @@ files:
56
56
  - lib/petergate/railtie.rb
57
57
  - lib/petergate/version.rb
58
58
  - petergate.gemspec
59
- homepage: https://github.com/isaacsloan/petergate
59
+ homepage: https://github.com/ringseven/petergate
60
60
  licenses:
61
61
  - MIT
62
62
  metadata: {}