shrew 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/models/shrew/page_view.rb +5 -1
- data/lib/shrew/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +78 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 150955991beed6cdb28ece084179ef40e8847b65
|
4
|
+
data.tar.gz: 483dbf826c29d78feb2bf5d2e49833132467026b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fd765aba9f4326e12958b4712751535d97fa25d7aec39c67e4393c08c0cc4bab6c3ef50f78738cbb3e4cf976fae78d79479e09a4c2d54e2af4cf4839d7082cc
|
7
|
+
data.tar.gz: 11ff2d743f3fa480f40359c46f969b279700ae92056de3b2f77ddc1388cfd004916bfbc78bfb9ff9d05b828f3419a9726e38bf703db161d47aa973329daa4ae4
|
data/Gemfile.lock
CHANGED
@@ -9,7 +9,11 @@ module Shrew
|
|
9
9
|
:js_tracking_id, :action, :path, :start_time,
|
10
10
|
:duration)
|
11
11
|
.merge(sent_time: milliseconds_since_epoch)
|
12
|
-
|
12
|
+
begin
|
13
|
+
create(attributes)
|
14
|
+
rescue Exception
|
15
|
+
logger.error 'Shrew could not log the page view, please verify the database is ready'
|
16
|
+
end
|
13
17
|
end
|
14
18
|
|
15
19
|
private
|
data/lib/shrew/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -2326,3 +2326,81 @@ Processing by AnonymousController#index as HTML
|
|
2326
2326
|
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2327
2327
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "shrew_page_views"
|
2328
2328
|
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2329
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2330
|
+
[1m[35m (1.2ms)[0m DELETE FROM "shrew_page_views";
|
2331
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
2332
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'shrew_page_views';
|
2333
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2334
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2335
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2336
|
+
Processing by Shrew::PageViewsController#create as HTML
|
2337
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
2338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2339
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2340
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2341
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2342
|
+
Processing by Shrew::PageViewsController#create as HTML
|
2343
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2344
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2345
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2346
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2347
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2348
|
+
Processing by Shrew::PageViewsController#create as HTML
|
2349
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2350
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2351
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2352
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2353
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2354
|
+
Processing by Shrew::PageViewsController#create as HTML
|
2355
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2356
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2357
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2358
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2360
|
+
Processing by Shrew::PageViewsController#create as HTML
|
2361
|
+
Parameters: {"jTI"=>"1", "jRT"=>"100"}
|
2362
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2363
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2364
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2365
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2366
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2367
|
+
Processing by Shrew::PageViewsController#create as HTML
|
2368
|
+
Parameters: {"jTI"=>"1", "jRT"=>"100"}
|
2369
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2370
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2372
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2373
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2374
|
+
Processing by Shrew::PageViewsController#create as HTML
|
2375
|
+
Parameters: {"jTI"=>"1", "jRT"=>"100"}
|
2376
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2377
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2378
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2379
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2380
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2381
|
+
Processing by AnonymousController#index as HTML
|
2382
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2383
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "shrew_page_views" ("action", "controller", "db_runtime", "duration", "js_tracking_id", "path", "sent_time", "start_time", "status", "view_runtime") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "index"], ["controller", "AnonymousController"], ["db_runtime", 0.0], ["duration", 0], ["js_tracking_id", "<36 bytes of binary data>"], ["path", "/anonymous"], ["sent_time", 1416588350026], ["start_time", 1416588350026], ["status", 200], ["view_runtime", 0.07200000000000001]]
|
2384
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2385
|
+
Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2386
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2387
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2388
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
2389
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2390
|
+
Processing by AnonymousController#index as HTML
|
2391
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2392
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "shrew_page_views" ("action", "controller", "db_runtime", "duration", "js_tracking_id", "path", "sent_time", "start_time", "status", "view_runtime") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "index"], ["controller", "AnonymousController"], ["db_runtime", 0.0], ["duration", 0], ["js_tracking_id", "<36 bytes of binary data>"], ["path", "/anonymous"], ["sent_time", 1416588350039], ["start_time", 1416588350039], ["status", 200], ["view_runtime", 0.103]]
|
2393
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2394
|
+
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2395
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2396
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2397
|
+
[1m[35m (0.0ms)[0m commit transaction
|
2398
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2399
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "shrew_page_views"
|
2400
|
+
Processing by AnonymousController#index as HTML
|
2401
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2402
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "shrew_page_views" ("action", "controller", "db_runtime", "duration", "js_tracking_id", "path", "sent_time", "start_time", "status", "view_runtime") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "index"], ["controller", "AnonymousController"], ["db_runtime", 0.0], ["duration", 0], ["js_tracking_id", "<36 bytes of binary data>"], ["path", "/anonymous"], ["sent_time", 1416588350056], ["start_time", 1416588350056], ["status", 200], ["view_runtime", 0.087]]
|
2403
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2404
|
+
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2405
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "shrew_page_views"
|
2406
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|