roles_mongo_mapper 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +11 -5
  2. data/Rakefile +40 -22
  3. data/VERSION +1 -1
  4. data/roles_mongo_mapper.gemspec +24 -33
  5. metadata +108 -228
data/Gemfile CHANGED
@@ -6,12 +6,18 @@ group :default do
6
6
  gem 'bson', '>= 1.2.0'
7
7
  gem "activesupport", '>= 3.0.1'
8
8
  gem "require_all", '~> 1.2.0'
9
- gem "sugar-high", '>= 0.4.9.5'
10
- gem "roles_generic", '>= 0.3.9'
11
- # gem 'logging_assist', '>= 0.2.3'
9
+ gem "sugar-high", '>= 0.5.0'
10
+ gem "roles_generic", '>= 0.5.0'
12
11
  end
13
12
 
14
- group :test do
15
- gem "rspec", '>= 2.4.1'
13
+ group :development, :test do
14
+ gem "rspec", '>= 2.5.0'
16
15
  gem 'generator-spec', '>= 0.7.5'
17
16
  end
17
+
18
+ group :development do
19
+ gem "jeweler", ">= 1.6.4"
20
+ gem "bundler", ">= 1.0.10"
21
+ gem "rdoc"
22
+ end
23
+
data/Rakefile CHANGED
@@ -1,28 +1,46 @@
1
- # require 'psych'
1
+ # encoding: utf-8
2
2
 
3
+ require 'rubygems'
4
+ require 'bundler'
3
5
  begin
4
- require 'jeweler'
5
- Jeweler::Tasks.new do |gem|
6
- gem.name = "roles_mongo_mapper"
7
- gem.summary = %Q{Implementation of Roles generic API for MongoMapper}
8
- gem.description = %Q{Makes it easy to set a role strategy on your User model in MongoMapper}
9
- gem.email = "kmandrup@gmail.com"
10
- gem.homepage = "http://github.com/kristianmandrup/roles_mongo_mapper"
11
- gem.authors = ["Kristian Mandrup"]
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "roles_mongo_mapper"
18
+ gem.summary = %Q{Implementation of Roles generic API for MongoMapper}
19
+ gem.description = %Q{Makes it easy to set a role strategy on your User model in MongoMapper}
20
+ gem.email = "kmandrup@gmail.com"
21
+ gem.homepage = "http://github.com/kristianmandrup/roles_mongo_mapper"
22
+ gem.email = "kmandrup@gmail.com"
23
+ gem.authors = ["Kristian Mandrup"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ task :default => :test
12
36
 
13
- gem.add_development_dependency "rspec", ">= 2.0.1"
14
- gem.add_development_dependency 'generator-spec', ">= 0.7.0"
37
+ require 'rake/rdoctask'
38
+ Rake::RDocTask.new do |rdoc|
39
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
15
40
 
16
- gem.add_dependency "mongo_mapper", '>= 0.8.4'
17
- gem.add_dependency "activesupport", '>= 3.0.1'
18
- gem.add_dependency "require_all", '~> 1.2.0'
19
- gem.add_dependency "sugar-high", '>= 0.4.9.5'
20
- gem.add_dependency "roles_generic", '~> 0.3.9'
21
- gem.add_dependency 'rails_artifactor', '~> 0.3.6'
22
- # gem.add_dependency 'logging_assist', '>= 0.2.3'
23
- end
24
- Jeweler::GemcutterTasks.new
25
- rescue LoadError
26
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
41
+ rdoc.rdoc_dir = 'rdoc'
42
+ rdoc.title = "roles_mongo_mapper #{version}"
43
+ rdoc.rdoc_files.include('README*')
44
+ rdoc.rdoc_files.include('lib/**/*.rb')
27
45
  end
28
46
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.5.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{roles_mongo_mapper}
8
- s.version = "0.4.1"
8
+ s.version = "0.5.0"
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-07-12}
12
+ s.date = %q{2011-08-17}
13
13
  s.description = %q{Makes it easy to set a role strategy on your User model in MongoMapper}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -64,7 +64,7 @@ Gem::Specification.new do |s|
64
64
  ]
