easy_roles 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +1 -0
- data/README.rdoc +8 -4
- data/Rakefile +1 -1
- data/easy_roles.gemspec +2 -2
- data/lib/easy_roles.rb +1 -1
- metadata +2 -2
data/Manifest
CHANGED
data/README.rdoc
CHANGED
@@ -4,17 +4,21 @@ Simple rails gem for basic role authorization with ruby on rails.
|
|
4
4
|
|
5
5
|
== Install
|
6
6
|
|
7
|
-
gem install
|
7
|
+
gem install gemcutter
|
8
|
+
gem tumble
|
9
|
+
gem install easy_roles
|
8
10
|
|
9
|
-
|
11
|
+
or it can be installed as a rails plugin.
|
12
|
+
|
13
|
+
script/plugin install git://github.com/platform45/easy_roles.git
|
10
14
|
|
11
15
|
== Basic Setup
|
12
16
|
|
13
17
|
Add the following to your enviroment.rb in the rails initializer block
|
14
18
|
|
15
|
-
config.gem '
|
19
|
+
config.gem 'easy_roles', :source => 'http://gemcutter.org'
|
16
20
|
|
17
|
-
|
21
|
+
Add a "roles" column to your users model, and set the default value to "--- []". Please note you can call this column anything you like, I like to use the name "roles".
|
18
22
|
|
19
23
|
t.string :roles, :default => "--- []"
|
20
24
|
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('easy_roles', '0.1.
|
5
|
+
Echoe.new('easy_roles', '0.1.1') do |p|
|
6
6
|
p.description = "Easy role authorization in rails"
|
7
7
|
p.url = "http://github.com/platform45/easy_roles"
|
8
8
|
p.author = "Platform45"
|
data/easy_roles.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{easy_roles}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Platform45"]
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = %q{Easy role authorization in rails}
|
11
11
|
s.email = %q{ryan@platform45.com}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/easy_roles.rb"]
|
13
|
-
s.files = ["Manifest", "README.rdoc", "Rakefile", "
|
13
|
+
s.files = ["Manifest", "README.rdoc", "Rakefile", "easy_roles.gemspec", "init.rb", "lib/easy_roles.rb"]
|
14
14
|
s.homepage = %q{http://github.com/platform45/easy_roles}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Easy_roles", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
data/lib/easy_roles.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_roles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platform45
|
@@ -26,9 +26,9 @@ files:
|
|
26
26
|
- Manifest
|
27
27
|
- README.rdoc
|
28
28
|
- Rakefile
|
29
|
+
- easy_roles.gemspec
|
29
30
|
- init.rb
|
30
31
|
- lib/easy_roles.rb
|
31
|
-
- easy_roles.gemspec
|
32
32
|
has_rdoc: true
|
33
33
|
homepage: http://github.com/platform45/easy_roles
|
34
34
|
licenses: []
|