Skip to content

Commit

Permalink
Merge pull request #248 from YusukeIwaki/apidoc/15.5.0
Browse files Browse the repository at this point in the history
Update API doc definition to 15.5.0
  • Loading branch information
YusukeIwaki committed Aug 15, 2022
2 parents e9f51b1 + 9b837a4 commit a613b24
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.41.0...main)]
### main [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.42.0...main)]

- xxx

### 0.42.0 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.41.0...0.42.0)]

- Port Puppeteer v15.3-v15.5 features, including `Frame#page`

### 0.41.0 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.40.7...0.41.0)]

- Port Puppeteer v14.0-v15.2 features, including `ElementHandle#wait_for_xpath`
Expand Down
2 changes: 1 addition & 1 deletion development/DOCS_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.3.2
15.5.0
3 changes: 2 additions & 1 deletion development/generate_api_coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def api_coverages
end
end

apiversion_content = File.read(File.join(__dir__, 'DOCS_VERSION')).strip
apidoc_content = File.read(File.join(__dir__, 'puppeteer.api.json'))
parser = ApiDocJsonParser.new(apidoc_content)
class_docs = parser.class_docs
Expand All @@ -231,7 +232,7 @@ def api_coverages

File.open(File.join('.', 'docs', 'api_coverage.md'), 'w') do |f|
f.write("# API coverages\n")
f.write("- Puppeteer version: v15.2.0\n")
f.write("- Puppeteer version: v#{apiversion_content}\n")
f.write("- puppeteer-ruby version: #{Puppeteer::VERSION}\n")
end

Expand Down
30 changes: 30 additions & 0 deletions development/puppeteer.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -11710,6 +11710,36 @@
"parameters": [],
"name": "name"
},
{
"kind": "Method",
"canonicalReference": "puppeteer!Frame#page:member(1)",
"docComment": "/**\n * @returns a page associated with the frame.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "page(): "
},
{
"kind": "Reference",
"text": "Page",
"canonicalReference": "puppeteer!Page:class"
},
{
"kind": "Content",
"text": ";"
}
],
"isOptional": false,
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "page"
},
{
"kind": "Method",
"canonicalReference": "puppeteer!Frame#parentFrame:member(1)",
Expand Down
5 changes: 3 additions & 2 deletions docs/api_coverage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# API coverages
- Puppeteer version: v15.2.0
- puppeteer-ruby version: 0.41.0
- Puppeteer version: v15.5.0
- puppeteer-ruby version: 0.42.0

## Puppeteer

Expand Down Expand Up @@ -184,6 +184,7 @@
* isDetached => `#detached?`
* isOOPFrame => `#oop_frame?`
* name
* page
* parentFrame => `#parent_frame`
* select
* setContent => `#set_content`
Expand Down
2 changes: 1 addition & 1 deletion lib/puppeteer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Puppeteer
VERSION = '0.41.0'
VERSION = '0.42.0'
end

0 comments on commit a613b24

Please sign in to comment.