roles_mongoid 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,17 +1,17 @@
1
1
  source :rubygems
2
2
  source 'http://gems.github.com/'
3
3
 
4
- group :default do
5
- gem "mongoid", '~> 2.0.0.rc.5'
6
- gem 'bson', '>= 1.1.5'
7
- gem "activesupport", '~> 3.0.3'
8
- gem "require_all", '~> 1.2.0'
9
- gem "sugar-high", '>= 0.3.5'
10
- gem "roles_generic", '>= 0.3.6'
11
- gem 'logging_assist', '>= 0.2.1'
12
- end
13
-
14
- group :test do
15
- gem 'rspec', '>= 2.4.0'
16
- gem 'generator-spec', '>= 0.7.0'
17
- end
4
+ # group :default do
5
+ # gem "mongoid", '~> 2.0.0.rc.5'
6
+ # gem 'bson', '>= 1.1.5'
7
+ # gem "activesupport", '~> 3.0.3'
8
+ # gem "require_all", '~> 1.2.0'
9
+ # gem "sugar-high", '>= 0.3.5'
10
+ # gem "roles_generic", '>= 0.3.8'
11
+ # # gem 'logging_assist', '>= 0.2.1'
12
+ # end
13
+ #
14
+ # group :test do
15
+ # gem 'rspec', '>= 2.4.0'
16
+ # gem 'generator-spec', '>= 0.7.0'
17
+ # end
data/Rakefile CHANGED
@@ -7,18 +7,18 @@ begin
7
7
  gem.email = "kmandrup@gmail.com"
8
8
  gem.homepage = "http://github.com/kristianmandrup/roles_mongoid"
9
9
  gem.authors = ["Kristian Mandrup"]
10
- gem.add_development_dependency 'rspec', '>= 2.4.0'
11
- gem.add_development_dependency 'generator-spec', '>= 0.7.0'
10
+ gem.add_development_dependency 'rspec', '>= 2.4.1'
11
+ gem.add_development_dependency 'generator-spec', '>= 0.7.3'
12
12
 
13
- gem.add_dependency 'mongoid', '~> 2.0.0.rc.5'
14
- gem.add_dependency 'bson', '>= 1.1.5'
13
+ gem.add_dependency 'mongoid', '~> 2.0.0.rc.6'
14
+ gem.add_dependency 'bson', '>= 1.1.6'
15
15
 
16
- gem.add_dependency 'sugar-high', '~> 0.3.5'
16
+ gem.add_dependency 'sugar-high', '~> 0.4.0'
17
17
  gem.add_dependency 'require_all', '~> 1.2.0'
18
- gem.add_dependency "roles_generic", '>= 0.3.6'
18
+ gem.add_dependency "roles_generic", '~> 0.3.8'
19
19
 
20
- gem.add_dependency 'rails3_artifactor', '>= 0.3.1'
21
- gem.add_dependency 'logging_assist', '>= 0.2.1'
20
+ gem.add_dependency 'rails_artifactor', '>= 0.3.3'
21
+ # gem.add_dependency 'logging_assist', '>= 0.2.1'
22
22
  end
23
23
  Jeweler::GemcutterTasks.new
24
24
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.5
1
+ 0.4.6
@@ -1,5 +1,5 @@
1
- require 'rails3_artifactor'
2
- require 'logging_assist'
1
+ require 'rails_artifactor'
2
+ # require 'logging_assist'
3
3
  require 'generators/mongoid/roles/core_ext'
4
4
 
5
5
  module Mongoid
@@ -20,31 +20,40 @@ module Mongoid
20
20
  source_root File.dirname(__FILE__) + '/templates'
21
21
 
22
22
  def apply_role_strategy
23
- logger.add_logfile :logfile => logfile if logfile
24
- logger.debug "apply_role_strategy for : #{strategy} in model #{user_file}"
23
+ if logfile?
24
+ require 'logging_assist'
25
+
26
+ class_eval do
27
+ puts "self: #{self}"
28
+ send :include, RailsAssist::BasicLogger
29
+ end
30
+
31
+ logger.add_logfile :logfile => logfile if logfile
32
+ debug "apply_role_strategy for : #{strategy} in model #{user_file}"
33
+ end
25
34
 
26
35
  if !valid_strategy?
27
- logger.error "Strategy #{strategy} is not currently supported, please try one of #{valid_strategies.join(', ')}"
36
+ error "Strategy #{strategy} is not currently supported, please try one of #{valid_strategies.join(', ')}"
28
37
  end
