puppeteer-ruby 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +32 -22
- data/.github/workflows/reviewdog.yml +1 -1
- data/CHANGELOG.md +13 -1
- data/Dockerfile +1 -1
- data/lib/puppeteer/define_async_method.rb +15 -6
- data/lib/puppeteer/version.rb +1 -1
- data/puppeteer-ruby.gemspec +5 -4
- metadata +24 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7f606d2715459bc7986833e68c8ab501e18f2b67473773daf9a65f1baa978db
|
4
|
+
data.tar.gz: 074e5845c7019ae74ea66b9284e7b76ea3deb5fe03bac1fc970c5c1ff3091ade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20a9d1aba0853ea1dbc54786b752d814a6f1c7764d08cc8adc1d372db15e0875dc6cdc8ba474b44f1af5a0879f12d4138d9ebb9c06fbbaf7b85a8aaee62d7ac8
|
7
|
+
data.tar.gz: 37a24532b303653427a30c8f1cc505d99b2eaa999c3d5ca350fbb2bcabda520e2746edc8f43ec0f965b2628b75148466c1cb1d9e26854179c078f4c75f5a05cb
|
data/.circleci/config.yml
CHANGED
@@ -1,30 +1,41 @@
|
|
1
1
|
version: 2.1
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
rspec_chrome_job: &rspec_chrome_job
|
4
|
+
steps:
|
5
|
+
- checkout
|
6
|
+
- run:
|
7
|
+
command: gem install bundler:2.2.3 && bundle install
|
8
|
+
- run:
|
9
|
+
name: rspec
|
10
|
+
command: |
|
11
|
+
DEBUG=1 bundle exec rspec --profile 10 \
|
12
|
+
--format RspecJunitFormatter \
|
13
|
+
--out test_results/rspec.xml \
|
14
|
+
--format documentation
|
4
15
|
|
5
16
|
jobs:
|
6
|
-
|
17
|
+
rspec_chrome_ruby2_6:
|
7
18
|
docker:
|
8
19
|
- image: circleci/ruby:2.6.6-buster-node-browsers
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
+
<<: *rspec_chrome_job
|
21
|
+
|
22
|
+
rspec_chrome_ruby2_7:
|
23
|
+
docker:
|
24
|
+
- image: circleci/ruby:2.7.2-buster-node-browsers
|
25
|
+
<<: *rspec_chrome_job
|
26
|
+
|
27
|
+
rspec_chrome_ruby3_0:
|
28
|
+
docker:
|
29
|
+
- image: circleci/ruby:3.0.0-rc1-buster-node-browsers
|
30
|
+
<<: *rspec_chrome_job
|
20
31
|
|
21
32
|
rspec_firefox:
|
22
33
|
docker:
|
23
|
-
- image: circleci/ruby:2.
|
24
|
-
executor: ruby/default
|
34
|
+
- image: circleci/ruby:2.7.2-buster-node-browsers
|
25
35
|
steps:
|
26
36
|
- checkout
|
27
|
-
-
|
37
|
+
- run:
|
38
|
+
command: gem install bundler:2.2.3 && bundle install
|
28
39
|
- run:
|
29
40
|
name: install firefox-nightly
|
30
41
|
command: |
|
@@ -43,13 +54,10 @@ jobs:
|
|
43
54
|
deploy:
|
44
55
|
docker:
|
45
56
|
- image: circleci/ruby:2.6.3-stretch-node
|
46
|
-
executor: ruby/default
|
47
57
|
steps:
|
48
58
|
- checkout
|
49
59
|
- run:
|
50
|
-
|
51
|
-
command: bundle -v
|
52
|
-
- ruby/bundle-install
|
60
|
+
command: gem install bundler:2.2.3 && bundle install
|
53
61
|
- run:
|
54
62
|
name: rake build
|
55
63
|
command: rake build
|
@@ -70,7 +78,9 @@ jobs:
|
|
70
78
|
workflows:
|
71
79
|
ci:
|
72
80
|
jobs:
|
73
|
-
-
|
81
|
+
- rspec_chrome_ruby2_6
|
82
|
+
- rspec_chrome_ruby2_7
|
83
|
+
- rspec_chrome_ruby3_0
|
74
84
|
- rspec_firefox
|
75
85
|
rubygems-deploy:
|
76
86
|
jobs:
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,19 @@
|
|
1
|
-
### master [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.0.
|
1
|
+
### master [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.0.27...master)]
|
2
2
|
|
3
3
|
* xxx
|
4
4
|
|
5
|
+
### 0.0.27 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.0.26...0.0.27)]
|
6
|
+
|
7
|
+
New features:
|
8
|
+
|
9
|
+
* Now puppeteer-ruby is Ruby 3.0 compatible!
|
10
|
+
|
11
|
+
### 0.0.26 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.0.25...0.0.26)]
|
12
|
+
|
13
|
+
Bugfix:
|
14
|
+
|
15
|
+
* Fix `Page#screenshot` working correctly with `quality` parameter.
|
16
|
+
|
5
17
|
### 0.0.25 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.0.23...0.0.25)]
|
6
18
|
|
7
19
|
New feature:
|
data/Dockerfile
CHANGED
@@ -10,12 +10,21 @@ module Puppeteer::DefineAsyncMethod
|
|
10
10
|
end
|
11
11
|
|
12
12
|
original_method = instance_method(async_method_name[6..-1])
|
13
|
-
define_method(async_method_name) do |*args|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
define_method(async_method_name) do |*args, **kwargs|
|
14
|
+
if kwargs.empty? # for Ruby < 2.7
|
15
|
+
Concurrent::Promises.future do
|
16
|
+
original_method.bind(self).call(*args)
|
17
|
+
rescue => err
|
18
|
+
Logger.new($stderr).warn(err)
|
19
|
+
raise err
|
20
|
+
end
|
21
|
+
else
|
22
|
+
Concurrent::Promises.future do
|
23
|
+
original_method.bind(self).call(*args, **kwargs)
|
24
|
+
rescue => err
|
25
|
+
Logger.new($stderr).warn(err)
|
26
|
+
raise err
|
27
|
+
end
|
19
28
|
end
|
20
29
|
end
|
21
30
|
end
|
data/lib/puppeteer/version.rb
CHANGED
data/puppeteer-ruby.gemspec
CHANGED
@@ -21,14 +21,15 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency 'concurrent-ruby', '~> 1.1.0'
|
22
22
|
spec.add_dependency 'websocket-driver', '>= 0.6.0'
|
23
23
|
spec.add_dependency 'mime-types', '>= 3.0'
|
24
|
-
spec.add_development_dependency 'bundler', '~>
|
24
|
+
spec.add_development_dependency 'bundler', '~> 2.2.3'
|
25
25
|
spec.add_development_dependency 'chunky_png'
|
26
26
|
spec.add_development_dependency 'pry-byebug'
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
28
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
27
|
+
spec.add_development_dependency 'rake', '~> 13.0.3'
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.10.0 '
|
29
29
|
spec.add_development_dependency 'rspec_junit_formatter' # for CircleCI.
|
30
|
-
spec.add_development_dependency 'rubocop', '~>
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 1.6.1'
|
31
31
|
spec.add_development_dependency 'rubocop-rspec'
|
32
32
|
spec.add_development_dependency 'sinatra'
|
33
|
+
spec.add_development_dependency 'webrick'
|
33
34
|
spec.add_development_dependency 'yard'
|
34
35
|
end
|
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.0.
|
4
|
+
version: 0.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YusukeIwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.2.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.2.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: chunky_png
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 13.0.3
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 13.0.3
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 3.10.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 3.10.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec_junit_formatter
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 1.6.1
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 1.6.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rubocop-rspec
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: webrick
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: yard
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|