Skip to content

Commit

Permalink
chore: Generate binstubs, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Nov 4, 2023
1 parent 020bd25 commit 46857b4
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Gemfile.*
doc
pkg
tmp
.idea
.ruby-version
.yardoc
50 changes: 0 additions & 50 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
## [0.13](https://github.com/rubycdp/ferrum/compare/v0.12...v0.13) - (Nov 12, 2022) ##

### Added

- `Ferrum::Browser::VersionInfo`
- `Ferrum::Browser`
- `#version` requests the browser's version information.
Expand All @@ -66,7 +65,6 @@
### Changed

### Fixed

- `Ferrum::Keyboard`
- `#up, #down` accept only one key.
- `Ferrum::Page#goto` fixed undefined method url for nil:NilClass when page times out and there are pending requests.
Expand All @@ -76,15 +74,13 @@
- `Ferrum::NoExecutionContextError` is raised sometimes when we block on `Ferrum::Page#frame_by`

### Removed

- `Ferrum::Browser#proxy_server`
- `Ferrum::Browser.new(proxy: { server: true })` :server option.


## [0.12](https://github.com/rubycdp/ferrum/compare/v0.11...v0.12) - (Sep 13, 2022) ##

### Added

- Alias `Ferrum::Frame#content=` to `Ferrum::Frame#set_content`
- Alias `Ferrum::Node#propery` to `Ferrum::Node#[]`
- Implement `Ferrum::Network#blacklist=` and `Ferrum::Network#whitelist=`
Expand All @@ -109,7 +105,6 @@ a block with this page, after which the page is closed.
- `Ferrum::Page::Tracing#record(&block)` start/stop tracing for steps provided in passed block

### Changed

- Use `Concurrent::MVar` as `execution_id` in `Ferrum::Frame`
- Min Ruby version is 2.6 and 3.0 is supported
- `Ferrum::Page#bypass_csp` accepts hash as argument `enabled: true` by default
Expand All @@ -126,7 +121,6 @@ a block with this page, after which the page is closed.
- `Ferrum.mri?` -> `Ferrum::Utils::Platform.mri?`

### Fixed

- `Ferrum::Node#selected`, `Ferrum::Node#select` to work in frame scope

### Removed
Expand All @@ -135,7 +129,6 @@ a block with this page, after which the page is closed.
## [0.11](https://github.com/rubycdp/ferrum/compare/v0.10.2...v0.11) - (Mar 11, 2021) ##

### Added

- `Ferrum::CoordinatesNotFoundError`
- `Ferrum::Node`
- `#wait_for_stop_moving` wait for any js or css movements to finish
Expand All @@ -150,14 +143,12 @@ a block with this page, after which the page is closed.
- `--no-startup-window` flag to Chrome by default

### Changed

- `Ferrum::NodeIsMovingError` -> `Ferrum::NodeMovingError`
- `Ferrum::Node::MOVING_WAIT` -> `Ferrum::Node::MOVING_WAIT_DELAY`
- `Ferrum::Node::MOVING_ATTEMPTS` -> `Ferrum::Node::MOVING_WAIT_ATTEMPTS`
- `Concurrent::Hash` -> `Concurrent::Map` in contexts

### Fixed

- Typo `Ferrum::Page::Screenshot::PAPEP_FORMATS` -> `Ferrum::Page::Screenshot::PAPER_FORMATS`

### Removed
Expand All @@ -170,7 +161,6 @@ a block with this page, after which the page is closed.
### Changed

### Fixed

- Set `Ferrum::Page` `@event` when setting up main frame

### Removed
Expand All @@ -183,7 +173,6 @@ a block with this page, after which the page is closed.
### Changed

### Fixed

- Don't mutate options in `Ferrum::Frame::Runtime#call`

### Removed
Expand All @@ -192,7 +181,6 @@ a block with this page, after which the page is closed.
## [0.10](https://github.com/rubycdp/ferrum/compare/v0.9...v0.10) - (Feb 23, 2021) ##

### Added

- Added alias `go_to` for `goto`
- Introduce `Ferrum::Browser` option `:pending_connection_errors`
- You can pass background to screenshot method `browser.screenshot(background_color: Ferrum::RGBA.new(0, 0, 0, 0.0))`
Expand All @@ -201,13 +189,11 @@ a block with this page, after which the page is closed.
- `Ferrum::Page#mhtml`

