roles_active_record 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,21 +3,20 @@ source :rubygems
3
3
  gem "activerecord", ">= 3.0.1"
4
4
  gem "activesupport", ">= 3.0.1"
5
5
  gem "arel", ">= 2.0"
6
- gem "meta_where", ">= 1.0.1"
7
- gem "sugar-high", ">= 0.5.0"
6
+ gem "sugar-high", ">= 0.5.3"
8
7
  gem "require_all", '~> 1.2.0'
9
8
  gem "roles_generic", '>= 0.5.0'
10
9
  gem 'rails_artifactor', '>= 0.4.0'
11
10
 
12
11
  group :development, :test do
13
- gem "rspec", '>= 2.5.0'
12
+ gem "rspec", '>= 2.4.0'
14
13
  gem 'generator-spec', '>= 0.7.5'
15
14
  gem 'database_cleaner', '>= 0.6.7'
16
15
  end
17
16
 
18
17
  group :development do
19
18
  gem "jeweler", ">= 1.6.4"
20
- gem "bundler", ">= 1.0.10"
19
+ gem "bundler", ">= 1.0.1"
21
20
  gem "rdoc"
22
21
  end
23
22
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -1,10 +1,10 @@
1
1
  require 'roles_generic'
2
- require 'require_all'
2
+ require 'require_all'
3
3
  require 'set'
4
4
  require 'sugar-high/array'
5
5
  require 'rails'
6
6
  require 'arel'
7
- require 'meta_where'
7
+ # require 'meta_where'
8
8
  require 'yaml'
9
9
  require 'logger'
10
10
 
@@ -6,8 +6,8 @@ end
6
6
 
7
7
  module Roles::ActiveRecord
8
8
  mattr_accessor :warnings_on
9
-
10
- def self.included(base)
9
+
10
+ def self.included(base)
11
11
  base.extend Roles::Base
12
12
  base.extend ClassMethods
13
13
  base.send :include, InstanceMethods
@@ -20,18 +20,19 @@ module Roles::ActiveRecord
20
20
  end
21
21
 
22
22
  def default_role
23
+ puts "inst - dr"
23
24
  self.class.default_role
24
25
  end
25
26
  end
26
27
 
27
- module ClassMethods
28
+ module ClassMethods
28
29
  def default_role
29
30
  self.to_s.gsub(/(.+)User$/, '\1').underscore.to_sym
30
- end
31
+ end
31
32
 
32
33
  def default_role= drole
33
34
  @default_role = drole
34
- end
35
+ end
35
36
 
36
37
  def valid_single_strategies
37
38
  [:admin_flag, :one_role, :role_string]
@@ -43,35 +44,35 @@ module Roles::ActiveRecord
43
44
 
44
45
  def strategies_with_role_class
45
46
  [:one_role, :many_roles]
46
- end
47
+ end
47
48
 
48
49
  def valid_strategies
49
50
  valid_single_strategies + valid_multi_strategies
50
51
  end
51
-
52
+
52
53
  def strategy name, options = {}
53
54
  strategy_name = name.to_sym
54
55
  raise ArgumentError, "Unknown role strategy #{strategy_name}" if !valid_strategies.include? strategy_name
55
56
  use_roles_strategy strategy_name
56
-
57
+
57
58
  set_role_class(strategy_name, options) if strategies_with_role_class.include? strategy_name
58
59
 
59
60
  # one_role reference
60
61
  if strategy_name == :one_role
61
62
  self.belongs_to :one_role, :foreign_key => 'role_id', :class_name => role_class_name.to_s
62
63
  end
63
-
64
+
64
65
  # many_roles references
65
- if strategy_name == :many_roles
66
+ if strategy_name == :many_roles
66
67
  urc = user_roles_class options
67
68
  instance_eval many_roles_stmt(urc)
68
69
  end
69
-
70
+
70
71
  set_role_strategy name, options
71
- end
72
-
72
+ end
73
+
73
74
  private
74
-
75
+
75
76
  def many_roles_stmt urc
