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: 4f561aad110b6d5ec14d10ffb7081ca534c491a8f9e3ed1132a5df881da81413
4
- data.tar.gz: 42501bd6aef6ebcb9f9330b7bf5aafbb1127caac314cbe51768f70231578b9f3
3
+ metadata.gz: adaad65e17883bc1bd5f9b7a05e9528a5c0bd732a7c3684905629d9ed398660e
4
+ data.tar.gz: bfd6668b82eda083a0a4fa0b08b3f512c5455b712f7a99db4dc4777f5122df30
5
5
  SHA512:
6
- metadata.gz: 174aa90233570368a21bd85a6711eb173097f2d0368dbabd07bb7f408fc765e114ee83a982ddc42dd9e8e71363d13e12975643120634f4fa82d5dae9da21941a
7
- data.tar.gz: c6a6765576e3c307076c7c5056efb11e26e187165cbe9507db7d1e541a3f394b636d92874e7958639c16b2242bbf62b3fba2aff4fdbdd31b77185d6c0b79c51e
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.join(WatirScreenshotStitch::Utilities.directory, "vendor/html2canvas-0.4.1.js")
207
+ path = File.expand_path("../../vendor/html2canvas-0.4.1.js", __FILE__)
209
208
  File.read(path)
210
209
  else
211
- path = File.join(WatirScreenshotStitch::Utilities.directory, "vendor/html2canvas.js")
210
+ path = File.expand_path("../../vendor/html2canvas.js", __FILE__)
212
211
  File.read(path)
213
212
  end
214
213
  end
@@ -1,4 +1,4 @@
1
1
  module WatirScreenshotStitch
2
2
  NAME = 'watir-screenshot-stitch'
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.4"
4
4
  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.3
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-23 00:00:00.000000000 Z
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
- rubygems_version: 3.1.2
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