shrew 0.0.8 → 0.0.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 016809edec6c8c6942b5bc1785d7ee89ac4e62e6
4
- data.tar.gz: 76401896292825f61beb813d7ff2bed56130ed2c
3
+ metadata.gz: 150955991beed6cdb28ece084179ef40e8847b65
4
+ data.tar.gz: 483dbf826c29d78feb2bf5d2e49833132467026b
5
5
  SHA512:
6
- metadata.gz: af60d9a00c282aeb273cc29d0491a61cc9b89687ccfada3ae68dd9507adb107925b84053801409dc57eeb640cd72f98510cad80a891536937bceffd80449d371
7
- data.tar.gz: 2647b14b2e46de21aea6084853d2f1c99ffa1bd570f1173f9a577b3ba51241b55a720a667d0bcd961cdf4617d9cb17085f32f8fb39dc94efb42ecc7f187c3fe1
6
+ metadata.gz: 4fd765aba9f4326e12958b4712751535d97fa25d7aec39c67e4393c08c0cc4bab6c3ef50f78738cbb3e4cf976fae78d79479e09a4c2d54e2af4cf4839d7082cc
7
+ data.tar.gz: 11ff2d743f3fa480f40359c46f969b279700ae92056de3b2f77ddc1388cfd004916bfbc78bfb9ff9d05b828f3419a9726e38bf703db161d47aa973329daa4ae4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shrew (0.0.7)
4
+ shrew (0.0.8)
5
5
  activerecord (>= 4.0.0)
6
6
  activesupport (>= 4.0.0)
7
7
 
@@ -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
- create(attributes)
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
@@ -1,3 +1,3 @@
1
1
  module Shrew
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
Binary file
@@ -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
   (0.0ms) SELECT COUNT(*) FROM "shrew_page_views"
2328
2328
   (0.4ms) rollback transaction
2329
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2330
+  (1.2ms) DELETE FROM "shrew_page_views";
2331
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2332
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'shrew_page_views';
2333
+  (0.0ms) begin transaction
2334
+  (0.0ms) commit transaction
2335
+  (0.0ms) begin transaction
2336
+ Processing by Shrew::PageViewsController#create as HTML
2337
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2338
+  (0.1ms) rollback transaction
2339
+  (0.0ms) begin transaction
2340
+  (0.0ms) commit transaction
2341
+  (0.0ms) begin transaction
2342
+ Processing by Shrew::PageViewsController#create as HTML
2343
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2344
+  (0.0ms) rollback transaction
2345
+  (0.0ms) begin transaction
2346
+  (0.0ms) commit transaction
2347
+  (0.0ms) begin transaction
2348
+ Processing by Shrew::PageViewsController#create as HTML
2349
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2350
+  (0.0ms) rollback transaction
2351
+  (0.0ms) begin transaction
2352
+  (0.0ms) commit transaction
2353
+  (0.0ms) begin transaction
2354
+ Processing by Shrew::PageViewsController#create as HTML
2355
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2356
+  (0.0ms) rollback transaction
2357
+  (0.0ms) begin transaction
2358
+  (0.0ms) commit transaction
2359
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
2364
+  (0.0ms) begin transaction
2365
+  (0.0ms) commit transaction
2366
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
2371
+  (0.0ms) begin transaction
2372
+  (0.0ms) commit transaction
2373
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
2378
+  (0.0ms) begin transaction
2379
+  (0.0ms) commit transaction
2380
+  (0.0ms) begin transaction
2381
+ Processing by AnonymousController#index as HTML
2382
+  (0.0ms) SAVEPOINT active_record_1
2383
+ SQL (0.4ms) 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", 1416588350026], ["start_time", 1416588350026], ["status", 200], ["view_runtime", 0.07200000000000001]]
2384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2385
+ Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2386
+  (0.4ms) rollback transaction
2387
+  (0.0ms) begin transaction
2388
+  (0.0ms) commit transaction
2389
+  (0.0ms) begin transaction
2390
+ Processing by AnonymousController#index as HTML
2391
+  (0.1ms) SAVEPOINT active_record_1
2392
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2394
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2395
+  (0.4ms) rollback transaction
2396
+  (0.0ms) begin transaction
2397
+  (0.0ms) commit transaction
2398
+  (0.0ms) begin transaction
2399
+  (0.1ms) SELECT COUNT(*) FROM "shrew_page_views"
2400
+ Processing by AnonymousController#index as HTML
2401
+  (0.0ms) SAVEPOINT active_record_1
2402
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2404
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2405
+  (0.1ms) SELECT COUNT(*) FROM "shrew_page_views"
2406
+  (0.5ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrew
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Gross