remote_partial 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +0 -5
- data/app/helpers/remote_partial/host_app_helper.rb +1 -6
- data/lib/remote_partial/version.rb +5 -1
- data/lib/remote_partial.rb +1 -11
- data/test/dummy/app/views/remote_partials/_clock.html.erb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +356 -0
- data/test/unit/remote_partial_test.rb +0 -12
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -80,9 +80,4 @@ Remote partials are held in:
|
|
80
80
|
|
81
81
|
Rails.root + '/app/veiws/remote_partials'
|
82
82
|
|
83
|
-
To use an alternative location add this to an initializer (before the first
|
84
|
-
define statement):
|
85
|
-
|
86
|
-
RemotePartial.partial_location = /path/to/folder
|
87
|
-
|
88
83
|
This project wobbles and uses MIT-LICENSE.
|
@@ -4,12 +4,7 @@ module RemotePartial
|
|
4
4
|
module HostAppHelper
|
5
5
|
|
6
6
|
def render_remote_partial(name)
|
7
|
-
partial
|
8
|
-
if partial
|
9
|
-
render template: partial.output_file_name
|
10
|
-
else
|
11
|
-
render partial: "remote_partials/#{name}"
|
12
|
-
end
|
7
|
+
render partial: "remote_partials/#{name}"
|
13
8
|
end
|
14
9
|
|
15
10
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RemotePartial
|
2
|
-
VERSION = "0.1.
|
2
|
+
VERSION = "0.1.1"
|
3
3
|
end
|
4
4
|
|
5
5
|
# History
|
@@ -13,3 +13,7 @@ end
|
|
13
13
|
# ------------------------
|
14
14
|
# Updated following tests using a separate host app
|
15
15
|
#
|
16
|
+
# 0.1.1 Remove option to alter remote_partials destination folder
|
17
|
+
# ---------------------------------------------------------------
|
18
|
+
# The functionality was not working and just added extra complication
|
19
|
+
#
|
data/lib/remote_partial.rb
CHANGED
@@ -14,17 +14,7 @@ module RemotePartial
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.partial_location
|
17
|
-
|
18
|
-
path.gsub(tailing_slash_pattern, "")
|
19
|
-
end
|
20
|
-
|
21
|
-
def self.partial_location=(path)
|
22
|
-
@partial_location = path
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
def self.tailing_slash_pattern
|
27
|
-
/\/$/
|
17
|
+
File.expand_path('app/views/remote_partials', Rails.root)
|
28
18
|
end
|
29
19
|
|
30
20
|
end
|
@@ -1 +1 @@
|
|
1
|
-
<strong id="ct" class="big">Friday, July 5, 2013 at 2:
|
1
|
+
<strong id="ct" class="big">Friday, July 5, 2013 at 2:36:18 PM</strong>
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -6220,3 +6220,359 @@ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTP
|
|
6220
6220
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6221
6221
|
[1m[35m (0.0ms)[0m begin transaction
|
6222
6222
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6223
|
+
Connecting to database specified by database.yml
|
6224
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' LIMIT 1[0m
|
6225
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6226
|
+
[1m[36mSQL (25.5ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 05 Jul 2013 13:35:14 UTC +00:00], ["criteria", "#ct"], ["name", "clock"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:35:14 UTC +00:00], ["url", "http://www.timeanddate.com/worldclock/city.html?n=136"]]
|
6227
|
+
[1m[35m (203.6ms)[0m commit transaction
|
6228
|
+
[1m[36mRemotePartial::Partial Load (1.0ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' LIMIT 1[0m
|
6229
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6230
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 05 Jul 2013 13:35:14 UTC +00:00], ["criteria", "#intro"], ["name", "ruby"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:35:14 UTC +00:00], ["url", "http://www.ruby-lang.org/en/"]]
|
6231
|
+
[1m[35m (150.9ms)[0m commit transaction
|
6232
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
6233
|
+
[1m[35mFixture Delete (4.4ms)[0m DELETE FROM "remote_partial_partials"
|
6234
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "remote_partial_partials" ("id", "name", "url", "criteria", "repeat_period", "created_at", "updated_at") VALUES (1, 'simple', 'http://www.warwickshire.gov.uk', 'p:first-child', 600, '2013-07-05 13:35:18', '2013-07-05 13:35:18')[0m
|
6235
|
+
[1m[35m (176.0ms)[0m commit transaction
|
6236
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6237
|
+
Processing by DemosController#index as HTML
|
6238
|
+
Rendered demos/index.html.erb within layouts/application (3.8ms)
|
6239
|
+
Completed 200 OK in 52ms (Views: 51.7ms | ActiveRecord: 0.0ms)
|
6240
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6242
|
+
Processing by DemosController#show as HTML
|
6243
|
+
Parameters: {"id"=>"fixed"}
|
6244
|
+
Rendered remote_partials/_fixed.html.erb (0.3ms)
|
6245
|
+
Rendered demos/_fixed.html.erb (1.9ms)
|
6246
|
+
Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
|
6247
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6249
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6250
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6251
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6252
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6253
|
+
[1m[35mRemotePartial::Partial Load (0.4ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
6254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6255
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 13:35:18 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:35:18 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6256
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6257
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6258
|
+
[1m[36mRemotePartial::Partial Load (1.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
6259
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
6260
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6261
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6262
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6263
|
+
[1m[35m (2.8ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:45:18.795577', "updated_at" = '2013-07-05 13:35:18.796616' WHERE "remote_partial_partials"."id" = 1
|
6264
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6265
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6266
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
6267
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6268
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:35:18.807588' WHERE "remote_partial_partials"."id" = 1[0m
|
6269
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6270
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6271
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
6272
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6273
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6274
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6275
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1
|
6276
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6277
|
+
[1m[35m (3.1ms)[0m UPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:35:18.819115' WHERE "remote_partial_partials"."id" = 1
|
6278
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6279
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6280
|
+
[1m[36m (3.4ms)[0m [1mrollback transaction[0m
|
6281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6282
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6283
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6284
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
6285
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6286
|
+
[1m[36m (2.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:35:18.838868' WHERE "remote_partial_partials"."id" = 1[0m
|
6287
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6288
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
6289
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6290
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
6291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6292
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6293
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6294
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
6295
|
+
[1m[36m (3.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
6296
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 13:35:18 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:35:18 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6297
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6298
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6299
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
6300
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
6301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6302
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6303
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6304
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
6305
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6306
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 13:35:18 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:35:18 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6307
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6308
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6309
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
6310
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6311
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1[0m
|
6312
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6313
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = 'other', "updated_at" = '2013-07-05 13:35:18.890350' WHERE "remote_partial_partials"."id" = 221[0m
|
6314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6315
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6316
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
6317
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
6318
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6319
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6320
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6321
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
6322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6323
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:35:18.915239' WHERE "remote_partial_partials"."id" = 1[0m
|
6324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6325
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
6326
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6327
|
+
[1m[35mRemotePartial::Partial Load (9.9ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6328
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
6329
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6330
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
6331
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6332
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6333
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6334
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6335
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6336
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6337
|
+
[1m[35m (0.3ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:45:18.954239', "updated_at" = '2013-07-05 13:35:18.954905' WHERE "remote_partial_partials"."id" = 1
|
6338
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6339
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6340
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6341
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6342
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6343
|
+
[1m[35m (0.2ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:45:18.969939', "updated_at" = '2013-07-05 13:35:18.970648' WHERE "remote_partial_partials"."id" = 1
|
6344
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6345
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6347
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6348
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6350
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6351
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6352
|
+
[1m[36m (1.0ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:45:18.994666', "updated_at" = '2013-07-05 13:35:18.995330' WHERE "remote_partial_partials"."id" = 1[0m
|
6353
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6354
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
6355
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6356
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6357
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6358
|
+
[1m[36m (1.0ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:45:19.008252', "updated_at" = '2013-07-05 13:35:19.009214' WHERE "remote_partial_partials"."id" = 1[0m
|
6359
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6360
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
6361
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6362
|
+
[1m[36mRemotePartial::Partial Load (1.6ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6364
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6365
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6366
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6367
|
+
[1m[35m (1.0ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:45:19.031374', "updated_at" = '2013-07-05 13:35:19.032226' WHERE "remote_partial_partials"."id" = 1
|
6368
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6369
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
6370
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6371
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6372
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6373
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6375
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6376
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6377
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6378
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6379
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6380
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6381
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6382
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6383
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6384
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6385
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6386
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6387
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6388
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6389
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6390
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' LIMIT 1[0m
|
6391
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6392
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 05 Jul 2013 13:35:19 UTC +00:00], ["criteria", nil], ["name", "wcc"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:35:19 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6393
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6394
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6395
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
6396
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6397
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6398
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6400
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6402
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6403
|
+
Connecting to database specified by database.yml
|
6404
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' LIMIT 1[0m
|
6405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6406
|
+
[1m[36mSQL (26.7ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 05 Jul 2013 13:36:18 UTC +00:00], ["criteria", "#ct"], ["name", "clock"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:36:18 UTC +00:00], ["url", "http://www.timeanddate.com/worldclock/city.html?n=136"]]
|
6407
|
+
[1m[35m (147.2ms)[0m commit transaction
|
6408
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' LIMIT 1[0m
|
6409
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6410
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 05 Jul 2013 13:36:19 UTC +00:00], ["criteria", "#intro"], ["name", "ruby"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:36:19 UTC +00:00], ["url", "http://www.ruby-lang.org/en/"]]
|
6411
|
+
[1m[35m (158.1ms)[0m commit transaction
|
6412
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6413
|
+
[1m[35mFixture Delete (1.1ms)[0m DELETE FROM "remote_partial_partials"
|
6414
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "remote_partial_partials" ("id", "name", "url", "criteria", "repeat_period", "created_at", "updated_at") VALUES (1, 'simple', 'http://www.warwickshire.gov.uk', 'p:first-child', 600, '2013-07-05 13:36:20', '2013-07-05 13:36:20')[0m
|
6415
|
+
[1m[35m (145.4ms)[0m commit transaction
|
6416
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6417
|
+
Processing by DemosController#index as HTML
|
6418
|
+
Rendered demos/index.html.erb within layouts/application (3.5ms)
|
6419
|
+
Completed 200 OK in 48ms (Views: 46.8ms | ActiveRecord: 0.0ms)
|
6420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6421
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6422
|
+
Processing by DemosController#show as HTML
|
6423
|
+
Parameters: {"id"=>"fixed"}
|
6424
|
+
Rendered remote_partials/_fixed.html.erb (0.4ms)
|
6425
|
+
Rendered demos/_fixed.html.erb (2.0ms)
|
6426
|
+
Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)
|
6427
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6428
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6429
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6430
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6431
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6432
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6433
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
6434
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6435
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6436
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6437
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6438
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
6439
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
6440
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6441
|
+
[1m[35mRemotePartial::Partial Load (0.7ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6442
|
+
[1m[36m (5.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
6443
|
+
[1m[35m (0.2ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:46:21.048846', "updated_at" = '2013-07-05 13:36:21.055328' WHERE "remote_partial_partials"."id" = 1
|
6444
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6445
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6446
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
6447
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6448
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:36:21.059089' WHERE "remote_partial_partials"."id" = 1[0m
|
6449
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6450
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6451
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
6452
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6453
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6454
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6455
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1
|
6456
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6457
|
+
[1m[35m (0.2ms)[0m UPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:36:21.084181' WHERE "remote_partial_partials"."id" = 1
|
6458
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6459
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6460
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
6461
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6462
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6463
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6464
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
6465
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6466
|
+
[1m[36m (0.7ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:36:21.106569' WHERE "remote_partial_partials"."id" = 1[0m
|
6467
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6468
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
6469
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6470
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
6471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6472
|
+
[1m[35mRemotePartial::Partial Load (0.4ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6473
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6474
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
6475
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6476
|
+
[1m[35mSQL (6.4ms)[0m INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6477
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6478
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6479
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
6480
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
6481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6482
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6483
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6484
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
6485
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6486
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6487
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6488
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6489
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
6490
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6491
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1[0m
|
6492
|
+
[1m[35m (10.5ms)[0m SAVEPOINT active_record_1
|
6493
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = 'other', "updated_at" = '2013-07-05 13:36:21.178269' WHERE "remote_partial_partials"."id" = 223[0m
|
6494
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6495
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6496
|
+
[1m[35mRemotePartial::Partial Load (2.7ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
6497
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
6498
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6499
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6500
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6501
|
+
[1m[36mRemotePartial::Partial Load (5.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
6502
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6503
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 13:36:21.204009' WHERE "remote_partial_partials"."id" = 1[0m
|
6504
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6505
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
6506
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6507
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6508
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
6509
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6510
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6511
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6512
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6513
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6514
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6515
|
+
[1m[35mRemotePartial::Partial Load (0.7ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6516
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6517
|
+
[1m[35m (0.9ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:46:21.249295', "updated_at" = '2013-07-05 13:36:21.250115' WHERE "remote_partial_partials"."id" = 1
|
6518
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6519
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
6520
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6521
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6522
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6523
|
+
[1m[35m (2.3ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:46:21.261753', "updated_at" = '2013-07-05 13:36:21.262402' WHERE "remote_partial_partials"."id" = 1
|
6524
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6525
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
6526
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6527
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6528
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6529
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6530
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6531
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6532
|
+
[1m[36m (1.8ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:46:21.284214', "updated_at" = '2013-07-05 13:36:21.285130' WHERE "remote_partial_partials"."id" = 1[0m
|
6533
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6534
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
6535
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6536
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6537
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6538
|
+
[1m[36m (2.9ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:46:21.300090', "updated_at" = '2013-07-05 13:36:21.300973' WHERE "remote_partial_partials"."id" = 1[0m
|
6539
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6540
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6541
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6542
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
6543
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6544
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6545
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
6546
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6547
|
+
[1m[35m (0.9ms)[0m UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 13:46:21.320036', "updated_at" = '2013-07-05 13:36:21.321483' WHERE "remote_partial_partials"."id" = 1
|
6548
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6549
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
6550
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6551
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6552
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
6553
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6554
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6555
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
6556
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6557
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6558
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6559
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6560
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6561
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
6562
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6563
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6564
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6565
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6566
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6567
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6569
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
6570
|
+
[1m[36mRemotePartial::Partial Load (1.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' LIMIT 1[0m
|
6571
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6572
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["criteria", nil], ["name", "wcc"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 13:36:21 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
|
6573
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6574
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
6575
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
6576
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6577
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6578
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
@@ -11,16 +11,4 @@ class RemotePartialTest < ActiveSupport::TestCase
|
|
11
11
|
assert_equal('wcc', RemotePartial::Partial.last.name)
|
12
12
|
end
|
13
13
|
|
14
|
-
def test_partial_location
|
15
|
-
expected = File.expand_path('../../dummy/app/views/remote_partials', __FILE__)
|
16
|
-
assert_equal expected, RemotePartial.partial_location
|
17
|
-
end
|
18
|
-
|
19
|
-
def test_set_partial_location
|
20
|
-
location = '/tmp'
|
21
|
-
RemotePartial.partial_location = location
|
22
|
-
assert_equal location, RemotePartial.partial_location
|
23
|
-
RemotePartial.partial_location = nil
|
24
|
-
test_partial_location
|
25
|
-
end
|
26
14
|
end
|