29
38
 
30
39
  if !has_model_file?(user_file)
31
- logger.error "User model #{user_file} not found"
40
+ error "User model #{user_file} not found"
32
41
  return
33
42
  end
34
43
 
35
44
  if !is_mongoid_model?(user_file)
36
- logger.error "User model #{user_file} is not a Mongoid Document"
45
+ error "User model #{user_file} is not a Mongoid Document"
37
46
  return
38
47
  end
39
48
 
40
49
  begin
41
- logger.debug "Trying to insert roles code into #{user_file}"
50
+ debug "Trying to insert roles code into #{user_file}"
42
51
 
43
52
  insert_into_model user_file, :after => /include Mongoid::\w+/ do
44
53
  insertion_text
45
54
  end
46
55
  rescue Exception => e
47
- logger.error "Error: #{e.message}"
56
+ error "Error: #{e.message}" if logger
48
57
  end
49
58
 
50
59
  copy_role_class if role_class_strategy?
@@ -52,8 +61,24 @@ module Mongoid
52
61
 
53
62
  protected
54
63
 
55
- include Rails3::Assist::BasicLogger
56
- extend Rails3::Assist::UseMacro
64
+ def logger
65
+ nil
66
+ end
67
+
68
+ def debug msg
69
+ logger.debug msg if logger
70
+ end
71
+
72
+ def info msg
73
+ logger.info msg if logger
74
+ end
75
+
76
+ def error msg
77
+ logger.error msg if logger
78
+ end
79
+
80
+
81
+ extend RailsAssist::UseMacro
57
82
 
58
83
  use_orm :mongoid
59
84
 
@@ -77,6 +102,10 @@ module Mongoid
77
102
  [:admin_flag, :one_role, :embed_one_role, :role_string, :embed_many_roles, :many_roles, :role_strings, :roles_mask]
78
103
  end
79
104
 
105
+ def logfile?
106
+ logfile
107
+ end
108
+
80
109
  def logfile
81
110
  options[:logfile]
82
111
  end
@@ -94,7 +123,7 @@ module Mongoid
94
123
  end
95
124
 
96
125
  def copy_role_class
97
- logger.debug "generating role model: #{role_file}"
126
+ debug "generating role model: #{role_file}"
98
127
  template 'role.rb', "app/models/#{role_file}.rb"
99
128
  end
100
129
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{roles_mongoid}
8
- s.version = "0.4.5"
8
+ s.version = "0.4.6"
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-19}
12
+ s.date = %q{2011-03-18}
13
13
  s.description = %q{Makes it easy to set a role strategy on your User model in Mongoid}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -70,7 +70,7 @@ Gem::Specification.new do |s|
70
70
  ]
