rocket_tracker 0.0.2 → 0.0.3

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: 96141fb562ba5a134cb48380ce5bbee2b3fdea2e
4
- data.tar.gz: f4b007287c58f568bd2791936c041459dd059434
3
+ metadata.gz: 7d0866964fefbe88be037cb42fc84c4495996517
4
+ data.tar.gz: 65d021e0c0ebfd9daf8feb99cecb34c0ed091038
5
5
  SHA512:
6
- metadata.gz: 6158434e62bb6fd23e9920185b6abadc6eb18ed95ed282730f5874ab2a37bc4444c5163970af5dbda07d60783dd0fec3ab63b1d45326353c23f5c1cea57a0661
7
- data.tar.gz: 1a5ac5e18b928f48bfe5e32bd390a383dec78f6d4118c0647fac6b030e634cdf66980174c475a736e6847e7b3315b7b63765b38726b3584a2eeb172c6c958ba1
6
+ metadata.gz: 23a721d6785a837b315573f9bbaa4ffb4bb0af964e15b48f10b682dfe57dd577a8c02a1aea00f0ce3c3b73b5040052a7504df8597a879f523b1c4af40627ea0a
7
+ data.tar.gz: 657d79b970d95f9ff58a5e75d97ba397be158552496b591c3d599f8fed5471617a7e840ad79c708b9a037b6c20f3b17f7c5d2dc87a60d7e1dd1c4d31e46eda9b
@@ -8,18 +8,20 @@ if window.performance && window.performance.timing
8
8
  (e - s) / 1000 if s and e
9
9
 
10
10
  $(window).load ->
11
- t = window.performance.timing
12
- obj =
13
- real: time('navigationStart', 'loadEventEnd')
14
- total: time('fetchStart', 'loadEventEnd')
15
- network: time('fetchStart', 'responseEnd')
16
- dns: time('domainLookupStart', 'domainLookupEnd')
17
- domready: time('domainLookupStart', 'domainLookupEnd')
11
+ setTimeout ->
12
+ t = window.performance.timing
13
+ obj =
14
+ real: time('navigationStart', 'loadEventEnd')
15
+ total: time('fetchStart', 'loadEventEnd')
16
+ network: time('fetchStart', 'responseEnd')
17
+ dns: time('domainLookupStart', 'domainLookupEnd')
18
+ domready: time('domainLookupStart', 'domainLookupEnd')
18
19
 
19
- str = ""
20
- for key of obj
21
- str += "&" unless str is ""
22
- str += key + "=" + obj[key]
20
+ str = ""
21
+ for key of obj
22
+ str += "&" unless str is ""
23
+ str += key + "=" + obj[key]
23
24
 
24
- (new Image).src = "#{ROCKET_TRACKER_ENDPOINT}?#{str}"
25
+ (new Image).src = "#{ROCKET_TRACKER_ENDPOINT}?#{str}"
26
+ , 100
25
27
 
@@ -1,3 +1,3 @@
1
1
  module RocketTracker
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv