puppeteer-ruby 0.45.0 → 0.45.1

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: 037ab626560f55e8fe53f7ac978eccd187132d795bdda193b9afc5d761593c77
4
- data.tar.gz: ee5cd15db34563d127fc4d58c846d92273cb47916096de025bed43e7580a1e81
3
+ metadata.gz: 412f52682f38ac6c222322326a469ea07d987975c7fe07196340b5f39fa5bdc6
4
+ data.tar.gz: 682a995b393142f31cc0199c94069f1181cab580382404ab5f94b646d53cf690
5
5
  SHA512:
6
- metadata.gz: a92921b6c243605d715fb3514c1965f69d2c7446236d33d45a0657a9a9a4c401a3223ee4e68eefcd8cadd6cda7cb598c845a74a152ef8ba1f980f3ea29d335d2
7
- data.tar.gz: eb07704a147fa0029b0ac328dee0ec2a6757528058f102669cf2f8e2d6eae954f195665f1cbc4b2bc6a33e02e6b948fea18a78232c65407b9ce0c5762195c2c7
6
+ metadata.gz: 44620fbfc70cb6ea47b27f858be327dd5c16d46a7978fc55c1fad1d5f8f04d051e3aeec0de64a633eaf6986373de1f336266ecbf190c72a098d728454e4ce279
7
+ data.tar.gz: 9fa7e97f996bd994ad7d2db77f9e2433dcc545fdcf90c1711495cf2270d6c9a41442c3abf5f852cca2bda353a9e971c3861cab96fa81ae288e2e7acedd0361dd
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- ### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.45.0...main)]
1
+ ### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.45.1...main)]
2
+
3
+ ### 0.45.1 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.45.0...0.45.1)]
4
+
5
+ Bugfix
6
+
7
+ - Fix screenshot `full_page` option
2
8
 
3
9
  ### 0.45.0 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.44.3...0.45.0)]
4
10
 
data/docs/api_coverage.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # API coverages
2
2
  - Puppeteer version: v19.5.0
3
- - puppeteer-ruby version: 0.45.0
3
+ - puppeteer-ruby version: 0.45.1
4
4
 
5
5
  ## Puppeteer
6
6
 
@@ -121,5 +121,9 @@ class Puppeteer::Page
121
121
  def capture_beyond_viewport?
122
122
  @capture_beyond_viewport
123
123
  end
124
+
125
+ def unset_capture_beyond_viewport!
126
+ @capture_beyond_viewport = false
127
+ end
124
128
  end
125
129
  end
@@ -1095,6 +1095,8 @@ class Puppeteer::Page
1095
1095
  deviceScaleFactor: @viewport&.device_scale_factor || 1,
1096
1096
  screenOrientation: screen_orientation)
1097
1097
  end
1098
+ elsif !clip
1099
+ screenshot_options.unset_capture_beyond_viewport!
1098
1100
  end
1099
1101
 
1100
1102
  should_set_default_background = screenshot_options.omit_background? && format == 'png'
@@ -1,3 +1,3 @@
1
1
  module Puppeteer
2
- VERSION = '0.45.0'
2
+ VERSION = '0.45.1'
3
3
  end
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency 'rollbar'
33
33
  spec.add_development_dependency 'rspec', '~> 3.12.0'
34
34
  spec.add_development_dependency 'rspec_junit_formatter' # for CircleCI.
35
- spec.add_development_dependency 'rubocop', '~> 1.42.0'
35
+ spec.add_development_dependency 'rubocop', '~> 1.43.0'
36
36
  spec.add_development_dependency 'rubocop-rspec'
37
37
  spec.add_development_dependency 'sinatra'
38
38
  spec.add_development_dependency 'webrick'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppeteer-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.45.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-10 00:00:00.000000000 Z
11
+ date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.42.0
173
+ version: 1.43.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.42.0
180
+ version: 1.43.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rubocop-rspec
183
183
  requirement: !ruby/object:Gem::Requirement