shrew 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08a92b898b271df0893a9cae07e5da9a9339438f
4
- data.tar.gz: b2cb9fafe62a8abd0820a0f67448f6cadfa98914
3
+ metadata.gz: 0228490d8f2957112d12be6b77fdb222753199bf
4
+ data.tar.gz: 3b3a5b18b39068b37bc3fd14a2a345277014e3ff
5
5
  SHA512:
6
- metadata.gz: 66dbce425c0109ec66c1a709ae0fe394b42d459cc64cea9a2636a5d7e2fd7da4e85a1fa5b4d7ed558aafcb2b7f56f70178acdc46c91a4657526261984b6823e2
7
- data.tar.gz: 3856eaf445d5c010d64eaf7f0f171f86daf13acfce1666c1e008a3a63fe5514d6e003b671f36be5d7f07ce33eeab2702abf25ab08c28633e781056f66faea7e6
6
+ metadata.gz: 72e28bd7b3dc040b0fac7514eb53c4e97aac34843e9aba33b348eae07fdfdb56fa736fec818985a741b7757b72b8876f8505d93a3f39854cb7abd5869d67cf63
7
+ data.tar.gz: d90ca96186e29caa84500055d2cf6c87f78c66de7c00938486652bc94f3a5806fb7e83de7069a791242b76a07208f34ae08f3a897cc1745b4b493bd5659a0ba0
@@ -6,7 +6,7 @@ module Shrew
6
6
  def self.create_from_payload(payload)
7
7
  attributes = payload.slice(:user_id, :controller, :status, :view_runtime,
8
8
  :db_runtime, :sent_time, :js_return_time,
9
- :js_tracking_id)
9
+ :js_tracking_id, :action, :path)
10
10
  .merge(sent_time: milliseconds_since_epoch)
11
11
  create(attributes)
12
12
  end
@@ -3,6 +3,8 @@ class AddShrewPageViewTable < ActiveRecord::Migration
3
3
  create_table :shrew_page_views do |t|
4
4
  t.integer :user_id
5
5
  t.string :controller
6
+ t.string :action
7
+ t.string :path
6
8
  t.integer :status
7
9
  t.float :view_runtime
8
10
  t.float :db_runtime
@@ -3,6 +3,8 @@ class AddShrewPageViewTable < ActiveRecord::Migration
3
3
  create_table :shrew_page_views do |t|
4
4
  t.integer :user_id
5
5
  t.string :controller
6
+ t.string :action
7
+ t.string :path
6
8
  t.integer :status
7
9
  t.float :view_runtime
8
10
  t.float :db_runtime
@@ -5,6 +5,7 @@ module Shrew
5
5
  def append_info_to_payload(payload)
6
6
  super
7
7
  return unless @_tracking_page_views
8
+ p payload.inspect
8
9
  payload[:user_id] = try(:current_user).try(:id)
9
10
  payload[:js_tracking_id] = @_js_tracking_id
10
11
  end
data/lib/shrew/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shrew
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
data/shrew.gemspec CHANGED
@@ -6,7 +6,6 @@ require 'shrew/version'
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'shrew'
8
8
  s.version = Shrew::VERSION
9
- s.date = '2014-11-05'
10
9
  s.summary = 'Shrew'
11
10
  s.description = 'A simple shrew gem'
12
11
  s.authors = ['Adam Gross']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrew
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Gross
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport