liszt 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -6
- data/Gemfile +2 -3
- data/Rakefile +1 -32
- data/lib/liszt/redis_list.rb +9 -5
- data/lib/liszt/version.rb +1 -1
- data/lib/liszt.rb +74 -47
- data/liszt.gemspec +8 -4
- data/test/fixtures/groups.yml +14 -0
- data/test/{dummy_2.3/test/fixtures → fixtures}/people.yml +0 -0
- data/test/liszt_test.rb +174 -37
- data/test/redis_list_test.rb +36 -37
- data/test/test_helper.rb +91 -20
- metadata +86 -150
- data/Gemfile.lock +0 -104
- data/Gemfile.rails2 +0 -8
- data/Gemfile.rails2.lock +0 -45
- data/test/dummy_2.3/Rakefile +0 -10
- data/test/dummy_2.3/app/controllers/application_controller.rb +0 -10
- data/test/dummy_2.3/app/models/group.rb +0 -2
- data/test/dummy_2.3/app/models/person.rb +0 -3
- data/test/dummy_2.3/config/boot.rb +0 -114
- data/test/dummy_2.3/config/database.yml +0 -22
- data/test/dummy_2.3/config/environment.rb +0 -43
- data/test/dummy_2.3/config/environments/development.rb +0 -17
- data/test/dummy_2.3/config/environments/test.rb +0 -28
- data/test/dummy_2.3/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy_2.3/config/initializers/bundler.rb +0 -4
- data/test/dummy_2.3/config/initializers/cookie_verification_secret.rb +0 -7
- data/test/dummy_2.3/config/initializers/inflections.rb +0 -10
- data/test/dummy_2.3/config/initializers/mime_types.rb +0 -5
- data/test/dummy_2.3/config/initializers/new_rails_defaults.rb +0 -21
- data/test/dummy_2.3/config/initializers/session_store.rb +0 -15
- data/test/dummy_2.3/config/locales/en.yml +0 -5
- data/test/dummy_2.3/config/routes.rb +0 -43
- data/test/dummy_2.3/db/migrate/20110922194432_create_people.rb +0 -15
- data/test/dummy_2.3/db/migrate/20110922194512_create_groups.rb +0 -12
- data/test/dummy_2.3/db/schema.rb +0 -27
- data/test/dummy_2.3/db/seeds.rb +0 -7
- data/test/dummy_2.3/script/about +0 -4
- data/test/dummy_2.3/script/console +0 -3
- data/test/dummy_2.3/script/dbconsole +0 -3
- data/test/dummy_2.3/script/destroy +0 -3
- data/test/dummy_2.3/script/generate +0 -3
- data/test/dummy_2.3/script/performance/benchmarker +0 -3
- data/test/dummy_2.3/script/performance/profiler +0 -3
- data/test/dummy_2.3/script/plugin +0 -3
- data/test/dummy_2.3/script/runner +0 -3
- data/test/dummy_2.3/script/server +0 -3
- data/test/dummy_2.3/test/fixtures/groups.yml +0 -12
- data/test/dummy_3.1/Rakefile +0 -7
- data/test/dummy_3.1/app/controllers/application_controller.rb +0 -3
- data/test/dummy_3.1/app/models/.gitkeep +0 -0
- data/test/dummy_3.1/app/models/group.rb +0 -2
- data/test/dummy_3.1/app/models/person.rb +0 -3
- data/test/dummy_3.1/config/application.rb +0 -45
- data/test/dummy_3.1/config/boot.rb +0 -10
- data/test/dummy_3.1/config/database.yml +0 -25
- data/test/dummy_3.1/config/environment.rb +0 -5
- data/test/dummy_3.1/config/environments/development.rb +0 -27
- data/test/dummy_3.1/config/environments/test.rb +0 -39
- data/test/dummy_3.1/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy_3.1/config/initializers/inflections.rb +0 -10
- data/test/dummy_3.1/config/initializers/mime_types.rb +0 -5
- data/test/dummy_3.1/config/initializers/secret_token.rb +0 -7
- data/test/dummy_3.1/config/initializers/session_store.rb +0 -8
- data/test/dummy_3.1/config/initializers/wrap_parameters.rb +0 -12
- data/test/dummy_3.1/config/locales/en.yml +0 -5
- data/test/dummy_3.1/config/routes.rb +0 -58
- data/test/dummy_3.1/config.ru +0 -4
- data/test/dummy_3.1/db/migrate/20110922194058_create_people.rb +0 -11
- data/test/dummy_3.1/db/migrate/20110922194126_create_groups.rb +0 -8
- data/test/dummy_3.1/db/schema.rb +0 -29
- data/test/dummy_3.1/lib/assets/.gitkeep +0 -0
- data/test/dummy_3.1/log/.gitkeep +0 -0
- data/test/dummy_3.1/script/rails +0 -6
- data/test/dummy_3.1/test/fixtures/groups.yml +0 -12
- data/test/dummy_3.1/test/fixtures/people.yml +0 -59
data/test/redis_list_test.rb
CHANGED
@@ -1,168 +1,167 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
describe Liszt::RedisList do
|
4
|
+
describe "the Redis list wrapper" do
|
5
|
+
before do
|
6
6
|
Liszt.redis.flushall
|
7
7
|
@list = Liszt::RedisList.new('liszt:test')
|
8
8
|
end
|
9
9
|
|
10
|
-
|
10
|
+
it "clears and populate successfully" do
|
11
11
|
@list.clear_and_populate!([1,2,3])
|
12
12
|
@list.clear_and_populate!([4,5,6])
|
13
13
|
assert_equal @list.to_a, [4,5,6]
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
it "isn't initialized before it's initialized" do
|
17
17
|
assert !@list.initialized?
|
18
18
|
end
|
19
19
|
|
20
|
-
|
20
|
+
it "is initialized once it's initialized" do
|
21
21
|
@list.clear_and_populate!([1])
|
22
22
|
assert @list.initialized?
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
describe "given a list with some ids" do
|
26
|
+
before do
|
27
27
|
@list.clear_and_populate!([1,5,4,2])
|
28
28
|
end
|
29
29
|
|
30
|
-
|
30
|
+
it "knows if the list includes an id" do
|
31
31
|
assert @list.include?(4)
|
32
32
|
assert !@list.include?(3)
|
33
33
|
end
|
34
34
|
|
35
|
-
|
35
|
+
it "knows the index of an id" do
|
36
36
|
assert_equal @list.index(1), 0
|
37
37
|
assert_equal @list.index(4), 2
|
38
38
|
assert_equal @list.index(2), 3
|
39
39
|
end
|
40
40
|
|
41
|
-
|
41
|
+
it "unshifts onto the front of the list" do
|
42
42
|
@list.unshift(8)
|
43
43
|
assert_equal @list.to_a, [8,1,5,4,2]
|
44
44
|
end
|
45
45
|
|
46
|
-
|
46
|
+
it "doesn't unshift if already present" do
|
47
47
|
@list.unshift(5)
|
48
48
|
assert_equal @list.to_a, [1,5,4,2]
|
49
49
|
end
|
50
50
|
|
51
|
-
|
51
|
+
it "unshift!s if already present" do
|
52
52
|
@list.unshift!(5)
|
53
53
|
assert_equal @list.to_a, [5,1,5,4,2]
|
54
54
|
end
|
55
55
|
|
56
|
-
|
56
|
+
it "pushes onto the end of the list" do
|
57
57
|
@list.push(8)
|
58
58
|
assert_equal @list.to_a, [1,5,4,2,8]
|
59
59
|
end
|
60
60
|
|
61
|
-
|
61
|
+
it "doesn't push if already present" do
|
62
62
|
@list.push(5)
|
63
63
|
assert_equal @list.to_a, [1,5,4,2]
|
64
64
|
end
|
65
65
|
|
66
|
-
|
66
|
+
it "push!es if already present" do
|
67
67
|
@list.push!(5)
|
68
68
|
assert_equal @list.to_a, [1,5,4,2,5]
|
69
69
|
end
|
70
70
|
|
71
|
-
|
71
|
+
it "removes an id" do
|
72
72
|
@list.remove(5)
|
73
73
|
assert_equal @list.to_a, [1,4,2]
|
74
74
|
end
|
75
75
|
|
76
|
-
|
76
|
+
it "clears all ids without un-initializing" do
|
77
77
|
@list.clear
|
78
78
|
assert @list.initialized?
|
79
79
|
assert_equal @list.to_a, []
|
80
80
|
end
|
81
81
|
|
82
|
-
|
82
|
+
it "knows the length of the list" do
|
83
83
|
assert_equal @list.length, 4
|
84
84
|
end
|
85
85
|
|
86
|
-
|
86
|
+
it "returns nil for length if uninitialized" do
|
87
87
|
@list.uninitialize
|
88
88
|
assert_nil @list.length
|
89
89
|
end
|
90
90
|
|
91
|
-
|
91
|
+
it "returns all ids (and no marker) for .all/.to_a" do
|
92
92
|
assert_equal @list.all, [1,5,4,2]
|
93
93
|
end
|
94
94
|
|
95
|
-
|
95
|
+
it "moves an id down from the top" do
|
96
96
|
@list.move_down(1)
|
97
97
|
assert_equal @list.to_a, [5,1,4,2]
|
98
98
|
end
|
99
99
|
|
100
|
-
|
100
|
+
it "moves an id down from the middle" do
|
101
101
|
@list.move_down(4)
|
102
102
|
assert_equal @list.to_a, [1,5,2,4]
|
103
103
|
end
|
104
104
|
|
105
|
-
|
105
|
+
it "doesn't move an id down from the bottom" do
|
106
106
|
@list.move_down(2)
|
107
107
|
assert_equal @list.to_a, [1,5,4,2]
|
108
108
|
end
|
109
109
|
|
110
|
-
|
110
|
+
it "doesn't move an id up from the top" do
|
111
111
|
@list.move_up(1)
|
112
112
|
assert_equal @list.to_a, [1,5,4,2]
|
113
113
|
end
|
114
114
|
|
115
|
-
|
115
|
+
it "moves an id up from the middle" do
|
116
116
|
@list.move_up(4)
|
117
117
|
assert_equal @list.to_a, [1,4,5,2]
|
118
118
|
end
|
119
119
|
|
120
|
-
|
120
|
+
it "moves an id up from the bottom" do
|
121
121
|
@list.move_up(2)
|
122
122
|
assert_equal @list.to_a, [1,5,2,4]
|
123
123
|
end
|
124
124
|
|
125
|
-
|
125
|
+
it "moves an id to the top from the top" do
|
126
126
|
@list.move_to_top(1)
|
127
127
|
assert_equal @list.to_a, [1,5,4,2]
|
128
128
|
end
|
129
129
|
|
130
|
-
|
130
|
+
it "moves an id to the top" do
|
131
131
|
@list.move_to_top(4)
|
132
132
|
assert_equal @list.to_a, [4,1,5,2]
|
133
133
|
end
|
134
134
|
|
135
|
-
|
135
|
+
it "moves an id to the bottom" do
|
136
136
|
@list.move_to_bottom(4)
|
137
137
|
assert_equal @list.to_a, [1,5,2,4]
|
138
138
|
end
|
139
139
|
|
140
|
-
|
140
|
+
it "doesn't move an id to the bottom from the bottom" do
|
141
141
|
@list.move_to_bottom(2)
|
142
142
|
assert_equal @list.to_a, [1,5,4,2]
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
|
147
|
-
|
146
|
+
describe "locking mechanism" do
|
147
|
+
it "gets an exclusive lock" do
|
148
148
|
assert @list.send(:get_lock)
|
149
149
|
assert !@list.send(:get_lock)
|
150
150
|
@list.send(:release_lock)
|
151
151
|
end
|
152
152
|
|
153
|
-
|
153
|
+
it "releases the lock" do
|
154
154
|
@list.send(:get_lock)
|
155
155
|
@list.send(:release_lock)
|
156
156
|
assert @list.send(:get_lock)
|
157
157
|
@list.send(:release_lock)
|
158
158
|
end
|
159
159
|
|
160
|
-
|
160
|
+
it "times out the lock" do
|
161
161
|
@list.send(:get_lock, 0)
|
162
|
-
sleep(0.
|
162
|
+
sleep(0.1)
|
163
163
|
assert @list.send(:get_lock)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
end
|
167
167
|
end
|
168
|
-
|
data/test/test_helper.rb
CHANGED
@@ -1,15 +1,95 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
if ENV['COVERAGE']
|
4
|
+
require "simplecov"
|
5
|
+
SimpleCov.start
|
6
|
+
end
|
7
|
+
|
8
|
+
require "minitest/autorun"
|
9
|
+
require "minitest/spec"
|
10
|
+
require "minitest/pride"
|
11
|
+
require "minitest/mock"
|
12
|
+
|
13
|
+
require "liszt"
|
14
|
+
require "redis"
|
15
|
+
require "logger"
|
16
|
+
require "pry"
|
17
|
+
|
18
|
+
Liszt.redis = Redis.new(:host => "localhost", :port => "10001")
|
19
|
+
|
20
|
+
class Array
|
21
|
+
def swap(i1, i2)
|
22
|
+
self[i1], self[i2] = self[i2], self[i1]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# set up in-memory database
|
27
|
+
|
28
|
+
ENV['RAILS_ENV'] ||= 'test'
|
29
|
+
|
30
|
+
require "active_record"
|
31
|
+
require "active_record/test_case"
|
32
|
+
|
33
|
+
ActiveRecord::Base.configurations = {
|
34
|
+
"test" => { "adapter" => "sqlite3", "database" => ":memory:" }
|
35
|
+
}
|
36
|
+
|
37
|
+
ActiveRecord::Base.establish_connection "test"
|
38
|
+
|
39
|
+
ActiveRecord::Schema.define do
|
40
|
+
create_table "groups", :force => true do |t|
|
41
|
+
t.boolean "is_foo"
|
42
|
+
t.boolean "is_bar"
|
43
|
+
t.timestamps
|
44
|
+
end
|
45
|
+
|
46
|
+
create_table "people", :force => true do |t|
|
47
|
+
t.string "name"
|
48
|
+
t.integer "group_id"
|
49
|
+
t.boolean "is_male"
|
50
|
+
t.timestamps
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
class Group < ActiveRecord::Base
|
55
|
+
acts_as_liszt :sort_by => lambda { |o| o.id },
|
56
|
+
:conditions => { :is_foo => true, :is_bar => nil },
|
57
|
+
:append_new_items => true
|
58
|
+
end
|
59
|
+
|
60
|
+
class Person < ActiveRecord::Base
|
61
|
+
acts_as_liszt :scope => [:group_id, :is_male]
|
10
62
|
end
|
11
63
|
|
12
|
-
|
64
|
+
class MiniTest::Spec
|
65
|
+
class << self
|
66
|
+
def setup(symbol = nil, &block)
|
67
|
+
if symbol
|
68
|
+
before { send symbol }
|
69
|
+
else
|
70
|
+
before &block
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def teardown(symbol = nil, &block)
|
75
|
+
if symbol
|
76
|
+
after { send symbol }
|
77
|
+
else
|
78
|
+
after &block
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
include ActiveRecord::TestFixtures
|
84
|
+
|
85
|
+
self.use_instantiated_fixtures = true
|
86
|
+
self.use_transactional_fixtures = false
|
87
|
+
self.fixture_path = "test/fixtures"
|
88
|
+
|
89
|
+
fixtures :groups, :people
|
90
|
+
end
|
91
|
+
|
92
|
+
if ENV['DEBUG']
|
13
93
|
class Redis
|
14
94
|
module Connection
|
15
95
|
class Ruby
|
@@ -33,15 +113,6 @@ if ENV["DEBUG_REDIS"] =~ /y/
|
|
33
113
|
end
|
34
114
|
end
|
35
115
|
end
|
36
|
-
end
|
37
116
|
|
38
|
-
|
39
|
-
def swap(i1, i2)
|
40
|
-
self[i1], self[i2] = self[i2], self[i1]
|
41
|
-
end
|
117
|
+
ActiveRecord::Base.logger = Logger.new(STDOUT)
|
42
118
|
end
|
43
|
-
|
44
|
-
Rails.backtrace_cleaner.remove_silencers!
|
45
|
-
|
46
|
-
# Load support files
|
47
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
CHANGED
@@ -1,80 +1,144 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liszt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.7
|
5
4
|
prerelease:
|
5
|
+
version: 0.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ryan Fitzgerald
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
16
|
-
|
17
|
-
none: false
|
15
|
+
prerelease: false
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
17
|
requirements:
|
19
18
|
- - ! '>='
|
20
19
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
20
|
+
version: 3.0.0
|
21
|
+
none: false
|
22
22
|
type: :runtime
|
23
|
+
name: activerecord
|
24
|
+
requirement: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ! '>='
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 3.0.0
|
29
|
+
none: false
|
30
|
+
- !ruby/object:Gem::Dependency
|
23
31
|
prerelease: false
|
24
32
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
33
|
requirements:
|
27
34
|
- - ! '>='
|
28
35
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
|
36
|
+
version: '0'
|
37
|
+
none: false
|
38
|
+
type: :runtime
|
31
39
|
name: redis
|
32
40
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
41
|
requirements:
|
35
42
|
- - ! '>='
|
36
43
|
- !ruby/object:Gem::Version
|
37
44
|
version: '0'
|
38
|
-
|
45
|
+
none: false
|
46
|
+
- !ruby/object:Gem::Dependency
|
39
47
|
prerelease: false
|
40
48
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
49
|
requirements:
|
43
50
|
- - ! '>='
|
44
51
|
- !ruby/object:Gem::Version
|
45
52
|
version: '0'
|
46
|
-
|
47
|
-
|
53
|
+
none: false
|
54
|
+
type: :development
|
55
|
+
name: minitest
|
48
56
|
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
49
61
|
none: false
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
65
|
requirements:
|
51
66
|
- - ! '>='
|
52
67
|
- !ruby/object:Gem::Version
|
53
68
|
version: '0'
|
69
|
+
none: false
|
54
70
|
type: :development
|
71
|
+
name: pry
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
none: false
|
78
|
+
- !ruby/object:Gem::Dependency
|
55
79
|
prerelease: false
|
56
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
57
85
|
none: false
|
86
|
+
type: :development
|
87
|
+
name: rake
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
58
89
|
requirements:
|
59
90
|
- - ! '>='
|
60
91
|
- !ruby/object:Gem::Version
|
61
92
|
version: '0'
|
93
|
+
none: false
|
62
94
|
- !ruby/object:Gem::Dependency
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
none: false
|
102
|
+
type: :development
|
63
103
|
name: rdiscount
|
64
104
|
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ! '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
65
109
|
none: false
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
113
|
requirements:
|
67
114
|
- - ! '>='
|
68
115
|
- !ruby/object:Gem::Version
|
69
116
|
version: '0'
|
117
|
+
none: false
|
70
118
|
type: :development
|
119
|
+
name: sqlite3
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
none: false
|
126
|
+
- !ruby/object:Gem::Dependency
|
71
127
|
prerelease: false
|
72
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
73
133
|
none: false
|
134
|
+
type: :development
|
135
|
+
name: yard
|
136
|
+
requirement: !ruby/object:Gem::Requirement
|
74
137
|
requirements:
|
75
138
|
- - ! '>='
|
76
139
|
- !ruby/object:Gem::Version
|
77
140
|
version: '0'
|
141
|
+
none: false
|
78
142
|
description: Liszt is an alternative to acts_as_list and sortable that uses atomic
|
79
143
|
Redis operations to maintain scoped ordering information for ActiveRecord objects.
|
80
144
|
email:
|
@@ -86,9 +150,6 @@ files:
|
|
86
150
|
- .gitignore
|
87
151
|
- .yardopts
|
88
152
|
- Gemfile
|
89
|
-
- Gemfile.lock
|
90
|
-
- Gemfile.rails2
|
91
|
-
- Gemfile.rails2.lock
|
92
153
|
- LICENSE
|
93
154
|
- Rakefile
|
94
155
|
- lib/liszt.rb
|
@@ -96,68 +157,8 @@ files:
|
|
96
157
|
- lib/liszt/redis_list.rb
|
97
158
|
- lib/liszt/version.rb
|
98
159
|
- liszt.gemspec
|
99
|
-
- test/
|
100
|
-
- test/
|
101
|
-
- test/dummy_2.3/app/models/group.rb
|
102
|
-
- test/dummy_2.3/app/models/person.rb
|
103
|
-
- test/dummy_2.3/config/boot.rb
|
104
|
-
- test/dummy_2.3/config/database.yml
|
105
|
-
- test/dummy_2.3/config/environment.rb
|
106
|
-
- test/dummy_2.3/config/environments/development.rb
|
107
|
-
- test/dummy_2.3/config/environments/test.rb
|
108
|
-
- test/dummy_2.3/config/initializers/backtrace_silencers.rb
|
109
|
-
- test/dummy_2.3/config/initializers/bundler.rb
|
110
|
-
- test/dummy_2.3/config/initializers/cookie_verification_secret.rb
|
111
|
-
- test/dummy_2.3/config/initializers/inflections.rb
|
112
|
-
- test/dummy_2.3/config/initializers/mime_types.rb
|
113
|
-
- test/dummy_2.3/config/initializers/new_rails_defaults.rb
|
114
|
-
- test/dummy_2.3/config/initializers/session_store.rb
|
115
|
-
- test/dummy_2.3/config/locales/en.yml
|
116
|
-
- test/dummy_2.3/config/routes.rb
|
117
|
-
- test/dummy_2.3/db/migrate/20110922194432_create_people.rb
|
118
|
-
- test/dummy_2.3/db/migrate/20110922194512_create_groups.rb
|
119
|
-
- test/dummy_2.3/db/schema.rb
|
120
|
-
- test/dummy_2.3/db/seeds.rb
|
121
|
-
- test/dummy_2.3/script/about
|
122
|
-
- test/dummy_2.3/script/console
|
123
|
-
- test/dummy_2.3/script/dbconsole
|
124
|
-
- test/dummy_2.3/script/destroy
|
125
|
-
- test/dummy_2.3/script/generate
|
126
|
-
- test/dummy_2.3/script/performance/benchmarker
|
127
|
-
- test/dummy_2.3/script/performance/profiler
|
128
|
-
- test/dummy_2.3/script/plugin
|
129
|
-
- test/dummy_2.3/script/runner
|
130
|
-
- test/dummy_2.3/script/server
|
131
|
-
- test/dummy_2.3/test/fixtures/groups.yml
|
132
|
-
- test/dummy_2.3/test/fixtures/people.yml
|
133
|
-
- test/dummy_3.1/Rakefile
|
134
|
-
- test/dummy_3.1/app/controllers/application_controller.rb
|
135
|
-
- test/dummy_3.1/app/models/.gitkeep
|
136
|
-
- test/dummy_3.1/app/models/group.rb
|
137
|
-
- test/dummy_3.1/app/models/person.rb
|
138
|
-
- test/dummy_3.1/config.ru
|
139
|
-
- test/dummy_3.1/config/application.rb
|
140
|
-
- test/dummy_3.1/config/boot.rb
|
141
|
-
- test/dummy_3.1/config/database.yml
|
142
|
-
- test/dummy_3.1/config/environment.rb
|
143
|
-
- test/dummy_3.1/config/environments/development.rb
|
144
|
-
- test/dummy_3.1/config/environments/test.rb
|
145
|
-
- test/dummy_3.1/config/initializers/backtrace_silencers.rb
|
146
|
-
- test/dummy_3.1/config/initializers/inflections.rb
|
147
|
-
- test/dummy_3.1/config/initializers/mime_types.rb
|
148
|
-
- test/dummy_3.1/config/initializers/secret_token.rb
|
149
|
-
- test/dummy_3.1/config/initializers/session_store.rb
|
150
|
-
- test/dummy_3.1/config/initializers/wrap_parameters.rb
|
151
|
-
- test/dummy_3.1/config/locales/en.yml
|
152
|
-
- test/dummy_3.1/config/routes.rb
|
153
|
-
- test/dummy_3.1/db/migrate/20110922194058_create_people.rb
|
154
|
-
- test/dummy_3.1/db/migrate/20110922194126_create_groups.rb
|
155
|
-
- test/dummy_3.1/db/schema.rb
|
156
|
-
- test/dummy_3.1/lib/assets/.gitkeep
|
157
|
-
- test/dummy_3.1/log/.gitkeep
|
158
|
-
- test/dummy_3.1/script/rails
|
159
|
-
- test/dummy_3.1/test/fixtures/groups.yml
|
160
|
-
- test/dummy_3.1/test/fixtures/people.yml
|
160
|
+
- test/fixtures/groups.yml
|
161
|
+
- test/fixtures/people.yml
|
161
162
|
- test/liszt_test.rb
|
162
163
|
- test/redis.conf
|
163
164
|
- test/redis_list_test.rb
|
@@ -169,93 +170,28 @@ rdoc_options: []
|
|
169
170
|
require_paths:
|
170
171
|
- lib
|
171
172
|
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
173
|
requirements:
|
174
174
|
- - ! '>='
|
175
175
|
- !ruby/object:Gem::Version
|
176
176
|
version: '0'
|
177
|
-
segments:
|
178
|
-
- 0
|
179
|
-
hash: -755035515866164015
|
180
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
177
|
none: false
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
179
|
requirements:
|
183
180
|
- - ! '>='
|
184
181
|
- !ruby/object:Gem::Version
|
185
182
|
version: '0'
|
186
|
-
|
187
|
-
- 0
|
188
|
-
hash: -755035515866164015
|
183
|
+
none: false
|
189
184
|
requirements: []
|
190
185
|
rubyforge_project:
|
191
|
-
rubygems_version: 1.8.
|
186
|
+
rubygems_version: 1.8.25
|
192
187
|
signing_key:
|
193
188
|
specification_version: 3
|
194
189
|
summary: ActiveRecord sorting using Redis lists
|
195
190
|
test_files:
|
196
|
-
- test/
|
197
|
-
- test/
|
198
|
-
- test/dummy_2.3/app/models/group.rb
|
199
|
-
- test/dummy_2.3/app/models/person.rb
|
200
|
-
- test/dummy_2.3/config/boot.rb
|
201
|
-
- test/dummy_2.3/config/database.yml
|
202
|
-
- test/dummy_2.3/config/environment.rb
|
203
|
-
- test/dummy_2.3/config/environments/development.rb
|
204
|
-
- test/dummy_2.3/config/environments/test.rb
|
205
|
-
- test/dummy_2.3/config/initializers/backtrace_silencers.rb
|
206
|
-
- test/dummy_2.3/config/initializers/bundler.rb
|
207
|
-
- test/dummy_2.3/config/initializers/cookie_verification_secret.rb
|
208
|
-
- test/dummy_2.3/config/initializers/inflections.rb
|
209
|
-
- test/dummy_2.3/config/initializers/mime_types.rb
|
210
|
-
- test/dummy_2.3/config/initializers/new_rails_defaults.rb
|
211
|
-
- test/dummy_2.3/config/initializers/session_store.rb
|
212
|
-
- test/dummy_2.3/config/locales/en.yml
|
213
|
-
- test/dummy_2.3/config/routes.rb
|
214
|
-
- test/dummy_2.3/db/migrate/20110922194432_create_people.rb
|
215
|
-
- test/dummy_2.3/db/migrate/20110922194512_create_groups.rb
|
216
|
-
- test/dummy_2.3/db/schema.rb
|
217
|
-
- test/dummy_2.3/db/seeds.rb
|
218
|
-
- test/dummy_2.3/script/about
|
219
|
-
- test/dummy_2.3/script/console
|
220
|
-
- test/dummy_2.3/script/dbconsole
|
221
|
-
- test/dummy_2.3/script/destroy
|
222
|
-
- test/dummy_2.3/script/generate
|
223
|
-
- test/dummy_2.3/script/performance/benchmarker
|
224
|
-
- test/dummy_2.3/script/performance/profiler
|
225
|
-
- test/dummy_2.3/script/plugin
|
226
|
-
- test/dummy_2.3/script/runner
|
227
|
-
- test/dummy_2.3/script/server
|
228
|
-
- test/dummy_2.3/test/fixtures/groups.yml
|
229
|
-
- test/dummy_2.3/test/fixtures/people.yml
|
230
|
-
- test/dummy_3.1/Rakefile
|
231
|
-
- test/dummy_3.1/app/controllers/application_controller.rb
|
232
|
-
- test/dummy_3.1/app/models/.gitkeep
|
233
|
-
- test/dummy_3.1/app/models/group.rb
|
234
|
-
- test/dummy_3.1/app/models/person.rb
|
235
|
-
- test/dummy_3.1/config.ru
|
236
|
-
- test/dummy_3.1/config/application.rb
|
237
|
-
- test/dummy_3.1/config/boot.rb
|
238
|
-
- test/dummy_3.1/config/database.yml
|
239
|
-
- test/dummy_3.1/config/environment.rb
|
240
|
-
- test/dummy_3.1/config/environments/development.rb
|
241
|
-
- test/dummy_3.1/config/environments/test.rb
|
242
|
-
- test/dummy_3.1/config/initializers/backtrace_silencers.rb
|
243
|
-
- test/dummy_3.1/config/initializers/inflections.rb
|
244
|
-
- test/dummy_3.1/config/initializers/mime_types.rb
|
245
|
-
- test/dummy_3.1/config/initializers/secret_token.rb
|
246
|
-
- test/dummy_3.1/config/initializers/session_store.rb
|
247
|
-
- test/dummy_3.1/config/initializers/wrap_parameters.rb
|
248
|
-
- test/dummy_3.1/config/locales/en.yml
|
249
|
-
- test/dummy_3.1/config/routes.rb
|
250
|
-
- test/dummy_3.1/db/migrate/20110922194058_create_people.rb
|
251
|
-
- test/dummy_3.1/db/migrate/20110922194126_create_groups.rb
|
252
|
-
- test/dummy_3.1/db/schema.rb
|
253
|
-
- test/dummy_3.1/lib/assets/.gitkeep
|
254
|
-
- test/dummy_3.1/log/.gitkeep
|
255
|
-
- test/dummy_3.1/script/rails
|
256
|
-
- test/dummy_3.1/test/fixtures/groups.yml
|
257
|
-
- test/dummy_3.1/test/fixtures/people.yml
|
191
|
+
- test/fixtures/groups.yml
|
192
|
+
- test/fixtures/people.yml
|
258
193
|
- test/liszt_test.rb
|
259
194
|
- test/redis.conf
|
260
195
|
- test/redis_list_test.rb
|
261
196
|
- test/test_helper.rb
|
197
|
+
has_rdoc:
|