### Changed

- `Ferrum::Browser::Process::PROCESS_TIMEOUT` is 2 -> 10 by default
- `Ferrum::Browser::Network#authorize` now accepts block
- `Ferrum::Page#pdf` method now streams file with `transferMode: "ReturnAsStream"` mode good for large files

### Fixed

- `execution_id` in Runtime is called with retry
- Main frame is set correct under some circumstances
- `Network.loadingFailed` event is added to catch canceled requests
Expand All @@ -221,7 +207,6 @@ a block with this page, after which the page is closed.
## [0.9](https://github.com/rubycdp/ferrum/compare/v0.8...v0.9) - (Jul 24, 2020) ##

### Added

- `Ferrum::NodeIsMovingError` to raise error when node is moving before clicking
- `FERRUM_NODE_MOVING_WAIT` and `FERRUM_NODE_MOVING_ATTEMPTS` envs are added to wait until node stops moving with
at least `n` attempts
Expand All @@ -234,7 +219,6 @@ a block with this page, after which the page is closed.
### Changed

### Fixed

- `Ferrum::Network::Request#respond` can accept content longer than 45 chars
- `Ferrum::Browser::Subscriber` is thread safe

Expand All @@ -244,7 +228,6 @@ a block with this page, after which the page is closed.
## [0.8](https://github.com/rubycdp/ferrum/compare/v0.7...v0.8) - (Apr 7, 2020) ##

### Added

- `Ferrum::Frame` supports looking up nodes inside frame with methods:
- `#at_css`
- `#css`
Expand All @@ -256,7 +239,6 @@ a block with this page, after which the page is closed.
- `Ferrum::Page#stop` to stop loading page

### Changed

- Fix Ruby 2.7 warnings
- `Ferrum::Node#click` accepts `offset: { :x, :y, :position (:top | :center)` and `:delay` options
- Instantiate empty main frame in advance
Expand All @@ -265,26 +247,22 @@ a block with this page, after which the page is closed.
- `Ferrum::Browser::Cookies#set` supports `:httponly` and `:samesite` options

### Fixed

- `Ferrum::Frame#execution_id` should be set only once
- `Ferrum::Page#doctype` can be nil
- Add `:slowmoable` option to all methods with visual representation
- `Ferrum::Page#screenshot` works for html tag set with 100% width and height

### Removed

- `.ruby-version` file from repository


## [0.7](https://github.com/rubycdp/ferrum/compare/v0.6.2...v0.7) - (Jan 28, 2020) ##

### Fixed

- Fix issue when connection is refused and shows up as pending
- Can set `Accept-Language` even if `User-Agent` is not provided

### Added

- `FERRUM_GOTO_WAIT` env is added with default value of 0.1
- `Ferrum::Network::Response#type` shows type of the response
- `Ferrum::Network`
Expand All @@ -307,22 +285,19 @@ a block with this page, after which the page is closed.
- `#bypass_csp` can now bypass csp headers when injecting scripts

### Changed

- `Ferrum::StatusError#pendings` now shows all pending connections when time is out
- `Ferrum::Browser::Process#path` is delegated to `Command`

### Fixed

### Removed

- Stop listening to `Page.domContentEventFired`, `Page.frameScheduledNavigation` and
`Page.frameClearedScheduledNavigation` events


## [0.6.2](https://github.com/rubycdp/ferrum/compare/v0.6.1...v0.6.2) - (Oct 30, 2019) ##

### Added

- `Ferrum::Target`:
- `#page=` attribute writer
- `#maybe_sleep_if_new_window` - sleep with `Ferrum::Target::NEW_WINDOW_WAIT` seconds by `Ferrum::Target#window?`
Expand All @@ -338,12 +313,10 @@ a block with this page, after which the page is closed.
## [0.6.1](https://github.com/rubycdp/ferrum/compare/v0.6...v0.6.1) - (Oct 30, 2019) ##

### Added

- `Ferrum::Frame#execution_id?` - boolean of equals passed argument `execution_id` and current `execution_id` from
current class instance

### Changed

