watir-screenshot-stitch 0.7.3 → 0.7.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adaad65e17883bc1bd5f9b7a05e9528a5c0bd732a7c3684905629d9ed398660e
|
4
|
+
data.tar.gz: bfd6668b82eda083a0a4fa0b08b3f512c5455b712f7a99db4dc4777f5122df30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864f883e66f464dff46e91a79917a7cdd4e234e3893b15277ce2ab5f6f0fbf5cc8d038380e4dba2bf79f38846a09f6f340939761f8b2c9ddc485fbeaba06540c
|
7
|
+
data.tar.gz: b711cd36eefc07ffb408ecbac0e42670b8c2ffdebca7dfe7a94afe5c65b581cbdbc7d1a53a7c176899c903a8ee04e14b1a0e37e292bc6f064219bd5502fd5b32
|
@@ -1,6 +1,5 @@
|
|
1
1
|
require "time"
|
2
2
|
require "watir-screenshot-stitch/version"
|
3
|
-
require "watir-screenshot-stitch/utilities"
|
4
3
|
require "watir"
|
5
4
|
require "mini_magick"
|
6
5
|
require "os"
|
@@ -205,10 +204,10 @@ module Watir
|
|
205
204
|
def html2canvas_payload
|
206
205
|
case @browser.driver.browser
|
207
206
|
when :firefox
|
208
|
-
path = File.
|
207
|
+
path = File.expand_path("../../vendor/html2canvas-0.4.1.js", __FILE__)
|
209
208
|
File.read(path)
|
210
209
|
else
|
211
|
-
path = File.
|
210
|
+
path = File.expand_path("../../vendor/html2canvas.js", __FILE__)
|
212
211
|
File.read(path)
|
213
212
|
end
|
214
213
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir-screenshot-stitch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Nissen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-06-
|
12
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -156,7 +156,6 @@ files:
|
|
156
156
|
- bin/console
|
157
157
|
- bin/setup
|
158
158
|
- lib/watir-screenshot-stitch.rb
|
159
|
-
- lib/watir-screenshot-stitch/utilities.rb
|
160
159
|
- lib/watir-screenshot-stitch/version.rb
|
161
160
|
- vendor/html2canvas-0.4.1.js
|
162
161
|
- vendor/html2canvas.js
|
@@ -180,7 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
179
|
- !ruby/object:Gem::Version
|
181
180
|
version: '0'
|
182
181
|
requirements: []
|
183
|
-
|
182
|
+
rubyforge_project:
|
183
|
+
rubygems_version: 2.7.8
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Extends Watir to take stitched-together screenshots of full web pages.
|
@@ -1,11 +0,0 @@
|
|
1
|
-
module WatirScreenshotStitch
|
2
|
-
module Utilities
|
3
|
-
# Return a directory with the project libraries.
|
4
|
-
def self.directory
|
5
|
-
t = ["#{File.dirname(File.expand_path($0))}/../lib/#{WatirScreenshotStitch::NAME}",
|
6
|
-
"#{Gem.dir}/gems/#{WatirScreenshotStitch::NAME}-#{WatirScreenshotStitch::VERSION}"]
|
7
|
-
t.each {|i| return i if File.readable?(i) }
|
8
|
-
raise "watir-screenshot-stitch could not be found in: #{t}"
|
9
|
-
end # https://stackoverflow.com/a/5805783/1651458
|
10
|
-
end
|
11
|
-
end
|