71
71
  s.homepage = %q{http://github.com/kristianmandrup/roles_mongoid}
72
72
  s.require_paths = ["lib"]
73
- s.rubygems_version = %q{1.3.7}
73
+ s.rubygems_version = %q{1.6.1}
74
74
  s.summary = %q{Implementation of Roles generic API for Mongoid}
75
75
  s.test_files = [
76
76
  "spec/generator_spec_helper.rb",
@@ -90,61 +90,36 @@ Gem::Specification.new do |s|
90
90
  ]
91
91
 
92
92
  if s.respond_to? :specification_version then
93
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
94
93
  s.specification_version = 3
95
94
 
96
95
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
97
- s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.0.rc.5"])
98
- s.add_runtime_dependency(%q<bson>, [">= 1.1.5"])
99
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.3"])
96
+ s.add_development_dependency(%q<rspec>, [">= 2.4.1"])
97
+ s.add_development_dependency(%q<generator-spec>, [">= 0.7.3"])
98
+ s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.0.rc.6"])
99
+ s.add_runtime_dependency(%q<bson>, [">= 1.1.6"])
100
+ s.add_runtime_dependency(%q<sugar-high>, ["~> 0.4.0"])
100
101
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
101
- s.add_runtime_dependency(%q<sugar-high>, [">= 0.3.5"])
102
- s.add_runtime_dependency(%q<roles_generic>, [">= 0.3.6"])
103
- s.add_runtime_dependency(%q<logging_assist>, [">= 0.2.1"])
104
- s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
105
- s.add_development_dependency(%q<generator-spec>, [">= 0.7.0"])
106
- s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.0.rc.5"])
107
- s.add_runtime_dependency(%q<bson>, [">= 1.1.5"])
108
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.5"])
109
- s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
110
- s.add_runtime_dependency(%q<roles_generic>, [">= 0.3.6"])
111
- s.add_runtime_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
112
- s.add_runtime_dependency(%q<logging_assist>, [">= 0.2.1"])
102
+ s.add_runtime_dependency(%q<roles_generic>, ["~> 0.3.8"])
103
+ s.add_runtime_dependency(%q<rails_artifactor>, [">= 0.3.3"])
113
104
  else
114
- s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.5"])
115
- s.add_dependency(%q<bson>, [">= 1.1.5"])
116
- s.add_dependency(%q<activesupport>, ["~> 3.0.3"])
117
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
118
- s.add_dependency(%q<sugar-high>, [">= 0.3.5"])
119
- s.add_dependency(%q<roles_generic>, [">= 0.3.6"])
120
- s.add_dependency(%q<logging_assist>, [">= 0.2.1"])
121
- s.add_dependency(%q<rspec>, [">= 2.4.0"])
122
- s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
123
- s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.5"])
124
- s.add_dependency(%q<bson>, [">= 1.1.5"])
125
- s.add_dependency(%q<sugar-high>, ["~> 0.3.5"])
105
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
106
+ s.add_dependency(%q<generator-spec>, [">= 0.7.3"])
107
+ s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.6"])
108
+ s.add_dependency(%q<bson>, [">= 1.1.6"])
109
+ s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
126
110
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
127
- s.add_dependency(%q<roles_generic>, [">= 0.3.6"])
128
- s.add_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
129
- s.add_dependency(%q<logging_assist>, [">= 0.2.1"])
111
+ s.add_dependency(%q<roles_generic>, ["~> 0.3.8"])
112
+ s.add_dependency(%q<rails_artifactor>, [">= 0.3.3"])
130
113
  end
131
114
  else
132
- s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.5"])
133
- s.add_dependency(%q<bson>, [">= 1.1.5"])
134
- s.add_dependency(%q<activesupport>, ["~> 3.0.3"])
135
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
136
- s.add_dependency(%q<sugar-high>, [">= 0.3.5"])
137
- s.add_dependency(%q<roles_generic>, [">= 0.3.6"])
138
- s.add_dependency(%q<logging_assist>, [">= 0.2.1"])
139
- s.add_dependency(%q<rspec>, [">= 2.4.0"])
140
- s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
141
- s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.5"])
142
- s.add_dependency(%q<bson>, [">= 1.1.5"])
143
- s.add_dependency(%q<sugar-high>, ["~> 0.3.5"])
115
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
116
+ s.add_dependency(%q<generator-spec>, [">= 0.7.3"])
117
+ s.add_dependency(%q<mongoid>, ["~> 2.0.0.rc.6"])
118
+ s.add_dependency(%q<bson>, [">= 1.1.6"])
119
+ s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
144
120
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
145
- s.add_dependency(%q<roles_generic>, [">= 0.3.6"])
146
- s.add_dependency(%q<rails3_artifactor>, [">= 0.3.1"])
147
- s.add_dependency(%q<logging_assist>, [">= 0.2.1"])
121
+ s.add_dependency(%q<roles_generic>, ["~> 0.3.8"])
122
+ s.add_dependency(%q<rails_artifactor>, [">= 0.3.3"])
148
123
  end
149
124
  end
150
125
 
@@ -1,6 +1,5 @@
1
1
  require 'rspec'
2
- require 'rspec/autorun'
3
- require 'rails3_artifactor'
2
+ require 'rails_artifactor'
4
3
  require 'generator-spec'
5
4
  require 'roles_generic'
6
5
 
@@ -3,7 +3,7 @@ require 'generator_spec_helper'
3
3
 
4
4
  require 'generators/mongoid/roles/roles_generator'
5
5
 
6
- # root_dir = Rails3::Assist::Directory.rails_root
6
+ # root_dir = RailsAssist::Directory.rails_root
7
7
  root_dir = File.join(Rails.application.config.root_dir, 'rails')
8
8
 
9
9
  describe 'role strategy generator: admin_flag' do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'rspec/core'
1
+ require 'rspec'
2
2
  require 'mongoid'
3
3
  require 'roles_mongoid'
4
4
 
metadata CHANGED
@@ -1,276 +1,113 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: roles_mongoid
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 5
9
- version: 0.4.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.6
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Kristian Mandrup
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-19 00:00:00 +01:00
12
+ date: 2011-03-18 00:00:00.000000000 +01:00
18
13
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: mongoid
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 0
30
- - 0
31
- - rc
32
- - 5
33
- version: 2.0.0.rc.5
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: bson
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- segments:
45
- - 1
46
- - 1
47
- - 5
48
- version: 1.1.5
49
- type: :runtime
50
- prerelease: false
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: activesupport
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- segments:
60
- - 3
61
- - 0
62
- - 3
63
- version: 3.0.3
64
- type: :runtime
65
- prerelease: false
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: require_all
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- segments:
75
- - 1
76
- - 2
77
- - 0
78
- version: 1.2.0
79
- type: :runtime
80
- prerelease: false
81
- version_requirements: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: sugar-high
84
- requirement: &id005 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- segments:
90
- - 0
91
- - 3
92
- - 5
93
- version: 0.3.5
94
- type: :runtime
95
- prerelease: false
96
- version_requirements: *id005
97
- - !ruby/object:Gem::Dependency
98
- name: roles_generic
99
- requirement: &id006 !ruby/object:Gem::Requirement
100
- none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- segments:
105
- - 0
106
- - 3
107
- - 6
108
- version: 0.3.6
109
- type: :runtime
110
- prerelease: false
111
- version_requirements: *id006
112
- - !ruby/object:Gem::Dependency
113
- name: logging_assist
114
- requirement: &id007 !ruby/object:Gem::Requirement
115
- none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- segments:
120
- - 0
121
- - 2
122
- - 1
123
- version: 0.2.1
124
- type: :runtime
125
- prerelease: false
126
- version_requirements: *id007
127
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
128
16
  name: rspec
129
- requirement: &id008 !ruby/object:Gem::Requirement
17
+ requirement: &2155516280 !ruby/object:Gem::Requirement
130
18
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- segments:
135
- - 2
136
- - 4
137
- - 0
138
- version: 2.4.0
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 2.4.1
139
23
  type: :development
140
24
  prerelease: false
141
- version_requirements: *id008
142
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *2155516280
26
+ - !ruby/object:Gem::Dependency
143
27
  name: generator-spec
144
- requirement: &id009 !ruby/object:Gem::Requirement
28
+ requirement: &2155515780 !ruby/object:Gem::Requirement
145
29
  none: false
146
- requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- segments:
150
- - 0
151
- - 7
152
- - 0
153
- version: 0.7.0
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.7.3
154
34
  type: :development
155
35
  prerelease: false
156
- version_requirements: *id009
157
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *2155515780
37
+ - !ruby/object:Gem::Dependency
158
38
  name: mongoid
159
- requirement: &id010 !ruby/object:Gem::Requirement
39
+ requirement: &2155515280 !ruby/object:Gem::Requirement
160
40
  none: false
161
- requirements:
41
+ requirements:
162
42
  - - ~>
163
- - !ruby/object:Gem::Version
164
- segments:
165
- - 2
166
- - 0
167
- - 0
168
- - rc
169
- - 5
170
- version: 2.0.0.rc.5
43
+ - !ruby/object:Gem::Version
44
+ version: 2.0.0.rc.6
171
45
  type: :runtime
172
46
  prerelease: false
173
- version_requirements: *id010
174
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *2155515280
48
+ - !ruby/object:Gem::Dependency
175
49
  name: bson
176
- requirement: &id011 !ruby/object:Gem::Requirement
50
+ requirement: &2155514640 !ruby/object:Gem::Requirement
177
51
  none: false
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- segments:
182
- - 1
183
- - 1
184
- - 5
185
- version: 1.1.5
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: 1.1.6
186
56
  type: :runtime
187
57
  prerelease: false
188
- version_requirements: *id011
189
- - !ruby/object:Gem::Dependency
58
+ version_requirements: *2155514640
59
+ - !ruby/object:Gem::Dependency
190
60
  name: sugar-high
191
- requirement: &id012 !ruby/object:Gem::Requirement
61
+ requirement: &2155514000 !ruby/object:Gem::Requirement
192
62
  none: false
193
- requirements:
63
+ requirements:
194
64
  - - ~>
195
- - !ruby/object:Gem::Version
196
- segments:
197
- - 0
198
- - 3
199
- - 5
200
- version: 0.3.5
65
+ - !ruby/object:Gem::Version
66
+ version: 0.4.0
201
67
  type: :runtime
202
68
  prerelease: false
203
- version_requirements: *id012
204
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *2155514000
70
+ - !ruby/object:Gem::Dependency
205
71
  name: require_all
206
- requirement: &id013 !ruby/object:Gem::Requirement
72
+ requirement: &2155513480 !ruby/object:Gem::Requirement
207
73
  none: false
208
- requirements:
74
+ requirements:
209
75
  - - ~>
210
- - !ruby/object:Gem::Version
211
- segments:
212
- - 1
213
- - 2
214
- - 0
76
+ - !ruby/object:Gem::Version
215
77
  version: 1.2.0
216
78
  type: :runtime
217
79
  prerelease: false
218
- version_requirements: *id013
219
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *2155513480
81
+ - !ruby/object:Gem::Dependency
220
82
  name: roles_generic
221
- requirement: &id014 !ruby/object:Gem::Requirement
83
+ requirement: &2155512880 !ruby/object:Gem::Requirement
222
84
  none: false
223
- requirements:
224
- - - ">="
225
- - !ruby/object:Gem::Version
226
- segments:
227
- - 0
228
- - 3
229
- - 6
230
- version: 0.3.6
231
- type: :runtime
232
- prerelease: false
233
- version_requirements: *id014
234
- - !ruby/object:Gem::Dependency
235
- name: rails3_artifactor
236
- requirement: &id015 !ruby/object:Gem::Requirement
237
- none: false
238
- requirements:
239
- - - ">="
240
- - !ruby/object:Gem::Version
241
- segments:
242
- - 0
243
- - 3
244
- - 1
245
- version: 0.3.1
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: 0.3.8
246
89
  type: :runtime
247
90
  prerelease: false
248
- version_requirements: *id015
249
- - !ruby/object:Gem::Dependency
250
- name: logging_assist
251
- requirement: &id016 !ruby/object:Gem::Requirement
91
+ version_requirements: *2155512880
92
+ - !ruby/object:Gem::Dependency
93
+ name: rails_artifactor
94
+ requirement: &2155512380 !ruby/object:Gem::Requirement
252
95
  none: false
253
- requirements:
254
- - - ">="
255
- - !ruby/object:Gem::Version
256
- segments:
257
- - 0
258
- - 2
259
- - 1
260
- version: 0.2.1
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: 0.3.3
261
100
  type: :runtime
262
101
  prerelease: false
263
- version_requirements: *id016
102
+ version_requirements: *2155512380
264
103
  description: Makes it easy to set a role strategy on your User model in Mongoid
265
104
  email: kmandrup@gmail.com
266
105
  executables: []
267
-
268
106
  extensions: []
269
-
270
- extra_rdoc_files:
107
+ extra_rdoc_files:
271
108
  - LICENSE
272
109
  - README.textile
273
- files:
110
+ files:
274
111
  - .bundle/config
275
112
  - .document
276
113
  - .rspec
@@ -324,36 +161,29 @@ files:
324
161
  has_rdoc: true
325
162
  homepage: http://github.com/kristianmandrup/roles_mongoid
326
163
  licenses: []
327
-
328
164
  post_install_message:
329
165
  rdoc_options: []
330
-
331
- require_paths:
166
+ require_paths:
332
167
  - lib
333
- required_ruby_version: !ruby/object:Gem::Requirement
168
+ required_ruby_version: !ruby/object:Gem::Requirement
334
169
  none: false
335
- requirements:
336
- - - ">="
337
- - !ruby/object:Gem::Version
338
- segments:
339
- - 0
340
- version: "0"
341
- required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
342
175
  none: false
343
- requirements:
344
- - - ">="
345
- - !ruby/object:Gem::Version
346
- segments:
347
- - 0
348
- version: "0"
176
+ requirements:
177
+ - - ! '>='
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
349
180
  requirements: []
350
-
351
181
  rubyforge_project:
352
- rubygems_version: 1.3.7
182
+ rubygems_version: 1.6.1
353
183
  signing_key:
354
184
  specification_version: 3
355
185
  summary: Implementation of Roles generic API for Mongoid
356
- test_files:
186
+ test_files:
357
187
  - spec/generator_spec_helper.rb
358
188
  - spec/roles_mongoid/generators/roles_generator_spec.rb
359
189
  - spec/roles_mongoid/strategy/api_examples.rb