mongoid-ancestry-fixes 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +42 -0
- data/.travis.yml +3 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +47 -0
- data/Guardfile +10 -0
- data/MIT-LICENSE +20 -0
- data/README.md +255 -0
- data/Rakefile +21 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/mongoid-ancestry/class_methods.rb +212 -0
- data/lib/mongoid-ancestry/exceptions.rb +6 -0
- data/lib/mongoid-ancestry/instance_methods.rb +248 -0
- data/lib/mongoid-ancestry/version.rb +5 -0
- data/lib/mongoid-ancestry.rb +15 -0
- data/log/.gitignore +4 -0
- data/mongoid-ancestry.gemspec +29 -0
- data/spec/lib/ancestry_spec.rb +110 -0
- data/spec/lib/mongoid-ancestry/class_methods_spec.rb +300 -0
- data/spec/lib/mongoid-ancestry/instance_methods_spec.rb +241 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/models.rb +40 -0
- metadata +106 -0
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mongoid-ancestry-fixes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Stefan Kroes
|
8
|
+
- Anton Orel
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-03-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: mongoid
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ! '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '2.0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ! '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '2.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bson_ext
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.3'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.3'
|
42
|
+
description: Organise Mongoid model into a tree structure
|
43
|
+
email:
|
44
|
+
- eagle.anton@gmail.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files:
|
48
|
+
- README.md
|
49
|
+
files:
|
50
|
+
- .gitignore
|
51
|
+
- .travis.yml
|
52
|
+
- Gemfile
|
53
|
+
- Gemfile.lock
|
54
|
+
- Guardfile
|
55
|
+
- MIT-LICENSE
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- init.rb
|
59
|
+
- install.rb
|
60
|
+
- lib/mongoid-ancestry.rb
|
61
|
+
- lib/mongoid-ancestry/class_methods.rb
|
62
|
+
- lib/mongoid-ancestry/exceptions.rb
|
63
|
+
- lib/mongoid-ancestry/instance_methods.rb
|
64
|
+
- lib/mongoid-ancestry/version.rb
|
65
|
+
- log/.gitignore
|
66
|
+
- mongoid-ancestry.gemspec
|
67
|
+
- spec/lib/ancestry_spec.rb
|
68
|
+
- spec/lib/mongoid-ancestry/class_methods_spec.rb
|
69
|
+
- spec/lib/mongoid-ancestry/instance_methods_spec.rb
|
70
|
+
- spec/spec_helper.rb
|
71
|
+
- spec/support/models.rb
|
72
|
+
homepage: http://github.com/skyeagle/mongoid-ancestry
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project: mongoid-ancestry-fixes
|
92
|
+
rubygems_version: 2.4.5
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: Ancestry allows the records of a Mongoid model to be organised in a tree
|
96
|
+
structure, using a single, intuitively formatted database field. It exposes all
|
97
|
+
the standard tree structure relations (ancestors, parent, root, children, siblings,
|
98
|
+
descendants) and all of them can be fetched in a single query. Additional features
|
99
|
+
are named_scopes, integrity checking, integrity restoration, arrangement of (sub)tree
|
100
|
+
into hashes and different strategies for dealing with orphaned records.
|
101
|
+
test_files:
|
102
|
+
- spec/lib/ancestry_spec.rb
|
103
|
+
- spec/lib/mongoid-ancestry/class_methods_spec.rb
|
104
|
+
- spec/lib/mongoid-ancestry/instance_methods_spec.rb
|
105
|
+
- spec/spec_helper.rb
|
106
|
+
- spec/support/models.rb
|