76
77
  %{
77
78
  has_many :many_roles, :through => :#{urc}, :source => :#{role_class_name.to_s.underscore}
@@ -82,9 +83,17 @@ module Roles::ActiveRecord
82
83
  def role_class_name options = {}
83
84
  return @role_class_name if @role_class_name
84
85
  return options[:role_class] if options.kind_of?(Hash) && options[:role_class]
85
- 'Role'
86
+ 'Role'
87
+ end
88
+
89
+ def role_arel_table
90
+ Arel::Table.new role_table
86
91
  end
87
92
 
93
+ def role_table
94
+ role_class_name.to_s.underscore.pluralize
95
+ end
96
+
88
97
  def user_roles_class options
89
98
  return options[:user_roles_class] if options.kind_of?(Hash) && options[:user_roles_class]
90
99
  'user_roles'
@@ -100,20 +109,9 @@ module Roles::ActiveRecord
100
109
 
101
110
  def default_role_class strategy_name
102
111
  require "roles_active_record/#{strategy_name}"
103
- # if !defined? ::Role
104
- # require "roles_active_record/#{strategy_name}"
105
- # puts "Using default Role classes since they have not yet been defined" # if Roles::ActiveRecord.warnings_on
106
- # return ::Role
107
- # end
108
- # if defined? ::Role
109
- #
110
- # puts "Role is defined"
111
- # return ::Role
112
- # end
113
- # puts "Late binding!!!"
114
- ::Role
115
- end
116
-
112
+ ::Role
113
+ end
114
+
117
115
  def get_role_class strategy_name, options
118
116
  options[:role_class] ? options[:role_class].to_s.camelize.constantize : default_role_class(strategy_name)
119
117
  end
@@ -1,5 +1,5 @@
1
1
  class Role < ActiveRecord::Base
2
- scope :named, lambda{|role_names| where(:name.in => role_names.flatten)}
2
+ scope :named, lambda{|role_names| where(:name => role_names.flatten)}
3
3
  has_many :users, :through => :user_roles
4
4
  has_many :user_roles
5
5
  validates :name, :uniqueness => true
@@ -15,8 +15,8 @@ end
15
15
 
16
16
  module RoleClass
17
17
  module ClassMethods
18
- def find_roles(*role_names)
19
- where(:name.in => role_names.flatten)
18
+ def find_roles(*role_names)
19
+ where(:name => role_names.flatten)
20
20
  end
21
21
 
22
22
  def find_role role_name
@@ -4,22 +4,22 @@ module Roles::ActiveRecord
4
4
  module Strategy
5
5
  module Multi
6
6
  include Shared
7
-
7
+
8
8
  # assign multiple roles
9
9
  def roles=(*role_names)
10
10
  extracted_roles = extract_roles(role_names)
11
11
  return nil if extracted_roles.empty?
12
12
  set_roles(select_valid_roles extracted_roles)
13
- end
14
-
13
+ end
14
+
15
15
  def add_roles *roles
16
16
  new_roles = select_valid_roles(roles)
17
17
  if !new_roles.empty?
18
18
  self.roles = self.roles + new_roles
19
19
  self.save
20
20
  end
21
- end
22
-
21
+ end
22
+
23
23
  # should remove the current single role (set = nil)
24
24
  # only if it is contained in the list of roles to be removed
25
25
  def remove_roles *role_names
@@ -40,18 +40,18 @@ module Roles::ActiveRecord
40
40
  def roles_list
41
41
  my_roles = [roles].flat_uniq
42
42
  return [] if my_roles.empty?
43
- has_role_class? ? my_roles.map{|r| r.name.to_sym } : my_roles
43
+ has_role_class? ? my_roles.map{|r| r.name.to_sym } : my_roles
44
44
  end
45
-
45
+
46
46
  protected
47
-
48
- def set_roles *roles
47
+
48
+ def set_roles *roles
49
49
  self.send("#{role_attribute}=", new_roles(roles))
50
50
  end
51
51
 
52
52
  def get_roles
53
53
  self.send(role_attribute) || []
54
- end
54
+ end
55
55
  end
56
56
  end
57
- end
57
+ end
@@ -17,7 +17,7 @@ module RoleStrategy::ActiveRecord
17
17
  end
18
18
 
19
19
  def in_any_role(*role_names)
20
- joins(:many_roles) & Role.named(role_names.to_strings)
20
+ joins(:many_roles).where(role_arel_table[:name].in(role_names.flatten.to_strings))
21
21
  end
22
22
  end
23
23
 
@@ -5,14 +5,14 @@ module Roles::ActiveRecord
5
5
  def set_default_role
6
6
  add_role default_role
7
7
  end
8
-
8
+
9
9
  def set_role role
10
10
  update_attributes(role_attribute => new_role(role))
11
11
  end
12
12
  alias_method :set_roles, :set_role
13
13
 
14
14
  def remove_all_roles!
15
- set_empty_role
15
+ set_empty_role
16
16
  end
17
17
 
18
18
  def has_no_roles?
@@ -31,7 +31,7 @@ module Roles::ActiveRecord
31
31
  def select_valid_roles *roles
32
32
  roles.flat_uniq.select{|role| valid_role? role }
33
33
  has_role_class? ? role_class.find_roles(roles).to_a.flat_uniq : roles.flat_uniq
34
- end
34
+ end
35
35
  end
36
36
  end
37
- end
37
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{roles_active_record}
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Kristian Mandrup}]
12
- s.date = %q{2011-08-17}
12
+ s.date = %q{2011-08-18}
13
13
  s.description = %q{Makes it easy to set a role strategy on your User model in Active Record}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -107,47 +107,44 @@ Gem::Specification.new do |s|
