express_analytics 0.0.3 → 0.0.4

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: 38d25e3f0fa27f02df747688b8c1e93756caba13
4
- data.tar.gz: d2da0b5a7dc85213f75a4c3a9e18e3fecd6323b4
3
+ metadata.gz: 46e7bfe78c330e905cd39737c82bd39521c95a06
4
+ data.tar.gz: 7f7abe57c7881bc15a81b5a1a3fc75e434327021
5
5
  SHA512:
6
- metadata.gz: 4d4bedce0aba485c2220dd62935d23c195e0b13612283feaa3d12ef4a6443af94664b6d7362632e0a45a886c0e491f69a15490aecdf7b275f9587ac3923f9939
7
- data.tar.gz: 405e553371c7b215ceb06aed67ca4d1883a42ccfdf62e961c6a86ea6f28eaa05f895ad80958da1a225b1d0d9ca4d6dcd8c7b1bcfc1bac6f6a2b39e50e3092722
6
+ metadata.gz: 2fb191f18b32e81eba177d2ffd2ef51349e139ba06414fe530a4a5ffa3855ae7ba6269b358e67880c1b642fe6622bbe7904d184bea33dadbf800c741b45d8c01
7
+ data.tar.gz: 7f64c128293b6e87e75368e88bf1b908c680d93a8a24433c86d1fb71569109230ab51ca4a23232be1490092de721e2376d7926e11f56c64aaa7b635363b3836a
@@ -10,7 +10,7 @@ v_box {
10
10
  columns: {
11
11
  "Date" => -> (log_entry) { log_entry.created_at.to_date },
12
12
  'Time EST' => -> (log_entry) { log_entry.created_at.strftime('%T') },
13
- 'User' => -> (log_entry) { helpers.link_to(helpers.truncate(log_entry.username, length: 25), log_entries_path(filter: {username: log_entry.username})) },
13
+ 'User' => -> (log_entry) { helpers.link_to_if(log_entry.username.present?, helpers.truncate(log_entry.username||'', length: 25), log_entries_path(filter: {username: log_entry.username})) },
14
14
  'Action' => -> (log_entry) { helpers.link_to(log_entry.action, log_entries_path(filter: {action: log_entry.action}))},
15
15
  'When' => :created_at_in_words,
16
16
  'Notes' => :notes
data/config/menu.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  title: 'Express Analytics'
2
- path: '#'
2
+ path: '/admin/analytics/log_entries'
3
3
  items:
4
4
  -
5
5
  title: 'Log Entries'
@@ -41,7 +41,11 @@ module ExpressAnalytics
41
41
  notes: notes_for_log
42
42
  }
43
43
 
44
- ExpressAnalytics::LogEntry.create(entry_data.merge(geo_data))
44
+ if request.user_agent.match(/Pingdom/)
45
+ # do nothing
46
+ else
47
+ ExpressAnalytics::LogEntry.create(entry_data.merge(geo_data))
48
+ end
45
49
 
46
50
  end
47
51
 
@@ -1,3 +1,3 @@
1
1
  module ExpressAnalytics
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Talcott Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails