switchman 1.2.15 → 1.2.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/switchman/shard.rb +6 -2
- data/lib/switchman/version.rb +1 -1
- data/spec/dummy/log/test.log +0 -147389
- data/spec/models/shard_spec.rb +14 -0
- metadata +4 -317
- data/spec/dummy/config/database.yml +0 -21
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +0 -67
- data/spec/dummy/db/shard_1020.sqlite3 +0 -0
- data/spec/dummy/db/shard_1051.sqlite3 +0 -0
- data/spec/dummy/db/shard_1067.sqlite3 +0 -0
- data/spec/dummy/db/shard_1088.sqlite3 +0 -0
- data/spec/dummy/db/shard_1119.sqlite3 +0 -0
- data/spec/dummy/db/shard_1126.sqlite3 +0 -0
- data/spec/dummy/db/shard_1156.sqlite3 +0 -0
- data/spec/dummy/db/shard_120.sqlite3 +0 -0
- data/spec/dummy/db/shard_156.sqlite3 +0 -0
- data/spec/dummy/db/shard_193.sqlite3 +0 -0
- data/spec/dummy/db/shard_23.sqlite3 +0 -0
- data/spec/dummy/db/shard_234.sqlite3 +0 -0
- data/spec/dummy/db/shard_257.sqlite3 +0 -0
- data/spec/dummy/db/shard_277.sqlite3 +0 -0
- data/spec/dummy/db/shard_311.sqlite3 +0 -0
- data/spec/dummy/db/shard_324.sqlite3 +0 -0
- data/spec/dummy/db/shard_342.sqlite3 +0 -0
- data/spec/dummy/db/shard_375.sqlite3 +0 -0
- data/spec/dummy/db/shard_389.sqlite3 +0 -0
- data/spec/dummy/db/shard_428.sqlite3 +0 -0
- data/spec/dummy/db/shard_452.sqlite3 +0 -0
- data/spec/dummy/db/shard_462.sqlite3 +0 -0
- data/spec/dummy/db/shard_483.sqlite3 +0 -0
- data/spec/dummy/db/shard_508.sqlite3 +0 -0
- data/spec/dummy/db/shard_531.sqlite3 +0 -0
- data/spec/dummy/db/shard_554.sqlite3 +0 -0
- data/spec/dummy/db/shard_577.sqlite3 +0 -0
- data/spec/dummy/db/shard_58.sqlite3 +0 -0
- data/spec/dummy/db/shard_600.sqlite3 +0 -0
- data/spec/dummy/db/shard_623.sqlite3 +0 -0
- data/spec/dummy/db/shard_646.sqlite3 +0 -0
- data/spec/dummy/db/shard_668.sqlite3 +0 -0
- data/spec/dummy/db/shard_680.sqlite3 +0 -0
- data/spec/dummy/db/shard_708.sqlite3 +0 -0
- data/spec/dummy/db/shard_735.sqlite3 +0 -0
- data/spec/dummy/db/shard_753.sqlite3 +0 -0
- data/spec/dummy/db/shard_76.sqlite3 +0 -0
- data/spec/dummy/db/shard_802.sqlite3 +0 -0
- data/spec/dummy/db/shard_895.sqlite3 +0 -0
- data/spec/dummy/db/shard_930.sqlite3 +0 -0
- data/spec/dummy/db/shard_953.sqlite3 +0 -0
- data/spec/dummy/db/shard_982.sqlite3 +0 -0
- data/spec/dummy/db/shard_988.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -101
- data/spec/dummy/tmp/cache/313/970/shard%2F30 +0 -1
- data/spec/dummy/tmp/cache/316/980/shard%2F15 +0 -1
- data/spec/dummy/tmp/cache/317/9D0/shard%2F52 +0 -1
- data/spec/dummy/tmp/cache/31C/A40/shard%2F75 +0 -1
- data/spec/dummy/tmp/cache/345/E00/shard%2F500 +0 -1
- data/spec/dummy/tmp/cache/346/DF0/shard%2F321 +0 -1
- data/spec/dummy/tmp/cache/349/DE0/shard%2F126 +0 -1
- data/spec/dummy/tmp/cache/349/E10/shard%2F153 +0 -0
- data/spec/dummy/tmp/cache/349/E20/shard%2F243 +0 -1
- data/spec/dummy/tmp/cache/34A/E20/shard%2F154 +0 -0
- data/spec/dummy/tmp/cache/34A/E40/shard%2F172 +0 -1
- data/spec/dummy/tmp/cache/34A/E70/shard%2F523 +0 -1
- data/spec/dummy/tmp/cache/34A/EB0/shard%2F721 +0 -1
- data/spec/dummy/tmp/cache/34A/EC0/shard%2F730 +0 -1
- data/spec/dummy/tmp/cache/34B/E40/shard%2F245 +0 -0
- data/spec/dummy/tmp/cache/34B/E60/shard%2F425 +0 -1
- data/spec/dummy/tmp/cache/34B/EC0/shard%2F722 +0 -1
- data/spec/dummy/tmp/cache/34C/E50/shard%2F246 +0 -0
- data/spec/dummy/tmp/cache/34C/E80/shard%2F273 +0 -1
- data/spec/dummy/tmp/cache/34C/E90/shard%2F363 +0 -0
- data/spec/dummy/tmp/cache/34C/E90/shard%2F444 +0 -1
- data/spec/dummy/tmp/cache/34C/EA0/shard%2F615 +0 -1
- data/spec/dummy/tmp/cache/34C/F00/shard%2F750 +0 -1
- data/spec/dummy/tmp/cache/34D/E80/shard%2F265 +0 -1
- data/spec/dummy/tmp/cache/34D/ED0/shard%2F391 +0 -1
- data/spec/dummy/tmp/cache/34D/EE0/shard%2F724 +0 -1
- data/spec/dummy/tmp/cache/34E/ED0/shard%2F383 +0 -1
- data/spec/dummy/tmp/cache/34E/EF0/shard%2F725 +0 -1
- data/spec/dummy/tmp/cache/34E/F00/shard%2F653 +0 -1
- data/spec/dummy/tmp/cache/34F/EE0/shard%2F546 +0 -1
- data/spec/dummy/tmp/cache/34F/F00/shard%2F807 +0 -1
- data/spec/dummy/tmp/cache/34F/F30/shard%2F672 +0 -1
- data/spec/dummy/tmp/cache/350/EA0/shard%2F178 +0 -1
- data/spec/dummy/tmp/cache/350/EB0/shard%2F349 +0 -1
- data/spec/dummy/tmp/cache/350/F00/shard%2F718 +0 -0
- data/spec/dummy/tmp/cache/350/F40/shard%2F592 +0 -1
- data/spec/dummy/tmp/cache/350/F40/shard%2F916 +0 -0
- data/spec/dummy/tmp/cache/351/F00/shard%2F386 +0 -0
- data/spec/dummy/tmp/cache/351/F10/shard%2F638 +0 -1
- data/spec/dummy/tmp/cache/351/F10/shard%2F719 +0 -0
- data/spec/dummy/tmp/cache/351/F50/shard%2F917 +0 -0
- data/spec/dummy/tmp/cache/351/F70/shard%2F935 +0 -1
- data/spec/dummy/tmp/cache/352/F10/shard%2F387 +0 -0
- data/spec/dummy/tmp/cache/352/F10/shard%2F468 +0 -1
- data/spec/dummy/tmp/cache/352/F30/shard%2F729 +0 -1
- data/spec/dummy/tmp/cache/353/F10/shard%2F298 +0 -1
- data/spec/dummy/tmp/cache/353/F50/shard%2F739 +0 -1
- data/spec/dummy/tmp/cache/354/F50/shard%2F569 +0 -1
- data/spec/dummy/tmp/cache/354/F80/shard%2F677 +0 -1
- data/spec/dummy/tmp/cache/354/F90/shard%2F767 +0 -1
- data/spec/dummy/tmp/cache/354/FD0/shard%2F965 +0 -1
- data/spec/dummy/tmp/cache/355/FD0/shard%2F957 +0 -1
- data/spec/dummy/tmp/cache/356/010/shard%2F985 +0 -0
- data/spec/dummy/tmp/cache/358/040/shard%2F996 +0 -1
- data/spec/dummy/tmp/cache/358/FE0/shard%2F699 +0 -1
- data/spec/dummy/tmp/cache/377/4D0/shard%2F1024 +0 -1
- data/spec/dummy/tmp/cache/378/530/shard%2F1151 +0 -1
- data/spec/dummy/tmp/cache/379/4D0/shard%2F1008 +0 -0
- data/spec/dummy/tmp/cache/379/500/shard%2F1116 +0 -1
- data/spec/dummy/tmp/cache/37A/4E0/shard%2F1009 +0 -0
- data/spec/dummy/tmp/cache/37A/510/shard%2F1036 +0 -1
- data/spec/dummy/tmp/cache/37C/560/shard%2F1065 +0 -1
- data/spec/dummy/tmp/cache/37E/570/shard%2F1139 +0 -1
- data/spec/dummy/tmp/cache/37F/5A0/shard%2F1077 +0 -1
- data/spec/dummy/tmp/cache/380/5B0/shard%2F1078 +0 -1
- data/spec/dummy/tmp/cache/381/5E0/shard%2F1097 +0 -1
- data/spec/dummy/tmp/cache/3A4/EE0/shard%2F11101 +0 -1
- data/spec/dummy/tmp/cache/3A5/EA0/shard%2F10004 +0 -1
- data/spec/dummy/tmp/cache/3A6/F40/shard%2F10410 +0 -1
- data/spec/dummy/tmp/cache/3A7/F20/shard%2F11032 +0 -1
- data/spec/dummy/tmp/cache/3A7/F30/shard%2F10231 +0 -1
- data/spec/dummy/tmp/cache/3A8/F90/shard%2F10520 +0 -1
- data/spec/dummy/tmp/cache/3A9/F40/shard%2F10062 +0 -1
- data/spec/dummy/tmp/cache/3A9/F50/shard%2F11124 +0 -1
- data/spec/dummy/tmp/cache/3A9/F80/shard%2F10341 +0 -1
- data/spec/dummy/tmp/cache/3AA/F10/shard%2F10027 +0 -1
- data/spec/dummy/tmp/cache/3AA/F10/shard%2F10108 +0 -1
- data/spec/dummy/tmp/cache/3AA/FB0/shard%2F10441 +0 -1
- data/spec/dummy/tmp/cache/3AA/FC0/shard%2F10612 +0 -1
- data/spec/dummy/tmp/cache/3AB/010/shard%2F10730 +0 -1
- data/spec/dummy/tmp/cache/3AB/F30/shard%2F11009 +0 -1
- data/spec/dummy/tmp/cache/3AB/F70/shard%2F10154 +0 -1
- data/spec/dummy/tmp/cache/3AC/020/shard%2F10650 +0 -1
- data/spec/dummy/tmp/cache/3AC/F90/shard%2F11055 +0 -1
- data/spec/dummy/tmp/cache/3AC/FC0/shard%2F10272 +0 -1
- data/spec/dummy/tmp/cache/3AD/000/shard%2F10543 +0 -1
- data/spec/dummy/tmp/cache/3AD/F50/shard%2F10039 +0 -1
- data/spec/dummy/tmp/cache/3AD/F90/shard%2F10318 +0 -1
- data/spec/dummy/tmp/cache/3AD/FA0/shard%2F10246 +0 -1
- data/spec/dummy/tmp/cache/3AE/060/shard%2F10751 +0 -1
- data/spec/dummy/tmp/cache/3AE/090/shard%2F10940 +0 -1
- data/spec/dummy/tmp/cache/3AE/FF0/shard%2F10364 +0 -1
- data/spec/dummy/tmp/cache/3AF/030/shard%2F10635 +0 -1
- data/spec/dummy/tmp/cache/3B0/FE0/shard%2F10177 +0 -1
- data/spec/dummy/tmp/cache/3B0/FE0/shard%2F11149 +0 -1
- data/spec/dummy/tmp/cache/3B1/000/shard%2F11078 +0 -1
- data/spec/dummy/tmp/cache/3B1/030/shard%2F10295 +0 -1
- data/spec/dummy/tmp/cache/3B1/040/shard%2F10466 +0 -1
- data/spec/dummy/tmp/cache/3B1/090/shard%2F10673 +0 -1
- data/spec/dummy/tmp/cache/3B2/070/shard%2F10566 +0 -1
- data/spec/dummy/tmp/cache/3B2/0A0/shard%2F10917 +0 -1
- data/spec/dummy/tmp/cache/3B3/060/shard%2F10387 +0 -1
- data/spec/dummy/tmp/cache/3B3/100/shard%2F10963 +0 -1
- data/spec/dummy/tmp/cache/3B5/0B0/shard%2F10497 +0 -1
- data/spec/dummy/tmp/cache/3B6/100/shard%2F10696 +0 -1
- data/spec/dummy/tmp/cache/3B7/0E0/shard%2F10589 +0 -1
- data/spec/dummy/tmp/cache/3B8/170/shard%2F10986 +0 -1
- data/spec/dummy/tmp/cache/3BA/160/shard%2F10799 +0 -1
data/spec/models/shard_spec.rb
CHANGED
@@ -137,6 +137,20 @@ module Switchman
|
|
137
137
|
expect(User.connected?).to eq false
|
138
138
|
end
|
139
139
|
|
140
|
+
it "should disconnect from other environments" do
|
141
|
+
::Shackles.activate(:slave) do
|
142
|
+
Shard.with_each_shard([Shard.default, @shard2]) do
|
143
|
+
::Shackles.activate(:master) do
|
144
|
+
User.connection
|
145
|
+
expect(User.connected?).to eq true
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
::Shackles.activate(:slave) { expect(User.connected?).to eq false }
|
151
|
+
::Shackles.activate(:master) { expect(User.connected?).to eq false }
|
152
|
+
end
|
153
|
+
|
140
154
|
it "should not disconnect when it's the current shard" do
|
141
155
|
User.connection
|
142
156
|
expect(User.connected?).to eq true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-09-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.
|
61
|
+
version: 1.0.7
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.
|
68
|
+
version: 1.0.7
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mysql2
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,7 +172,6 @@ files:
|
|
172
172
|
- spec/dummy/config.ru
|
173
173
|
- spec/dummy/config/application.rb
|
174
174
|
- spec/dummy/config/boot.rb
|
175
|
-
- spec/dummy/config/database.yml
|
176
175
|
- spec/dummy/config/database.yml.example
|
177
176
|
- spec/dummy/config/environment.rb
|
178
177
|
- spec/dummy/config/environments/development.rb
|
@@ -183,7 +182,6 @@ files:
|
|
183
182
|
- spec/dummy/config/initializers/session_store.rb
|
184
183
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
185
184
|
- spec/dummy/config/routes.rb
|
186
|
-
- spec/dummy/db/development.sqlite3
|
187
185
|
- spec/dummy/db/migrate/20130403132607_create_users.rb
|
188
186
|
- spec/dummy/db/migrate/20130411202442_create_appendages.rb
|
189
187
|
- spec/dummy/db/migrate/20130411202551_create_mirror_users.rb
|
@@ -191,162 +189,8 @@ files:
|
|
191
189
|
- spec/dummy/db/migrate/20131206172923_create_features.rb
|
192
190
|
- spec/dummy/db/migrate/20140123154135_add_parent_id_to_users.rb
|
193
191
|
- spec/dummy/db/migrate/20140219183820_create_roots.rb
|
194
|
-
- spec/dummy/db/schema.rb
|
195
|
-
- spec/dummy/db/shard_1020.sqlite3
|
196
|
-
- spec/dummy/db/shard_1051.sqlite3
|
197
|
-
- spec/dummy/db/shard_1067.sqlite3
|
198
|
-
- spec/dummy/db/shard_1088.sqlite3
|
199
|
-
- spec/dummy/db/shard_1119.sqlite3
|
200
|
-
- spec/dummy/db/shard_1126.sqlite3
|
201
|
-
- spec/dummy/db/shard_1156.sqlite3
|
202
|
-
- spec/dummy/db/shard_120.sqlite3
|
203
|
-
- spec/dummy/db/shard_156.sqlite3
|
204
|
-
- spec/dummy/db/shard_193.sqlite3
|
205
|
-
- spec/dummy/db/shard_23.sqlite3
|
206
|
-
- spec/dummy/db/shard_234.sqlite3
|
207
|
-
- spec/dummy/db/shard_257.sqlite3
|
208
|
-
- spec/dummy/db/shard_277.sqlite3
|
209
|
-
- spec/dummy/db/shard_311.sqlite3
|
210
|
-
- spec/dummy/db/shard_324.sqlite3
|
211
|
-
- spec/dummy/db/shard_342.sqlite3
|
212
|
-
- spec/dummy/db/shard_375.sqlite3
|
213
|
-
- spec/dummy/db/shard_389.sqlite3
|
214
|
-
- spec/dummy/db/shard_428.sqlite3
|
215
|
-
- spec/dummy/db/shard_452.sqlite3
|
216
|
-
- spec/dummy/db/shard_462.sqlite3
|
217
|
-
- spec/dummy/db/shard_483.sqlite3
|
218
|
-
- spec/dummy/db/shard_508.sqlite3
|
219
|
-
- spec/dummy/db/shard_531.sqlite3
|
220
|
-
- spec/dummy/db/shard_554.sqlite3
|
221
|
-
- spec/dummy/db/shard_577.sqlite3
|
222
|
-
- spec/dummy/db/shard_58.sqlite3
|
223
|
-
- spec/dummy/db/shard_600.sqlite3
|
224
|
-
- spec/dummy/db/shard_623.sqlite3
|
225
|
-
- spec/dummy/db/shard_646.sqlite3
|
226
|
-
- spec/dummy/db/shard_668.sqlite3
|
227
|
-
- spec/dummy/db/shard_680.sqlite3
|
228
|
-
- spec/dummy/db/shard_708.sqlite3
|
229
|
-
- spec/dummy/db/shard_735.sqlite3
|
230
|
-
- spec/dummy/db/shard_753.sqlite3
|
231
|
-
- spec/dummy/db/shard_76.sqlite3
|
232
|
-
- spec/dummy/db/shard_802.sqlite3
|
233
|
-
- spec/dummy/db/shard_895.sqlite3
|
234
|
-
- spec/dummy/db/shard_930.sqlite3
|
235
|
-
- spec/dummy/db/shard_953.sqlite3
|
236
|
-
- spec/dummy/db/shard_982.sqlite3
|
237
|
-
- spec/dummy/db/shard_988.sqlite3
|
238
|
-
- spec/dummy/db/test.sqlite3
|
239
|
-
- spec/dummy/log/development.log
|
240
192
|
- spec/dummy/log/test.log
|
241
193
|
- spec/dummy/script/rails
|
242
|
-
- spec/dummy/tmp/cache/313/970/shard%2F30
|
243
|
-
- spec/dummy/tmp/cache/316/980/shard%2F15
|
244
|
-
- spec/dummy/tmp/cache/317/9D0/shard%2F52
|
245
|
-
- spec/dummy/tmp/cache/31C/A40/shard%2F75
|
246
|
-
- spec/dummy/tmp/cache/345/E00/shard%2F500
|
247
|
-
- spec/dummy/tmp/cache/346/DF0/shard%2F321
|
248
|
-
- spec/dummy/tmp/cache/349/DE0/shard%2F126
|
249
|
-
- spec/dummy/tmp/cache/349/E10/shard%2F153
|
250
|
-
- spec/dummy/tmp/cache/349/E20/shard%2F243
|
251
|
-
- spec/dummy/tmp/cache/34A/E20/shard%2F154
|
252
|
-
- spec/dummy/tmp/cache/34A/E40/shard%2F172
|
253
|
-
- spec/dummy/tmp/cache/34A/E70/shard%2F523
|
254
|
-
- spec/dummy/tmp/cache/34A/EB0/shard%2F721
|
255
|
-
- spec/dummy/tmp/cache/34A/EC0/shard%2F730
|
256
|
-
- spec/dummy/tmp/cache/34B/E40/shard%2F245
|
257
|
-
- spec/dummy/tmp/cache/34B/E60/shard%2F425
|
258
|
-
- spec/dummy/tmp/cache/34B/EC0/shard%2F722
|
259
|
-
- spec/dummy/tmp/cache/34C/E50/shard%2F246
|
260
|
-
- spec/dummy/tmp/cache/34C/E80/shard%2F273
|
261
|
-
- spec/dummy/tmp/cache/34C/E90/shard%2F363
|
262
|
-
- spec/dummy/tmp/cache/34C/E90/shard%2F444
|
263
|
-
- spec/dummy/tmp/cache/34C/EA0/shard%2F615
|
264
|
-
- spec/dummy/tmp/cache/34C/F00/shard%2F750
|
265
|
-
- spec/dummy/tmp/cache/34D/E80/shard%2F265
|
266
|
-
- spec/dummy/tmp/cache/34D/ED0/shard%2F391
|
267
|
-
- spec/dummy/tmp/cache/34D/EE0/shard%2F724
|
268
|
-
- spec/dummy/tmp/cache/34E/ED0/shard%2F383
|
269
|
-
- spec/dummy/tmp/cache/34E/EF0/shard%2F725
|
270
|
-
- spec/dummy/tmp/cache/34E/F00/shard%2F653
|
271
|
-
- spec/dummy/tmp/cache/34F/EE0/shard%2F546
|
272
|
-
- spec/dummy/tmp/cache/34F/F00/shard%2F807
|
273
|
-
- spec/dummy/tmp/cache/34F/F30/shard%2F672
|
274
|
-
- spec/dummy/tmp/cache/350/EA0/shard%2F178
|
275
|
-
- spec/dummy/tmp/cache/350/EB0/shard%2F349
|
276
|
-
- spec/dummy/tmp/cache/350/F00/shard%2F718
|
277
|
-
- spec/dummy/tmp/cache/350/F40/shard%2F592
|
278
|
-
- spec/dummy/tmp/cache/350/F40/shard%2F916
|
279
|
-
- spec/dummy/tmp/cache/351/F00/shard%2F386
|
280
|
-
- spec/dummy/tmp/cache/351/F10/shard%2F638
|
281
|
-
- spec/dummy/tmp/cache/351/F10/shard%2F719
|
282
|
-
- spec/dummy/tmp/cache/351/F50/shard%2F917
|
283
|
-
- spec/dummy/tmp/cache/351/F70/shard%2F935
|
284
|
-
- spec/dummy/tmp/cache/352/F10/shard%2F387
|
285
|
-
- spec/dummy/tmp/cache/352/F10/shard%2F468
|
286
|
-
- spec/dummy/tmp/cache/352/F30/shard%2F729
|
287
|
-
- spec/dummy/tmp/cache/353/F10/shard%2F298
|
288
|
-
- spec/dummy/tmp/cache/353/F50/shard%2F739
|
289
|
-
- spec/dummy/tmp/cache/354/F50/shard%2F569
|
290
|
-
- spec/dummy/tmp/cache/354/F80/shard%2F677
|
291
|
-
- spec/dummy/tmp/cache/354/F90/shard%2F767
|
292
|
-
- spec/dummy/tmp/cache/354/FD0/shard%2F965
|
293
|
-
- spec/dummy/tmp/cache/355/FD0/shard%2F957
|
294
|
-
- spec/dummy/tmp/cache/356/010/shard%2F985
|
295
|
-
- spec/dummy/tmp/cache/358/040/shard%2F996
|
296
|
-
- spec/dummy/tmp/cache/358/FE0/shard%2F699
|
297
|
-
- spec/dummy/tmp/cache/377/4D0/shard%2F1024
|
298
|
-
- spec/dummy/tmp/cache/378/530/shard%2F1151
|
299
|
-
- spec/dummy/tmp/cache/379/4D0/shard%2F1008
|
300
|
-
- spec/dummy/tmp/cache/379/500/shard%2F1116
|
301
|
-
- spec/dummy/tmp/cache/37A/4E0/shard%2F1009
|
302
|
-
- spec/dummy/tmp/cache/37A/510/shard%2F1036
|
303
|
-
- spec/dummy/tmp/cache/37C/560/shard%2F1065
|
304
|
-
- spec/dummy/tmp/cache/37E/570/shard%2F1139
|
305
|
-
- spec/dummy/tmp/cache/37F/5A0/shard%2F1077
|
306
|
-
- spec/dummy/tmp/cache/380/5B0/shard%2F1078
|
307
|
-
- spec/dummy/tmp/cache/381/5E0/shard%2F1097
|
308
|
-
- spec/dummy/tmp/cache/3A4/EE0/shard%2F11101
|
309
|
-
- spec/dummy/tmp/cache/3A5/EA0/shard%2F10004
|
310
|
-
- spec/dummy/tmp/cache/3A6/F40/shard%2F10410
|
311
|
-
- spec/dummy/tmp/cache/3A7/F20/shard%2F11032
|
312
|
-
- spec/dummy/tmp/cache/3A7/F30/shard%2F10231
|
313
|
-
- spec/dummy/tmp/cache/3A8/F90/shard%2F10520
|
314
|
-
- spec/dummy/tmp/cache/3A9/F40/shard%2F10062
|
315
|
-
- spec/dummy/tmp/cache/3A9/F50/shard%2F11124
|
316
|
-
- spec/dummy/tmp/cache/3A9/F80/shard%2F10341
|
317
|
-
- spec/dummy/tmp/cache/3AA/F10/shard%2F10027
|
318
|
-
- spec/dummy/tmp/cache/3AA/F10/shard%2F10108
|
319
|
-
- spec/dummy/tmp/cache/3AA/FB0/shard%2F10441
|
320
|
-
- spec/dummy/tmp/cache/3AA/FC0/shard%2F10612
|
321
|
-
- spec/dummy/tmp/cache/3AB/010/shard%2F10730
|
322
|
-
- spec/dummy/tmp/cache/3AB/F30/shard%2F11009
|
323
|
-
- spec/dummy/tmp/cache/3AB/F70/shard%2F10154
|
324
|
-
- spec/dummy/tmp/cache/3AC/020/shard%2F10650
|
325
|
-
- spec/dummy/tmp/cache/3AC/F90/shard%2F11055
|
326
|
-
- spec/dummy/tmp/cache/3AC/FC0/shard%2F10272
|
327
|
-
- spec/dummy/tmp/cache/3AD/000/shard%2F10543
|
328
|
-
- spec/dummy/tmp/cache/3AD/F50/shard%2F10039
|
329
|
-
- spec/dummy/tmp/cache/3AD/F90/shard%2F10318
|
330
|
-
- spec/dummy/tmp/cache/3AD/FA0/shard%2F10246
|
331
|
-
- spec/dummy/tmp/cache/3AE/060/shard%2F10751
|
332
|
-
- spec/dummy/tmp/cache/3AE/090/shard%2F10940
|
333
|
-
- spec/dummy/tmp/cache/3AE/FF0/shard%2F10364
|
334
|
-
- spec/dummy/tmp/cache/3AF/030/shard%2F10635
|
335
|
-
- spec/dummy/tmp/cache/3B0/FE0/shard%2F10177
|
336
|
-
- spec/dummy/tmp/cache/3B0/FE0/shard%2F11149
|
337
|
-
- spec/dummy/tmp/cache/3B1/000/shard%2F11078
|
338
|
-
- spec/dummy/tmp/cache/3B1/030/shard%2F10295
|
339
|
-
- spec/dummy/tmp/cache/3B1/040/shard%2F10466
|
340
|
-
- spec/dummy/tmp/cache/3B1/090/shard%2F10673
|
341
|
-
- spec/dummy/tmp/cache/3B2/070/shard%2F10566
|
342
|
-
- spec/dummy/tmp/cache/3B2/0A0/shard%2F10917
|
343
|
-
- spec/dummy/tmp/cache/3B3/060/shard%2F10387
|
344
|
-
- spec/dummy/tmp/cache/3B3/100/shard%2F10963
|
345
|
-
- spec/dummy/tmp/cache/3B5/0B0/shard%2F10497
|
346
|
-
- spec/dummy/tmp/cache/3B6/100/shard%2F10696
|
347
|
-
- spec/dummy/tmp/cache/3B7/0E0/shard%2F10589
|
348
|
-
- spec/dummy/tmp/cache/3B8/170/shard%2F10986
|
349
|
-
- spec/dummy/tmp/cache/3BA/160/shard%2F10799
|
350
194
|
- spec/lib/action_controller/caching_spec.rb
|
351
195
|
- spec/lib/active_record/abstract_adapter_spec.rb
|
352
196
|
- spec/lib/active_record/association_spec.rb
|
@@ -403,7 +247,6 @@ test_files:
|
|
403
247
|
- spec/dummy/app/models/user.rb
|
404
248
|
- spec/dummy/config/application.rb
|
405
249
|
- spec/dummy/config/boot.rb
|
406
|
-
- spec/dummy/config/database.yml
|
407
250
|
- spec/dummy/config/database.yml.example
|
408
251
|
- spec/dummy/config/environment.rb
|
409
252
|
- spec/dummy/config/environments/development.rb
|
@@ -415,7 +258,6 @@ test_files:
|
|
415
258
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
416
259
|
- spec/dummy/config/routes.rb
|
417
260
|
- spec/dummy/config.ru
|
418
|
-
- spec/dummy/db/development.sqlite3
|
419
261
|
- spec/dummy/db/migrate/20130403132607_create_users.rb
|
420
262
|
- spec/dummy/db/migrate/20130411202442_create_appendages.rb
|
421
263
|
- spec/dummy/db/migrate/20130411202551_create_mirror_users.rb
|
@@ -423,163 +265,9 @@ test_files:
|
|
423
265
|
- spec/dummy/db/migrate/20131206172923_create_features.rb
|
424
266
|
- spec/dummy/db/migrate/20140123154135_add_parent_id_to_users.rb
|
425
267
|
- spec/dummy/db/migrate/20140219183820_create_roots.rb
|
426
|
-
- spec/dummy/db/schema.rb
|
427
|
-
- spec/dummy/db/shard_1020.sqlite3
|
428
|
-
- spec/dummy/db/shard_1051.sqlite3
|
429
|
-
- spec/dummy/db/shard_1067.sqlite3
|
430
|
-
- spec/dummy/db/shard_1088.sqlite3
|
431
|
-
- spec/dummy/db/shard_1119.sqlite3
|
432
|
-
- spec/dummy/db/shard_1126.sqlite3
|
433
|
-
- spec/dummy/db/shard_1156.sqlite3
|
434
|
-
- spec/dummy/db/shard_120.sqlite3
|
435
|
-
- spec/dummy/db/shard_156.sqlite3
|
436
|
-
- spec/dummy/db/shard_193.sqlite3
|
437
|
-
- spec/dummy/db/shard_23.sqlite3
|
438
|
-
- spec/dummy/db/shard_234.sqlite3
|
439
|
-
- spec/dummy/db/shard_257.sqlite3
|
440
|
-
- spec/dummy/db/shard_277.sqlite3
|
441
|
-
- spec/dummy/db/shard_311.sqlite3
|
442
|
-
- spec/dummy/db/shard_324.sqlite3
|
443
|
-
- spec/dummy/db/shard_342.sqlite3
|
444
|
-
- spec/dummy/db/shard_375.sqlite3
|
445
|
-
- spec/dummy/db/shard_389.sqlite3
|
446
|
-
- spec/dummy/db/shard_428.sqlite3
|
447
|
-
- spec/dummy/db/shard_452.sqlite3
|
448
|
-
- spec/dummy/db/shard_462.sqlite3
|
449
|
-
- spec/dummy/db/shard_483.sqlite3
|
450
|
-
- spec/dummy/db/shard_508.sqlite3
|
451
|
-
- spec/dummy/db/shard_531.sqlite3
|
452
|
-
- spec/dummy/db/shard_554.sqlite3
|
453
|
-
- spec/dummy/db/shard_577.sqlite3
|
454
|
-
- spec/dummy/db/shard_58.sqlite3
|
455
|
-
- spec/dummy/db/shard_600.sqlite3
|
456
|
-
- spec/dummy/db/shard_623.sqlite3
|
457
|
-
- spec/dummy/db/shard_646.sqlite3
|
458
|
-
- spec/dummy/db/shard_668.sqlite3
|
459
|
-
- spec/dummy/db/shard_680.sqlite3
|
460
|
-
- spec/dummy/db/shard_708.sqlite3
|
461
|
-
- spec/dummy/db/shard_735.sqlite3
|
462
|
-
- spec/dummy/db/shard_753.sqlite3
|
463
|
-
- spec/dummy/db/shard_76.sqlite3
|
464
|
-
- spec/dummy/db/shard_802.sqlite3
|
465
|
-
- spec/dummy/db/shard_895.sqlite3
|
466
|
-
- spec/dummy/db/shard_930.sqlite3
|
467
|
-
- spec/dummy/db/shard_953.sqlite3
|
468
|
-
- spec/dummy/db/shard_982.sqlite3
|
469
|
-
- spec/dummy/db/shard_988.sqlite3
|
470
|
-
- spec/dummy/db/test.sqlite3
|
471
|
-
- spec/dummy/log/development.log
|
472
268
|
- spec/dummy/log/test.log
|
473
269
|
- spec/dummy/Rakefile
|
474
270
|
- spec/dummy/script/rails
|
475
|
-
- spec/dummy/tmp/cache/313/970/shard%2F30
|
476
|
-
- spec/dummy/tmp/cache/316/980/shard%2F15
|
477
|
-
- spec/dummy/tmp/cache/317/9D0/shard%2F52
|
478
|
-
- spec/dummy/tmp/cache/31C/A40/shard%2F75
|
479
|
-
- spec/dummy/tmp/cache/345/E00/shard%2F500
|
480
|
-
- spec/dummy/tmp/cache/346/DF0/shard%2F321
|
481
|
-
- spec/dummy/tmp/cache/349/DE0/shard%2F126
|
482
|
-
- spec/dummy/tmp/cache/349/E10/shard%2F153
|
483
|
-
- spec/dummy/tmp/cache/349/E20/shard%2F243
|
484
|
-
- spec/dummy/tmp/cache/34A/E20/shard%2F154
|
485
|
-
- spec/dummy/tmp/cache/34A/E40/shard%2F172
|
486
|
-
- spec/dummy/tmp/cache/34A/E70/shard%2F523
|
487
|
-
- spec/dummy/tmp/cache/34A/EB0/shard%2F721
|
488
|
-
- spec/dummy/tmp/cache/34A/EC0/shard%2F730
|
489
|
-
- spec/dummy/tmp/cache/34B/E40/shard%2F245
|
490
|
-
- spec/dummy/tmp/cache/34B/E60/shard%2F425
|
491
|
-
- spec/dummy/tmp/cache/34B/EC0/shard%2F722
|
492
|
-
- spec/dummy/tmp/cache/34C/E50/shard%2F246
|
493
|
-
- spec/dummy/tmp/cache/34C/E80/shard%2F273
|
494
|
-
- spec/dummy/tmp/cache/34C/E90/shard%2F363
|
495
|
-
- spec/dummy/tmp/cache/34C/E90/shard%2F444
|
496
|
-
- spec/dummy/tmp/cache/34C/EA0/shard%2F615
|
497
|
-
- spec/dummy/tmp/cache/34C/F00/shard%2F750
|
498
|
-
- spec/dummy/tmp/cache/34D/E80/shard%2F265
|
499
|
-
- spec/dummy/tmp/cache/34D/ED0/shard%2F391
|
500
|
-
- spec/dummy/tmp/cache/34D/EE0/shard%2F724
|
501
|
-
- spec/dummy/tmp/cache/34E/ED0/shard%2F383
|
502
|
-
- spec/dummy/tmp/cache/34E/EF0/shard%2F725
|
503
|
-
- spec/dummy/tmp/cache/34E/F00/shard%2F653
|
504
|
-
- spec/dummy/tmp/cache/34F/EE0/shard%2F546
|
505
|
-
- spec/dummy/tmp/cache/34F/F00/shard%2F807
|
506
|
-
- spec/dummy/tmp/cache/34F/F30/shard%2F672
|
507
|
-
- spec/dummy/tmp/cache/350/EA0/shard%2F178
|
508
|
-
- spec/dummy/tmp/cache/350/EB0/shard%2F349
|
509
|
-
- spec/dummy/tmp/cache/350/F00/shard%2F718
|
510
|
-
- spec/dummy/tmp/cache/350/F40/shard%2F592
|
511
|
-
- spec/dummy/tmp/cache/350/F40/shard%2F916
|
512
|
-
- spec/dummy/tmp/cache/351/F00/shard%2F386
|
513
|
-
- spec/dummy/tmp/cache/351/F10/shard%2F638
|
514
|
-
- spec/dummy/tmp/cache/351/F10/shard%2F719
|
515
|
-
- spec/dummy/tmp/cache/351/F50/shard%2F917
|
516
|
-
- spec/dummy/tmp/cache/351/F70/shard%2F935
|
517
|
-
- spec/dummy/tmp/cache/352/F10/shard%2F387
|
518
|
-
- spec/dummy/tmp/cache/352/F10/shard%2F468
|
519
|
-
- spec/dummy/tmp/cache/352/F30/shard%2F729
|
520
|
-
- spec/dummy/tmp/cache/353/F10/shard%2F298
|
521
|
-
- spec/dummy/tmp/cache/353/F50/shard%2F739
|
522
|
-
- spec/dummy/tmp/cache/354/F50/shard%2F569
|
523
|
-
- spec/dummy/tmp/cache/354/F80/shard%2F677
|
524
|
-
- spec/dummy/tmp/cache/354/F90/shard%2F767
|
525
|
-
- spec/dummy/tmp/cache/354/FD0/shard%2F965
|
526
|
-
- spec/dummy/tmp/cache/355/FD0/shard%2F957
|
527
|
-
- spec/dummy/tmp/cache/356/010/shard%2F985
|
528
|
-
- spec/dummy/tmp/cache/358/040/shard%2F996
|
529
|
-
- spec/dummy/tmp/cache/358/FE0/shard%2F699
|
530
|
-
- spec/dummy/tmp/cache/377/4D0/shard%2F1024
|
531
|
-
- spec/dummy/tmp/cache/378/530/shard%2F1151
|
532
|
-
- spec/dummy/tmp/cache/379/4D0/shard%2F1008
|
533
|
-
- spec/dummy/tmp/cache/379/500/shard%2F1116
|
534
|
-
- spec/dummy/tmp/cache/37A/4E0/shard%2F1009
|
535
|
-
- spec/dummy/tmp/cache/37A/510/shard%2F1036
|
536
|
-
- spec/dummy/tmp/cache/37C/560/shard%2F1065
|
537
|
-
- spec/dummy/tmp/cache/37E/570/shard%2F1139
|
538
|
-
- spec/dummy/tmp/cache/37F/5A0/shard%2F1077
|
539
|
-
- spec/dummy/tmp/cache/380/5B0/shard%2F1078
|
540
|
-
- spec/dummy/tmp/cache/381/5E0/shard%2F1097
|
541
|
-
- spec/dummy/tmp/cache/3A4/EE0/shard%2F11101
|
542
|
-
- spec/dummy/tmp/cache/3A5/EA0/shard%2F10004
|
543
|
-
- spec/dummy/tmp/cache/3A6/F40/shard%2F10410
|
544
|
-
- spec/dummy/tmp/cache/3A7/F20/shard%2F11032
|
545
|
-
- spec/dummy/tmp/cache/3A7/F30/shard%2F10231
|
546
|
-
- spec/dummy/tmp/cache/3A8/F90/shard%2F10520
|
547
|
-
- spec/dummy/tmp/cache/3A9/F40/shard%2F10062
|
548
|
-
- spec/dummy/tmp/cache/3A9/F50/shard%2F11124
|
549
|
-
- spec/dummy/tmp/cache/3A9/F80/shard%2F10341
|
550
|
-
- spec/dummy/tmp/cache/3AA/F10/shard%2F10027
|
551
|
-
- spec/dummy/tmp/cache/3AA/F10/shard%2F10108
|
552
|
-
- spec/dummy/tmp/cache/3AA/FB0/shard%2F10441
|
553
|
-
- spec/dummy/tmp/cache/3AA/FC0/shard%2F10612
|
554
|
-
- spec/dummy/tmp/cache/3AB/010/shard%2F10730
|
555
|
-
- spec/dummy/tmp/cache/3AB/F30/shard%2F11009
|
556
|
-
- spec/dummy/tmp/cache/3AB/F70/shard%2F10154
|
557
|
-
- spec/dummy/tmp/cache/3AC/020/shard%2F10650
|
558
|
-
- spec/dummy/tmp/cache/3AC/F90/shard%2F11055
|
559
|
-
- spec/dummy/tmp/cache/3AC/FC0/shard%2F10272
|
560
|
-
- spec/dummy/tmp/cache/3AD/000/shard%2F10543
|
561
|
-
- spec/dummy/tmp/cache/3AD/F50/shard%2F10039
|
562
|
-
- spec/dummy/tmp/cache/3AD/F90/shard%2F10318
|
563
|
-
- spec/dummy/tmp/cache/3AD/FA0/shard%2F10246
|
564
|
-
- spec/dummy/tmp/cache/3AE/060/shard%2F10751
|
565
|
-
- spec/dummy/tmp/cache/3AE/090/shard%2F10940
|
566
|
-
- spec/dummy/tmp/cache/3AE/FF0/shard%2F10364
|
567
|
-
- spec/dummy/tmp/cache/3AF/030/shard%2F10635
|
568
|
-
- spec/dummy/tmp/cache/3B0/FE0/shard%2F10177
|
569
|
-
- spec/dummy/tmp/cache/3B0/FE0/shard%2F11149
|
570
|
-
- spec/dummy/tmp/cache/3B1/000/shard%2F11078
|
571
|
-
- spec/dummy/tmp/cache/3B1/030/shard%2F10295
|
572
|
-
- spec/dummy/tmp/cache/3B1/040/shard%2F10466
|
573
|
-
- spec/dummy/tmp/cache/3B1/090/shard%2F10673
|
574
|
-
- spec/dummy/tmp/cache/3B2/070/shard%2F10566
|
575
|
-
- spec/dummy/tmp/cache/3B2/0A0/shard%2F10917
|
576
|
-
- spec/dummy/tmp/cache/3B3/060/shard%2F10387
|
577
|
-
- spec/dummy/tmp/cache/3B3/100/shard%2F10963
|
578
|
-
- spec/dummy/tmp/cache/3B5/0B0/shard%2F10497
|
579
|
-
- spec/dummy/tmp/cache/3B6/100/shard%2F10696
|
580
|
-
- spec/dummy/tmp/cache/3B7/0E0/shard%2F10589
|
581
|
-
- spec/dummy/tmp/cache/3B8/170/shard%2F10986
|
582
|
-
- spec/dummy/tmp/cache/3BA/160/shard%2F10799
|
583
271
|
- spec/lib/action_controller/caching_spec.rb
|
584
272
|
- spec/lib/active_record/abstract_adapter_spec.rb
|
585
273
|
- spec/lib/active_record/association_spec.rb
|
@@ -603,4 +291,3 @@ test_files:
|
|
603
291
|
- spec/lib/shackles_spec.rb
|
604
292
|
- spec/models/shard_spec.rb
|
605
293
|
- spec/spec_helper.rb
|
606
|
-
has_rdoc:
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
development:
|
7
|
-
adapter: postgresql
|
8
|
-
database: switchman_development
|
9
|
-
|
10
|
-
# Warning: The database defined as "test" will be erased and
|
11
|
-
# re-generated from your development database when you run "rake".
|
12
|
-
# Do not set this db to the same as development or production.
|
13
|
-
test:
|
14
|
-
adapter: postgresql
|
15
|
-
database: switchman_test
|
16
|
-
|
17
|
-
production:
|
18
|
-
adapter: sqlite3
|
19
|
-
database: db/production.sqlite3
|
20
|
-
pool: 5
|
21
|
-
timeout: 5000
|
Binary file
|
data/spec/dummy/db/schema.rb
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended that you check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(version: 20140219183820) do
|
15
|
-
|
16
|
-
# These are extensions that must be enabled in order to support this database
|
17
|
-
enable_extension "plpgsql"
|
18
|
-
|
19
|
-
create_table "appendages", force: true do |t|
|
20
|
-
t.integer "user_id", limit: 8
|
21
|
-
t.integer "value"
|
22
|
-
t.datetime "created_at", null: false
|
23
|
-
t.datetime "updated_at", null: false
|
24
|
-
end
|
25
|
-
|
26
|
-
create_table "digits", force: true do |t|
|
27
|
-
t.integer "appendage_id", limit: 8
|
28
|
-
t.integer "value"
|
29
|
-
t.datetime "created_at", null: false
|
30
|
-
t.datetime "updated_at", null: false
|
31
|
-
end
|
32
|
-
|
33
|
-
create_table "features", force: true do |t|
|
34
|
-
t.integer "owner_id", limit: 8
|
35
|
-
t.string "owner_type"
|
36
|
-
t.integer "value"
|
37
|
-
t.datetime "created_at", null: false
|
38
|
-
t.datetime "updated_at", null: false
|
39
|
-
end
|
40
|
-
|
41
|
-
create_table "mirror_users", force: true do |t|
|
42
|
-
t.integer "user_id", limit: 8
|
43
|
-
t.datetime "created_at", null: false
|
44
|
-
t.datetime "updated_at", null: false
|
45
|
-
end
|
46
|
-
|
47
|
-
create_table "roots", force: true do |t|
|
48
|
-
t.integer "user_id", limit: 8
|
49
|
-
t.datetime "created_at", null: false
|
50
|
-
t.datetime "updated_at", null: false
|
51
|
-
end
|
52
|
-
|
53
|
-
create_table "switchman_shards", force: true do |t|
|
54
|
-
t.string "name"
|
55
|
-
t.string "database_server_id"
|
56
|
-
t.boolean "default", default: false, null: false
|
57
|
-
end
|
58
|
-
|
59
|
-
create_table "users", force: true do |t|
|
60
|
-
t.string "name"
|
61
|
-
t.integer "mirror_user_id", limit: 8
|
62
|
-
t.datetime "created_at", null: false
|
63
|
-
t.datetime "updated_at", null: false
|
64
|
-
t.integer "parent_id", limit: 8
|
65
|
-
end
|
66
|
-
|
67
|
-
end
|