107
107
  s.add_runtime_dependency(%q<activerecord>, [">= 3.0.1"])
108
108
  s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
109
109
  s.add_runtime_dependency(%q<arel>, [">= 2.0"])
110
- s.add_runtime_dependency(%q<meta_where>, [">= 1.0.1"])
111
- s.add_runtime_dependency(%q<sugar-high>, [">= 0.5.0"])
110
+ s.add_runtime_dependency(%q<sugar-high>, [">= 0.5.3"])
112
111
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
113
112
  s.add_runtime_dependency(%q<roles_generic>, [">= 0.5.0"])
114
113
  s.add_runtime_dependency(%q<rails_artifactor>, [">= 0.4.0"])
115
- s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
114
+ s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
116
115
  s.add_development_dependency(%q<generator-spec>, [">= 0.7.5"])
117
116
  s.add_development_dependency(%q<database_cleaner>, [">= 0.6.7"])
118
117
  s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
119
- s.add_development_dependency(%q<bundler>, [">= 1.0.10"])
118
+ s.add_development_dependency(%q<bundler>, [">= 1.0.1"])
120
119
  s.add_development_dependency(%q<rdoc>, [">= 0"])
121
120
  else
122
121
  s.add_dependency(%q<activerecord>, [">= 3.0.1"])
123
122
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
124
123
  s.add_dependency(%q<arel>, [">= 2.0"])
125
- s.add_dependency(%q<meta_where>, [">= 1.0.1"])
126
- s.add_dependency(%q<sugar-high>, [">= 0.5.0"])
124
+ s.add_dependency(%q<sugar-high>, [">= 0.5.3"])
127
125
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
128
126
  s.add_dependency(%q<roles_generic>, [">= 0.5.0"])
129
127
  s.add_dependency(%q<rails_artifactor>, [">= 0.4.0"])
130
- s.add_dependency(%q<rspec>, [">= 2.5.0"])
128
+ s.add_dependency(%q<rspec>, [">= 2.4.0"])
131
129
  s.add_dependency(%q<generator-spec>, [">= 0.7.5"])
132
130
  s.add_dependency(%q<database_cleaner>, [">= 0.6.7"])
133
131
  s.add_dependency(%q<jeweler>, [">= 1.6.4"])
