roles_data_mapper 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
1
  source :rubygems
2
2
 
3
- gem "activesupport", ">= 3.0.1"
4
- gem "sugar-high", "~> 0.3.0"
3
+ gem "activesupport", '>= 3.0.1'
4
+ gem "sugar-high", '~> 0.3.1'
5
5
  gem "require_all", '~> 1.2.0'
6
6
  gem "roles_generic", '~> 0.3.2'
7
- gem 'rails3_artifactor', '>= 0.3.1'
8
- gem 'logging_assist', '>= 0.1.6'
7
+ gem 'rails3_artifactor', '>= 0.3.2'
8
+ gem 'logging_assist', '>= 0.2.0'
9
9
 
10
10
  gem "dm-core", "~> 1.0"
11
11
  gem "dm-types", "~> 1.0"
@@ -17,5 +17,5 @@ group :test do
17
17
  gem "rspec", ">= 2.0.1"
18
18
  gem "yaml"
19
19
  gem "logger"
20
- gem "generator_spec", '>= 0.7.0'
20
+ gem "generator-spec", '>= 0.7.0'
21
21
  end
@@ -33,10 +33,6 @@ The following role strategies are included by default. Add your own by adding ex
33
33
  * roles_mask
34
34
  * role_string
35
35
 
36
- ### Update Oct 10.
37
-
38
- Bugfix: Added dependencies to Rakefile for role generator so they should work out-of-the-box after gem is installed ;)
39
-
40
36
  ## Usage examples
41
37
 
42
38
  Apply :admin_flag Role strategy to User model using default roles :admin and :guest (default)
data/Rakefile CHANGED
@@ -7,7 +7,8 @@ begin
7
7
  gem.email = "kmandrup@gmail.com"
8
8
  gem.homepage = "http://github.com/kristianmandrup/roles_for_dm"
9
9
  gem.authors = ["Kristian Mandrup"]
10
- gem.add_development_dependency "rspec", ">= 2.0.1"
10
+ gem.add_development_dependency "rspec", ">= 2.0.1"
11
+ gem.add_development_dependency "generator-spec", '>= 0.7.0'
11
12
 
12
13
  gem.add_dependency "dm-core", "~> 1.0"
13
14
  gem.add_dependency "dm-types", "~> 1.0"
@@ -20,7 +21,7 @@ begin
20
21
  gem.add_dependency "roles_generic", '>= 0.3.2'
21
22
 
22
23
  gem.add_dependency 'rails3_artifactor', '>= 0.3.2'
23
- gem.add_dependency 'logging_assist', '>= 0.1.6'
24
+ gem.add_dependency 'logging_assist', '>= 0.2.0'
24
25
 
25
26
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
26
27
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -0,0 +1,14 @@
1
+ # TODO:
2
+ # model_file_name and similar methods in rails3_assist and rails3_artifaftor should be fixed to always call underscore on filenames
3
+
4
+ class String
5
+ def as_filename
6
+ self.underscore
7
+ end
8
+ end
9
+
10
+ class Symbol
11
+ def as_filename
12
+ self.to_s.underscore
13
+ end
14
+ end
@@ -1,44 +1,55 @@
1
1
  require 'rails3_artifactor'
2
2
  require 'logging_assist'
3
+ require 'generators/data_mapper/roles/core_ext'
3
4
 
4
5
  module DataMapper
5
6
  module Generators
6
- class RolesGenerator < Rails::Generators::NamedBase
7
- desc "Add role strategy to a model"
7
+ class RolesGenerator < Rails::Generators::Base
8
+ desc "Add role strategy User model using Data Mapper"
8
9
 
9
- # argument name
10
+ argument :user_class, :type => :string, :default => 'User', :desc => "User class name"
10
11
 
11
- class_option :strategy, :type => :string, :aliases => "-s", :default => 'role_string',
12
+ class_option :strategy, :type => :string, :aliases => "-s", :default => 'role_string',
12
13
  :desc => "Role strategy to use (admin_flag, role_string, roles_string, role_strings, one_role, many_roles, roles_mask)"
