mongoid_orderable 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.rvmrc +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +54 -0
- data/lib/config/locales/en.yml +9 -0
- data/lib/mongoid/orderable.rb +10 -227
- data/lib/mongoid/orderable/callbacks.rb +75 -0
- data/lib/mongoid/orderable/configuration.rb +60 -0
- data/lib/mongoid/orderable/errors.rb +2 -0
- data/lib/mongoid/orderable/errors/invalid_target_position.rb +18 -0
- data/lib/mongoid/orderable/errors/mongoid_orderable_error.rb +14 -0
- data/lib/mongoid/orderable/generator.rb +34 -0
- data/lib/mongoid/orderable/generator/helpers.rb +29 -0
- data/lib/mongoid/orderable/generator/listable.rb +41 -0
- data/lib/mongoid/orderable/generator/movable.rb +62 -0
- data/lib/mongoid/orderable/generator/position.rb +26 -0
- data/lib/mongoid/orderable/generator/scope.rb +17 -0
- data/lib/mongoid/orderable/helpers.rb +50 -0
- data/lib/mongoid/orderable/listable.rb +49 -0
- data/lib/mongoid/orderable/movable.rb +58 -0
- data/lib/mongoid/orderable/orderable_class.rb +51 -0
- data/lib/mongoid_orderable.rb +19 -0
- data/lib/mongoid_orderable/version.rb +1 -1
- data/spec/mongoid/orderable_spec.rb +885 -86
- metadata +27 -11
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_orderable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pyromaniac
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mongoid
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Gem allows mongoid model behave as orderable list
|
@@ -67,7 +67,23 @@ files:
|
|
67
67
|
- Gemfile
|
68
68
|
- README.md
|
69
69
|
- Rakefile
|
70
|
+
- lib/config/locales/en.yml
|
70
71
|
- lib/mongoid/orderable.rb
|
72
|
+
- lib/mongoid/orderable/callbacks.rb
|
73
|
+
- lib/mongoid/orderable/configuration.rb
|
74
|
+
- lib/mongoid/orderable/errors.rb
|
75
|
+
- lib/mongoid/orderable/errors/invalid_target_position.rb
|
76
|
+
- lib/mongoid/orderable/errors/mongoid_orderable_error.rb
|
77
|
+
- lib/mongoid/orderable/generator.rb
|
78
|
+
- lib/mongoid/orderable/generator/helpers.rb
|
79
|
+
- lib/mongoid/orderable/generator/listable.rb
|
80
|
+
- lib/mongoid/orderable/generator/movable.rb
|
81
|
+
- lib/mongoid/orderable/generator/position.rb
|
82
|
+
- lib/mongoid/orderable/generator/scope.rb
|
83
|
+
- lib/mongoid/orderable/helpers.rb
|
84
|
+
- lib/mongoid/orderable/listable.rb
|
85
|
+
- lib/mongoid/orderable/movable.rb
|
86
|
+
- lib/mongoid/orderable/orderable_class.rb
|
71
87
|
- lib/mongoid_orderable.rb
|
72
88
|
- lib/mongoid_orderable/mongoid/contexts/enumerable.rb
|
73
89
|
- lib/mongoid_orderable/mongoid/contexts/mongo.rb
|
@@ -86,17 +102,17 @@ require_paths:
|
|
86
102
|
- lib
|
87
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
104
|
requirements:
|
89
|
-
- -
|
105
|
+
- - '>='
|
90
106
|
- !ruby/object:Gem::Version
|
91
107
|
version: '0'
|
92
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
109
|
requirements:
|
94
|
-
- -
|
110
|
+
- - '>='
|
95
111
|
- !ruby/object:Gem::Version
|
96
112
|
version: '0'
|
97
113
|
requirements: []
|
98
114
|
rubyforge_project: mongoid_orderable
|
99
|
-
rubygems_version: 2.2.
|
115
|
+
rubygems_version: 2.2.2
|
100
116
|
signing_key:
|
101
117
|
specification_version: 4
|
102
118
|
summary: Acts as list mongoid implementation
|