65
65
  s.homepage = %q{http://github.com/kristianmandrup/roles_mongo_mapper}
66
66
  s.require_paths = [%q{lib}]
67
- s.rubygems_version = %q{1.8.5}
67
+ s.rubygems_version = %q{1.8.8}
68
68
  s.summary = %q{Implementation of Roles generic API for MongoMapper}
69
69
 
70
70
  if s.respond_to? :specification_version then
@@ -75,47 +75,38 @@ Gem::Specification.new do |s|
75
75
  s.add_runtime_dependency(%q<bson>, [">= 1.2.0"])
76
76
  s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
77
77
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
78
- s.add_runtime_dependency(%q<sugar-high>, [">= 0.4.9.5"])
79
- s.add_runtime_dependency(%q<roles_generic>, [">= 0.3.9"])
80
- s.add_development_dependency(%q<rspec>, [">= 2.0.1"])
81
- s.add_development_dependency(%q<generator-spec>, [">= 0.7.0"])
82
- s.add_runtime_dependency(%q<mongo_mapper>, [">= 0.8.4"])
83
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
84
- s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
85
- s.add_runtime_dependency(%q<sugar-high>, [">= 0.4.9.5"])
86
- s.add_runtime_dependency(%q<roles_generic>, ["~> 0.3.9"])
87
- s.add_runtime_dependency(%q<rails_artifactor>, ["~> 0.3.6"])
78
+ s.add_runtime_dependency(%q<sugar-high>, [">= 0.5.0"])
79
+ s.add_runtime_dependency(%q<roles_generic>, [">= 0.5.0"])
80
+ s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
81
+ s.add_development_dependency(%q<generator-spec>, [">= 0.7.5"])
82
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
83
+ s.add_development_dependency(%q<bundler>, [">= 1.0.10"])
84
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
88
85
  else
89
86
  s.add_dependency(%q<mongo_mapper>, [">= 0.8.5"])
90
87
  s.add_dependency(%q<bson>, [">= 1.2.0"])
91
88
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
92
89
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
93
- s.add_dependency(%q<sugar-high>, [">= 0.4.9.5"])
94
- s.add_dependency(%q<roles_generic>, [">= 0.3.9"])
95
- s.add_dependency(%q<rspec>, [">= 2.0.1"])
96
- s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
97
- s.add_dependency(%q<mongo_mapper>, [">= 0.8.4"])
98
- s.add_dependency(%q<activesupport>, [">= 3.0.1"])
99
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
100
- s.add_dependency(%q<sugar-high>, [">= 0.4.9.5"])
101
- s.add_dependency(%q<roles_generic>, ["~> 0.3.9"])
102
- s.add_dependency(%q<rails_artifactor>, ["~> 0.3.6"])
90
+ s.add_dependency(%q<sugar-high>, [">= 0.5.0"])
91
+ s.add_dependency(%q<roles_generic>, [">= 0.5.0"])
92
+ s.add_dependency(%q<rspec>, [">= 2.5.0"])
93
+ s.add_dependency(%q<generator-spec>, [">= 0.7.5"])
94
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
95
+ s.add_dependency(%q<bundler>, [">= 1.0.10"])
96
+ s.add_dependency(%q<rdoc>, [">= 0"])
103
97
  end
104
98
  else
105
99
  s.add_dependency(%q<mongo_mapper>, [">= 0.8.5"])
106
100
  s.add_dependency(%q<bson>, [">= 1.2.0"])
107
101
  s.add_dependency(%q<activesupport>, [">= 3.0.1"])
108
102
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
109
- s.add_dependency(%q<sugar-high>, [">= 0.4.9.5"])
110
- s.add_dependency(%q<roles_generic>, [">= 0.3.9"])
111
- s.add_dependency(%q<rspec>, [">= 2.0.1"])
112
- s.add_dependency(%q<generator-spec>, [">= 0.7.0"])
113
- s.add_dependency(%q<mongo_mapper>, [">= 0.8.4"])
114
- s.add_dependency(%q<activesupport>, [">= 3.0.1"])
115
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
116
- s.add_dependency(%q<sugar-high>, [">= 0.4.9.5"])
117
- s.add_dependency(%q<roles_generic>, ["~> 0.3.9"])
118
- s.add_dependency(%q<rails_artifactor>, ["~> 0.3.6"])
103
+ s.add_dependency(%q<sugar-high>, [">= 0.5.0"])
104
+ s.add_dependency(%q<roles_generic>, [">= 0.5.0"])
105
+ s.add_dependency(%q<rspec>, [">= 2.5.0"])
106
+ s.add_dependency(%q<generator-spec>, [">= 0.7.5"])
107
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
108
+ s.add_dependency(%q<bundler>, [">= 1.0.10"])
109
+ s.add_dependency(%q<rdoc>, [">= 0"])
119
110
  end
120
111
  end
121
112
 
metadata CHANGED
@@ -1,258 +1,145 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: roles_mongo_mapper
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 1
10
- version: 0.4.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Kristian Mandrup
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-12 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2011-08-17 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: mongo_mapper
16
+ requirement: &2156720800 !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- hash: 53
27
- segments:
28
- - 0
29
- - 8
30
- - 5
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
31
21
  version: 0.8.5
32
- version_requirements: *id001
33
22
  type: :runtime
34
- name: mongo_mapper
35
23
  prerelease: false
36
- - !ruby/object:Gem::Dependency
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2156720800
25
+ - !ruby/object:Gem::Dependency
26
+ name: bson
27
+ requirement: &2153586600 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 31
43
- segments:
44
- - 1
45
- - 2
46
- - 0
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
47
32
  version: 1.2.0
48
- version_requirements: *id002
49
33
  type: :runtime
50
- name: bson
51
34
  prerelease: false
52
- - !ruby/object:Gem::Dependency
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2153586600
36
+ - !ruby/object:Gem::Dependency
37
+ name: activesupport
38
+ requirement: &2153586120 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 5
59
- segments:
60
- - 3
61
- - 0
62
- - 1
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
63
43
  version: 3.0.1
64
- version_requirements: *id003
65
44
  type: :runtime
66
- name: activesupport
67
45
  prerelease: false
68
- - !ruby/object:Gem::Dependency
69
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2153586120
47
+ - !ruby/object:Gem::Dependency
48
+ name: require_all
49
+ requirement: &2153585640 !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
51
+ requirements:
72
52
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 31
75
- segments:
76
- - 1
77
- - 2
78
- - 0
53
+ - !ruby/object:Gem::Version
79
54
  version: 1.2.0
80
- version_requirements: *id004
81
55
  type: :runtime
82
- name: require_all
83
56
  prerelease: false
84
- - !ruby/object:Gem::Dependency
85
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *2153585640
58
+ - !ruby/object:Gem::Dependency
59
+ name: sugar-high
60
+ requirement: &2153585160 !ruby/object:Gem::Requirement
86
61
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- hash: 65
91
- segments:
92
- - 0
93
- - 4
94
- - 9
95
- - 5
96
- version: 0.4.9.5
97
- version_requirements: *id005
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 0.5.0
98
66
  type: :runtime
99
- name: sugar-high
100
67
  prerelease: false
101
- - !ruby/object:Gem::Dependency
102
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *2153585160
69
+ - !ruby/object:Gem::Dependency
70
+ name: roles_generic
71
+ requirement: &2153584680 !ruby/object:Gem::Requirement
103
72
  none: false
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- hash: 1
108
- segments:
109
- - 0
110
- - 3
111
- - 9
112
- version: 0.3.9
113
- version_requirements: *id006
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 0.5.0
114
77
  type: :runtime
115
- name: roles_generic
116
78
  prerelease: false
117
- - !ruby/object:Gem::Dependency
118
- requirement: &id007 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 13
124
- segments:
125
- - 2
126
- - 0
127
- - 1
128
- version: 2.0.1
129
- version_requirements: *id007
130
- type: :development
79
+ version_requirements: *2153584680
80
+ - !ruby/object:Gem::Dependency
131
81
  name: rspec
132
- prerelease: false
133
- - !ruby/object:Gem::Dependency
134
- requirement: &id008 !ruby/object:Gem::Requirement
82
+ requirement: &2153584200 !ruby/object:Gem::Requirement
135
83
  none: false
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- - 7
143
- - 0
144
- version: 0.7.0
145
- version_requirements: *id008
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: 2.5.0
146
88
  type: :development
147
- name: generator-spec
148
- prerelease: false
149
- - !ruby/object:Gem::Dependency
150
- requirement: &id009 !ruby/object:Gem::Requirement
151
- none: false
152
- requirements:
153
- - - ">="
154
- - !ruby/object:Gem::Version
155
- hash: 55
156
- segments:
157
- - 0
158
- - 8
159
- - 4
160
- version: 0.8.4
161
- version_requirements: *id009
162
- type: :runtime
163
- name: mongo_mapper
164
- prerelease: false
165
- - !ruby/object:Gem::Dependency
166
- requirement: &id010 !ruby/object:Gem::Requirement
167
- none: false
168
- requirements:
169
- - - ">="
170
- - !ruby/object:Gem::Version
171
- hash: 5
172
- segments:
173
- - 3
174
- - 0
175
- - 1
176
- version: 3.0.1
177
- version_requirements: *id010
178
- type: :runtime
179
- name: activesupport
180
89
  prerelease: false
181
- - !ruby/object:Gem::Dependency
182
- requirement: &id011 !ruby/object:Gem::Requirement
90
+ version_requirements: *2153584200
91
+ - !ruby/object:Gem::Dependency
92
+ name: generator-spec
93
+ requirement: &2153583720 !ruby/object:Gem::Requirement
183
94
  none: false
184
- requirements:
185
- - - ~>
186
- - !ruby/object:Gem::Version
187
- hash: 31
188
- segments:
189
- - 1
190
- - 2
191
- - 0
192
- version: 1.2.0
193
- version_requirements: *id011
194
- type: :runtime
195
- name: require_all
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 0.7.5
99
+ type: :development
196
100
  prerelease: false
197
- - !ruby/object:Gem::Dependency
198
- requirement: &id012 !ruby/object:Gem::Requirement
101
+ version_requirements: *2153583720
102
+ - !ruby/object:Gem::Dependency
103
+ name: jeweler
104
+ requirement: &2153583240 !ruby/object:Gem::Requirement
199
105
  none: false
200
- requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- hash: 65
204
- segments:
205
- - 0
206
- - 4
207
- - 9
208
- - 5
209
- version: 0.4.9.5
210
- version_requirements: *id012
211
- type: :runtime
212
- name: sugar-high
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 1.6.4
110
+ type: :development
213
111
  prerelease: false
214
- - !ruby/object:Gem::Dependency
215
- requirement: &id013 !ruby/object:Gem::Requirement
112
+ version_requirements: *2153583240
113
+ - !ruby/object:Gem::Dependency
114
+ name: bundler
115
+ requirement: &2153582760 !ruby/object:Gem::Requirement
216
116
  none: false
217
- requirements:
218
- - - ~>
219
- - !ruby/object:Gem::Version
220
- hash: 1
221
- segments:
222
- - 0
223
- - 3
224
- - 9
225
- version: 0.3.9
226
- version_requirements: *id013
227
- type: :runtime
228
- name: roles_generic
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: 1.0.10
121
+ type: :development
229
122
  prerelease: false
230
- - !ruby/object:Gem::Dependency
231
- requirement: &id014 !ruby/object:Gem::Requirement
123
+ version_requirements: *2153582760
124
+ - !ruby/object:Gem::Dependency
125
+ name: rdoc
126
+ requirement: &2153582280 !ruby/object:Gem::Requirement
232
127
  none: false
233
- requirements:
234
- - - ~>
235
- - !ruby/object:Gem::Version
236
- hash: 31
237
- segments:
238
- - 0
239
- - 3
240
- - 6
241
- version: 0.3.6
242
- version_requirements: *id014
243
- type: :runtime
244
- name: rails_artifactor
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
245
133
  prerelease: false
134
+ version_requirements: *2153582280
246
135
  description: Makes it easy to set a role strategy on your User model in MongoMapper
247
136
  email: kmandrup@gmail.com
248
137
  executables: []
249
-
250
138
  extensions: []
251
-
252
- extra_rdoc_files:
139
+ extra_rdoc_files:
253
140
  - LICENSE
254
141
  - README.markdown
255
- files:
142
+ files:
256
143
  - .document
257
144
  - .rspec
258
145
  - Gemfile
@@ -299,36 +186,29 @@ files:
299
186
  - spec/spec_helper.rb
300
187
  homepage: http://github.com/kristianmandrup/roles_mongo_mapper
301
188
  licenses: []
302
-
303
189
  post_install_message:
304
190
  rdoc_options: []
305
-
306
- require_paths:
191
+ require_paths:
307
192
  - lib
308
- required_ruby_version: !ruby/object:Gem::Requirement
193
+ required_ruby_version: !ruby/object:Gem::Requirement
309
194
  none: false
310
- requirements:
311
- - - ">="
312
- - !ruby/object:Gem::Version
313
- hash: 3
314
- segments:
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ segments:
315
200
  - 0
316
- version: "0"
317
- required_rubygems_version: !ruby/object:Gem::Requirement
201
+ hash: 1155608309245537951
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
318
203
  none: false
319
- requirements:
320
- - - ">="
321
- - !ruby/object:Gem::Version
322
- hash: 3
323
- segments:
324
- - 0
325
- version: "0"
204
+ requirements:
205
+ - - ! '>='
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
326
208
  requirements: []
327
-
328
209
  rubyforge_project:
329
- rubygems_version: 1.8.5
210
+ rubygems_version: 1.8.8
330
211
  signing_key:
331
212
  specification_version: 3
332
213
  summary: Implementation of Roles generic API for MongoMapper
333
214
  test_files: []
334
-