13
14
 
14
15
 
15
- class_option :logfile, :type => :string, :default => nil, :desc => "Logfile location"
16
- class_option :roles, :type => :array, :default => [], :desc => "Valid roles"
16
+
17
+ class_option :roles, :type => :array, :aliases => "-r", :default => [], :desc => "Valid roles"
17
18
 
18
- class_option :role_class, :type => :string, :aliases => "-rc", :default => 'Role', :desc => "Role class"
19
- class_option :user_class, :type => :string, :aliases => "-uc", :default => 'User', :desc => "User class"
20
- class_option :user_role_class, :type => :string, :aliases => "-urc", :default => 'UserRole', :desc => "User Role join class"
19
+ class_option :role_class, :type => :string, :aliases => "-rc", :default => 'Role', :desc => "Role class name"
20
+ class_option :user_role_class, :type => :string, :aliases => "-urc", :default => 'UserRole', :desc => "User-Role (join table) class name"
21
+
22
+ class_option :logfile, :type => :string, :aliases => "-l", :default => nil, :desc => "Logfile location"
23
+
24
+ source_root File.dirname(__FILE__) + '/templates'
21
25
 
22
26
  def apply_role_strategy
23
27
  logger.add_logfile :logfile => logfile if logfile
24
- logger.debug "apply_role_strategy for : #{strategy} in model #{name}"
28
+ logger.debug "apply_role_strategy for : #{strategy} in model #{user_class}"
25
29
 
26
30
  if !valid_strategy?
27
- say "Strategy '#{strategy}' is not valid, at least not for Data Mapper", :red
31
+ logger.error "Strategy '#{strategy}' is not valid, at least not for Data Mapper"
28
32
  return
29
33
  end
30
34
 
31
- if !has_model_file?(user_model_name)
32
- say "User model #{user_model_name} not found", :red
35
+ if !has_model_file?(user_file)
36
+ say "User model in #{user_file} not found", :red
33
37
  return
34
38
  end
35
39
 
36
- begin
37
- insert_into_model name, :after => 'include DataMapper::Resource' do
40
+ if !is_data_mapper_model?(user_file)
41
+ logger.error "User model in #{user_file} is not a Data Mapper resource"
42
+ return
43
+ end
44
+
45
+ begin
46
+ logger.debug "Trying to insert roles code into #{user_file}"
47
+
48
+ insert_into_model user_file, :after => 'include DataMapper::Resource' do
38
49
  insertion_text
39
50
  end
40
51
  rescue Exeption => e
41
- logger.debug"Error: #{e.message}"
52
+ logger.error "Error: #{e.message}"
42
53
  end
43
54
 
44
55
  copy_role_models if role_class_strategy?
@@ -51,6 +62,22 @@ module DataMapper
51
62
 
52
63
  use_orm :data_mapper
53
64
 
65
+ def user_file
66
+ user_class.as_filename
67
+ end
68
+
69
+ def role_file
70
+ role_class.as_filename
71
+ end
72
+
73
+ def user_role_file
74
+ user_role_class.as_filename
75
+ end
76
+
77
+ def is_data_mapper_model? name
78
+ read_model(name) =~ /include DataMapper::Resource/
79
+ end
80
+
54
81
  def valid_strategy?
55
82
  valid_strategies.include? strategy.to_sym
56
83
  end
@@ -70,26 +97,22 @@ module DataMapper
70
97
  end
71
98
 
72
99
  def copy_one_role_model
73
- logger.debug "copy_one_role_model: #{role_class.underscore}"
100
+ logger.debug "generating role model for one_role strategy: #{role_file}"
74
101
 
75
- template 'one_role/role.rb', "app/models/#{role_class.underscore}.rb"
102
+ template 'one_role/role.rb', "app/models/#{role_file}.rb"
76
103
  end
