chromedriver-screenshot 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +8 -0
- data/lib/chromedriver-screenshot/platforms.rb +2 -2
- data/lib/chromedriver-screenshot/row.rb +1 -1
- data/lib/chromedriver-screenshot/version.rb +1 -1
- data/spec/chromedriver-screenshot/page_spec.rb +1 -3
- data/spec/chromedriver-screenshot/tile_spec.rb +1 -3
- data/spec/spec_helper.rb +1 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d406031fe2a35cdf70f1cd49da677e18b491d438
|
4
|
+
data.tar.gz: a0a5f4da3f7325356279c6c1c3d2a8c7fb053c10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdc81cba3ffc423e2c4751e13c705805d0141168b5ca00b4d430e73db53b6e000f703ab3b093c460d3ae88c71188d1eafa0084915d04522bf33bf2dbdb26d7cd
|
7
|
+
data.tar.gz: 6dbe8886f64deb0799f11b97a4cf8d791a67655958f7ef112f9c578e467180fcc2ef31478ea1ffbc3a1b7d6916d0b48b99b7a737f663db850307a870c3248580
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 0.2.4 (November 3, 2016)
|
2
|
+
|
3
|
+
- Added suggested default settings for RSpec
|
4
|
+
|
5
|
+
Bugs:
|
6
|
+
- Can now take screenshots of pages that are wider than the browser
|
7
|
+
- Screenshots no longer include the browser scrollbar
|
8
|
+
|
1
9
|
## 0.2.3 (October 23, 2015)
|
2
10
|
|
3
11
|
Features:
|
@@ -17,11 +17,11 @@ module ChromedriverScreenshot
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def window_width
|
20
|
-
@window_width ||= @bridge.executeScript("return
|
20
|
+
@window_width ||= @bridge.executeScript("return document.body.clientWidth")
|
21
21
|
end
|
22
22
|
|
23
23
|
def window_height
|
24
|
-
@window_height ||= @bridge.executeScript("return
|
24
|
+
@window_height ||= @bridge.executeScript("return document.body.clientHeight")
|
25
25
|
end
|
26
26
|
|
27
27
|
def window_x
|
@@ -43,7 +43,7 @@ module ChromedriverScreenshot
|
|
43
43
|
platform = ChromedriverScreenshot::Platforms.platform
|
44
44
|
|
45
45
|
new_boundary = platform.window_width
|
46
|
-
while new_boundary < platform.
|
46
|
+
while new_boundary < platform.page_width
|
47
47
|
column_boundary_ary << new_boundary
|
48
48
|
new_boundary += platform.window_width
|
49
49
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -45,11 +45,11 @@ RSpec.configure do |config|
|
|
45
45
|
|
46
46
|
# The settings below are suggested to provide a good initial experience
|
47
47
|
# with RSpec, but feel free to customize to your heart's content.
|
48
|
-
=begin
|
49
48
|
# These two settings work together to allow you to limit a spec run
|
50
49
|
# to individual examples or groups you care about by tagging them with
|
51
50
|
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
52
51
|
# get run.
|
52
|
+
#
|
53
53
|
config.filter_run :focus
|
54
54
|
config.run_all_when_everything_filtered = true
|
55
55
|
|
@@ -90,5 +90,4 @@ RSpec.configure do |config|
|
|
90
90
|
# test failures related to randomization by passing the same `--seed` value
|
91
91
|
# as the one that triggered the failure.
|
92
92
|
Kernel.srand config.seed
|
93
|
-
=end
|
94
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chromedriver-screenshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean MacGahan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.4.
|
101
|
+
rubygems_version: 2.4.8
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Full-page screenshots for Chromedriver
|