speed_gun 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: 427c6de7fed65b49851a00b76bb1609a545caea8
4
- data.tar.gz: 19af253428603a30052a922fb9f8ba590339d655
3
+ metadata.gz: c07e8960feed86caf19a06706d295b3418a8ce2e
4
+ data.tar.gz: aef33393a26ad7f812960adf25e225eb0216195f
5
5
  SHA512:
6
- metadata.gz: f4e1c0897e47a5a1ada176ae6eaa26e38f7e2e5a0eb8b8b71c091b4d69a01e9a446c2e0f3ccfeb8bfb9d6861d3c71e783c226ef4db9818e9657b1e6f95ad45f8
7
- data.tar.gz: 70bb7b12a36d8d076f796e8e62f04e59f45abf7933abf6fd2791f3bf243cd1729a9e95222f4392b6831ed7311faf9851ca7ae0dc65e2e61544c899904f6cd9f9
6
+ metadata.gz: bbf60d69bed4567f0e323a3018ed9f36212f37c0a7bb9d9f7b9f279fc59df400b0c0fb55b3e50c0bba8d1bf055c114d6b75594c4e175b73368edf8a6b2446cfa
7
+ data.tar.gz: 1fdc3c2b9e5edadafb1a0b0eee4738d73e5aeb9d10bd4e9ac882eb1ed5e7b0e763653924b5f96e7d746f425ffd6c9ec537b31cd72309f72d2d6f7f902ffb6a5d
@@ -7,6 +7,10 @@ if(!window['speedGun']) { window.speedGun = {}; };
7
7
  var data = {};
8
8
  var p = window['performance'];
9
9
 
10
+ if(!p) {
11
+ return;
12
+ }
13
+
10
14
  data.user_agent = navigator.userAgent;
11
15
 
12
16
  if(p['navigation']) {
@@ -7,6 +7,10 @@ if(!window['speedGun']) { window.speedGun = {}; };
7
7
  var data = {};
8
8
  var p = window['performance'];
9
9
 
10
+ if(!p) {
11
+ return;
12
+ }
13
+
10
14
  data.user_agent = navigator.userAgent;
11
15
 
12
16
  if(p['navigation']) {
@@ -1,3 +1,3 @@
1
1
  module SpeedGun
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speed_gun
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
  - Sho Kusano