134
- s.add_dependency(%q<bundler>, [">= 1.0.10"])
132
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
135
133
  s.add_dependency(%q<rdoc>, [">= 0"])
136
134
  end
137
135
  else
138
136
  s.add_dependency(%q<activerecord>, [">= 3.0.1"])
139
137
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
140
138
  s.add_dependency(%q<arel>, [">= 2.0"])
141
- s.add_dependency(%q<meta_where>, [">= 1.0.1"])
142
- s.add_dependency(%q<sugar-high>, [">= 0.5.0"])
139
+ s.add_dependency(%q<sugar-high>, [">= 0.5.3"])
143
140
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
144
141
  s.add_dependency(%q<roles_generic>, [">= 0.5.0"])
145
142
  s.add_dependency(%q<rails_artifactor>, [">= 0.4.0"])
146
- s.add_dependency(%q<rspec>, [">= 2.5.0"])
143
+ s.add_dependency(%q<rspec>, [">= 2.4.0"])
147
144
  s.add_dependency(%q<generator-spec>, [">= 0.7.5"])
148
145
  s.add_dependency(%q<database_cleaner>, [">= 0.6.7"])
149
146
  s.add_dependency(%q<jeweler>, [">= 1.6.4"])
150
- s.add_dependency(%q<bundler>, [">= 1.0.10"])
147
+ s.add_dependency(%q<bundler>, [">= 1.0.1"])
151
148
  s.add_dependency(%q<rdoc>, [">= 0"])
152
149
  end
153
150
  end
@@ -1,12 +1,6 @@
1
- class User < ActiveRecord::Base
1
+ class User < ActiveRecord::Base
2
2
  include Roles::ActiveRecord
3
-
3
+
4
4
  strategy :many_roles
5
5
  valid_roles_are :admin, :guest, :user
6
-
7
- def initialize attributes = {}
8
- super
9
- # role = default_role
10
- add_role default_role
11
- end
12
6
  end
@@ -10,11 +10,11 @@ describe "Roles for Active Record: #{api_name}" do
10
10
  require "roles_active_record/strategy/user_setup.rb"
11
11
 
12
12
  before do
13
- default_user_setup
13
+ default_user_setup
14
14
  end
15
15
 
16
16
  describe '#in_role' do
17
- it "should return first user matching role" do
17
+ it "should return first user matching role" do
18
18
  if User.respond_to? :in_role
19
19
  User.in_role(:guest).first.name.should == 'Guest user'
20
20
  User.in_role(:admin).first.name.should == 'Admin user'
@@ -23,9 +23,9 @@ describe "Roles for Active Record: #{api_name}" do
23
23
  end
24
24
 
25
25
  describe '#in_any_role' do
26
- it "should return first user matching role" do
26
+ it "should return first user matching role" do
27
27
  if User.respond_to? :in_roles
28
- User.in_any_role(:guest, :user).first.name.should == 'Guest user'
28
+ User.in_any_role(:guest, :user).first.name.should == 'Guest user'
29
29
  User.in_any_role(:admin, :guest).should be_empty
30
30
  end
31
31
  end
@@ -318,4 +318,4 @@ describe "Roles for Active Record: #{api_name}" do
318
318
  end
319
319
  end
320
320
  end
321
- end
321
+ end
@@ -1,20 +1,23 @@
1
1
  def default_user_setup
2
- @empty_user = User.create(:name => 'Empty user')
3
- @empty_user.save
4
-
5
- @guest_user = User.create(:name => 'Guest user')
2
+ @empty_user = User.create(:name => 'Empty user')
3
+ # @empty_user.add_role :user
4
+ @empty_user.save
5
+
6
+ @guest_user = User.create(:name => 'Guest user')
6
7
  @guest_user.add_roles :guest
7
- @guest_user.save
8
-
8
+ @guest_user.save
9
+
9
10
  @normal_user = User.create(:name => 'Normal user')
10
11
  @normal_user.roles = :guest, :user
11
- @normal_user.save
12
-
12
+ @normal_user.save
13
+
13
14
  @admin_user = User.create(:name => 'Admin user')
