acts_as_list 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -2
- data/Appraisals +11 -0
- data/Gemfile +9 -8
- data/Rakefile +16 -17
- data/acts_as_list.gemspec +18 -19
- data/gemfiles/rails_3_2.gemfile +21 -0
- data/gemfiles/rails_3_2.gemfile.lock +49 -0
- data/gemfiles/rails_4_1.gemfile +21 -0
- data/gemfiles/rails_4_1.gemfile.lock +262 -0
- data/gemfiles/rails_4_2.gemfile +21 -0
- data/gemfiles/rails_4_2.gemfile.lock +53 -0
- data/init.rb +1 -1
- data/lib/acts_as_list.rb +2 -4
- data/lib/acts_as_list/active_record/acts/list.rb +1 -1
- data/lib/acts_as_list/version.rb +1 -1
- data/test/helper.rb +5 -5
- data/test/shared_list_sub.rb +2 -2
- data/test/test_list.rb +8 -4
- metadata +29 -17
- checksums.yaml +0 -7
- data/gemfiles/rails3/Gemfile +0 -21
- data/gemfiles/rails4/Gemfile +0 -21
data/.travis.yml
CHANGED
data/Appraisals
ADDED
data/Gemfile
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
gem
|
4
|
-
gem
|
3
|
+
gem "sqlite3", platforms: [:ruby]
|
4
|
+
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
|
5
5
|
|
6
6
|
platforms :rbx do
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
7
|
+
gem "rubysl", "~> 2.0"
|
8
|
+
gem "rubinius-developer_tools"
|
9
|
+
gem "rubysl-test-unit"
|
10
10
|
end
|
11
11
|
|
12
|
-
# Specify your gem
|
12
|
+
# Specify your gem"s dependencies in acts_as_list-rails3.gemspec
|
13
13
|
gemspec
|
14
14
|
|
15
|
-
gem
|
15
|
+
gem "rake"
|
16
|
+
gem "appraisal"
|
16
17
|
|
17
18
|
group :test do
|
18
|
-
gem
|
19
|
+
gem "minitest"
|
19
20
|
end
|
data/Rakefile
CHANGED
@@ -1,35 +1,34 @@
|
|
1
|
-
require
|
1
|
+
require "rubygems"
|
2
|
+
require "bundler/setup"
|
2
3
|
Bundler::GemHelper.install_tasks
|
3
4
|
|
4
|
-
|
5
|
-
require 'rake/testtask'
|
5
|
+
require "rake/testtask"
|
6
6
|
|
7
|
-
# Run the test with
|
8
|
-
desc
|
9
|
-
task :
|
7
|
+
# Run the test with "rake" or "rake test"
|
8
|
+
desc "Default: run acts_as_list unit tests."
|
9
|
+
task default: :test
|
10
10
|
|
11
|
-
desc
|
11
|
+
desc "Test the acts_as_list plugin."
|
12
12
|
Rake::TestTask.new(:test) do |t|
|
13
|
-
t.libs <<
|
14
|
-
t.pattern =
|
13
|
+
t.libs << "lib" << "test"
|
14
|
+
t.pattern = "test/**/test_*.rb"
|
15
15
|
t.verbose = false
|
16
16
|
end
|
17
17
|
|
18
18
|
begin
|
19
19
|
# Run the rdoc task to generate rdocs for this gem
|
20
|
-
require
|
20
|
+
require "rdoc/task"
|
21
21
|
RDoc::Task.new do |rdoc|
|
22
22
|
require "acts_as_list/version"
|
23
23
|
version = ActiveRecord::Acts::List::VERSION
|
24
24
|
|
25
|
-
rdoc.rdoc_dir =
|
26
|
-
rdoc.title = "acts_as_list
|
27
|
-
rdoc.rdoc_files.include(
|
28
|
-
rdoc.rdoc_files.include(
|
25
|
+
rdoc.rdoc_dir = "rdoc"
|
26
|
+
rdoc.title = "acts_as_list #{version}"
|
27
|
+
rdoc.rdoc_files.include("README*")
|
28
|
+
rdoc.rdoc_files.include("lib/**/*.rb")
|
29
29
|
end
|
30
30
|
rescue LoadError
|
31
|
-
puts
|
31
|
+
puts "RDocTask is not supported on this platform."
|
32
32
|
rescue StandardError
|
33
|
-
puts
|
33
|
+
puts "RDocTask is not supported on this platform."
|
34
34
|
end
|
35
|
-
|
data/acts_as_list.gemspec
CHANGED
@@ -1,30 +1,29 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path(
|
3
|
-
require
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "acts_as_list/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
|
7
6
|
# Description Meta...
|
8
|
-
s.name
|
9
|
-
s.version
|
10
|
-
s.platform
|
11
|
-
s.authors
|
12
|
-
s.email
|
13
|
-
s.homepage
|
14
|
-
s.summary
|
15
|
-
s.description
|
16
|
-
s.license
|
17
|
-
s.rubyforge_project
|
18
|
-
s.required_ruby_version =
|
7
|
+
s.name = "acts_as_list"
|
8
|
+
s.version = ActiveRecord::Acts::List::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = ["David Heinemeier Hansson", "Swanand Pagnis", "Quinn Chaffee"]
|
11
|
+
s.email = ["swanand.pagnis@gmail.com"]
|
12
|
+
s.homepage = "http://github.com/swanandp/acts_as_list"
|
13
|
+
s.summary = "A gem adding sorting, reordering capabilities to an active_record model, allowing it to act as a list"
|
14
|
+
s.description = 'This "acts_as" extension provides the capabilities for sorting and reordering a number of objects in a list. The class that has this specified needs to have a "position" column defined as an integer on the mapped database table.'
|
15
|
+
s.license = "MIT"
|
16
|
+
s.rubyforge_project = "acts_as_list"
|
17
|
+
s.required_ruby_version = ">= 1.9.2"
|
19
18
|
|
20
19
|
# Load Paths...
|
21
|
-
s.files
|
22
|
-
s.test_files
|
23
|
-
s.executables
|
24
|
-
s.require_paths
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
23
|
+
s.require_paths = ["lib"]
|
25
24
|
|
26
25
|
|
27
|
-
# Dependencies (installed via
|
26
|
+
# Dependencies (installed via "bundle install")
|
28
27
|
s.add_dependency("activerecord", [">= 3.0"])
|
29
28
|
s.add_development_dependency("bundler", [">= 1.0.0"])
|
30
29
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "sqlite3", :platforms => [:ruby]
|
6
|
+
gem "activerecord-jdbcsqlite3-adapter", :platforms => [:jruby]
|
7
|
+
gem "rake"
|
8
|
+
gem "appraisal"
|
9
|
+
gem "activerecord", "3.2.21"
|
10
|
+
|
11
|
+
group :test do
|
12
|
+
gem "minitest"
|
13
|
+
end
|
14
|
+
|
15
|
+
platforms :rbx do
|
16
|
+
gem "rubysl", "~> 2.0"
|
17
|
+
gem "rubinius-developer_tools"
|
18
|
+
gem "rubysl-test-unit"
|
19
|
+
end
|
20
|
+
|
21
|
+
gemspec :path => "../"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
acts_as_list (0.6.0)
|
5
|
+
activerecord (>= 3.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (3.2.21)
|
11
|
+
activesupport (= 3.2.21)
|
12
|
+
builder (~> 3.0.0)
|
13
|
+
activerecord (3.2.21)
|
14
|
+
activemodel (= 3.2.21)
|
15
|
+
activesupport (= 3.2.21)
|
16
|
+
arel (~> 3.0.2)
|
17
|
+
tzinfo (~> 0.3.29)
|
18
|
+
activesupport (3.2.21)
|
19
|
+
i18n (~> 0.6, >= 0.6.4)
|
20
|
+
multi_json (~> 1.0)
|
21
|
+
appraisal (1.0.2)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
arel (3.0.3)
|
26
|
+
builder (3.0.4)
|
27
|
+
i18n (0.7.0)
|
28
|
+
minitest (5.5.1)
|
29
|
+
multi_json (1.10.1)
|
30
|
+
rake (10.4.2)
|
31
|
+
sqlite3 (1.3.10)
|
32
|
+
thor (0.19.1)
|
33
|
+
tzinfo (0.3.42)
|
34
|
+
|
35
|
+
PLATFORMS
|
36
|
+
ruby
|
37
|
+
|
38
|
+
DEPENDENCIES
|
39
|
+
activerecord (= 3.2.21)
|
40
|
+
activerecord-jdbcsqlite3-adapter
|
41
|
+
acts_as_list!
|
42
|
+
appraisal
|
43
|
+
bundler (>= 1.0.0)
|
44
|
+
minitest
|
45
|
+
rake
|
46
|
+
rubinius-developer_tools
|
47
|
+
rubysl (~> 2.0)
|
48
|
+
rubysl-test-unit
|
49
|
+
sqlite3
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "sqlite3", :platforms => [:ruby]
|
6
|
+
gem "activerecord-jdbcsqlite3-adapter", :platforms => [:jruby]
|
7
|
+
gem "rake"
|
8
|
+
gem "appraisal"
|
9
|
+
gem "activerecord", "4.1.10"
|
10
|
+
|
11
|
+
group :test do
|
12
|
+
gem "minitest"
|
13
|
+
end
|
14
|
+
|
15
|
+
platforms :rbx do
|
16
|
+
gem "rubysl", "~> 2.0"
|
17
|
+
gem "rubinius-developer_tools"
|
18
|
+
gem "rubysl-test-unit"
|
19
|
+
end
|
20
|
+
|
21
|
+
gemspec :path => "../"
|
@@ -0,0 +1,262 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
acts_as_list (0.6.0)
|
5
|
+
activerecord (>= 3.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (4.1.10)
|
11
|
+
activesupport (= 4.1.10)
|
12
|
+
builder (~> 3.1)
|
13
|
+
activerecord (4.1.10)
|
14
|
+
activemodel (= 4.1.10)
|
15
|
+
activesupport (= 4.1.10)
|
16
|
+
arel (~> 5.0.0)
|
17
|
+
activesupport (4.1.10)
|
18
|
+
i18n (~> 0.6, >= 0.6.9)
|
19
|
+
json (~> 1.7, >= 1.7.7)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
thread_safe (~> 0.1)
|
22
|
+
tzinfo (~> 1.1)
|
23
|
+
appraisal (1.0.3)
|
24
|
+
bundler
|
25
|
+
rake
|
26
|
+
thor (>= 0.14.0)
|
27
|
+
arel (5.0.1.20140414130214)
|
28
|
+
builder (3.2.2)
|
29
|
+
ffi2-generators (0.1.1)
|
30
|
+
i18n (0.7.0)
|
31
|
+
json (1.8.2)
|
32
|
+
minitest (5.5.1)
|
33
|
+
rake (10.4.2)
|
34
|
+
rubinius-coverage (2.0.3)
|
35
|
+
rubinius-debugger (2.2.1)
|
36
|
+
rubinius-developer_tools (2.0.0)
|
37
|
+
rubinius-coverage (~> 2.0)
|
38
|
+
rubinius-debugger (~> 2.0)
|
39
|
+
rubinius-profiler (~> 2.0)
|
40
|
+
rubinius-profiler (2.0.1)
|
41
|
+
rubysl (2.1.0)
|
42
|
+
rubysl-abbrev (~> 2.0)
|
43
|
+
rubysl-base64 (~> 2.0)
|
44
|
+
rubysl-benchmark (~> 2.0)
|
45
|
+
rubysl-bigdecimal (~> 2.0)
|
46
|
+
rubysl-cgi (~> 2.0)
|
47
|
+
rubysl-cgi-session (~> 2.0)
|
48
|
+
rubysl-cmath (~> 2.0)
|
49
|
+
rubysl-complex (~> 2.0)
|
50
|
+
rubysl-continuation (~> 2.0)
|
51
|
+
rubysl-coverage (~> 2.0)
|
52
|
+
rubysl-csv (~> 2.0)
|
53
|
+
rubysl-curses (~> 2.0)
|
54
|
+
rubysl-date (~> 2.0)
|
55
|
+
rubysl-delegate (~> 2.0)
|
56
|
+
rubysl-digest (~> 2.0)
|
57
|
+
rubysl-drb (~> 2.0)
|
58
|
+
rubysl-e2mmap (~> 2.0)
|
59
|
+
rubysl-english (~> 2.0)
|
60
|
+
rubysl-enumerator (~> 2.0)
|
61
|
+
rubysl-erb (~> 2.0)
|
62
|
+
rubysl-etc (~> 2.0)
|
63
|
+
rubysl-expect (~> 2.0)
|
64
|
+
rubysl-fcntl (~> 2.0)
|
65
|
+
rubysl-fiber (~> 2.0)
|
66
|
+
rubysl-fileutils (~> 2.0)
|
67
|
+
rubysl-find (~> 2.0)
|
68
|
+
rubysl-forwardable (~> 2.0)
|
69
|
+
rubysl-getoptlong (~> 2.0)
|
70
|
+
rubysl-gserver (~> 2.0)
|
71
|
+
rubysl-io-console (~> 2.0)
|
72
|
+
rubysl-io-nonblock (~> 2.0)
|
73
|
+
rubysl-io-wait (~> 2.0)
|
74
|
+
rubysl-ipaddr (~> 2.0)
|
75
|
+
rubysl-irb (~> 2.1)
|
76
|
+
rubysl-logger (~> 2.0)
|
77
|
+
rubysl-mathn (~> 2.0)
|
78
|
+
rubysl-matrix (~> 2.0)
|
79
|
+
rubysl-mkmf (~> 2.0)
|
80
|
+
rubysl-monitor (~> 2.0)
|
81
|
+
rubysl-mutex_m (~> 2.0)
|
82
|
+
rubysl-net-ftp (~> 2.0)
|
83
|
+
rubysl-net-http (~> 2.0)
|
84
|
+
rubysl-net-imap (~> 2.0)
|
85
|
+
rubysl-net-pop (~> 2.0)
|
86
|
+
rubysl-net-protocol (~> 2.0)
|
87
|
+
rubysl-net-smtp (~> 2.0)
|
88
|
+
rubysl-net-telnet (~> 2.0)
|
89
|
+
rubysl-nkf (~> 2.0)
|
90
|
+
rubysl-observer (~> 2.0)
|
91
|
+
rubysl-open-uri (~> 2.0)
|
92
|
+
rubysl-open3 (~> 2.0)
|
93
|
+
rubysl-openssl (~> 2.0)
|
94
|
+
rubysl-optparse (~> 2.0)
|
95
|
+
rubysl-ostruct (~> 2.0)
|
96
|
+
rubysl-pathname (~> 2.0)
|
97
|
+
rubysl-prettyprint (~> 2.0)
|
98
|
+
rubysl-prime (~> 2.0)
|
99
|
+
rubysl-profile (~> 2.0)
|
100
|
+
rubysl-profiler (~> 2.0)
|
101
|
+
rubysl-pstore (~> 2.0)
|
102
|
+
rubysl-pty (~> 2.0)
|
103
|
+
rubysl-rational (~> 2.0)
|
104
|
+
rubysl-resolv (~> 2.0)
|
105
|
+
rubysl-rexml (~> 2.0)
|
106
|
+
rubysl-rinda (~> 2.0)
|
107
|
+
rubysl-rss (~> 2.0)
|
108
|
+
rubysl-scanf (~> 2.0)
|
109
|
+
rubysl-securerandom (~> 2.0)
|
110
|
+
rubysl-set (~> 2.0)
|
111
|
+
rubysl-shellwords (~> 2.0)
|
112
|
+
rubysl-singleton (~> 2.0)
|
113
|
+
rubysl-socket (~> 2.0)
|
114
|
+
rubysl-stringio (~> 2.0)
|
115
|
+
rubysl-strscan (~> 2.0)
|
116
|
+
rubysl-sync (~> 2.0)
|
117
|
+
rubysl-syslog (~> 2.0)
|
118
|
+
rubysl-tempfile (~> 2.0)
|
119
|
+
rubysl-thread (~> 2.0)
|
120
|
+
rubysl-thwait (~> 2.0)
|
121
|
+
rubysl-time (~> 2.0)
|
122
|
+
rubysl-timeout (~> 2.0)
|
123
|
+
rubysl-tmpdir (~> 2.0)
|
124
|
+
rubysl-tsort (~> 2.0)
|
125
|
+
rubysl-un (~> 2.0)
|
126
|
+
rubysl-uri (~> 2.0)
|
127
|
+
rubysl-weakref (~> 2.0)
|
128
|
+
rubysl-webrick (~> 2.0)
|
129
|
+
rubysl-xmlrpc (~> 2.0)
|
130
|
+
rubysl-yaml (~> 2.0)
|
131
|
+
rubysl-zlib (~> 2.0)
|
132
|
+
rubysl-abbrev (2.0.4)
|
133
|
+
rubysl-base64 (2.0.0)
|
134
|
+
rubysl-benchmark (2.0.1)
|
135
|
+
rubysl-bigdecimal (2.0.2)
|
136
|
+
rubysl-cgi (2.0.1)
|
137
|
+
rubysl-cgi-session (2.0.1)
|
138
|
+
rubysl-cmath (2.0.0)
|
139
|
+
rubysl-complex (2.0.0)
|
140
|
+
rubysl-continuation (2.0.0)
|
141
|
+
rubysl-coverage (2.0.3)
|
142
|
+
rubysl-csv (2.0.2)
|
143
|
+
rubysl-english (~> 2.0)
|
144
|
+
rubysl-curses (2.0.1)
|
145
|
+
rubysl-date (2.0.9)
|
146
|
+
rubysl-delegate (2.0.1)
|
147
|
+
rubysl-digest (2.0.3)
|
148
|
+
rubysl-drb (2.0.1)
|
149
|
+
rubysl-e2mmap (2.0.0)
|
150
|
+
rubysl-english (2.0.0)
|
151
|
+
rubysl-enumerator (2.0.0)
|
152
|
+
rubysl-erb (2.0.2)
|
153
|
+
rubysl-etc (2.0.3)
|
154
|
+
ffi2-generators (~> 0.1)
|
155
|
+
rubysl-expect (2.0.0)
|
156
|
+
rubysl-fcntl (2.0.4)
|
157
|
+
ffi2-generators (~> 0.1)
|
158
|
+
rubysl-fiber (2.0.0)
|
159
|
+
rubysl-fileutils (2.0.3)
|
160
|
+
rubysl-find (2.0.1)
|
161
|
+
rubysl-forwardable (2.0.1)
|
162
|
+
rubysl-getoptlong (2.0.0)
|
163
|
+
rubysl-gserver (2.0.0)
|
164
|
+
rubysl-socket (~> 2.0)
|
165
|
+
rubysl-thread (~> 2.0)
|
166
|
+
rubysl-io-console (2.0.0)
|
167
|
+
rubysl-io-nonblock (2.0.0)
|
168
|
+
rubysl-io-wait (2.0.0)
|
169
|
+
rubysl-ipaddr (2.0.0)
|
170
|
+
rubysl-irb (2.1.1)
|
171
|
+
rubysl-e2mmap (~> 2.0)
|
172
|
+
rubysl-mathn (~> 2.0)
|
173
|
+
rubysl-thread (~> 2.0)
|
174
|
+
rubysl-logger (2.1.0)
|
175
|
+
rubysl-mathn (2.0.0)
|
176
|
+
rubysl-matrix (2.1.0)
|
177
|
+
rubysl-e2mmap (~> 2.0)
|
178
|
+
rubysl-mkmf (2.0.1)
|
179
|
+
rubysl-fileutils (~> 2.0)
|
180
|
+
rubysl-shellwords (~> 2.0)
|
181
|
+
rubysl-monitor (2.0.0)
|
182
|
+
rubysl-mutex_m (2.0.0)
|
183
|
+
rubysl-net-ftp (2.0.1)
|
184
|
+
rubysl-net-http (2.0.4)
|
185
|
+
rubysl-cgi (~> 2.0)
|
186
|
+
rubysl-erb (~> 2.0)
|
187
|
+
rubysl-singleton (~> 2.0)
|
188
|
+
rubysl-net-imap (2.0.1)
|
189
|
+
rubysl-net-pop (2.0.1)
|
190
|
+
rubysl-net-protocol (2.0.1)
|
191
|
+
rubysl-net-smtp (2.0.1)
|
192
|
+
rubysl-net-telnet (2.0.0)
|
193
|
+
rubysl-nkf (2.0.1)
|
194
|
+
rubysl-observer (2.0.0)
|
195
|
+
rubysl-open-uri (2.0.0)
|
196
|
+
rubysl-open3 (2.0.0)
|
197
|
+
rubysl-openssl (2.2.1)
|
198
|
+
rubysl-optparse (2.0.1)
|
199
|
+
rubysl-shellwords (~> 2.0)
|
200
|
+
rubysl-ostruct (2.0.4)
|
201
|
+
rubysl-pathname (2.1.0)
|
202
|
+
rubysl-prettyprint (2.0.3)
|
203
|
+
rubysl-prime (2.0.1)
|
204
|
+
rubysl-profile (2.0.0)
|
205
|
+
rubysl-profiler (2.0.1)
|
206
|
+
rubysl-pstore (2.0.0)
|
207
|
+
rubysl-pty (2.0.3)
|
208
|
+
rubysl-rational (2.0.1)
|
209
|
+
rubysl-resolv (2.1.2)
|
210
|
+
rubysl-rexml (2.0.4)
|
211
|
+
rubysl-rinda (2.0.1)
|
212
|
+
rubysl-rss (2.0.0)
|
213
|
+
rubysl-scanf (2.0.0)
|
214
|
+
rubysl-securerandom (2.0.0)
|
215
|
+
rubysl-set (2.0.1)
|
216
|
+
rubysl-shellwords (2.0.0)
|
217
|
+
rubysl-singleton (2.0.0)
|
218
|
+
rubysl-socket (2.0.1)
|
219
|
+
rubysl-stringio (2.0.0)
|
220
|
+
rubysl-strscan (2.0.0)
|
221
|
+
rubysl-sync (2.0.0)
|
222
|
+
rubysl-syslog (2.1.0)
|
223
|
+
ffi2-generators (~> 0.1)
|
224
|
+
rubysl-tempfile (2.0.1)
|
225
|
+
rubysl-test-unit (2.0.2)
|
226
|
+
minitest
|
227
|
+
rubysl-thread (2.0.3)
|
228
|
+
rubysl-thwait (2.0.0)
|
229
|
+
rubysl-time (2.0.3)
|
230
|
+
rubysl-timeout (2.0.0)
|
231
|
+
rubysl-tmpdir (2.0.1)
|
232
|
+
rubysl-tsort (2.0.1)
|
233
|
+
rubysl-un (2.0.0)
|
234
|
+
rubysl-fileutils (~> 2.0)
|
235
|
+
rubysl-optparse (~> 2.0)
|
236
|
+
rubysl-uri (2.0.0)
|
237
|
+
rubysl-weakref (2.0.0)
|
238
|
+
rubysl-webrick (2.0.0)
|
239
|
+
rubysl-xmlrpc (2.0.0)
|
240
|
+
rubysl-yaml (2.1.0)
|
241
|
+
rubysl-zlib (2.0.1)
|
242
|
+
sqlite3 (1.3.10)
|
243
|
+
thor (0.19.1)
|
244
|
+
thread_safe (0.3.5)
|
245
|
+
tzinfo (1.2.2)
|
246
|
+
thread_safe (~> 0.1)
|
247
|
+
|
248
|
+
PLATFORMS
|
249
|
+
ruby
|
250
|
+
|
251
|
+
DEPENDENCIES
|
252
|
+
activerecord (= 4.1.10)
|
253
|
+
activerecord-jdbcsqlite3-adapter
|
254
|
+
acts_as_list!
|
255
|
+
appraisal
|
256
|
+
bundler (>= 1.0.0)
|
257
|
+
minitest
|
258
|
+
rake
|
259
|
+
rubinius-developer_tools
|
260
|
+
rubysl (~> 2.0)
|
261
|
+
rubysl-test-unit
|
262
|
+
sqlite3
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "sqlite3", :platforms => [:ruby]
|
6
|
+
gem "activerecord-jdbcsqlite3-adapter", :platforms => [:jruby]
|
7
|
+
gem "rake"
|
8
|
+
gem "appraisal"
|
9
|
+
gem "activerecord", "4.2.1"
|
10
|
+
|
11
|
+
group :test do
|
12
|
+
gem "minitest"
|
13
|
+
end
|
14
|
+
|
15
|
+
platforms :rbx do
|
16
|
+
gem "rubysl", "~> 2.0"
|
17
|
+
gem "rubinius-developer_tools"
|
18
|
+
gem "rubysl-test-unit"
|
19
|
+
end
|
20
|
+
|
21
|
+
gemspec :path => "../"
|
@@ -0,0 +1,53 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
acts_as_list (0.6.0)
|
5
|
+
activerecord (>= 3.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (4.2.1)
|
11
|
+
activesupport (= 4.2.1)
|
12
|
+
builder (~> 3.1)
|
13
|
+
activerecord (4.2.1)
|
14
|
+
activemodel (= 4.2.1)
|
15
|
+
activesupport (= 4.2.1)
|
16
|
+
arel (~> 6.0)
|
17
|
+
activesupport (4.2.1)
|
18
|
+
i18n (~> 0.7)
|
19
|
+
json (~> 1.7, >= 1.7.7)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
+
tzinfo (~> 1.1)
|
23
|
+
appraisal (1.0.3)
|
24
|
+
bundler
|
25
|
+
rake
|
26
|
+
thor (>= 0.14.0)
|
27
|
+
arel (6.0.0)
|
28
|
+
builder (3.2.2)
|
29
|
+
i18n (0.7.0)
|
30
|
+
json (1.8.2)
|
31
|
+
minitest (5.5.1)
|
32
|
+
rake (10.4.2)
|
33
|
+
sqlite3 (1.3.10)
|
34
|
+
thor (0.19.1)
|
35
|
+
thread_safe (0.3.5)
|
36
|
+
tzinfo (1.2.2)
|
37
|
+
thread_safe (~> 0.1)
|
38
|
+
|
39
|
+
PLATFORMS
|
40
|
+
ruby
|
41
|
+
|
42
|
+
DEPENDENCIES
|
43
|
+
activerecord (= 4.2.1)
|
44
|
+
activerecord-jdbcsqlite3-adapter
|
45
|
+
acts_as_list!
|
46
|
+
appraisal
|
47
|
+
bundler (>= 1.0.0)
|
48
|
+
minitest
|
49
|
+
rake
|
50
|
+
rubinius-developer_tools
|
51
|
+
rubysl (~> 2.0)
|
52
|
+
rubysl-test-unit
|
53
|
+
sqlite3
|
data/init.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
$:.unshift "#{File.dirname(__FILE__)}/lib"
|
2
|
-
require
|
2
|
+
require "acts_as_list"
|
data/lib/acts_as_list.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
require 'acts_as_list/active_record/acts/list'
|
2
2
|
|
3
3
|
module ActsAsList
|
4
|
-
|
5
|
-
require 'rails'
|
6
|
-
|
4
|
+
if defined?(Rails::Railtie)
|
7
5
|
class Railtie < Rails::Railtie
|
8
6
|
initializer 'acts_as_list.insert_into_active_record' do
|
9
7
|
ActiveSupport.on_load :active_record do
|
@@ -11,7 +9,7 @@ module ActsAsList
|
|
11
9
|
end
|
12
10
|
end
|
13
11
|
end
|
14
|
-
|
12
|
+
else
|
15
13
|
ActiveRecord::Base.send(:include, ActiveRecord::Acts::List) if defined?(ActiveRecord)
|
16
14
|
end
|
17
15
|
end
|
data/lib/acts_as_list/version.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "rubygems"
|
2
|
+
require "bundler/setup"
|
3
3
|
begin
|
4
4
|
Bundler.setup(:default, :development)
|
5
5
|
rescue Bundler::BundlerError => e
|
@@ -7,8 +7,8 @@ rescue Bundler::BundlerError => e
|
|
7
7
|
$stderr.puts "Run `bundle install` to install missing gems"
|
8
8
|
exit e.status_code
|
9
9
|
end
|
10
|
-
require
|
11
|
-
require
|
10
|
+
require "active_record"
|
11
|
+
require "minitest/autorun"
|
12
12
|
require "#{File.dirname(__FILE__)}/../init"
|
13
13
|
|
14
|
-
require
|
14
|
+
require "shared"
|
data/test/shared_list_sub.rb
CHANGED
@@ -120,8 +120,8 @@ module Shared
|
|
120
120
|
end
|
121
121
|
|
122
122
|
def test_acts_as_list_class
|
123
|
-
assert_equal
|
124
|
-
assert_equal
|
123
|
+
assert_equal TheBaseClass, TheBaseSubclass.new.acts_as_list_class
|
124
|
+
assert_equal TheAbstractSubclass, TheAbstractSubclass.new.acts_as_list_class
|
125
125
|
end
|
126
126
|
end
|
127
127
|
end
|
data/test/test_list.rb
CHANGED
@@ -109,17 +109,21 @@ class NoAdditionMixin < Mixin
|
|
109
109
|
acts_as_list column: "pos", add_new_at: nil, scope: :parent_id
|
110
110
|
end
|
111
111
|
|
112
|
-
class
|
112
|
+
class TheAbstractClass < ActiveRecord::Base
|
113
113
|
self.abstract_class = true
|
114
|
+
self.table_name = 'mixins'
|
115
|
+
end
|
116
|
+
|
117
|
+
class TheAbstractSubclass < TheAbstractClass
|
114
118
|
acts_as_list column: "pos", scope: :parent
|
115
119
|
end
|
116
120
|
|
117
|
-
class
|
121
|
+
class TheBaseClass < ActiveRecord::Base
|
118
122
|
self.table_name = 'mixins'
|
123
|
+
acts_as_list column: "pos", scope: :parent
|
119
124
|
end
|
120
125
|
|
121
|
-
class
|
122
|
-
self.table_name = 'mixins'
|
126
|
+
class TheBaseSubclass < TheBaseClass
|
123
127
|
end
|
124
128
|
|
125
129
|
class ActsAsListTestCase < Minitest::Test
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- David Heinemeier Hansson
|
@@ -10,34 +11,38 @@ authors:
|
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: activerecord
|
17
18
|
requirement: !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
18
20
|
requirements:
|
19
|
-
- -
|
21
|
+
- - ! '>='
|
20
22
|
- !ruby/object:Gem::Version
|
21
23
|
version: '3.0'
|
22
24
|
type: :runtime
|
23
25
|
prerelease: false
|
24
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
25
28
|
requirements:
|
26
|
-
- -
|
29
|
+
- - ! '>='
|
27
30
|
- !ruby/object:Gem::Version
|
28
31
|
version: '3.0'
|
29
32
|
- !ruby/object:Gem::Dependency
|
30
33
|
name: bundler
|
31
34
|
requirement: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
32
36
|
requirements:
|
33
|
-
- -
|
37
|
+
- - ! '>='
|
34
38
|
- !ruby/object:Gem::Version
|
35
39
|
version: 1.0.0
|
36
40
|
type: :development
|
37
41
|
prerelease: false
|
38
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
39
44
|
requirements:
|
40
|
-
- -
|
45
|
+
- - ! '>='
|
41
46
|
- !ruby/object:Gem::Version
|
42
47
|
version: 1.0.0
|
43
48
|
description: This "acts_as" extension provides the capabilities for sorting and reordering
|
@@ -49,16 +54,21 @@ executables: []
|
|
49
54
|
extensions: []
|
50
55
|
extra_rdoc_files: []
|
51
56
|
files:
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
57
|
+
- .gemtest
|
58
|
+
- .gitignore
|
59
|
+
- .travis.yml
|
60
|
+
- Appraisals
|
55
61
|
- Gemfile
|
56
62
|
- MIT-LICENSE
|
57
63
|
- README.md
|
58
64
|
- Rakefile
|
59
65
|
- acts_as_list.gemspec
|
60
|
-
- gemfiles/
|
61
|
-
- gemfiles/
|
66
|
+
- gemfiles/rails_3_2.gemfile
|
67
|
+
- gemfiles/rails_3_2.gemfile.lock
|
68
|
+
- gemfiles/rails_4_1.gemfile
|
69
|
+
- gemfiles/rails_4_1.gemfile.lock
|
70
|
+
- gemfiles/rails_4_2.gemfile
|
71
|
+
- gemfiles/rails_4_2.gemfile.lock
|
62
72
|
- init.rb
|
63
73
|
- lib/acts_as_list.rb
|
64
74
|
- lib/acts_as_list/active_record/acts/list.rb
|
@@ -75,27 +85,29 @@ files:
|
|
75
85
|
homepage: http://github.com/swanandp/acts_as_list
|
76
86
|
licenses:
|
77
87
|
- MIT
|
78
|
-
metadata: {}
|
79
88
|
post_install_message:
|
80
89
|
rdoc_options: []
|
81
90
|
require_paths:
|
82
91
|
- lib
|
83
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
84
94
|
requirements:
|
85
|
-
- -
|
95
|
+
- - ! '>='
|
86
96
|
- !ruby/object:Gem::Version
|
87
97
|
version: 1.9.2
|
88
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
89
100
|
requirements:
|
90
|
-
- -
|
101
|
+
- - ! '>='
|
91
102
|
- !ruby/object:Gem::Version
|
92
103
|
version: '0'
|
93
104
|
requirements: []
|
94
105
|
rubyforge_project: acts_as_list
|
95
|
-
rubygems_version:
|
106
|
+
rubygems_version: 1.8.24
|
96
107
|
signing_key:
|
97
|
-
specification_version:
|
98
|
-
summary: A gem
|
108
|
+
specification_version: 3
|
109
|
+
summary: A gem adding sorting, reordering capabilities to an active_record model,
|
110
|
+
allowing it to act as a list
|
99
111
|
test_files:
|
100
112
|
- test/helper.rb
|
101
113
|
- test/shared.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: bfacc8a69876f7c5ccd4935f23c19c536f0d22a6
|
4
|
-
data.tar.gz: 2bc0fca1b08221c3a200a8f9da5bf6576583dd7a
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 73e20a1ce4c86cedd029f7b9b661294c64ce44befcc578be2b9ff7e48a39aaad23d2d0b83991e327da4ba640fdaa90da02ad8a5ab4f39b2220290c08144eeaa2
|
7
|
-
data.tar.gz: f62dbda7b65bd7e57a355ecb0774382acd0250d299096a688c8e647de3d20e9e8f97b3d08b73c451971da54d8fc972b59b4da9c40cbe7778cb76057a77f01a8a
|
data/gemfiles/rails3/Gemfile
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gem 'sqlite3', :platforms => [:ruby]
|
4
|
-
gem 'activerecord-jdbcsqlite3-adapter', :platforms => [:jruby]
|
5
|
-
|
6
|
-
platforms :rbx do
|
7
|
-
gem 'rubysl', '~> 2.0'
|
8
|
-
gem 'rubinius-developer_tools'
|
9
|
-
gem 'rubysl-test-unit'
|
10
|
-
end
|
11
|
-
|
12
|
-
gem 'activerecord', '>= 3.0', '< 4'
|
13
|
-
|
14
|
-
# Specify your gem's dependencies in acts_as_list.gemspec
|
15
|
-
gemspec :path => File.join('..', '..')
|
16
|
-
|
17
|
-
gem 'rake'
|
18
|
-
|
19
|
-
group :test do
|
20
|
-
gem 'minitest', '~> 5'
|
21
|
-
end
|
data/gemfiles/rails4/Gemfile
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gem 'sqlite3', :platforms => [:ruby]
|
4
|
-
gem 'activerecord-jdbcsqlite3-adapter', :platforms => [:jruby]
|
5
|
-
|
6
|
-
platforms :rbx do
|
7
|
-
gem 'rubysl', '~> 2.0'
|
8
|
-
gem 'rubinius-developer_tools'
|
9
|
-
gem 'rubysl-test-unit'
|
10
|
-
end
|
11
|
-
|
12
|
-
gem 'activerecord', '>= 4.0.0', '< 5'
|
13
|
-
|
14
|
-
# Specify your gem's dependencies in acts_as_list.gemspec
|
15
|
-
gemspec :path => File.join('..', '..')
|
16
|
-
|
17
|
-
gem 'rake'
|
18
|
-
|
19
|
-
group :test do
|
20
|
-
gem 'minitest', '~> 5'
|
21
|
-
end
|