acts_as_list 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/README.md +37 -0
- data/lib/acts_as_list/active_record/acts/list.rb +60 -10
- data/lib/acts_as_list/version.rb +1 -1
- data/test/helper.rb +2 -0
- data/test/shared.rb +7 -0
- data/test/shared_array_scope_list.rb +156 -0
- data/test/shared_list.rb +233 -0
- data/test/shared_list_sub.rb +102 -0
- data/test/shared_zero_based.rb +86 -0
- data/test/test_list.rb +111 -527
- metadata +65 -89
metadata
CHANGED
@@ -1,99 +1,75 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_list
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 4
|
10
|
-
version: 0.1.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- David Heinemeier Hansson
|
14
9
|
- Swanand Pagnis
|
15
10
|
- Quinn Chaffee
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
dependencies:
|
23
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2012-02-24 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
24
17
|
name: bundler
|
25
|
-
|
26
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirement: &2152300140 !ruby/object:Gem::Requirement
|
27
19
|
none: false
|
28
|
-
requirements:
|
20
|
+
requirements:
|
29
21
|
- - ~>
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
hash: 23
|
32
|
-
segments:
|
33
|
-
- 1
|
34
|
-
- 0
|
35
|
-
- 0
|
22
|
+
- !ruby/object:Gem::Version
|
36
23
|
version: 1.0.0
|
37
24
|
type: :development
|
38
|
-
version_requirements: *id001
|
39
|
-
- !ruby/object:Gem::Dependency
|
40
|
-
name: activerecord
|
41
25
|
prerelease: false
|
42
|
-
|
26
|
+
version_requirements: *2152300140
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activerecord
|
29
|
+
requirement: &2152299540 !ruby/object:Gem::Requirement
|
43
30
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
hash: 15571
|
48
|
-
segments:
|
49
|
-
- 1
|
50
|
-
- 15
|
51
|
-
- 4
|
52
|
-
- 7794
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
53
34
|
version: 1.15.4.7794
|
54
35
|
type: :development
|
55
|
-
version_requirements: *id002
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: rdoc
|
58
36
|
prerelease: false
|
59
|
-
|
37
|
+
version_requirements: *2152299540
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rdoc
|
40
|
+
requirement: &2152299080 !ruby/object:Gem::Requirement
|
60
41
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
version: "0"
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
68
46
|
type: :development
|
69
|
-
version_requirements: *id003
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: sqlite3
|
72
47
|
prerelease: false
|
73
|
-
|
48
|
+
version_requirements: *2152299080
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: sqlite3
|
51
|
+
requirement: &2152298480 !ruby/object:Gem::Requirement
|
74
52
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
version: "0"
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
82
57
|
type: :development
|
83
|
-
|
84
|
-
|
85
|
-
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *2152298480
|
60
|
+
description: This "acts_as" extension provides the capabilities for sorting and reordering
|
61
|
+
a number of objects in a list. The class that has this specified needs to have a
|
62
|
+
"position" column defined as an integer on the mapped database table.
|
63
|
+
email:
|
86
64
|
- swanand.pagnis@gmail.com
|
87
65
|
executables: []
|
88
|
-
|
89
66
|
extensions: []
|
90
|
-
|
91
67
|
extra_rdoc_files: []
|
92
|
-
|
93
|
-
files:
|
68
|
+
files:
|
94
69
|
- .gemtest
|
95
70
|
- .gitignore
|
96
71
|
- Gemfile
|
72
|
+
- README.md
|
97
73
|
- README.rdoc
|
98
74
|
- Rakefile
|
99
75
|
- acts_as_list.gemspec
|
@@ -102,41 +78,41 @@ files:
|
|
102
78
|
- lib/acts_as_list/active_record/acts/list.rb
|
103
79
|
- lib/acts_as_list/version.rb
|
104
80
|
- test/helper.rb
|
81
|
+
- test/shared.rb
|
82
|
+
- test/shared_array_scope_list.rb
|
83
|
+
- test/shared_list.rb
|
84
|
+
- test/shared_list_sub.rb
|
85
|
+
- test/shared_zero_based.rb
|
105
86
|
- test/test_list.rb
|
106
|
-
has_rdoc: true
|
107
87
|
homepage: http://github.com/swanandp/acts_as_list
|
108
88
|
licenses: []
|
109
|
-
|
110
89
|
post_install_message:
|
111
90
|
rdoc_options: []
|
112
|
-
|
113
|
-
require_paths:
|
91
|
+
require_paths:
|
114
92
|
- lib
|
115
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
94
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
|
121
|
-
|
122
|
-
- 0
|
123
|
-
version: "0"
|
124
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
100
|
none: false
|
126
|
-
requirements:
|
127
|
-
- -
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
version: "0"
|
101
|
+
requirements:
|
102
|
+
- - ! '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
133
105
|
requirements: []
|
134
|
-
|
135
106
|
rubyforge_project: acts_as_list
|
136
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.8.15
|
137
108
|
signing_key:
|
138
109
|
specification_version: 3
|
139
110
|
summary: A gem allowing a active_record model to act_as_list.
|
140
|
-
test_files:
|
111
|
+
test_files:
|
141
112
|
- test/helper.rb
|
113
|
+
- test/shared.rb
|
114
|
+
- test/shared_array_scope_list.rb
|
115
|
+
- test/shared_list.rb
|
116
|
+
- test/shared_list_sub.rb
|
117
|
+
- test/shared_zero_based.rb
|
142
118
|
- test/test_list.rb
|