14
- @admin_user.roles = :admin
15
+ @admin_user.roles = :admin
15
16
  @admin_user.save
16
17
 
17
18
  @default_user = User.create(:name => 'def User')
19
+ @default_user.add_role :user
20
+
18
21
  @default_user.save
19
22
  # puts "Admin roles: #{@admin_user.roles_list}, #{@admin_user.inspect}, #{Role.all}"
20
23
  end
@@ -3,7 +3,7 @@ require 'rspec'
3
3
  require 'rails'
4
4
  require 'active_record'
5
5
  require 'arel'
6
- require 'meta_where'
6
+ # require 'meta_where'
7
7
  require 'yaml'
8
8
  require 'logger'
9
9
  require 'database_cleaner'
@@ -19,9 +19,9 @@ SPEC_DIR = File.dirname(__FILE__)
19
19
 
20
20
  path = SPEC_DIR + '/db/database.yml'
21
21
  dbfile = File.open(path)
22
- dbconfig = YAML::load(dbfile)
22
+ dbconfig = YAML::load(dbfile)
23
23
  ActiveRecord::Base.establish_connection(dbconfig)
24
- ActiveRecord::Base.logger = Logger.new(STDERR)
24
+ #ActiveRecord::Base.logger = Logger.new(STDERR)
25
25
 
26
26
  # Attempts at trying to make database_cleaner accept another location for database.yml
27
27
  # ------------------------------------------------------------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roles_active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-17 00:00:00.000000000Z
12
+ date: 2011-08-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &2160638120 !ruby/object:Gem::Requirement
16
+ requirement: &2156459020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160638120
24
+ version_requirements: *2156459020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &2160637380 !ruby/object:Gem::Requirement
27
+ requirement: &2156458040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2160637380
35
+ version_requirements: *2156458040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: arel
38
- requirement: &2160636680 !ruby/object:Gem::Requirement
38
+ requirement: &2156456460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,32 +43,21 @@ dependencies:
43
43
  version: '2.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2160636680
47
- - !ruby/object:Gem::Dependency
48
- name: meta_where
49
- requirement: &2160635280 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: 1.0.1
55
- type: :runtime
56
- prerelease: false
57
- version_requirements: *2160635280
46
+ version_requirements: *2156456460
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: sugar-high
60
- requirement: &2160633100 !ruby/object:Gem::Requirement
49
+ requirement: &2156454320 !ruby/object:Gem::Requirement
61
50
  none: false
62
51
  requirements:
63
52
  - - ! '>='
64
53
  - !ruby/object:Gem::Version
65
- version: 0.5.0
54
+ version: 0.5.3
66
55
  type: :runtime
67
56
  prerelease: false
68
- version_requirements: *2160633100
57
+ version_requirements: *2156454320
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: require_all
71
- requirement: &2160625640 !ruby/object:Gem::Requirement
60
+ requirement: &2156442600 !ruby/object:Gem::Requirement
72
61
  none: false
73
62
  requirements:
74
63
  - - ~>
@@ -76,10 +65,10 @@ dependencies:
76
65
  version: 1.2.0
77
66
  type: :runtime
78
67
  prerelease: false
79
- version_requirements: *2160625640
68
+ version_requirements: *2156442600
80
69
  - !ruby/object:Gem::Dependency
81
70
  name: roles_generic
82
- requirement: &2160622440 !ruby/object:Gem::Requirement
71
+ requirement: &2156436340 !ruby/object:Gem::Requirement
83
72
  none: false
84
73
  requirements:
85
74
  - - ! '>='
@@ -87,10 +76,10 @@ dependencies:
87
76
  version: 0.5.0
88
77
  type: :runtime
89
78
  prerelease: false
90
- version_requirements: *2160622440
79
+ version_requirements: *2156436340
91
80
  - !ruby/object:Gem::Dependency
92
81
  name: rails_artifactor
93
- requirement: &2160618640 !ruby/object:Gem::Requirement
82
+ requirement: &2156435000 !ruby/object:Gem::Requirement
94
83
  none: false
