mongo_mapper_tree 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWJhYjAwZDk3OWI3MGYxNmNlYzdmNGY4YjI0NDczYjY0ODYxNjg0MQ==
5
- data.tar.gz: !binary |-
6
- NTZiNWRlMGJjMWZhMzIzZjdkMzdhYzFkMDdkYzA1OGIzYzVhM2YxOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- YjkxMzI3Mjk3MWM0MzJhMWMxMDgyYmU5MjU3ZmI2NDcxY2I1YTdkZGExNmE4
10
- NGRmODY1ZWRjNDIxY2MyYjYyOWQ3ZGRmNzc2OTEwNzE0ZDNiNTQ4MTc0Mjc4
11
- ZWFlNGZjY2QwZWNiNzVjMTA0ZjgwMzQwNTFjMDUwNDQ1OWNhODM=
12
- data.tar.gz: !binary |-
13
- ZmZmZjlkNWM3OTNiNGE3Mzk0MDQxNmQxZmRhMTU0NDA4ZDE4YTk0NzU3NGIw
14
- YjIyY2Y4MmVjY2ExMDE0ZTIyNjdkMTc5YWMwZWZiMDMzYmQ2OTVkMDRkZDNh
15
- YTJjNWY3YmFkNDNhZmQxYWJhMzY2YWJhMTQzNzIzNTVhZGU1ODE=
2
+ SHA1:
3
+ metadata.gz: 1241488a3e079ad066ac0589652a6306ad141a8e
4
+ data.tar.gz: 3f404e17178ab4633bd6beb6afa55a6b6150e0fc
5
+ SHA512:
6
+ metadata.gz: 7c5efd58bbccf44c36e87e5c6f417d5996acedbbb65c61fd33a0026f2b85ae556dff53eb420c6f6a06c675179d43a13d081d9be28ae1112ded308e7a0d3c86da
7
+ data.tar.gz: f4d9281e8bdec20cebbec359c2ed6d00a92407321e34423b8e329a36c18138b78c6624a853880076924ecd945018b66a8b50d44c3646f073770363b5ee33f19f
@@ -47,7 +47,7 @@ module MongoMapper
47
47
 
48
48
  def ancestors
49
49
  return [] if root?
50
- tree_search_class.find(self[path_field])
50
+ tree_search_class.find(self[path_field]).sort_by &:depth
51
51
  end
52
52
 
53
53
  def self_and_ancestors
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module MongoMapperTree
3
- Version = '1.1.0'
3
+ Version = '1.1.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_mapper_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Junström
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
12
+ date: 2014-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongo_mapper
@@ -32,6 +32,8 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
+ - LICENSE
36
+ - README.rdoc
35
37
  - lib/locale/en.yml
36
38
  - lib/mongo_mapper/plugins/tree.rb
37
39
  - lib/mongo_mapper_tree.rb
@@ -44,8 +46,6 @@ files:
44
46
  - test/test_search_mixed_tree.rb
45
47
  - test/test_search_tree.rb
46
48
  - test/test_tree.rb
47
- - LICENSE
48
- - README.rdoc
49
49
  homepage: http://github.com/Oktavilla/mongo_mapper_tree
50
50
  licenses: []
51
51
  metadata: {}
@@ -55,17 +55,17 @@ require_paths:
55
55
  - lib
56
56
  required_ruby_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ! '>='
58
+ - - '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - ! '>='
63
+ - - '>='
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.0.1
68
+ rubygems_version: 2.2.1
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: An Acts As Tree like implementation for MongoMapper