- `Ferrum::Page::Frames` - fix missing frame:
- `#frame_by` - optional argument `execution_id` removed with change subscriber to search by
`Ferrum::Frame#execution_id?`
Expand All @@ -356,7 +329,6 @@ current class instance
## [0.6.0](https://github.com/rubycdp/ferrum/compare/v0.5...v0.6) - (Oct 29, 2019) ##

### Added

- description of `browser.add_script_tag/browser.add_style_tag` in README
- `Ferrum::Target#attached?` - boolean of the check the exists of `Ferrum::Target#page`
- `Ferrum::Page::Screenshot::DEFAULT_PDF_OPTIONS` - pdf settings constant
Expand Down Expand Up @@ -389,7 +361,6 @@ current class instance
- `#inspect` - simple implementation of native `inspect` method with returns of the current internal state

### Changed

- `Ferrum::Page::Screenshot#screenshot` - handle `:full` option
- `Ferrum::Page::Frame` into `Ferrum::Frame`:
- initializer accepts three arguments:
Expand Down Expand Up @@ -451,7 +422,6 @@ current class instance
### Fixed

### Removed

- `Ferrum::Page`
- `#frame_name`
- `#frame_url`, with delegated `Ferrum::Browser#frame_url`
Expand All @@ -466,7 +436,6 @@ current class instance
## [0.5.0](https://github.com/rubycdp/ferrum/compare/v0.4...v0.5) - (Sep 27, 2019) ##

### Added

- description of `Thread safety` approach section in README
- `Ferrum::NoSuchTargetError`
- `Ferrum::Network::Request#url_fragment` - delegation to `urlFragment` of instance `request`
Expand Down Expand Up @@ -535,7 +504,6 @@ object
- `Ferrum::Browser#windows`

### Changed

- `Ferrum::NoSuchWindowError` into `NoSuchPageError`
- `Ferrum::Page::NEW_WINDOW_WAIT` moved as unchanged to `Ferrum::Target`
- `Ferrum::Browser#page` - the delegation from `Ferrum::Browser#targets` to `Ferrum::Browser#default_context`
Expand All @@ -545,7 +513,6 @@ to `Ferrum::Browser#default_context`
### Fixed

### Removed

- `Ferrum::EmptyTargetsError`
- the `hack` to handle `new window` which doesn't have events at all by `Ferrum::Page#session_id` with
`Target.attachToTarget` and `Target.detachFromTarget` usage
Expand All @@ -563,7 +530,6 @@ to `Ferrum::Browser#default_context`
## [0.4.0](https://github.com/rubycdp/ferrum/compare/v0.3...v0.4) - (Sep 17, 2019) ##

### Added

- `Ferrum::Network` module - moved logic from `Ferrum::Page::Net` with addition changes
- `Ferrum::Browser#network` - instance of `Ferrum::Network` from delegated `Ferrum::Page` instance
- `Ferrum::Network#request` & `Ferrum::Network#response` - delegation to `Network::Exchange` instance
Expand All @@ -586,7 +552,6 @@ current internal state
- `Ferrum::Page::Frame#frame_id` - reader to public available of `frameId` by `Ferrum::Page#frame_id`

### Changed

- description of `Network/Authorization/Interception` sections in README
- `Ferrum::Browser#screenshot` & `Ferrum::Browser#pdf` methods are returns bin when no path is given
- `Ferrum::Browser#status` delegated to `Ferrum::Network`
Expand All @@ -604,7 +569,6 @@ to handle `encodedDataLength` when `Network.responseReceived` is not dispatched
### Fixed

### Removed

- `Ferrum::Network::Response#redirect_url`
- `Ferrum::Page::Net`
- `Ferrum::Browser#abort_request`
Expand All @@ -617,7 +581,6 @@ to handle `encodedDataLength` when `Network.responseReceived` is not dispatched
## [0.3.0](https://github.com/rubycdp/ferrum/compare/v0.2.1...v0.3) - (Sep 12, 2019) ##

### Added

- CI build by TravisCI for ruby versions: `2.3/2.4/2.5/2.6/jruby-9.2.8.0`
- fix specs with support of MacOS time formats
- `Ferrum::Mouse::CLICK_WAIT` as `FERRUM_CLICK_WAIT` `ENV-var` with `0.1` as default value
Expand Down Expand Up @@ -650,7 +613,6 @@ to handle `encodedDataLength` when `Network.responseReceived` is not dispatched
- JRuby support by replaces of `::Process::CLOCK_MONOTONIC` usages according to `Elapsed-time` implementation