95
84
  requirements:
96
85
  - - ! '>='
@@ -98,21 +87,21 @@ dependencies:
98
87
  version: 0.4.0
99
88
  type: :runtime
100
89
  prerelease: false
101
- version_requirements: *2160618640
90
+ version_requirements: *2156435000
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: rspec
104
- requirement: &2160616920 !ruby/object:Gem::Requirement
93
+ requirement: &2156433700 !ruby/object:Gem::Requirement
105
94
  none: false
106
95
  requirements:
107
96
  - - ! '>='
108
97
  - !ruby/object:Gem::Version
109
- version: 2.5.0
98
+ version: 2.4.0
110
99
  type: :development
111
100
  prerelease: false
112
- version_requirements: *2160616920
101
+ version_requirements: *2156433700
113
102
  - !ruby/object:Gem::Dependency
114
103
  name: generator-spec
115
- requirement: &2160614940 !ruby/object:Gem::Requirement
104
+ requirement: &2156432420 !ruby/object:Gem::Requirement
116
105
  none: false
117
106
  requirements:
118
107
  - - ! '>='
@@ -120,10 +109,10 @@ dependencies:
120
109
  version: 0.7.5
121
110
  type: :development
122
111
  prerelease: false
123
- version_requirements: *2160614940
112
+ version_requirements: *2156432420
124
113
  - !ruby/object:Gem::Dependency
125
114
  name: database_cleaner
126
- requirement: &2160613260 !ruby/object:Gem::Requirement
115
+ requirement: &2156427860 !ruby/object:Gem::Requirement
127
116
  none: false
128
117
  requirements:
129
118
  - - ! '>='
@@ -131,10 +120,10 @@ dependencies:
131
120
  version: 0.6.7
132
121
  type: :development
133
122
  prerelease: false
134
- version_requirements: *2160613260
123
+ version_requirements: *2156427860
135
124
  - !ruby/object:Gem::Dependency
136
125
  name: jeweler
137
- requirement: &2160612240 !ruby/object:Gem::Requirement
126
+ requirement: &2156419320 !ruby/object:Gem::Requirement
138
127
  none: false
139
128
  requirements:
140
129
  - - ! '>='
@@ -142,21 +131,21 @@ dependencies:
142
131
  version: 1.6.4
143
132
  type: :development
144
133
  prerelease: false
145
- version_requirements: *2160612240
134
+ version_requirements: *2156419320
146
135
  - !ruby/object:Gem::Dependency
147
136
  name: bundler
148
- requirement: &2160611620 !ruby/object:Gem::Requirement
137
+ requirement: &2156417160 !ruby/object:Gem::Requirement
149
138
  none: false
150
139
  requirements:
151
140
  - - ! '>='
152
141
  - !ruby/object:Gem::Version
153
- version: 1.0.10
142
+ version: 1.0.1
154
143
  type: :development
155
144
  prerelease: false
156
- version_requirements: *2160611620
145
+ version_requirements: *2156417160
157
146
  - !ruby/object:Gem::Dependency
158
147
  name: rdoc
159
- requirement: &2160610960 !ruby/object:Gem::Requirement
148
+ requirement: &2156415140 !ruby/object:Gem::Requirement
160
149
  none: false
161
150
  requirements:
162
151
  - - ! '>='
@@ -164,7 +153,7 @@ dependencies:
164
153
  version: '0'
165
154
  type: :development
166
155
  prerelease: false
167
- version_requirements: *2160610960
156
+ version_requirements: *2156415140
168
157
  description: Makes it easy to set a role strategy on your User model in Active Record
169
158
  email: kmandrup@gmail.com
170
159
  executables: []
@@ -264,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
264
253
  version: '0'
265
254
  segments:
266
255
  - 0
267
- hash: 2048227676201246637
256
+ hash: 517076096296234959
268
257
  required_rubygems_version: !ruby/object:Gem::Requirement
269
258
  none: false
270
259
  requirements: