watir-webdriver-performance 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -1,6 +1,4 @@
1
1
  require 'ostruct'
2
- require 'json'
3
-
4
2
  module Watir
5
3
 
6
4
  # Adds helper for window.performance to Watir::Browser.
@@ -90,7 +88,7 @@ module Watir
90
88
  def performance
91
89
  data = case driver.browser
92
90
  when :internet_explorer
93
- JSON.parse(driver.execute_script("return JSON.stringify(window.performance.toJSON());"))
91
+ Object::JSON.parse(driver.execute_script("return JSON.stringify(window.performance.toJSON());"))
94
92
  else
95
93
  driver.execute_script("return window.performance || window.webkitPerformance || window.mozPerformance || window.msPerformance;")
96
94
  end
@@ -108,5 +106,3 @@ module Watir
108
106
  end
109
107
  end
110
108
  end
111
-
112
-
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "watir-webdriver-performance"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Koopmans"]
12
- s.date = "2014-01-29"
12
+ s.date = "2014-02-19"
13
13
  s.description = "This gem collects and summarises metrics speficied in the W3C Navigation web performance specifications at http://w3c-test.org/webperf/specs/NavigationTiming/ when using watir-webdriver and a compatible browser"
14
14
  s.email = "tim.koops@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-webdriver-performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-29 00:00:00.000000000 Z
12
+ date: 2014-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: watir-webdriver
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  segments:
231
231
  - 0
232
- hash: -3125450726429857268
232
+ hash: 852718529520133899
233
233
  required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  none: false
235
235
  requirements: