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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed2fea94711ca61c6493f3315b94a564c131a369
4
- data.tar.gz: ade737daf2cb7581b4607c8a458eaaf16be1dbf3
3
+ metadata.gz: d406031fe2a35cdf70f1cd49da677e18b491d438
4
+ data.tar.gz: a0a5f4da3f7325356279c6c1c3d2a8c7fb053c10
5
5
  SHA512:
6
- metadata.gz: 0522136064864d376bcba2419a0293e9c0ed1f88e4864deb4271ab6a91f11a6a6f22d752931161c210c1deb693749e6d185af70a96d67bc8744ff284560b073d
7
- data.tar.gz: db1de86bd34809916432db4c6a97788a94283f64887146547f47d2a4862bc4e85f27e789d11fc3501cab15815d84e5374d44867864a127a7a0390965b48b078e
6
+ metadata.gz: cdc81cba3ffc423e2c4751e13c705805d0141168b5ca00b4d430e73db53b6e000f703ab3b093c460d3ae88c71188d1eafa0084915d04522bf33bf2dbdb26d7cd
7
+ data.tar.gz: 6dbe8886f64deb0799f11b97a4cf8d791a67655958f7ef112f9c578e467180fcc2ef31478ea1ffbc3a1b7d6916d0b48b99b7a737f663db850307a870c3248580
data/.gitignore CHANGED
@@ -27,7 +27,7 @@ build/
27
27
 
28
28
  # for a library or gem, you might want to ignore these files since the code is
29
29
  # intended to run in multiple environments; otherwise, check them in:
30
- # Gemfile.lock
30
+ Gemfile.lock
31
31
  # .ruby-version
32
32
  # .ruby-gemset
33
33
 
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 window.innerWidth")
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 window.innerHeight")
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.window_width
46
+ while new_boundary < platform.page_width
47
47
  column_boundary_ary << new_boundary
48
48
  new_boundary += platform.window_width
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module ChromedriverScreenshot
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -1,6 +1,4 @@
1
- require "spec_helper"
2
-
3
- describe ChromedriverScreenshot::Page do
1
+ RSpec.describe ChromedriverScreenshot::Page do
4
2
  context "#initialize" do
5
3
  subject { ChromedriverScreenshot::Page.new }
6
4
 
@@ -1,6 +1,4 @@
1
- require "spec_helper"
2
-
3
- describe ChromedriverScreenshot::Tile do
1
+ RSpec.describe ChromedriverScreenshot::Tile do
4
2
  context "#screenshot" do
5
3
  subject { new_tile.screenshot }
6
4
  before(:each) do
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.3
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: 2015-10-23 00:00:00.000000000 Z
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.6
101
+ rubygems_version: 2.4.8
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Full-page screenshots for Chromedriver