mongoid-ordering 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mongoid/ordering.rb +2 -0
  2. metadata +12 -12
@@ -14,6 +14,8 @@ module Mongoid
14
14
 
15
15
  field :position, type: Integer
16
16
 
17
+ index position: 1
18
+
17
19
  default_scope asc(:position)
18
20
 
19
21
  before_save :assign_default_position
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-ordering
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
12
+ date: 2012-10-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
16
- requirement: &70176192165840 !ruby/object:Gem::Requirement
16
+ requirement: &70334092153860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70176192165840
24
+ version_requirements: *70334092153860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mongoid-siblings
27
- requirement: &70176192164100 !ruby/object:Gem::Requirement
27
+ requirement: &70334092153340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.1.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70176192164100
35
+ version_requirements: *70334092153340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70176192162520 !ruby/object:Gem::Requirement
38
+ requirement: &70334092152920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70176192162520
46
+ version_requirements: *70334092152920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70176192161460 !ruby/object:Gem::Requirement
49
+ requirement: &70334092152400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70176192161460
57
+ version_requirements: *70334092152400
58
58
  description: mongoid-ordering makes it easy to keep your Mongoid documents in order.
59
59
  email: douwe@selenight.nl
60
60
  executables: []
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: -3957175832892824933
87
+ hash: 3787459196807544671
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: -3957175832892824933
96
+ hash: 3787459196807544671
97
97
  requirements: []
98
98
  rubyforge_project:
99
99
  rubygems_version: 1.8.6