77
104
 
78
105
  def copy_many_roles_models
79
- logger.debug "copy_many_roles_models: #{role_class.underscore} and #{user_role_class.underscore}"
106
+ logger.debug "generating role models for many_roles strategy: #{role_file} and #{user_role_file}"
80
107
 
81
- template 'many_roles/role.rb', "app/models/#{role_class.underscore}.rb"
82
- template 'many_roles/user_role.rb', "app/models/#{user_role_class.underscore}.rb"
108
+ template 'many_roles/role.rb', "app/models/#{role_file}.rb"
109
+ template 'many_roles/user_role.rb', "app/models/#{user_role_file}.rb"
83
110
  end
84
111
 
85
112
  def logfile
86
113
  options[:logfile]
87
114
  end
88
115
 
89
- def user_model_name
90
- name || 'User'
91
- end
92
-
93
116
  def orm
94
117
  :data_mapper
95
118
  end
@@ -115,7 +138,7 @@ module DataMapper
115
138
  end
116
139
 
117
140
  def strategy_options
118
- return ", :role_class => :#{role_class.to_s.underscore}" if role_class_strategy? && role_class.to_s != 'Role'
141
+ return ", :role_class => '#{role_class}'" if role_class_strategy? && role_class.to_s != 'Role'
119
142
  ''
120
143
  end
121
144
 
@@ -125,7 +148,7 @@ module DataMapper
125
148
  end
126
149
 
127
150
  def has_valid_roles_statement?
128
- !(read_model(user_model_name) =~ /valid_roles_are/).nil?
151
+ !(read_model(user_class) =~ /valid_roles_are/).nil?
129
152
  end
130
153
 
131
154
  def insertion_text
@@ -134,10 +157,6 @@ module DataMapper
134
157
  #{valid_roles_statement}}
135
158
  end
136
159
 
137
- def user_class
138
- options[:user_class].classify || 'User'
139
- end
140
-
141
160
  def role_class
142
161
  options[:role_class].classify || 'Role'
143
162
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{roles_data_mapper}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
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"]
12
- s.date = %q{2011-01-01}
12
+ s.date = %q{2011-01-10}
13
13
  s.description = %q{Makes it easy to set a role strategy on your User model in DataMapper}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
  "README.markdown",
26
26
  "Rakefile",
27
27
  "VERSION",
28
+ "lib/generators/data_mapper/roles/core_ext.rb",
28
29
  "lib/generators/data_mapper/roles/roles_generator.rb",
29
30
  "lib/generators/data_mapper/roles/templates/many_roles/role.rb",
30
31
  "lib/generators/data_mapper/roles/templates/many_roles/user_role.rb",
@@ -79,17 +80,18 @@ Gem::Specification.new do |s|
79
80
 
80
81
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
81
82
  s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
82
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.0"])
83
+ s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.1"])
83
84
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
84
85
  s.add_runtime_dependency(%q<roles_generic>, ["~> 0.3.2"])
85
- s.add_runtime_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
86
- s.add_runtime_dependency(%q<logging_assist>, [">= 0.1.6"])
86
+ s.add_runtime_dependency(%q<rails3_artifactor>, [">= 0.3.2"])
87
+ s.add_runtime_dependency(%q<logging_assist>, [">= 0.2.0"])
87
88
  s.add_runtime_dependency(%q<dm-core>, ["~> 1.0"])
88
89
  s.add_runtime_dependency(%q<dm-types>, ["~> 1.0"])
89
90
  s.add_runtime_dependency(%q<dm-migrations>, ["~> 1.0"])
90
91
  s.add_runtime_dependency(%q<dm-validations>, ["~> 1.0"])
91
92
  s.add_runtime_dependency(%q<dm-sqlite-adapter>, ["~> 1.0"])
92
93
  s.add_development_dependency(%q<rspec>, [">= 2.0.1"])
