watir-screenshot-stitch 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +53 -0
- data/LICENSE.txt +21 -0
- data/README.md +87 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/watir-screenshot-stitch/version.rb +3 -0
- data/lib/watir-screenshot-stitch.rb +106 -0
- data/watir-screenshot-stitch.gemspec +41 -0
- metadata +156 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8ba4b5b238f75cd352deeb7f1ffde04ff7ed6a28431aed6740163f0c3e79b80d
|
4
|
+
data.tar.gz: ef31000f4b23bfb394fa0fa77b1bfc7504e3230d13d1e052646ff7d8b614b996
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cf8b527dfa9693ad245645c8f11e4ee667a46a4627b91e8b19ed90858ed848e76224ec4acc91f1f28f207f4a3f4d4e014264070014c01dbc90eb65b49d35eabb
|
7
|
+
data.tar.gz: 2da7f9eca707491c9653c6a35368bf99c0ba72913ea0ce7844c8c5710bce03faaf39afef22f1469028b1a65fa6f4d8c76ba2641922f3e3b36057da738af07c75
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at samuel.nissen@rakuten.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
watir-screenshot-stitch (0.4.0)
|
5
|
+
binding_of_caller (~> 0.7)
|
6
|
+
mini_magick (~> 4.0)
|
7
|
+
os (~> 1.0)
|
8
|
+
watir (~> 6.4)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
binding_of_caller (0.7.3)
|
14
|
+
debug_inspector (>= 0.0.1)
|
15
|
+
childprocess (0.8.0)
|
16
|
+
ffi (~> 1.0, >= 1.0.11)
|
17
|
+
debug_inspector (0.0.3)
|
18
|
+
diff-lcs (1.3)
|
19
|
+
ffi (1.9.18)
|
20
|
+
mini_magick (4.8.0)
|
21
|
+
os (1.0.0)
|
22
|
+
rake (10.5.0)
|
23
|
+
rspec (3.7.0)
|
24
|
+
rspec-core (~> 3.7.0)
|
25
|
+
rspec-expectations (~> 3.7.0)
|
26
|
+
rspec-mocks (~> 3.7.0)
|
27
|
+
rspec-core (3.7.1)
|
28
|
+
rspec-support (~> 3.7.0)
|
29
|
+
rspec-expectations (3.7.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.7.0)
|
32
|
+
rspec-mocks (3.7.0)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.7.0)
|
35
|
+
rspec-support (3.7.0)
|
36
|
+
rubyzip (1.2.1)
|
37
|
+
selenium-webdriver (3.8.0)
|
38
|
+
childprocess (~> 0.5)
|
39
|
+
rubyzip (~> 1.0)
|
40
|
+
watir (6.10.2)
|
41
|
+
selenium-webdriver (~> 3.4, >= 3.4.1)
|
42
|
+
|
43
|
+
PLATFORMS
|
44
|
+
ruby
|
45
|
+
|
46
|
+
DEPENDENCIES
|
47
|
+
bundler (~> 1.16)
|
48
|
+
rake (~> 10.0)
|
49
|
+
rspec (~> 3.0)
|
50
|
+
watir-screenshot-stitch!
|
51
|
+
|
52
|
+
BUNDLED WITH
|
53
|
+
1.16.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Sam Nissen
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
# watir-screenshot-stitch
|
2
|
+
|
3
|
+
watir-screenshot-stitch attempts to compensate for Mozilla's decision
|
4
|
+
not to (yet?) expose Firefox's full page screenshot functionality
|
5
|
+
via geckodriver, [as indicated here](https://github.com/mozilla/geckodriver/issues/570),
|
6
|
+
by paging down a given URL by the size of the viewport, capturing
|
7
|
+
the entire page in the process.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'watir-screenshot-stitch', :git => "https://github.com/samnissen/watir-screenshot-stitch.git"
|
15
|
+
```
|
16
|
+
|
17
|
+
### MiniMagick
|
18
|
+
|
19
|
+
watir-screenshot-stitch relies on [MiniMagick](https://github.com/minimagick/minimagick)
|
20
|
+
(and thus ImageMagick). You might need to review that gem's requirements and
|
21
|
+
installation before proceeding.
|
22
|
+
|
23
|
+
### Firefox
|
24
|
+
|
25
|
+
watir-screenshot-stitch is optimized for and tested on Firefox. Your
|
26
|
+
Watir / Selenium-Webdriver / geckodriver / Firefox stack must be correctly
|
27
|
+
configured. If you can find a good guide for installing and maintaining all
|
28
|
+
parts of this stack, you're a better Googler than me.
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
watir-screenshot-stitch attempts can be used with a typical Watir script. This
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
require 'watir-screenshot-stitch'
|
36
|
+
path = "/my/path/image.png"
|
37
|
+
opts = { :page_height_limit => 5000 }
|
38
|
+
|
39
|
+
b = Watir::Browser.new :firefox
|
40
|
+
b.goto "https://github.com/mozilla/geckodriver/issues/570"
|
41
|
+
b.screenshot.save_stitch(path, b, opts)
|
42
|
+
```
|
43
|
+
|
44
|
+
will save a full-page screenshot, up to 5000 pixels tall,
|
45
|
+
to `/my/path/image.png`.
|
46
|
+
|
47
|
+
### macOS Retina
|
48
|
+
|
49
|
+
watir-screenshot-stitch assumes any user running macOS is displaying at
|
50
|
+
'Retina' resolution, therefore multiplies all screen resolutions by 2.
|
51
|
+
Any other operating system will not trigger this multiplication.
|
52
|
+
|
53
|
+
### Passing the browser?
|
54
|
+
|
55
|
+
This is obviously awkward and obtuse. Because watir-screenshot-stitch
|
56
|
+
patches Watir, it does not change the way Watir calls the Screenshot class,
|
57
|
+
which does not know about the Browser instance (it instead knows
|
58
|
+
about the driver). And watir-screenshot-stitch needs the browser to execute
|
59
|
+
JavaScript on the page.
|
60
|
+
|
61
|
+
### Options
|
62
|
+
|
63
|
+
A hash of key value pairs.
|
64
|
+
|
65
|
+
#### `:page_height_limit`
|
66
|
+
Should refer to a positive Integer greater than the viewport height.
|
67
|
+
|
68
|
+
### Maximum height
|
69
|
+
ImageMagick has a maximum pixel dimension of 65500, and all screenshots
|
70
|
+
will be capped to a maximum height of 65500 regardless of any options
|
71
|
+
to avoid errors.
|
72
|
+
|
73
|
+
## Development
|
74
|
+
|
75
|
+
TODO: This.
|
76
|
+
|
77
|
+
## Contributing
|
78
|
+
|
79
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/watir-screenshot-stitch. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
80
|
+
|
81
|
+
## License
|
82
|
+
|
83
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
84
|
+
|
85
|
+
## Code of Conduct
|
86
|
+
|
87
|
+
Everyone interacting in the Watir::Screenshot::Stitch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/watir-screenshot-stitch/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "watir/screenshot/stitch"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
require "watir-screenshot-stitch/version"
|
2
|
+
require "watir"
|
3
|
+
require "mini_magick"
|
4
|
+
require "os"
|
5
|
+
require "binding_of_caller"
|
6
|
+
require "base64"
|
7
|
+
|
8
|
+
MINIMAGICK_PIXEL_DIMENSION_LIMIT = 65500
|
9
|
+
|
10
|
+
module Watir
|
11
|
+
class Screenshot
|
12
|
+
|
13
|
+
#
|
14
|
+
# Represents stitched together screenshot as Base64 encoded string.
|
15
|
+
#
|
16
|
+
# @example
|
17
|
+
# opts = {:page_height_limit => 5000}
|
18
|
+
# browser.screenshot.save_stitch("path/abc.png", browser, opts)
|
19
|
+
#
|
20
|
+
# @param [String] path
|
21
|
+
# @param [Watir::Browser] browser
|
22
|
+
# @param [Hash] opts
|
23
|
+
#
|
24
|
+
|
25
|
+
def save_stitch(path, browser, opts = {})
|
26
|
+
@options = opts
|
27
|
+
@path = path
|
28
|
+
@browser = browser
|
29
|
+
|
30
|
+
calculate_dimensions
|
31
|
+
|
32
|
+
build_canvas
|
33
|
+
|
34
|
+
gather_slices
|
35
|
+
|
36
|
+
stitch_together
|
37
|
+
|
38
|
+
@combined_screenshot.write @path
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
def calculate_dimensions
|
43
|
+
@start = MiniMagick::Image.read(Base64.decode64(self.base64))
|
44
|
+
|
45
|
+
@viewport_height = (@browser.execute_script "return window.innerHeight").to_f.to_i
|
46
|
+
@page_height = (@browser.execute_script "return Math.max( document.documentElement.scrollHeight, document.documentElement.getBoundingClientRect().height )").to_f.to_i
|
47
|
+
|
48
|
+
@mac_factor = 2 if OS.mac?
|
49
|
+
@mac_factor ||= 1
|
50
|
+
|
51
|
+
limit_page_height
|
52
|
+
|
53
|
+
@loops = (@page_height / @viewport_height)
|
54
|
+
@remainder = (@page_height % @viewport_height)
|
55
|
+
end
|
56
|
+
|
57
|
+
def limit_page_height
|
58
|
+
@original_page_height = @page_height
|
59
|
+
|
60
|
+
if @options[:page_height_limit] && ("#{@options[:page_height_limit]}".to_i > 0)
|
61
|
+
@page_height = [@options[:page_height_limit], @page_height].min
|
62
|
+
end
|
63
|
+
|
64
|
+
if (@page_height*@mac_factor > MINIMAGICK_PIXEL_DIMENSION_LIMIT)
|
65
|
+
@page_height = (MINIMAGICK_PIXEL_DIMENSION_LIMIT / @mac_factor)
|
66
|
+
end # https://superuser.com/a/773436
|
67
|
+
end
|
68
|
+
|
69
|
+
def build_canvas
|
70
|
+
@combined_screenshot = MiniMagick::Image.new(@path)
|
71
|
+
@combined_screenshot.run_command(:convert, "-size", "#{ @start.width }x#{ @page_height*@mac_factor }", "xc:white", @combined_screenshot.path)
|
72
|
+
end
|
73
|
+
|
74
|
+
def gather_slices
|
75
|
+
@blocks = []
|
76
|
+
|
77
|
+
@blocks << MiniMagick::Image.read(Base64.decode64(self.base64))
|
78
|
+
|
79
|
+
@loops.times do |i|
|
80
|
+
@browser.execute_script("window.scrollBy(0,#{@viewport_height})")
|
81
|
+
@blocks << MiniMagick::Image.read(Base64.decode64(self.base64))
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
def stitch_together
|
86
|
+
@blocks.each_with_index do |next_screenshot, i|
|
87
|
+
if (@blocks.size == (i+1)) && (@original_page_height == @page_height)
|
88
|
+
next_screenshot.crop last_portion_crop(next_screenshot.width)
|
89
|
+
end
|
90
|
+
|
91
|
+
height = (@viewport_height * i * @mac_factor)
|
92
|
+
combine_screenshot(next_screenshot, height)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
def last_portion_crop(next_screenshot_width)
|
97
|
+
"#{next_screenshot_width}x#{@remainder*@mac_factor}+0+#{(@viewport_height*@mac_factor - @remainder*@mac_factor)}!"
|
98
|
+
end # https://gist.github.com/maxivak/3924976
|
99
|
+
|
100
|
+
def combine_screenshot(next_screenshot, offset)
|
101
|
+
@combined_screenshot = @combined_screenshot.composite(next_screenshot) do |c|
|
102
|
+
c.geometry "+0+#{offset}"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "watir-screenshot-stitch/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "watir-screenshot-stitch"
|
8
|
+
spec.version = WatirScreenshotStitch::VERSION
|
9
|
+
spec.authors = ["Sam Nissen"]
|
10
|
+
spec.email = ["scnissen@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Extends Watir to take stitched-together screenshots of full web pages.}
|
13
|
+
# spec.description = %q{TODO: Write a longer description or delete this line.}
|
14
|
+
spec.homepage = "https://github.com/samnissen/watir-screenshot-stitch"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
# "public gem pushes."
|
24
|
+
# end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
|
37
|
+
spec.add_dependency "watir", "~> 6.4"
|
38
|
+
spec.add_dependency "mini_magick", "~> 4.0"
|
39
|
+
spec.add_dependency "os", "~> 1.0"
|
40
|
+
spec.add_dependency "binding_of_caller", "~> 0.7"
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: watir-screenshot-stitch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sam Nissen
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: watir
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '6.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '6.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mini_magick
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: os
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: binding_of_caller
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.7'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.7'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- scnissen@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".travis.yml"
|
121
|
+
- CODE_OF_CONDUCT.md
|
122
|
+
- Gemfile
|
123
|
+
- Gemfile.lock
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
129
|
+
- lib/watir-screenshot-stitch.rb
|
130
|
+
- lib/watir-screenshot-stitch/version.rb
|
131
|
+
- watir-screenshot-stitch.gemspec
|
132
|
+
homepage: https://github.com/samnissen/watir-screenshot-stitch
|
133
|
+
licenses:
|
134
|
+
- MIT
|
135
|
+
metadata: {}
|
136
|
+
post_install_message:
|
137
|
+
rdoc_options: []
|
138
|
+
require_paths:
|
139
|
+
- lib
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
requirements: []
|
151
|
+
rubyforge_project:
|
152
|
+
rubygems_version: 2.7.3
|
153
|
+
signing_key:
|
154
|
+
specification_version: 4
|
155
|
+
summary: Extends Watir to take stitched-together screenshots of full web pages.
|
156
|
+
test_files: []
|