### Changed

- fix globally changing of Thread behaviour on options `abort_on_exception/report_on_exception`
- `Ferrum::Page::Input#find_position` into `Ferrum::Node#find_position`
- `Ferrum::Browser#scroll_to` into `Ferrum::Mouse#scroll_to`
Expand All @@ -667,7 +629,6 @@ with `0.3` as default value
### Fixed

### Removed

- `Ferrum::Page::Input`
- `Ferrum::Browser#proxy_authorize` / `Ferrum::Page::Net#proxy_authorize`
- `Ferrum::ModalNotFoundError`
Expand All @@ -682,12 +643,10 @@ with `0.3` as default value
## [0.2.1](https://github.com/rubycdp/ferrum/compare/v0.2...v0.2.1) - (Sep 5, 2019) ##

### Added

- handle `EOFError/Errno::ECONNRESET/Errno::EPIPE` errors with rescue
- description options of `Customization` in README

### Changed

- increased `Browser::Process::PROCESS_TIMEOUT` constant by 1
- `Ferrum::Network::InterceptedRequest#match?` to handle cases for `Ruby 2.3` and less

Expand All @@ -699,7 +658,6 @@ with `0.3` as default value
## [0.2.0](https://github.com/rubycdp/ferrum/compare/v0.1.2...v0.2) - (Sep 3, 2019) ##

### Added

- snippet examples of the actions in README
- `Ferrum::Node#focus` - fires the `command` `DOM.focus` on `Ferrum::Page` instance
- `Ferrum::Node#blur` - evaluates JS: `this.blur()` on `Ferrum::Page` instance
Expand Down Expand Up @@ -739,7 +697,6 @@ into `Network.setRequestInterception`
by passed interception_id

### Changed

- `Ferrum::Page::Input#send_keys` into `Ferrum::Page::Input#type`
- `Ferrum::DeadBrowser` into `Ferrum::DeadBrowserError`
- `Ferrum::ModalNotFound` into `Ferrum::ModalNotFoundError`
Expand All @@ -755,7 +712,6 @@ by passed interception_id
### Fixed

### Removed

- `Ferrum::ObsoleteNode` error
- `Ferrum::FrameNotFound` error
- `Ferrum::Page::Input#set`
Expand Down Expand Up @@ -785,7 +741,6 @@ by passed interception_id
## [0.1.2](https://github.com/rubycdp/ferrum/compare/v0.1.1...v0.1.2) - (Aug 27, 2019) ##

### Added

- catch of the intermittent errors inside of `evaluate's` methods
- `Ferrum::Page::Runtime#evaluate_on` - fires `Runtime.callFunctionOn` command
with `functionDeclaration` on `Ferrum::Page`
Expand All @@ -795,14 +750,12 @@ with `functionDeclaration` on `Ferrum::Page`
### Fixed

### Removed

- `Ferrum::Page::Runtime#evaluate_in`


## [0.1.1](https://github.com/rubycdp/ferrum/compare/v0.1.0...v0.1.1) - (Aug 26, 2019) ##

### Added

- stringify the `url` which passed to `Ferrum::Page#goto`

### Changed
Expand All @@ -815,11 +768,9 @@ with `functionDeclaration` on `Ferrum::Page`
## [0.1.0](https://github.com/rubycdp/ferrum/compare/v0.1.0.alpha...v0.1.0) - (Aug 26, 2019) ##

### Added

- fires the `Ferrum::NodeError` on zero of `node_id`

### Changed

- basic description in README

### Fixed
Expand All @@ -830,7 +781,6 @@ with `functionDeclaration` on `Ferrum::Page`
## [0.1.0.alpha](https://github.com/rubycdp/ferrum/releases/tag/v0.1.0.alpha) - (Aug 2, 2019) ##

### Added

- Initial implementation
- `Ferrum`
- `Ferrum::Network` - simple requests/responses data store
Expand Down
Loading

0 comments on commit 46857b4

Please sign in to comment.