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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11dc7b41716e02d099aa0cd4a1b183bb124bbd6f1e7ff36456429a869ce3cee9
4
- data.tar.gz: 31a582be0b3e81069f969d8a5d0a6e73a2ae56d93325a33596116b30bf041afd
3
+ metadata.gz: 1363896c8f191d48045b435d5063b858451b6a73045774eceb1cb0ef1f195e71
4
+ data.tar.gz: 5967eefb8e243dfc05336d6d51986695cc6d9ed393e8606e785a69ab2c3ec7e4
5
5
  SHA512:
6
- metadata.gz: 59e26aad22da63937756e9bb92ff40a7e3683f7f7d667e733b58ca34a4af067727bfb78cbde5ca59244e4f0cc55255e9ba0fefd3ddd32d02b81e56dc9b16a0fd
7
- data.tar.gz: '05085b5b810fe3294b797301ec8cd7290ef9724c263b5bb3ef4260d22df1ed783e26352507105287dc19c0f440b19d6c833db408d8632f210c586d6708c7ac81'
6
+ metadata.gz: 367216545643afad3613715763dde039ba47be37a1adb36e59edfc949e25018303b587a9547f3bdc3caa450466c278a041ad6dace9d547c9232ada3dc9825066
7
+ data.tar.gz: 27c93a6be14c65b86cb235ed6a20670f1d677a4c5999b6d35dc298b4485702cf235638faeee08264025a4fa31df4cc1075614b1b2eca78bb363bd0c4437fb07a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- watir-screenshot-stitch (0.6.0)
4
+ watir-screenshot-stitch (0.6.1)
5
5
  binding_of_caller (~> 0.7)
6
6
  mini_magick (~> 4.0)
7
7
  os (~> 1.0)
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "watir/screenshot/stitch"
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(Dir.pwd, "vendor/html2canvas.js")
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
@@ -1,3 +1,4 @@
1
1
  module WatirScreenshotStitch
2
- VERSION = "0.6.1"
2
+ NAME = 'watir-screenshot-stitch'
3
+ VERSION = "0.6.2"
3
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.6.1
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