94
+ s.add_development_dependency(%q<generator-spec>, [">= 0.7.0"])
93
95
  s.add_runtime_dependency(%q<dm-core>, ["~> 1.0"])
94
96
  s.add_runtime_dependency(%q<dm-types>, ["~> 1.0"])
95
97
  s.add_runtime_dependency(%q<dm-migrations>, ["~> 1.0"])
@@ -99,20 +101,21 @@ Gem::Specification.new do |s|
99
101
  s.add_runtime_dependency(%q<sugar-high>, [">= 0.3.1"])
100
102
  s.add_runtime_dependency(%q<roles_generic>, [">= 0.3.2"])
101
103
  s.add_runtime_dependency(%q<rails3_artifactor>, [">= 0.3.2"])
102
- s.add_runtime_dependency(%q<logging_assist>, [">= 0.1.6"])
104
+ s.add_runtime_dependency(%q<logging_assist>, [">= 0.2.0"])
103
105
  else
104
106
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
105
- s.add_dependency(%q<sugar-high>, ["~> 0.3.0"])
107
+ s.add_dependency(%q<sugar-high>, ["~> 0.3.1"])
106
108
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
107
109
  s.add_dependency(%q<roles_generic>, ["~> 0.3.2"])
108
- s.add_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
109
- s.add_dependency(%q<logging_assist>, [">= 0.1.6"])
110
+ s.add_dependency(%q<rails3_artifactor>, [">= 0.3.2"])
111
+ s.add_dependency(%q<logging_assist>, [">= 0.2.0"])
110
112
  s.add_dependency(%q<dm-core>, ["~> 1.0"])
111
113
  s.add_dependency(%q<dm-types>, ["~> 1.0"])
112
114
  s.add_dependency(%q<dm-migrations>, ["~> 1.0"])
113
115
  s.add_dependency(%q<dm-validations>, ["~> 1.0"])
114
116
  s.add_dependency(%q<dm-sqlite-adapter>, ["~> 1.0"])
115
117
  s.add_dependency(%q<rspec>, [">= 2.0.1"])
118
+ s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
116
119
  s.add_dependency(%q<dm-core>, ["~> 1.0"])
117
120
  s.add_dependency(%q<dm-types>, ["~> 1.0"])
118
121
  s.add_dependency(%q<dm-migrations>, ["~> 1.0"])
@@ -122,21 +125,22 @@ Gem::Specification.new do |s|
122
125
  s.add_dependency(%q<sugar-high>, [">= 0.3.1"])
123
126
  s.add_dependency(%q<roles_generic>, [">= 0.3.2"])
124
127
  s.add_dependency(%q<rails3_artifactor>, [">= 0.3.2"])
125
- s.add_dependency(%q<logging_assist>, [">= 0.1.6"])
128
+ s.add_dependency(%q<logging_assist>, [">= 0.2.0"])
126
129
  end
127
130
  else
128
131
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
129
- s.add_dependency(%q<sugar-high>, ["~> 0.3.0"])
132
+ s.add_dependency(%q<sugar-high>, ["~> 0.3.1"])
130
133
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
131
134
  s.add_dependency(%q<roles_generic>, ["~> 0.3.2"])
132
- s.add_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
133
- s.add_dependency(%q<logging_assist>, [">= 0.1.6"])
135
+ s.add_dependency(%q<rails3_artifactor>, [">= 0.3.2"])
136
+ s.add_dependency(%q<logging_assist>, [">= 0.2.0"])
134
137
  s.add_dependency(%q<dm-core>, ["~> 1.0"])
135
138
  s.add_dependency(%q<dm-types>, ["~> 1.0"])
136
139
  s.add_dependency(%q<dm-migrations>, ["~> 1.0"])
137
140
  s.add_dependency(%q<dm-validations>, ["~> 1.0"])
138
141
  s.add_dependency(%q<dm-sqlite-adapter>, ["~> 1.0"])
