mongoid_rateable 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid_rateable (0.0.4)
4
+ mongoid_rateable (0.0.5)
5
5
  bson_ext
6
6
  mongoid
7
7
  mongoid_rateable
data/TODO CHANGED
@@ -1,4 +1,3 @@
1
1
  add method/scope most_voted(count), rated_between(,) to Rateable
2
2
  add min/max rating
3
- add indexes to fields (http://www.mongodb.org/display/DOCS/Indexes#Indexes-EmbeddedKeys)
4
3
  improve speed (http://cookbook.mongodb.org/patterns/votes/)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -5,6 +5,13 @@ module Mongoid
5
5
  included do
6
6
  field :rates, :type => Integer, :default => 0
7
7
  embeds_many :rating_marks, :as => :rateable
8
+ index(
9
+ [
10
+ ["rating_marks.rater_id"],
11
+ ["rating_marks.rater_class"]
12
+ ],
13
+ unique: true
14
+ )
8
15
  end
9
16
 
10
17
  module InstanceMethods
@@ -16,7 +23,7 @@ module Mongoid
16
23
  end
17
24
 
18
25
  def unrate(rater)
19
- mark = self.rating_marks.where(:rater_id => rater.id).first
26
+ mark = self.rating_marks.where(:rater_id => rater.id, :rater_class => rater.class.to_s).first
20
27
  if mark
21
28
  self.rates -= mark.mark.to_i
22
29
  mark.delete
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mongoid_rateable}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Savichev (proton)"]
12
- s.date = %q{2011-06-18}
12
+ s.date = %q{2011-06-19}
13
13
  s.description = %q{Provides fields and methods for the manipulation of rates on Mongoid documents.}
14
14
  s.email = %q{psavichev@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -113,6 +113,12 @@ Gem::Specification.new do |s|
113
113
  s.add_development_dependency(%q<rdoc>, [">= 0"])
114
114
  s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
115
115
  s.add_development_dependency(%q<database_cleaner>, [">= 0"])
116
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
117
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
118
+ s.add_development_dependency(%q<simplecov>, [">= 0.4.0"])
119
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
120
+ s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
121
+ s.add_development_dependency(%q<database_cleaner>, [">= 0"])
116
122
  else
117
123
  s.add_dependency(%q<mongoid_rateable>, [">= 0"])
118
124
  s.add_dependency(%q<bson_ext>, [">= 0"])
@@ -181,6 +187,12 @@ Gem::Specification.new do |s|
181
187
  s.add_dependency(%q<rdoc>, [">= 0"])
182
188
  s.add_dependency(%q<rspec>, [">= 2.0.0"])
183
189
  s.add_dependency(%q<database_cleaner>, [">= 0"])
190
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
191
+ s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
192
+ s.add_dependency(%q<simplecov>, [">= 0.4.0"])
193
+ s.add_dependency(%q<rdoc>, [">= 0"])
194
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
195
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
184
196
  end
185
197
  else
186
198
  s.add_dependency(%q<mongoid_rateable>, [">= 0"])
@@ -250,6 +262,12 @@ Gem::Specification.new do |s|
250
262
  s.add_dependency(%q<rdoc>, [">= 0"])
251
263
  s.add_dependency(%q<rspec>, [">= 2.0.0"])
252
264
  s.add_dependency(%q<database_cleaner>, [">= 0"])
265
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
266
+ s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
267
+ s.add_dependency(%q<simplecov>, [">= 0.4.0"])
268
+ s.add_dependency(%q<rdoc>, [">= 0"])
269
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
270
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
253
271
  end
254
272
  end
255
273
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_rateable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-18 00:00:00.000000000 +04:00
12
+ date: 2011-06-19 00:00:00.000000000 +04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid_rateable
17
- requirement: &86154390 !ruby/object:Gem::Requirement
17
+ requirement: &77857280 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *86154390
25
+ version_requirements: *77857280
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bson_ext
28
- requirement: &86130010 !ruby/object:Gem::Requirement
28
+ requirement: &77856980 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *86130010
36
+ version_requirements: *77856980
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: mongoid
39
- requirement: &86129710 !ruby/object:Gem::Requirement
39
+ requirement: &77824330 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *86129710
47
+ version_requirements: *77824330
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: shoulda
50
- requirement: &86129420 !ruby/object:Gem::Requirement
50
+ requirement: &77824030 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *86129420
58
+ version_requirements: *77824030
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: bundler
61
- requirement: &86129120 !ruby/object:Gem::Requirement
61
+ requirement: &77823740 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.0.0
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *86129120
69
+ version_requirements: *77823740
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: jeweler
72
- requirement: &86128830 !ruby/object:Gem::Requirement
72
+ requirement: &77823490 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 1.6.2
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *86128830
80
+ version_requirements: *77823490
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: simplecov
83
- requirement: &86128530 !ruby/object:Gem::Requirement
83
+ requirement: &77823250 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 0.4.0
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *86128530
91
+ version_requirements: *77823250
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: rdoc
94
- requirement: &86128240 !ruby/object:Gem::Requirement
94
+ requirement: &77822930 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *86128240
102
+ version_requirements: *77822930
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec
105
- requirement: &86127950 !ruby/object:Gem::Requirement
105
+ requirement: &77822630 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 2.0.0
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *86127950
113
+ version_requirements: *77822630
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: database_cleaner
116
- requirement: &86127680 !ruby/object:Gem::Requirement
116
+ requirement: &77822330 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *86127680
124
+ version_requirements: *77822330
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: shoulda
127
- requirement: &86127420 !ruby/object:Gem::Requirement
127
+ requirement: &77822040 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *86127420
135
+ version_requirements: *77822040
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: bundler
138
- requirement: &86127120 !ruby/object:Gem::Requirement
138
+ requirement: &77821800 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: 1.0.0
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *86127120
146
+ version_requirements: *77821800
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: jeweler
149
- requirement: &86126830 !ruby/object:Gem::Requirement
149
+ requirement: &77821480 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ~>
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: 1.6.2
155
155
  type: :development
156
156
  prerelease: false
157
- version_requirements: *86126830
157
+ version_requirements: *77821480
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: rcov
160
- requirement: &86126540 !ruby/object:Gem::Requirement
160
+ requirement: &77821180 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: '0'
166
166
  type: :development
167
167
  prerelease: false
168
- version_requirements: *86126540
168
+ version_requirements: *77821180
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: rdoc
171
- requirement: &86126240 !ruby/object:Gem::Requirement
171
+ requirement: &77820880 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ! '>='
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: '0'
177
177
  type: :development
178
178
  prerelease: false
179
- version_requirements: *86126240
179
+ version_requirements: *77820880
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: rspec
182
- requirement: &86125940 !ruby/object:Gem::Requirement
182
+ requirement: &77820580 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ! '>='
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: 2.0.0
188
188
  type: :development
189
189
  prerelease: false
190
- version_requirements: *86125940
190
+ version_requirements: *77820580
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: database_cleaner
193
- requirement: &86125650 !ruby/object:Gem::Requirement
193
+ requirement: &77820280 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ! '>='
@@ -198,10 +198,10 @@ dependencies:
198
198
  version: '0'
199
199
  type: :development
200
200
  prerelease: false
201
- version_requirements: *86125650
201
+ version_requirements: *77820280
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: shoulda
204
- requirement: &86125350 !ruby/object:Gem::Requirement
204
+ requirement: &77819990 !ruby/object:Gem::Requirement
205
205
  none: false
206
206
  requirements:
207
207
  - - ! '>='
@@ -209,10 +209,10 @@ dependencies:
209
209
  version: '0'
210
210
  type: :development
211
211
  prerelease: false
212
- version_requirements: *86125350
212
+ version_requirements: *77819990
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: bundler
215
- requirement: &86125050 !ruby/object:Gem::Requirement
215
+ requirement: &77819690 !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
218
218
  - - ~>
@@ -220,10 +220,10 @@ dependencies:
220
220
  version: 1.0.0
221
221
  type: :development
222
222
  prerelease: false
223
- version_requirements: *86125050
223
+ version_requirements: *77819690
224
224
  - !ruby/object:Gem::Dependency
225
225
  name: jeweler
226
- requirement: &86124780 !ruby/object:Gem::Requirement
226
+ requirement: &77819390 !ruby/object:Gem::Requirement
227
227
  none: false
228
228
  requirements:
229
229
  - - ~>
@@ -231,10 +231,10 @@ dependencies:
231
231
  version: 1.6.2
232
232
  type: :development
233
233
  prerelease: false
234
- version_requirements: *86124780
234
+ version_requirements: *77819390
235
235
  - !ruby/object:Gem::Dependency
236
236
  name: simplecov
237
- requirement: &86124520 !ruby/object:Gem::Requirement
237
+ requirement: &77819080 !ruby/object:Gem::Requirement
238
238
  none: false
239
239
  requirements:
240
240
  - - ! '>='
@@ -242,10 +242,10 @@ dependencies:
242
242
  version: 0.4.0
243
243
  type: :development
244
244
  prerelease: false
245
- version_requirements: *86124520
245
+ version_requirements: *77819080
246
246
  - !ruby/object:Gem::Dependency
247
247
  name: rdoc
248
- requirement: &86124230 !ruby/object:Gem::Requirement
248
+ requirement: &77818780 !ruby/object:Gem::Requirement
249
249
  none: false
250
250
  requirements:
251
251
  - - ! '>='
@@ -253,10 +253,10 @@ dependencies:
253
253
  version: '0'
254
254
  type: :development
255
255
  prerelease: false
256
- version_requirements: *86124230
256
+ version_requirements: *77818780
257
257
  - !ruby/object:Gem::Dependency
258
258
  name: rspec
259
- requirement: &86123930 !ruby/object:Gem::Requirement
259
+ requirement: &77818490 !ruby/object:Gem::Requirement
260
260
  none: false
261
261
  requirements:
262
262
  - - ! '>='
@@ -264,10 +264,10 @@ dependencies:
264
264
  version: 2.0.0
265
265
  type: :development
266
266
  prerelease: false
267
- version_requirements: *86123930
267
+ version_requirements: *77818490
268
268
  - !ruby/object:Gem::Dependency
269
269
  name: database_cleaner
270
- requirement: &86123630 !ruby/object:Gem::Requirement
270
+ requirement: &77818200 !ruby/object:Gem::Requirement
271
271
  none: false
272
272
  requirements:
273
273
  - - ! '>='
@@ -275,10 +275,10 @@ dependencies:
275
275
  version: '0'
276
276
  type: :development
277
277
  prerelease: false
278
- version_requirements: *86123630
278
+ version_requirements: *77818200
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: shoulda
281
- requirement: &86123340 !ruby/object:Gem::Requirement
281
+ requirement: &77817900 !ruby/object:Gem::Requirement
282
282
  none: false
283
283
  requirements:
284
284
  - - ! '>='
@@ -286,10 +286,10 @@ dependencies:
286
286
  version: '0'
287
287
  type: :development
288
288
  prerelease: false
289
- version_requirements: *86123340
289
+ version_requirements: *77817900
290
290
  - !ruby/object:Gem::Dependency
291
291
  name: bundler
292
- requirement: &86123040 !ruby/object:Gem::Requirement
292
+ requirement: &77817610 !ruby/object:Gem::Requirement
293
293
  none: false
294
294
  requirements:
295
295
  - - ~>
@@ -297,10 +297,10 @@ dependencies:
297
297
  version: 1.0.0
298
298
  type: :development
299
299
  prerelease: false
300
- version_requirements: *86123040
300
+ version_requirements: *77817610
301
301
  - !ruby/object:Gem::Dependency
302
302
  name: jeweler
303
- requirement: &86122740 !ruby/object:Gem::Requirement
303
+ requirement: &77817310 !ruby/object:Gem::Requirement
304
304
  none: false
305
305
  requirements:
306
306
  - - ~>
@@ -308,10 +308,10 @@ dependencies:
308
308
  version: 1.6.2
309
309
  type: :development
310
310
  prerelease: false
311
- version_requirements: *86122740
311
+ version_requirements: *77817310
312
312
  - !ruby/object:Gem::Dependency
313
313
  name: simplecov
314
- requirement: &86122110 !ruby/object:Gem::Requirement
314
+ requirement: &77817040 !ruby/object:Gem::Requirement
315
315
  none: false
316
316
  requirements:
317
317
  - - ! '>='
@@ -319,10 +319,10 @@ dependencies:
319
319
  version: 0.4.0
320
320
  type: :development
321
321
  prerelease: false
322
- version_requirements: *86122110
322
+ version_requirements: *77817040
323
323
  - !ruby/object:Gem::Dependency
324
324
  name: rdoc
325
- requirement: &86121850 !ruby/object:Gem::Requirement
325
+ requirement: &77816720 !ruby/object:Gem::Requirement
326
326
  none: false
327
327
  requirements:
328
328
  - - ! '>='
@@ -330,10 +330,10 @@ dependencies:
330
330
  version: '0'
331
331
  type: :development
332
332
  prerelease: false
333
- version_requirements: *86121850
333
+ version_requirements: *77816720
334
334
  - !ruby/object:Gem::Dependency
335
335
  name: rspec
336
- requirement: &86089890 !ruby/object:Gem::Requirement
336
+ requirement: &77816420 !ruby/object:Gem::Requirement
337
337
  none: false
338
338
  requirements:
339
339
  - - ! '>='
@@ -341,10 +341,10 @@ dependencies:
341
341
  version: 2.0.0
342
342
  type: :development
343
343
  prerelease: false
344
- version_requirements: *86089890
344
+ version_requirements: *77816420
345
345
  - !ruby/object:Gem::Dependency
346
346
  name: database_cleaner
347
- requirement: &86089590 !ruby/object:Gem::Requirement
347
+ requirement: &77783920 !ruby/object:Gem::Requirement
348
348
  none: false
349
349
  requirements:
350
350
  - - ! '>='
@@ -352,10 +352,10 @@ dependencies:
352
352
  version: '0'
353
353
  type: :development
354
354
  prerelease: false
355
- version_requirements: *86089590
355
+ version_requirements: *77783920
356
356
  - !ruby/object:Gem::Dependency
357
357
  name: bundler
358
- requirement: &86089300 !ruby/object:Gem::Requirement
358
+ requirement: &77783630 !ruby/object:Gem::Requirement
359
359
  none: false
360
360
  requirements:
361
361
  - - ~>
@@ -363,10 +363,10 @@ dependencies:
363
363
  version: 1.0.0
364
364
  type: :development
365
365
  prerelease: false
366
- version_requirements: *86089300
366
+ version_requirements: *77783630
367
367
  - !ruby/object:Gem::Dependency
368
368
  name: jeweler
369
- requirement: &86089040 !ruby/object:Gem::Requirement
369
+ requirement: &77783340 !ruby/object:Gem::Requirement
370
370
  none: false
371
371
  requirements:
372
372
  - - ~>
@@ -374,10 +374,10 @@ dependencies:
374
374
  version: 1.6.2
375
375
  type: :development
376
376
  prerelease: false
377
- version_requirements: *86089040
377
+ version_requirements: *77783340
378
378
  - !ruby/object:Gem::Dependency
379
379
  name: simplecov
380
- requirement: &86088740 !ruby/object:Gem::Requirement
380
+ requirement: &77783040 !ruby/object:Gem::Requirement
381
381
  none: false
382
382
  requirements:
383
383
  - - ! '>='
@@ -385,10 +385,10 @@ dependencies:
385
385
  version: 0.4.0
386
386
  type: :development
387
387
  prerelease: false
388
- version_requirements: *86088740
388
+ version_requirements: *77783040
389
389
  - !ruby/object:Gem::Dependency
390
390
  name: rdoc
391
- requirement: &86088440 !ruby/object:Gem::Requirement
391
+ requirement: &77782750 !ruby/object:Gem::Requirement
392
392
  none: false
393
393
  requirements:
394
394
  - - ! '>='
@@ -396,10 +396,10 @@ dependencies:
396
396
  version: '0'
397
397
  type: :development
398
398
  prerelease: false
399
- version_requirements: *86088440
399
+ version_requirements: *77782750
400
400
  - !ruby/object:Gem::Dependency
401
401
  name: rspec
402
- requirement: &86088140 !ruby/object:Gem::Requirement
402
+ requirement: &77782460 !ruby/object:Gem::Requirement
403
403
  none: false
404
404
  requirements:
405
405
  - - ! '>='
@@ -407,10 +407,10 @@ dependencies:
407
407
  version: 2.0.0
408
408
  type: :development
409
409
  prerelease: false
410
- version_requirements: *86088140
410
+ version_requirements: *77782460
411
411
  - !ruby/object:Gem::Dependency
412
412
  name: database_cleaner
413
- requirement: &86087850 !ruby/object:Gem::Requirement
413
+ requirement: &77782160 !ruby/object:Gem::Requirement
414
414
  none: false
415
415
  requirements:
416
416
  - - ! '>='
@@ -418,10 +418,10 @@ dependencies:
418
418
  version: '0'
419
419
  type: :development
420
420
  prerelease: false
421
- version_requirements: *86087850
421
+ version_requirements: *77782160
422
422
  - !ruby/object:Gem::Dependency
423
423
  name: bundler
424
- requirement: &86087580 !ruby/object:Gem::Requirement
424
+ requirement: &77781870 !ruby/object:Gem::Requirement
425
425
  none: false
426
426
  requirements:
427
427
  - - ~>
@@ -429,10 +429,10 @@ dependencies:
429
429
  version: 1.0.0
430
430
  type: :development
431
431
  prerelease: false
432
- version_requirements: *86087580
432
+ version_requirements: *77781870
433
433
  - !ruby/object:Gem::Dependency
434
434
  name: jeweler
435
- requirement: &86087280 !ruby/object:Gem::Requirement
435
+ requirement: &77781580 !ruby/object:Gem::Requirement
436
436
  none: false
437
437
  requirements:
438
438
  - - ~>
@@ -440,10 +440,10 @@ dependencies:
440
440
  version: 1.6.2
441
441
  type: :development
442
442
  prerelease: false
443
- version_requirements: *86087280
443
+ version_requirements: *77781580
444
444
  - !ruby/object:Gem::Dependency
445
445
  name: simplecov
446
- requirement: &86087020 !ruby/object:Gem::Requirement
446
+ requirement: &77781280 !ruby/object:Gem::Requirement
447
447
  none: false
448
448
  requirements:
449
449
  - - ! '>='
@@ -451,10 +451,10 @@ dependencies:
451
451
  version: 0.4.0
452
452
  type: :development
453
453
  prerelease: false
454
- version_requirements: *86087020
454
+ version_requirements: *77781280
455
455
  - !ruby/object:Gem::Dependency
456
456
  name: rdoc
457
- requirement: &86086720 !ruby/object:Gem::Requirement
457
+ requirement: &77781000 !ruby/object:Gem::Requirement
458
458
  none: false
459
459
  requirements:
460
460
  - - ! '>='
@@ -462,10 +462,10 @@ dependencies:
462
462
  version: '0'
463
463
  type: :development
464
464
  prerelease: false
465
- version_requirements: *86086720
465
+ version_requirements: *77781000
466
466
  - !ruby/object:Gem::Dependency
467
467
  name: rspec
468
- requirement: &86086420 !ruby/object:Gem::Requirement
468
+ requirement: &77780740 !ruby/object:Gem::Requirement
469
469
  none: false
470
470
  requirements:
471
471
  - - ! '>='
@@ -473,10 +473,10 @@ dependencies:
473
473
  version: 2.0.0
474
474
  type: :development
475
475
  prerelease: false
476
- version_requirements: *86086420
476
+ version_requirements: *77780740
477
477
  - !ruby/object:Gem::Dependency
478
478
  name: database_cleaner
479
- requirement: &86086120 !ruby/object:Gem::Requirement
479
+ requirement: &77780440 !ruby/object:Gem::Requirement
480
480
  none: false
481
481
  requirements:
482
482
  - - ! '>='
@@ -484,10 +484,10 @@ dependencies:
484
484
  version: '0'
485
485
  type: :development
486
486
  prerelease: false
487
- version_requirements: *86086120
487
+ version_requirements: *77780440
488
488
  - !ruby/object:Gem::Dependency
489
489
  name: bundler
490
- requirement: &86085820 !ruby/object:Gem::Requirement
490
+ requirement: &77780140 !ruby/object:Gem::Requirement
491
491
  none: false
492
492
  requirements:
493
493
  - - ~>
@@ -495,10 +495,10 @@ dependencies:
495
495
  version: 1.0.0
496
496
  type: :development
497
497
  prerelease: false
498
- version_requirements: *86085820
498
+ version_requirements: *77780140
499
499
  - !ruby/object:Gem::Dependency
500
500
  name: jeweler
501
- requirement: &86085520 !ruby/object:Gem::Requirement
501
+ requirement: &77779840 !ruby/object:Gem::Requirement
502
502
  none: false
503
503
  requirements:
504
504
  - - ~>
@@ -506,10 +506,10 @@ dependencies:
506
506
  version: 1.6.2
507
507
  type: :development
508
508
  prerelease: false
509
- version_requirements: *86085520
509
+ version_requirements: *77779840
510
510
  - !ruby/object:Gem::Dependency
511
511
  name: simplecov
512
- requirement: &86085230 !ruby/object:Gem::Requirement
512
+ requirement: &77779550 !ruby/object:Gem::Requirement
513
513
  none: false
514
514
  requirements:
515
515
  - - ! '>='
@@ -517,10 +517,10 @@ dependencies:
517
517
  version: 0.4.0
518
518
  type: :development
519
519
  prerelease: false
520
- version_requirements: *86085230
520
+ version_requirements: *77779550
521
521
  - !ruby/object:Gem::Dependency
522
522
  name: rdoc
523
- requirement: &86084930 !ruby/object:Gem::Requirement
523
+ requirement: &77779250 !ruby/object:Gem::Requirement
524
524
  none: false
525
525
  requirements:
526
526
  - - ! '>='
@@ -528,10 +528,10 @@ dependencies:
528
528
  version: '0'
529
529
  type: :development
530
530
  prerelease: false
531
- version_requirements: *86084930
531
+ version_requirements: *77779250
532
532
  - !ruby/object:Gem::Dependency
533
533
  name: rspec
534
- requirement: &86084640 !ruby/object:Gem::Requirement
534
+ requirement: &77778960 !ruby/object:Gem::Requirement
535
535
  none: false
536
536
  requirements:
537
537
  - - ! '>='
@@ -539,10 +539,10 @@ dependencies:
539
539
  version: 2.0.0
540
540
  type: :development
541
541
  prerelease: false
542
- version_requirements: *86084640
542
+ version_requirements: *77778960
543
543
  - !ruby/object:Gem::Dependency
544
544
  name: database_cleaner
545
- requirement: &86084340 !ruby/object:Gem::Requirement
545
+ requirement: &77778660 !ruby/object:Gem::Requirement
546
546
  none: false
547
547
  requirements:
548
548
  - - ! '>='
@@ -550,10 +550,10 @@ dependencies:
550
550
  version: '0'
551
551
  type: :development
552
552
  prerelease: false
553
- version_requirements: *86084340
553
+ version_requirements: *77778660
554
554
  - !ruby/object:Gem::Dependency
555
555
  name: bundler
556
- requirement: &86084040 !ruby/object:Gem::Requirement
556
+ requirement: &77778360 !ruby/object:Gem::Requirement
557
557
  none: false
558
558
  requirements:
559
559
  - - ~>
@@ -561,10 +561,10 @@ dependencies:
561
561
  version: 1.0.0
562
562
  type: :development
563
563
  prerelease: false
564
- version_requirements: *86084040
564
+ version_requirements: *77778360
565
565
  - !ruby/object:Gem::Dependency
566
566
  name: jeweler
567
- requirement: &86083750 !ruby/object:Gem::Requirement
567
+ requirement: &77778060 !ruby/object:Gem::Requirement
568
568
  none: false
569
569
  requirements:
570
570
  - - ~>
@@ -572,10 +572,10 @@ dependencies:
572
572
  version: 1.6.2
573
573
  type: :development
574
574
  prerelease: false
575
- version_requirements: *86083750
575
+ version_requirements: *77778060
576
576
  - !ruby/object:Gem::Dependency
577
577
  name: simplecov
578
- requirement: &86083480 !ruby/object:Gem::Requirement
578
+ requirement: &77777760 !ruby/object:Gem::Requirement
579
579
  none: false
580
580
  requirements:
581
581
  - - ! '>='
@@ -583,10 +583,10 @@ dependencies:
583
583
  version: 0.4.0
584
584
  type: :development
585
585
  prerelease: false
586
- version_requirements: *86083480
586
+ version_requirements: *77777760
587
587
  - !ruby/object:Gem::Dependency
588
588
  name: rdoc
589
- requirement: &86083220 !ruby/object:Gem::Requirement
589
+ requirement: &77777460 !ruby/object:Gem::Requirement
590
590
  none: false
591
591
  requirements:
592
592
  - - ! '>='
@@ -594,10 +594,10 @@ dependencies:
594
594
  version: '0'
595
595
  type: :development
596
596
  prerelease: false
597
- version_requirements: *86083220
597
+ version_requirements: *77777460
598
598
  - !ruby/object:Gem::Dependency
599
599
  name: rspec
600
- requirement: &86082920 !ruby/object:Gem::Requirement
600
+ requirement: &77777160 !ruby/object:Gem::Requirement
601
601
  none: false
602
602
  requirements:
603
603
  - - ! '>='
@@ -605,10 +605,10 @@ dependencies:
605
605
  version: 2.0.0
606
606
  type: :development
607
607
  prerelease: false
608
- version_requirements: *86082920
608
+ version_requirements: *77777160
609
609
  - !ruby/object:Gem::Dependency
610
610
  name: database_cleaner
611
- requirement: &86082630 !ruby/object:Gem::Requirement
611
+ requirement: &77776860 !ruby/object:Gem::Requirement
612
612
  none: false
613
613
  requirements:
614
614
  - - ! '>='
@@ -616,10 +616,10 @@ dependencies:
616
616
  version: '0'
617
617
  type: :development
618
618
  prerelease: false
619
- version_requirements: *86082630
619
+ version_requirements: *77776860
620
620
  - !ruby/object:Gem::Dependency
621
621
  name: bundler
622
- requirement: &86082330 !ruby/object:Gem::Requirement
622
+ requirement: &77776560 !ruby/object:Gem::Requirement
623
623
  none: false
624
624
  requirements:
625
625
  - - ~>
@@ -627,10 +627,10 @@ dependencies:
627
627
  version: 1.0.0
628
628
  type: :development
629
629
  prerelease: false
630
- version_requirements: *86082330
630
+ version_requirements: *77776560
631
631
  - !ruby/object:Gem::Dependency
632
632
  name: jeweler
633
- requirement: &86082040 !ruby/object:Gem::Requirement
633
+ requirement: &77776260 !ruby/object:Gem::Requirement
634
634
  none: false
635
635
  requirements:
636
636
  - - ~>
@@ -638,10 +638,10 @@ dependencies:
638
638
  version: 1.6.2
639
639
  type: :development
640
640
  prerelease: false
641
- version_requirements: *86082040
641
+ version_requirements: *77776260
642
642
  - !ruby/object:Gem::Dependency
643
643
  name: simplecov
644
- requirement: &86049440 !ruby/object:Gem::Requirement
644
+ requirement: &77752260 !ruby/object:Gem::Requirement
645
645
  none: false
646
646
  requirements:
647
647
  - - ! '>='
@@ -649,10 +649,10 @@ dependencies:
649
649
  version: 0.4.0
650
650
  type: :development
651
651
  prerelease: false
652
- version_requirements: *86049440
652
+ version_requirements: *77752260
653
653
  - !ruby/object:Gem::Dependency
654
654
  name: rdoc
655
- requirement: &86049200 !ruby/object:Gem::Requirement
655
+ requirement: &77751970 !ruby/object:Gem::Requirement
656
656
  none: false
657
657
  requirements:
658
658
  - - ! '>='
@@ -660,10 +660,10 @@ dependencies:
660
660
  version: '0'
661
661
  type: :development
662
662
  prerelease: false
663
- version_requirements: *86049200
663
+ version_requirements: *77751970
664
664
  - !ruby/object:Gem::Dependency
665
665
  name: rspec
666
- requirement: &86048950 !ruby/object:Gem::Requirement
666
+ requirement: &77751680 !ruby/object:Gem::Requirement
667
667
  none: false
668
668
  requirements:
669
669
  - - ! '>='
@@ -671,10 +671,10 @@ dependencies:
671
671
  version: 2.0.0
672
672
  type: :development
673
673
  prerelease: false
674
- version_requirements: *86048950
674
+ version_requirements: *77751680
675
675
  - !ruby/object:Gem::Dependency
676
676
  name: database_cleaner
677
- requirement: &86048710 !ruby/object:Gem::Requirement
677
+ requirement: &77751380 !ruby/object:Gem::Requirement
678
678
  none: false
679
679
  requirements:
680
680
  - - ! '>='
@@ -682,10 +682,10 @@ dependencies:
682
682
  version: '0'
683
683
  type: :development
684
684
  prerelease: false
685
- version_requirements: *86048710
685
+ version_requirements: *77751380
686
686
  - !ruby/object:Gem::Dependency
687
687
  name: bundler
688
- requirement: &86048470 !ruby/object:Gem::Requirement
688
+ requirement: &77751090 !ruby/object:Gem::Requirement
689
689
  none: false
690
690
  requirements:
691
691
  - - ~>
@@ -693,10 +693,10 @@ dependencies:
693
693
  version: 1.0.0
694
694
  type: :development
695
695
  prerelease: false
696
- version_requirements: *86048470
696
+ version_requirements: *77751090
697
697
  - !ruby/object:Gem::Dependency
698
698
  name: jeweler
699
- requirement: &86048230 !ruby/object:Gem::Requirement
699
+ requirement: &77750830 !ruby/object:Gem::Requirement
700
700
  none: false
701
701
  requirements:
702
702
  - - ~>
@@ -704,10 +704,10 @@ dependencies:
704
704
  version: 1.6.2
705
705
  type: :development
706
706
  prerelease: false
707
- version_requirements: *86048230
707
+ version_requirements: *77750830
708
708
  - !ruby/object:Gem::Dependency
709
709
  name: simplecov
710
- requirement: &86047980 !ruby/object:Gem::Requirement
710
+ requirement: &77750530 !ruby/object:Gem::Requirement
711
711
  none: false
712
712
  requirements:
713
713
  - - ! '>='
@@ -715,10 +715,10 @@ dependencies:
715
715
  version: 0.4.0
716
716
  type: :development
717
717
  prerelease: false
718
- version_requirements: *86047980
718
+ version_requirements: *77750530
719
719
  - !ruby/object:Gem::Dependency
720
720
  name: rdoc
721
- requirement: &86047720 !ruby/object:Gem::Requirement
721
+ requirement: &77750230 !ruby/object:Gem::Requirement
722
722
  none: false
723
723
  requirements:
724
724
  - - ! '>='
@@ -726,10 +726,10 @@ dependencies:
726
726
  version: '0'
727
727
  type: :development
728
728
  prerelease: false
729
- version_requirements: *86047720
729
+ version_requirements: *77750230
730
730
  - !ruby/object:Gem::Dependency
731
731
  name: rspec
732
- requirement: &86047460 !ruby/object:Gem::Requirement
732
+ requirement: &77749940 !ruby/object:Gem::Requirement
733
733
  none: false
734
734
  requirements:
735
735
  - - ! '>='
@@ -737,10 +737,10 @@ dependencies:
737
737
  version: 2.0.0
738
738
  type: :development
739
739
  prerelease: false
740
- version_requirements: *86047460
740
+ version_requirements: *77749940
741
741
  - !ruby/object:Gem::Dependency
742
742
  name: database_cleaner
743
- requirement: &86047200 !ruby/object:Gem::Requirement
743
+ requirement: &77749640 !ruby/object:Gem::Requirement
744
744
  none: false
745
745
  requirements:
746
746
  - - ! '>='
@@ -748,7 +748,73 @@ dependencies:
748
748
  version: '0'
749
749
  type: :development
750
750
  prerelease: false
751
- version_requirements: *86047200
751
+ version_requirements: *77749640
752
+ - !ruby/object:Gem::Dependency
753
+ name: bundler
754
+ requirement: &77749350 !ruby/object:Gem::Requirement
755
+ none: false
756
+ requirements:
757
+ - - ~>
758
+ - !ruby/object:Gem::Version
759
+ version: 1.0.0
760
+ type: :development
761
+ prerelease: false
762
+ version_requirements: *77749350
763
+ - !ruby/object:Gem::Dependency
764
+ name: jeweler
765
+ requirement: &77749060 !ruby/object:Gem::Requirement
766
+ none: false
767
+ requirements:
768
+ - - ~>
769
+ - !ruby/object:Gem::Version
770
+ version: 1.6.2
771
+ type: :development
772
+ prerelease: false
773
+ version_requirements: *77749060
774
+ - !ruby/object:Gem::Dependency
775
+ name: simplecov
776
+ requirement: &77748770 !ruby/object:Gem::Requirement
777
+ none: false
778
+ requirements:
779
+ - - ! '>='
780
+ - !ruby/object:Gem::Version
781
+ version: 0.4.0
782
+ type: :development
783
+ prerelease: false
784
+ version_requirements: *77748770
785
+ - !ruby/object:Gem::Dependency
786
+ name: rdoc
787
+ requirement: &77748480 !ruby/object:Gem::Requirement
788
+ none: false
789
+ requirements:
790
+ - - ! '>='
791
+ - !ruby/object:Gem::Version
792
+ version: '0'
793
+ type: :development
794
+ prerelease: false
795
+ version_requirements: *77748480
796
+ - !ruby/object:Gem::Dependency
797
+ name: rspec
798
+ requirement: &77748190 !ruby/object:Gem::Requirement
799
+ none: false
800
+ requirements:
801
+ - - ! '>='
802
+ - !ruby/object:Gem::Version
803
+ version: 2.0.0
804
+ type: :development
805
+ prerelease: false
806
+ version_requirements: *77748190
807
+ - !ruby/object:Gem::Dependency
808
+ name: database_cleaner
809
+ requirement: &77747900 !ruby/object:Gem::Requirement
810
+ none: false
811
+ requirements:
812
+ - - ! '>='
813
+ - !ruby/object:Gem::Version
814
+ version: '0'
815
+ type: :development
816
+ prerelease: false
817
+ version_requirements: *77747900
752
818
  description: Provides fields and methods for the manipulation of rates on Mongoid
753
819
  documents.
754
820
  email: psavichev@gmail.com
@@ -792,7 +858,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
792
858
  version: '0'
793
859
  segments:
794
860
  - 0
795
- hash: 73844051
861
+ hash: -676835715
796
862
  required_rubygems_version: !ruby/object:Gem::Requirement
797
863
  none: false
798
864
  requirements: