cream 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.7
1
+ 0.7.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cream}
8
- s.version = "0.7.7"
8
+ s.version = "0.7.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
@@ -21,8 +21,8 @@ module Roles
21
21
  logger.add_logfile :logfile => logfile if logfile
22
22
  roles_gems if gems?
23
23
  create_roles
24
- set_valid_roles_cream
25
- use_roles_strategy
24
+ use_roles_strategy
25
+ set_valid_roles_cream
26
26
  end
27
27
 
28
28
  protected
@@ -92,7 +92,7 @@ module Roles
92
92
  user_exist?
93
93
  if initializer_file? :cream
94
94
  if read_model(:user) =~ /valid_roles_are/
95
- replace_in_model_file :user, :where => /valid_roles_are\s+[(.*)]/, :with => 'valid_roles_are Cream.roles'
95
+ replace_in_model :user, :where => /valid_roles_are\s+[(.*)]/, :with => 'valid_roles_are Cream.roles'
96
96
  else
97
97
  insert_into_model :user do
98
98
  "valid_roles_are Cream::Role.available"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 7
9
- version: 0.7.7
8
+ - 8
9
+ version: 0.7.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup