mongoid_order 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile CHANGED
@@ -4,3 +4,7 @@ source "http://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  gem 'bson_ext', '>= 1.0.4'
7
+
8
+ if RUBY_VERSION =~ /1\.8/
9
+ gem 'SystemTimer'
10
+ end
@@ -24,6 +24,8 @@ module Mongoid
24
24
  included do
25
25
  field :position, :type => Integer
26
26
 
27
+ default_scope asc(:position)
28
+
27
29
  before_save :assign_default_position
28
30
  after_destroy :move_lower_siblings_up
29
31
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "mongoid_order"
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Ark Xu"]
8
8
  s.email = ["ark.work@gmail.com"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_order
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ark Xu
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-16 00:00:00 +08:00
18
+ date: 2011-04-17 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements: []
86
86
 
87
87
  rubyforge_project: mongoid_order
88
- rubygems_version: 1.5.2
88
+ rubygems_version: 1.6.2
89
89
  signing_key:
90
90
  specification_version: 3
91
91
  summary: Make Mongoid documents order-able