139
142
  s.add_dependency(%q<rspec>, [">= 2.0.1"])
143
+ s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
140
144
  s.add_dependency(%q<dm-core>, ["~> 1.0"])
141
145
  s.add_dependency(%q<dm-types>, ["~> 1.0"])
142
146
  s.add_dependency(%q<dm-migrations>, ["~> 1.0"])
@@ -146,7 +150,7 @@ Gem::Specification.new do |s|
146
150
  s.add_dependency(%q<sugar-high>, [">= 0.3.1"])
147
151
  s.add_dependency(%q<roles_generic>, [">= 0.3.2"])
148
152
  s.add_dependency(%q<rails3_artifactor>, [">= 0.3.2"])
149
- s.add_dependency(%q<logging_assist>, [">= 0.1.6"])
153
+ s.add_dependency(%q<logging_assist>, [">= 0.2.0"])
150
154
  end
151
155
  end
152
156
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-01 00:00:00 +01:00
17
+ date: 2011-01-10 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -42,8 +42,8 @@ dependencies:
42
42
  segments:
43
43
  - 0
44
44
  - 3
45
- - 0
46
- version: 0.3.0
45
+ - 1
46
+ version: 0.3.1
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: *id002
@@ -87,8 +87,8 @@ dependencies:
87
87
  segments:
88
88
  - 0
89
89
  - 3
90
- - 1
91
- version: 0.3.1
90
+ - 2
91
+ version: 0.3.2
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: *id005
@@ -101,9 +101,9 @@ dependencies:
101
101
  - !ruby/object:Gem::Version
102
102
  segments:
103
103
  - 0
104
- - 1
105
- - 6
106
- version: 0.1.6
104
+ - 2
105
+ - 0
106
+ version: 0.2.0
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: *id006
@@ -193,21 +193,22 @@ dependencies:
193
193
  prerelease: false
194
194
  version_requirements: *id012
195
195
  - !ruby/object:Gem::Dependency
196
- name: dm-core
196
+ name: generator-spec
197
197
  requirement: &id013 !ruby/object:Gem::Requirement
198
198
  none: false
199
199
  requirements:
200
- - - ~>
200
+ - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  segments:
203
- - 1
204
203
  - 0
205
- version: "1.0"
206
- type: :runtime
204
+ - 7
205
+ - 0
206
+ version: 0.7.0
207
+ type: :development
207
208
  prerelease: false
208
209
  version_requirements: *id013
209
210
  - !ruby/object:Gem::Dependency
210
- name: dm-types
211
+ name: dm-core
211
212
  requirement: &id014 !ruby/object:Gem::Requirement
212
213
  none: false
213
214
  requirements:
@@ -221,7 +222,7 @@ dependencies:
221
222
  prerelease: false
222
223
  version_requirements: *id014
223
224
  - !ruby/object:Gem::Dependency
224
- name: dm-migrations
225
+ name: dm-types
225
226
  requirement: &id015 !ruby/object:Gem::Requirement
226
227
  none: false
227
228
  requirements:
@@ -235,7 +236,7 @@ dependencies:
235
236
  prerelease: false
236
237
  version_requirements: *id015
237
238
  - !ruby/object:Gem::Dependency
238
- name: dm-validations
239
+ name: dm-migrations
239
240
  requirement: &id016 !ruby/object:Gem::Requirement
240
241
  none: false
241
242
  requirements:
@@ -249,8 +250,22 @@ dependencies:
249
250
  prerelease: false
250
251
  version_requirements: *id016
251
252
  - !ruby/object:Gem::Dependency
252
- name: activesupport
253
+ name: dm-validations
253
254
  requirement: &id017 !ruby/object:Gem::Requirement
