watir-performance 0.9.0 → 0.9.1
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 +4 -4
- data/.travis.yml +8 -8
- data/Gemfile.lock +14 -17
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/idl_extractor.rb +12 -8
- data/watir-performance.gemspec +5 -5
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84411904d715e731248ffc2d92869deb6fcebcbde7a1a930a983f4bd90086906
|
|
4
|
+
data.tar.gz: 76fec560c3bc6bb1a148df436651f9341cc634436ad5ff34bdc52c9b4cacd3f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4477671b3685ff0bbcd6e2ac2740f6ec4d4c7ae4e4a2fe9768b0bdab63cb1ca15851581cb1d2009d6065bdf9c8c3c0555cfbf575b3fa1933c046b71f4bd0d7f
|
|
7
|
+
data.tar.gz: 1639bbcf974c73e9e0377eef0a104787f0055ace3d94b314f658cb2df0976c81d2c336f659f8fabecd0daaf347a0a234ce29ebae7d5305211ad9a7c7103e1a49
|
data/.travis.yml
CHANGED
|
@@ -5,7 +5,7 @@ matrix:
|
|
|
5
5
|
include:
|
|
6
6
|
# Testing all Available Ruby version from 2.3.8 - 2.6.1
|
|
7
7
|
- os: linux
|
|
8
|
-
rvm: 2.6.
|
|
8
|
+
rvm: 2.6.3
|
|
9
9
|
env:
|
|
10
10
|
- MOZ_HEADLESS=1
|
|
11
11
|
addons:
|
|
@@ -16,7 +16,7 @@ matrix:
|
|
|
16
16
|
- gem install bundler
|
|
17
17
|
|
|
18
18
|
- os: linux
|
|
19
|
-
rvm: 2.5.
|
|
19
|
+
rvm: 2.5.5
|
|
20
20
|
env:
|
|
21
21
|
- MOZ_HEADLESS=1
|
|
22
22
|
addons:
|
|
@@ -27,7 +27,7 @@ matrix:
|
|
|
27
27
|
- gem install bundler
|
|
28
28
|
|
|
29
29
|
- os: linux
|
|
30
|
-
rvm: 2.4.
|
|
30
|
+
rvm: 2.4.6
|
|
31
31
|
env:
|
|
32
32
|
- MOZ_HEADLESS=1
|
|
33
33
|
addons:
|
|
@@ -38,7 +38,7 @@ matrix:
|
|
|
38
38
|
- gem install bundler
|
|
39
39
|
|
|
40
40
|
- os: linux
|
|
41
|
-
rvm: 2.3.
|
|
41
|
+
rvm: 2.3.0
|
|
42
42
|
env:
|
|
43
43
|
- MOZ_HEADLESS=1
|
|
44
44
|
addons:
|
|
@@ -50,7 +50,7 @@ matrix:
|
|
|
50
50
|
|
|
51
51
|
# OSX is only testing unsupported browser safari - all results should be pending
|
|
52
52
|
- os: osx
|
|
53
|
-
rvm: 2.6.
|
|
53
|
+
rvm: 2.6.3
|
|
54
54
|
before_install:
|
|
55
55
|
- sudo safaridriver --enable
|
|
56
56
|
- gem update --system
|
|
@@ -58,7 +58,7 @@ matrix:
|
|
|
58
58
|
script: bundle exec rake spec SPEC=spec/watir-performance-non-supported-browser_spec.rb
|
|
59
59
|
|
|
60
60
|
- os: osx
|
|
61
|
-
rvm: 2.5.
|
|
61
|
+
rvm: 2.5.5
|
|
62
62
|
before_install:
|
|
63
63
|
- sudo safaridriver --enable
|
|
64
64
|
- gem update --system
|
|
@@ -66,7 +66,7 @@ matrix:
|
|
|
66
66
|
script: bundle exec rake spec SPEC=spec/watir-performance-non-supported-browser_spec.rb
|
|
67
67
|
|
|
68
68
|
- os: osx
|
|
69
|
-
rvm: 2.4.
|
|
69
|
+
rvm: 2.4.6
|
|
70
70
|
before_install:
|
|
71
71
|
- sudo safaridriver --enable
|
|
72
72
|
- gem update --system
|
|
@@ -74,7 +74,7 @@ matrix:
|
|
|
74
74
|
script: bundle exec rake spec SPEC=spec/watir-performance-non-supported-browser_spec.rb
|
|
75
75
|
|
|
76
76
|
- os: osx
|
|
77
|
-
rvm: 2.3.
|
|
77
|
+
rvm: 2.3.0
|
|
78
78
|
before_install:
|
|
79
79
|
- sudo safaridriver --enable
|
|
80
80
|
- gem update --system
|
data/Gemfile.lock
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
activesupport (5.2.
|
|
4
|
+
activesupport (5.2.3)
|
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
6
6
|
i18n (>= 0.7, < 2)
|
|
7
7
|
minitest (~> 5.1)
|
|
8
8
|
tzinfo (~> 1.1)
|
|
9
9
|
addressable (2.4.0)
|
|
10
10
|
builder (3.2.3)
|
|
11
|
-
childprocess (0.
|
|
12
|
-
|
|
13
|
-
concurrent-ruby (1.1.
|
|
11
|
+
childprocess (1.0.1)
|
|
12
|
+
rake (< 13.0)
|
|
13
|
+
concurrent-ruby (1.1.5)
|
|
14
14
|
descendants_tracker (0.0.4)
|
|
15
15
|
thread_safe (~> 0.3, >= 0.3.1)
|
|
16
16
|
diff-lcs (1.3)
|
|
17
17
|
faraday (0.9.2)
|
|
18
18
|
multipart-post (>= 1.2, < 3)
|
|
19
|
-
ffi (1.10.0)
|
|
20
19
|
git (1.5.0)
|
|
21
20
|
github_api (0.16.0)
|
|
22
21
|
addressable (~> 2.4.0)
|
|
@@ -26,8 +25,8 @@ GEM
|
|
|
26
25
|
mime-types (>= 1.16, < 3.0)
|
|
27
26
|
oauth2 (~> 1.0)
|
|
28
27
|
hashie (3.6.0)
|
|
29
|
-
highline (2.0.
|
|
30
|
-
i18n (1.
|
|
28
|
+
highline (2.0.2)
|
|
29
|
+
i18n (1.6.0)
|
|
31
30
|
concurrent-ruby (~> 1.0)
|
|
32
31
|
jeweler (2.3.9)
|
|
33
32
|
builder
|
|
@@ -46,9 +45,8 @@ GEM
|
|
|
46
45
|
minitest (5.11.3)
|
|
47
46
|
multi_json (1.13.1)
|
|
48
47
|
multi_xml (0.6.0)
|
|
49
|
-
multipart-post (2.
|
|
50
|
-
|
|
51
|
-
nokogiri (1.10.1)
|
|
48
|
+
multipart-post (2.1.1)
|
|
49
|
+
nokogiri (1.10.3)
|
|
52
50
|
mini_portile2 (~> 2.4.0)
|
|
53
51
|
oauth2 (1.4.1)
|
|
54
52
|
faraday (>= 0.8, < 0.16.0)
|
|
@@ -57,17 +55,17 @@ GEM
|
|
|
57
55
|
multi_xml (~> 0.5)
|
|
58
56
|
rack (>= 1.2, < 3)
|
|
59
57
|
psych (3.1.0)
|
|
60
|
-
rack (2.0.
|
|
58
|
+
rack (2.0.7)
|
|
61
59
|
rake (12.3.2)
|
|
62
60
|
rdoc (6.1.1)
|
|
63
|
-
regexp_parser (1.
|
|
61
|
+
regexp_parser (1.5.0)
|
|
64
62
|
rspec (3.8.0)
|
|
65
63
|
rspec-core (~> 3.8.0)
|
|
66
64
|
rspec-expectations (~> 3.8.0)
|
|
67
65
|
rspec-mocks (~> 3.8.0)
|
|
68
66
|
rspec-core (3.8.0)
|
|
69
67
|
rspec-support (~> 3.8.0)
|
|
70
|
-
rspec-expectations (3.8.
|
|
68
|
+
rspec-expectations (3.8.3)
|
|
71
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
72
70
|
rspec-support (~> 3.8.0)
|
|
73
71
|
rspec-mocks (3.8.0)
|
|
@@ -75,8 +73,8 @@ GEM
|
|
|
75
73
|
rspec-support (~> 3.8.0)
|
|
76
74
|
rspec-support (3.8.0)
|
|
77
75
|
rubyzip (1.2.2)
|
|
78
|
-
selenium-webdriver (3.
|
|
79
|
-
childprocess (
|
|
76
|
+
selenium-webdriver (3.142.3)
|
|
77
|
+
childprocess (>= 0.5, < 2.0)
|
|
80
78
|
rubyzip (~> 1.2, >= 1.2.2)
|
|
81
79
|
semver2 (3.4.2)
|
|
82
80
|
thread_safe (0.3.6)
|
|
@@ -85,8 +83,7 @@ GEM
|
|
|
85
83
|
watir (6.16.5)
|
|
86
84
|
regexp_parser (~> 1.2)
|
|
87
85
|
selenium-webdriver (~> 3.6)
|
|
88
|
-
webdrivers (3.
|
|
89
|
-
net_http_ssl_fix
|
|
86
|
+
webdrivers (3.9.4)
|
|
90
87
|
nokogiri (~> 1.6)
|
|
91
88
|
rubyzip (~> 1.0)
|
|
92
89
|
selenium-webdriver (~> 3.0)
|
data/Rakefile
CHANGED
|
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
|
|
|
22
22
|
gem.email = ['robert.maccracken@gmail.com', 'tim.koops@gmail.com']
|
|
23
23
|
gem.authors = ['Robert MacCracken', 'Tim Koopmans']
|
|
24
24
|
gem.required_rubygems_version = '~> 3.0'
|
|
25
|
-
gem.required_ruby_version = '>= 2.
|
|
25
|
+
gem.required_ruby_version = '>= 2.3.0'
|
|
26
26
|
end
|
|
27
27
|
Jeweler::RubygemsDotOrgTasks.new
|
|
28
28
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.1
|
data/lib/idl_extractor.rb
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
require 'nokogiri'
|
|
2
2
|
require 'open-uri'
|
|
3
3
|
require 'zomg'
|
|
4
|
-
require '
|
|
4
|
+
require 'active_support/all'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
# https://w3c-test.org/
|
|
6
|
+
# http://w3c-test.org/webperf/specs/NavigationTiming no longer available
|
|
7
|
+
# archived https://web.archive.org/web/20110322032757/http://w3c-test.org/webperf/specs/NavigationTiming/
|
|
8
|
+
w3c_nav = 'https://www.w3.org/TR/navigation-timing-2/'
|
|
9
|
+
w3c_nav = 'https://web.archive.org/web/20110322032757/http://w3c-test.org/webperf/specs/NavigationTiming/'
|
|
10
|
+
doc = Nokogiri::HTML(URI.open(w3c_nav))
|
|
8
11
|
idl = []
|
|
9
|
-
doc.css('pre.idl').each
|
|
10
|
-
|
|
11
|
-
end
|
|
12
|
+
doc.css('pre.idl').each { |content| idl << content.text }
|
|
13
|
+
|
|
12
14
|
nodes = []
|
|
13
15
|
idl.each do |spec|
|
|
16
|
+
puts spec.inspect
|
|
17
|
+
puts '----'
|
|
18
|
+
#spec = spec.gsub('[Exposed=Window]', '')
|
|
14
19
|
nodes << ZOMG::IDL.parse(spec) unless ZOMG::IDL.parse(spec).nil?
|
|
15
20
|
end
|
|
16
21
|
|
|
@@ -34,8 +39,7 @@ nodes.each do |node|
|
|
|
34
39
|
end
|
|
35
40
|
end
|
|
36
41
|
|
|
37
|
-
open(File.expand_path(File.dirname(__FILE__)) +
|
|
38
|
-
"/#{results[:class].underscore}.rb", 'w') do |f|
|
|
42
|
+
open(File.expand_path(File.dirname(__FILE__)) + "/#{results[:class].underscore}.rb", 'w') do |f|
|
|
39
43
|
f.puts '# auto-generated by idl_extractor.rb'
|
|
40
44
|
f.puts "class #{results[:class]}"
|
|
41
45
|
results[:interfaces].each_key do |interface_name|
|
data/watir-performance.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: watir-performance 0.9.
|
|
5
|
+
# stub: watir-performance 0.9.1 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "watir-performance".freeze
|
|
9
|
-
s.version = "0.9.
|
|
9
|
+
s.version = "0.9.1"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("~> 3.0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
|
13
13
|
s.authors = ["Robert MacCracken".freeze, "Tim Koopmans".freeze]
|
|
14
|
-
s.date = "2019-
|
|
14
|
+
s.date = "2019-05-23"
|
|
15
15
|
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 and a compatible browser".freeze
|
|
16
16
|
s.email = ["robert.maccracken@gmail.com".freeze, "tim.koops@gmail.com".freeze]
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -40,8 +40,8 @@ Gem::Specification.new do |s|
|
|
|
40
40
|
]
|
|
41
41
|
s.homepage = "http://github.com/MacCracken/watir-performance".freeze
|
|
42
42
|
s.licenses = ["MIT".freeze]
|
|
43
|
-
s.required_ruby_version = Gem::Requirement.new(">= 2.
|
|
44
|
-
s.rubygems_version = "3.0.
|
|
43
|
+
s.required_ruby_version = Gem::Requirement.new(">= 2.3.0".freeze)
|
|
44
|
+
s.rubygems_version = "3.0.3".freeze
|
|
45
45
|
s.summary = "A simple helper gem for watir performance metrics".freeze
|
|
46
46
|
|
|
47
47
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: watir-performance
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert MacCracken
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: watir
|
|
@@ -165,14 +165,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
165
165
|
requirements:
|
|
166
166
|
- - ">="
|
|
167
167
|
- !ruby/object:Gem::Version
|
|
168
|
-
version: 2.
|
|
168
|
+
version: 2.3.0
|
|
169
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
requirements:
|
|
171
171
|
- - "~>"
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
173
|
version: '3.0'
|
|
174
174
|
requirements: []
|
|
175
|
-
rubygems_version: 3.0.
|
|
175
|
+
rubygems_version: 3.0.3
|
|
176
176
|
signing_key:
|
|
177
177
|
specification_version: 4
|
|
178
178
|
summary: A simple helper gem for watir performance metrics
|