watir-screenshot-stitch 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/console +1 -1
- data/lib/watir-screenshot-stitch.rb +2 -1
- data/lib/watir-screenshot-stitch/utilities.rb +11 -0
- data/lib/watir-screenshot-stitch/version.rb +2 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1363896c8f191d48045b435d5063b858451b6a73045774eceb1cb0ef1f195e71
|
4
|
+
data.tar.gz: 5967eefb8e243dfc05336d6d51986695cc6d9ed393e8606e785a69ab2c3ec7e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 367216545643afad3613715763dde039ba47be37a1adb36e59edfc949e25018303b587a9547f3bdc3caa450466c278a041ad6dace9d547c9232ada3dc9825066
|
7
|
+
data.tar.gz: 27c93a6be14c65b86cb235ed6a20670f1d677a4c5999b6d35dc298b4485702cf235638faeee08264025a4fa31df4cc1075614b1b2eca78bb363bd0c4437fb07a
|
data/Gemfile.lock
CHANGED
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "bundler/setup"
|
4
|
-
require "watir
|
4
|
+
require "watir-screenshot-stitch"
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "watir-screenshot-stitch/version"
|
2
|
+
require "watir-screenshot-stitch/utilities"
|
2
3
|
require "watir"
|
3
4
|
require "mini_magick"
|
4
5
|
require "os"
|
@@ -101,7 +102,7 @@ module Watir
|
|
101
102
|
end
|
102
103
|
|
103
104
|
def html2canvas_payload
|
104
|
-
path = File.join(
|
105
|
+
path = File.join(WatirScreenshotStitch::Utilities.directory, "vendor/html2canvas.js")
|
105
106
|
File.read(path)
|
106
107
|
end
|
107
108
|
|
@@ -0,0 +1,11 @@
|
|
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
|
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.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Nissen
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- bin/console
|
128
128
|
- bin/setup
|
129
129
|
- lib/watir-screenshot-stitch.rb
|
130
|
+
- lib/watir-screenshot-stitch/utilities.rb
|
130
131
|
- lib/watir-screenshot-stitch/version.rb
|
131
132
|
- vendor/html2canvas.js
|
132
133
|
- watir-screenshot-stitch.gemspec
|