255
+ none: false
256
+ requirements:
257
+ - - ~>
258
+ - !ruby/object:Gem::Version
259
+ segments:
260
+ - 1
261
+ - 0
262
+ version: "1.0"
263
+ type: :runtime
264
+ prerelease: false
265
+ version_requirements: *id017
266
+ - !ruby/object:Gem::Dependency
267
+ name: activesupport
268
+ requirement: &id018 !ruby/object:Gem::Requirement
254
269
  none: false
255
270
  requirements:
256
271
  - - ">="
@@ -262,10 +277,10 @@ dependencies:
262
277
  version: 3.0.1
263
278
  type: :runtime
264
279
  prerelease: false
265
- version_requirements: *id017
280
+ version_requirements: *id018
266
281
  - !ruby/object:Gem::Dependency
267
282
  name: require_all
268
- requirement: &id018 !ruby/object:Gem::Requirement
283
+ requirement: &id019 !ruby/object:Gem::Requirement
269
284
  none: false
270
285
  requirements:
271
286
  - - ~>
@@ -277,10 +292,10 @@ dependencies:
277
292
  version: 1.2.0
278
293
  type: :runtime
279
294
  prerelease: false
280
- version_requirements: *id018
295
+ version_requirements: *id019
281
296
  - !ruby/object:Gem::Dependency
282
297
  name: sugar-high
283
- requirement: &id019 !ruby/object:Gem::Requirement
298
+ requirement: &id020 !ruby/object:Gem::Requirement
284
299
  none: false
285
300
  requirements:
286
301
  - - ">="
@@ -292,10 +307,10 @@ dependencies:
292
307
  version: 0.3.1
293
308
  type: :runtime
294
309
  prerelease: false
295
- version_requirements: *id019
310
+ version_requirements: *id020
296
311
  - !ruby/object:Gem::Dependency
297
312
  name: roles_generic
298
- requirement: &id020 !ruby/object:Gem::Requirement
313
+ requirement: &id021 !ruby/object:Gem::Requirement
299
314
  none: false
300
315
  requirements:
301
316
  - - ">="
@@ -307,10 +322,10 @@ dependencies:
307
322
  version: 0.3.2
308
323
  type: :runtime
309
324
  prerelease: false
310
- version_requirements: *id020
325
+ version_requirements: *id021
311
326
  - !ruby/object:Gem::Dependency
312
327
  name: rails3_artifactor
313
- requirement: &id021 !ruby/object:Gem::Requirement
328
+ requirement: &id022 !ruby/object:Gem::Requirement
314
329
  none: false
315
330
  requirements:
316
331
  - - ">="
@@ -322,22 +337,22 @@ dependencies:
322
337
  version: 0.3.2
323
338
  type: :runtime
324
339
  prerelease: false
325
- version_requirements: *id021
340
+ version_requirements: *id022
326
341
  - !ruby/object:Gem::Dependency
327
342
  name: logging_assist
328
- requirement: &id022 !ruby/object:Gem::Requirement
343
+ requirement: &id023 !ruby/object:Gem::Requirement
329
344
  none: false
330
345
  requirements:
331
346
  - - ">="
332
347
  - !ruby/object:Gem::Version
333
348
  segments:
334
349
  - 0
335
- - 1
336
- - 6
337
- version: 0.1.6
350
+ - 2
351
+ - 0
352
+ version: 0.2.0
338
353
  type: :runtime
339
354
  prerelease: false
340
- version_requirements: *id022
355
+ version_requirements: *id023
341
356
  description: Makes it easy to set a role strategy on your User model in DataMapper
342
357
  email: kmandrup@gmail.com
343
358
  executables: []
@@ -356,6 +371,7 @@ files:
356
371
  - README.markdown
357
372
  - Rakefile
358
373
  - VERSION
374
+ - lib/generators/data_mapper/roles/core_ext.rb
359
375
  - lib/generators/data_mapper/roles/roles_generator.rb
360
376
  - lib/generators/data_mapper/roles/templates/many_roles/role.rb
361
377
  - lib/generators/data_mapper/roles/templates/many_roles/user_role.rb