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 CHANGED
@@ -1,5 +1,6 @@
1
1
  Manifest
2
2
  README.rdoc
3
3
  Rakefile
4
+ easy_roles.gemspec
4
5
  init.rb
5
6
  lib/easy_roles.rb
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 platform45-easy_roles --source http://gems.github.com
7
+ gem install gemcutter
8
+ gem tumble
9
+ gem install easy_roles
8
10
 
9
- or it can be installed as a rails plugin.
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 'platform45-easy_roles', :lib => 'easy_roles', :source => 'http://gems.github.com'
19
+ config.gem 'easy_roles', :source => 'http://gemcutter.org'
16
20
 
17
- Firstly you need to 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".
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.0') do |p|
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.0"
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", "init.rb", "lib/easy_roles.rb", "easy_roles.gemspec"]
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
@@ -28,7 +28,7 @@ module EasyRoles
28
28
  end
29
29
 
30
30
  def make_default_roles
31
- clear_roles if roles.nil?
31
+ clear_roles if #{name}.nil?
32
32
  end
33
33
 
34
34
  private :make_default_roles
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.0
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: []