bidi2pdf 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.devcontainer/Dockerfile +53 -0
- data/.devcontainer/devcontainer.json +51 -0
- data/.devcontainer/docker-compose.yml +33 -0
- data/.rubocop.yml +1 -1
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +115 -4
- data/README.md +12 -0
- data/docker/Dockerfile +2 -2
- data/docker/Dockerfile.slim +2 -2
- data/docker/chrome-driver/chrome.json +874 -0
- data/docker/entrypoint.sh +3 -3
- data/lib/bidi2pdf/bidi/browser_tab.rb +52 -0
- data/lib/bidi2pdf/bidi/commands/capture_screenshot.rb +33 -0
- data/lib/bidi2pdf/bidi/commands/set_viewport.rb +32 -0
- data/lib/bidi2pdf/bidi/commands.rb +2 -0
- data/lib/bidi2pdf/bidi/event_manager.rb +2 -2
- data/lib/bidi2pdf/chromedriver_manager.rb +11 -0
- data/lib/bidi2pdf/cli.rb +11 -1
- data/lib/bidi2pdf/launcher.rb +5 -3
- data/lib/bidi2pdf/process_tree.rb +2 -2
- data/lib/bidi2pdf/test_helpers/images.rb +8 -0
- data/lib/bidi2pdf/test_helpers/pdf_file_helper.rb +5 -1
- data/lib/bidi2pdf/test_helpers/pdf_reader_utils.rb +1 -2
- data/lib/bidi2pdf/test_helpers/pdf_text_sanitizer.rb +29 -109
- data/lib/bidi2pdf/test_helpers/testcontainers/chromedriver_container.rb +1 -1
- data/lib/bidi2pdf/test_helpers/testcontainers/chromedriver_test_helper.rb +46 -13
- data/lib/bidi2pdf/test_helpers/testcontainers/container_endpoint.rb +30 -0
- data/lib/bidi2pdf/test_helpers/testcontainers/shared_docker_network.rb +5 -1
- data/lib/bidi2pdf/test_helpers/testcontainers/testcontainers_refinement.rb +33 -0
- data/lib/bidi2pdf/test_helpers/testcontainers.rb +1 -0
- data/lib/bidi2pdf/version.rb +1 -1
- data/lib/bidi2pdf.rb +2 -0
- data/sig/bidi2pdf/bidi/add_headers_interceptor.rbs +16 -9
- data/sig/bidi2pdf/bidi/auth_interceptor.rbs +32 -7
- data/sig/bidi2pdf/bidi/browser.rbs +4 -31
- data/sig/bidi2pdf/bidi/browser_console_logger.rbs +59 -0
- data/sig/bidi2pdf/bidi/browser_tab.rbs +252 -25
- data/sig/bidi2pdf/bidi/client.rbs +95 -43
- data/sig/bidi2pdf/bidi/command_manager.rbs +5 -17
- data/sig/bidi2pdf/bidi/commands/add_intercept.rbs +16 -8
- data/sig/bidi2pdf/bidi/commands/base.rbs +49 -9
- data/sig/bidi2pdf/bidi/commands/browser_close.rbs +3 -1
- data/sig/bidi2pdf/bidi/commands/browser_create_user_context.rbs +2 -0
- data/sig/bidi2pdf/bidi/commands/browser_remove_user_context.rbs +19 -0
- data/sig/bidi2pdf/bidi/commands/browsing_context_close.rbs +8 -2
- data/sig/bidi2pdf/bidi/commands/browsing_context_navigate.rbs +12 -6
- data/sig/bidi2pdf/bidi/commands/browsing_context_print.rbs +10 -5
- data/sig/bidi2pdf/bidi/commands/cancel_auth.rbs +8 -2
- data/sig/bidi2pdf/bidi/commands/capture_screenshot.rbs +31 -0
- data/sig/bidi2pdf/bidi/commands/cdp_get_session.rbs +17 -0
- data/sig/bidi2pdf/bidi/commands/create_window.rbs +4 -0
- data/sig/bidi2pdf/bidi/commands/get_user_contexts.rbs +2 -0
- data/sig/bidi2pdf/bidi/commands/network_continue.rbs +4 -0
- data/sig/bidi2pdf/bidi/commands/page_print.rbs +28 -0
- data/sig/bidi2pdf/bidi/commands/print_parameters_validator.rbs +3 -0
- data/sig/bidi2pdf/bidi/commands/provide_credentials.rbs +12 -6
- data/sig/bidi2pdf/bidi/commands/script_evaluate.rbs +4 -0
- data/sig/bidi2pdf/bidi/commands/session_end.rbs +2 -0
- data/sig/bidi2pdf/bidi/commands/session_status.rbs +3 -1
- data/sig/bidi2pdf/bidi/commands/session_subscribe.rbs +4 -0
- data/sig/bidi2pdf/bidi/commands/set_tab_cookie.rbs +51 -23
- data/sig/bidi2pdf/bidi/commands/set_usercontext_cookie.rbs +17 -19
- data/sig/bidi2pdf/bidi/commands/set_viewport.rbs +31 -0
- data/sig/bidi2pdf/bidi/connection_manager.rbs +2 -1
- data/sig/bidi2pdf/bidi/event_manager.rbs +14 -19
- data/sig/bidi2pdf/bidi/interceptor.rbs +5 -0
- data/sig/bidi2pdf/bidi/js_logger_helper.rbs +9 -0
- data/sig/bidi2pdf/bidi/logger_events.rbs +21 -0
- data/sig/bidi2pdf/bidi/navigation_failed_events.rbs +17 -0
- data/sig/bidi2pdf/bidi/network_event.rbs +54 -46
- data/sig/bidi2pdf/bidi/network_event_formatters/network_event_console_formatter.rbs +63 -0
- data/sig/bidi2pdf/bidi/network_event_formatters/network_event_formatter_utils.rbs +15 -0
- data/sig/bidi2pdf/bidi/network_event_formatters/network_event_html_formatter.rbs +18 -0
- data/sig/bidi2pdf/bidi/network_event_formatters.rbs +6 -0
- data/sig/bidi2pdf/bidi/network_events.rbs +14 -39
- data/sig/bidi2pdf/bidi/session.rbs +144 -31
- data/sig/bidi2pdf/bidi/user_context.rbs +64 -45
- data/sig/bidi2pdf/bidi/web_socket_dispatcher.rbs +22 -30
- data/sig/bidi2pdf/chromedriver_manager.rbs +57 -22
- data/sig/bidi2pdf/cli.rbs +22 -2
- data/sig/bidi2pdf/dsl.rbs +34 -0
- data/sig/bidi2pdf/launcher.rbs +39 -1
- data/sig/bidi2pdf/notifications/event.rbs +40 -0
- data/sig/bidi2pdf/notifications/instrumenter.rbs +21 -0
- data/sig/bidi2pdf/notifications/logging_subscriber.rbs +41 -0
- data/sig/bidi2pdf/notifications.rbs +24 -0
- data/sig/bidi2pdf/process_tree.rbs +2 -2
- data/sig/bidi2pdf/session_runner.rbs +41 -1
- data/sig/bidi2pdf/test_helpers/configuration.rbs +51 -0
- data/sig/bidi2pdf/test_helpers/images/extractor.rbs +43 -0
- data/sig/bidi2pdf/test_helpers/images/image_similarity_checker.rbs +35 -0
- data/sig/bidi2pdf/test_helpers/images/tiff_helper.rbs +70 -0
- data/sig/bidi2pdf/test_helpers/images.rbs +0 -0
- data/sig/bidi2pdf/test_helpers/matchers/contains_pdf_image.rbs +0 -0
- data/sig/bidi2pdf/test_helpers/matchers/contains_pdf_text.rbs +0 -0
- data/sig/bidi2pdf/test_helpers/matchers/have_pdf_page_count.rbs +0 -0
- data/sig/bidi2pdf/test_helpers/matchers/match_pdf_text.rbs +0 -0
- data/sig/bidi2pdf/test_helpers/pdf_file_helper.rbs +23 -0
- data/sig/bidi2pdf/test_helpers/pdf_reader_utils.rbs +49 -0
- data/sig/bidi2pdf/test_helpers/pdf_text_sanitizer.rbs +38 -0
- data/sig/bidi2pdf/test_helpers/spec_paths_helper.rbs +35 -0
- data/sig/bidi2pdf/test_helpers/testcontainers/chromedriver_container.rbs +43 -0
- data/sig/bidi2pdf/test_helpers/testcontainers/chromedriver_test_helper.rbs +45 -0
- data/sig/bidi2pdf/test_helpers/testcontainers/container_endpoint.rbs +25 -0
- data/sig/bidi2pdf/test_helpers/testcontainers/shared_docker_network.rbs +3 -0
- data/sig/bidi2pdf/test_helpers/testcontainers/testcontainers_refinement.rbs +47 -0
- data/sig/bidi2pdf/test_helpers/testcontainers.rbs +6 -0
- data/sig/bidi2pdf/test_helpers.rbs +0 -0
- data/sig/bidi2pdf/verbose_logger.rbs +37 -0
- data/sig/bidi2pdf/version.rbs +3 -0
- data/sig/bidi2pdf.rbs +112 -2
- data/tasks/generate_rbs.rake +11 -11
- metadata +62 -10
- data/sig/bidi2pdf/utils.rbs +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57c77db5483e79f4cfb2314b792fa10eecf910ee319319c8e838cce0c14dc390
|
|
4
|
+
data.tar.gz: '029c81071a16b9c8b276afda6e162811552c095dac134d3f564497f1847840a0'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2eabb11610a39980898f8f66109cc61561e47058815283d7f3db711a63ddf7e88b6bb57829dc2e39cb4f0c29811086986ff27b09c3655c8b4c1281dbfa91e1c8
|
|
7
|
+
data.tar.gz: e7d8d0099c195d503593cd45fb7a62d1f94b67fd05bba6ef64181e6d239fed23fa0a9f5f934430e1b822389ce30b294f8805f0947f85dbbdfced6e4c71a5d95b
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
FROM mcr.microsoft.com/devcontainers/ruby:2-3.4-trixie
|
|
2
|
+
|
|
3
|
+
# Install Rails
|
|
4
|
+
RUN su vscode -c "/usr/local/rvm/bin/rvm fix-permissions"
|
|
5
|
+
|
|
6
|
+
RUN rm -f /etc/apt/sources.list.d/yarn.list \
|
|
7
|
+
&& find /etc/apt/sources.list.d -type f \
|
|
8
|
+
-exec sed -i '\|https://dl.yarnpkg.com/debian|d' {} + \
|
|
9
|
+
&& apt-get update \
|
|
10
|
+
&& apt-get install -y --no-install-recommends \
|
|
11
|
+
build-essential \
|
|
12
|
+
git \
|
|
13
|
+
nodejs \
|
|
14
|
+
ca-certificates \
|
|
15
|
+
curl \
|
|
16
|
+
openssh-server \
|
|
17
|
+
procps \
|
|
18
|
+
util-linux \
|
|
19
|
+
socat \
|
|
20
|
+
libjemalloc2 libvips sqlite3 libyaml-dev chromium-driver \
|
|
21
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
22
|
+
|
|
23
|
+
# Default value to allow debug server to serve content over GitHub Codespace's port forwarding service
|
|
24
|
+
# The value is a comma-separated list of allowed domains
|
|
25
|
+
ENV RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev,.preview.app.github.dev,.app.github.dev"
|
|
26
|
+
|
|
27
|
+
# Install rbenv and ruby-build as vscode.
|
|
28
|
+
RUN su vscode -c 'curl -fsSL https://rbenv.org/install.sh | bash'
|
|
29
|
+
|
|
30
|
+
# Install and select Ruby 3.4.8.
|
|
31
|
+
RUN su vscode -c '\
|
|
32
|
+
export RBENV_ROOT="$HOME/.rbenv" && \
|
|
33
|
+
export PATH="$RBENV_ROOT/bin:$PATH" && \
|
|
34
|
+
eval "$(rbenv init - bash)" && \
|
|
35
|
+
rbenv install 3.4.8 && \
|
|
36
|
+
rbenv global 3.4.8 && \
|
|
37
|
+
rbenv rehash && \
|
|
38
|
+
ruby --version \
|
|
39
|
+
'
|
|
40
|
+
|
|
41
|
+
RUN mkdir -p /home/vscode/.webdrivers \
|
|
42
|
+
&& chown -R vscode:vscode /home/vscode/.webdrivers \
|
|
43
|
+
&& ln -sfn /usr/bin/chromedriver /home/vscode/.webdrivers/chromedriver \
|
|
44
|
+
|
|
45
|
+
# [Optional] Uncomment this section to install additional OS packages.
|
|
46
|
+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
47
|
+
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
|
48
|
+
|
|
49
|
+
# [Optional] Uncomment this line to install additional gems.
|
|
50
|
+
# RUN su vscode -c "gem install <your-gem-names-here>"
|
|
51
|
+
|
|
52
|
+
# [Optional] Uncomment this line to install global node packages.
|
|
53
|
+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
2
|
+
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby-rails-postgres
|
|
3
|
+
{
|
|
4
|
+
"name": "Ruby-Bidi2PDF",
|
|
5
|
+
"dockerComposeFile": "docker-compose.yml",
|
|
6
|
+
"service": "app",
|
|
7
|
+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
|
8
|
+
"runServices": [
|
|
9
|
+
"app",
|
|
10
|
+
"remote-chrome-debug"
|
|
11
|
+
],
|
|
12
|
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
13
|
+
// "features": {},
|
|
14
|
+
"features": {
|
|
15
|
+
"ghcr.io/devcontainers/features/github-cli:1": {},
|
|
16
|
+
"ghcr.io/rails/devcontainer/features/activestorage": {},
|
|
17
|
+
"ghcr.io/devcontainers/features/docker-in-docker:4": {
|
|
18
|
+
"version": "latest",
|
|
19
|
+
"moby": false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
23
|
+
// This can be used to network with other containers or the host.
|
|
24
|
+
// "forwardPorts": [3000, 5432],
|
|
25
|
+
|
|
26
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
|
27
|
+
// "postCreateCommand": "bundle install && rake db:setup",
|
|
28
|
+
|
|
29
|
+
// Configure tool-specific properties.
|
|
30
|
+
"customizations": {
|
|
31
|
+
"jetbrains": {
|
|
32
|
+
"settings": {
|
|
33
|
+
"com.intellij:app:HttpConfigurable.use_proxy_pac": true,
|
|
34
|
+
"com.intellij:app:BaseRefactoringSettings.safe_delete_when_delete": false,
|
|
35
|
+
"com.intellij:app:BaseRefactoringSettings.rename_search_in_comments_for_file": false,
|
|
36
|
+
"com.intellij:app:BaseRefactoringSettings.rename_search_for_references_for_file": false,
|
|
37
|
+
"com.intellij:app:BaseRefactoringSettings.rename_search_for_references_for_directory": false,
|
|
38
|
+
"com.intellij:app:BaseRefactoringSettings.move_search_for_references_for_file": false
|
|
39
|
+
},
|
|
40
|
+
"backend": "RubyMine"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
44
|
+
// "remoteUser": "root",
|
|
45
|
+
|
|
46
|
+
"containerEnv": {
|
|
47
|
+
"IN_DEV_CONTAINER": "true",
|
|
48
|
+
"DISABLE_CHROME_SANDBOX": "true",
|
|
49
|
+
"REMOTE_BROWSER_URL": "http://remote-chrome:3000/session"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
version: '3'
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
app:
|
|
5
|
+
build:
|
|
6
|
+
context: ..
|
|
7
|
+
dockerfile: .devcontainer/Dockerfile
|
|
8
|
+
|
|
9
|
+
# volumes:
|
|
10
|
+
# - ../..:/workspaces:cached
|
|
11
|
+
|
|
12
|
+
# Overrides default command so things don't shut down after the process ends.
|
|
13
|
+
command: sleep infinity
|
|
14
|
+
|
|
15
|
+
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
|
16
|
+
network_mode: service:remote-chrome-debug
|
|
17
|
+
|
|
18
|
+
# volumes:
|
|
19
|
+
# - /var/run/docker.sock:/var/run/docker.sock
|
|
20
|
+
|
|
21
|
+
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
|
|
22
|
+
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
|
23
|
+
|
|
24
|
+
remote-chrome-debug:
|
|
25
|
+
image: dieters877565/chromedriver:latest
|
|
26
|
+
environment:
|
|
27
|
+
ENABLE_XVFB: true
|
|
28
|
+
ENABLE_VNC: true
|
|
29
|
+
VNC_PASS: ${REMOTE_CHROME_VNC_PASS:-supersecret}
|
|
30
|
+
cap_add:
|
|
31
|
+
- SYS_ADMIN
|
|
32
|
+
ports:
|
|
33
|
+
- "127.0.0.1:${REMOTE_CHROME_VNC_PORT:-5900}:5900"
|
data/.rubocop.yml
CHANGED
data/.ruby-gemset
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
-global
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-3.
|
|
1
|
+
ruby-3.4.8
|
data/CHANGELOG.md
CHANGED
|
@@ -6,10 +6,118 @@ All notable changes to this project will be documented in this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
-
[
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
[unreleased]: https://github.com/dieter-medium/bidi2pdf/compare/v0.1.14..HEAD
|
|
10
12
|
|
|
11
13
|
<!-- generated by git-cliff end -->
|
|
12
14
|
|
|
15
|
+
## [0.1.14] - 2026-09-19
|
|
16
|
+
|
|
17
|
+
### 🐛 Fixed
|
|
18
|
+
|
|
19
|
+
- Update Dockerfile to use Ruby 3.4-slim
|
|
20
|
+
|
|
21
|
+
### 🔄 Changed
|
|
22
|
+
|
|
23
|
+
- Merge pull request #120 from dieter-medium/chore-fix-sig
|
|
24
|
+
- Merge pull request #119 from dieter-medium/chore-update-gems
|
|
25
|
+
- Merge pull request #118 from dieter-medium/enhance-test-helpers
|
|
26
|
+
- Merge pull request #103 from dieter-medium/enhance-test-helpers
|
|
27
|
+
- Merge pull request #95 from dieter-medium/dependabot/bundler/bundler-b0eb7e8c29
|
|
28
|
+
- Merge pull request #82 from dieter-medium/dependabot/bundler/main/rake-13.4.2
|
|
29
|
+
- Merge pull request #96 from dieter-medium/dependabot/bundler/main/rubocop-1.88.2
|
|
30
|
+
- Merge pull request #100 from dieter-medium/dependabot/bundler/main/concurrent-ruby-1.3.8
|
|
31
|
+
- Merge pull request #101 from dieter-medium/dependabot/bundler/main/rbs-4.1.0
|
|
32
|
+
- Merge pull request #87 from dieter-medium/dependabot/bundler/main/rubocop-rspec-3.10.2
|
|
33
|
+
- Merge pull request #92 from dieter-medium/dependabot/bundler/main/rubocop-1.88.0
|
|
34
|
+
- Merge pull request #93 from dieter-medium/dependabot/bundler/bundler-0f363c4924
|
|
35
|
+
- Merge pull request #79 from dieter-medium/fix-slim-image
|
|
36
|
+
|
|
37
|
+
### 🔧 Build
|
|
38
|
+
|
|
39
|
+
- Bump excon in the bundler group across 1 directory
|
|
40
|
+
- Bump rake from 13.3.1 to 13.4.2
|
|
41
|
+
- Bump rubocop from 1.88.0 to 1.88.2
|
|
42
|
+
- Bump concurrent-ruby from 1.3.7 to 1.3.8
|
|
43
|
+
- Bump rbs from 4.0.2 to 4.1.0
|
|
44
|
+
- Bump rubocop-rspec from 3.9.0 to 3.10.2
|
|
45
|
+
- Bump rubocop from 1.86.0 to 1.88.0
|
|
46
|
+
- Bump concurrent-ruby
|
|
47
|
+
|
|
48
|
+
### 🚀 Added
|
|
49
|
+
|
|
50
|
+
- Add new RBS type definitions for Bidi2pdf
|
|
51
|
+
- Add screenshot and viewport management
|
|
52
|
+
- Add options for Chrome sandbox and flags wihtin the cli
|
|
53
|
+
|
|
54
|
+
## [0.1.13] - 2026-03-28
|
|
55
|
+
|
|
56
|
+
### 🔄 Changed
|
|
57
|
+
|
|
58
|
+
- Merge pull request #77 from dieter-medium/enhance-chromedriver-params by @dieter-medium
|
|
59
|
+
in [#77](https://github.com/dieter-medium/bidi2pdf/pull/77)
|
|
60
|
+
- Merge pull request #76 from dieter-medium/chore by @dieter-medium
|
|
61
|
+
in [#76](https://github.com/dieter-medium/bidi2pdf/pull/76)
|
|
62
|
+
- Merge pull request #73 from dieter-medium/dependabot/bundler/bundler-3a1337c73c by @dieter-medium
|
|
63
|
+
in [#73](https://github.com/dieter-medium/bidi2pdf/pull/73)
|
|
64
|
+
- Merge pull request #68 from dieter-medium/dependabot/bundler/main/json-2.18.1 by @dieter-medium
|
|
65
|
+
in [#68](https://github.com/dieter-medium/bidi2pdf/pull/68)
|
|
66
|
+
- Merge pull request #60 from dieter-medium/dependabot/bundler/main/pdf-reader-2.15.1 by @dieter-medium
|
|
67
|
+
in [#60](https://github.com/dieter-medium/bidi2pdf/pull/60)
|
|
68
|
+
- Merge pull request #66 from dieter-medium/dependabot/bundler/main/rubocop-1.84.1 by @dieter-medium
|
|
69
|
+
in [#66](https://github.com/dieter-medium/bidi2pdf/pull/66)
|
|
70
|
+
- Merge pull request #63 from dieter-medium/dependabot/bundler/main/rbs-3.10.2 by @dependabot[bot]
|
|
71
|
+
in [#63](https://github.com/dieter-medium/bidi2pdf/pull/63)
|
|
72
|
+
- Merge pull request #65 from dieter-medium/dependabot/bundler/main/thor-1.5.0 by @dependabot[bot]
|
|
73
|
+
in [#65](https://github.com/dieter-medium/bidi2pdf/pull/65)
|
|
74
|
+
- Merge pull request #58 from dieter-medium/dependabot/bundler/main/ruby-vips-2.3.0 by @dieter-medium
|
|
75
|
+
in [#58](https://github.com/dieter-medium/bidi2pdf/pull/58)
|
|
76
|
+
- Merge pull request #52 from dieter-medium/dependabot/bundler/main/rubocop-1.81.7 by @dependabot[bot]
|
|
77
|
+
in [#52](https://github.com/dieter-medium/bidi2pdf/pull/52)
|
|
78
|
+
- Merge pull request #51 from dieter-medium/dependabot/bundler/main/rake-13.3.1 by @dieter-medium
|
|
79
|
+
in [#51](https://github.com/dieter-medium/bidi2pdf/pull/51)
|
|
80
|
+
- Merge pull request #49 from dieter-medium/dependabot/bundler/main/rubocop-1.81.6 by @dependabot[bot]
|
|
81
|
+
in [#49](https://github.com/dieter-medium/bidi2pdf/pull/49)
|
|
82
|
+
- Merge pull request #48 from dieter-medium/dependabot/bundler/main/rspec-3.13.2 by @dependabot[bot]
|
|
83
|
+
in [#48](https://github.com/dieter-medium/bidi2pdf/pull/48)
|
|
84
|
+
- Merge pull request #47 from dieter-medium/dependabot/bundler/main/json-2.15.1 by @dieter-medium
|
|
85
|
+
in [#47](https://github.com/dieter-medium/bidi2pdf/pull/47)
|
|
86
|
+
- Merge pull request #46 from dieter-medium/dependabot/bundler/main/rubocop-1.81.1 by @dieter-medium
|
|
87
|
+
in [#46](https://github.com/dieter-medium/bidi2pdf/pull/46)
|
|
88
|
+
- Merge pull request #45 from dieter-medium/dependabot/bundler/main/json-2.15.0 by @dieter-medium
|
|
89
|
+
in [#45](https://github.com/dieter-medium/bidi2pdf/pull/45)
|
|
90
|
+
- Merge pull request #44 from dieter-medium/dependabot/bundler/main/rubocop-1.80.2 by @dependabot[bot]
|
|
91
|
+
in [#44](https://github.com/dieter-medium/bidi2pdf/pull/44)
|
|
92
|
+
- Merge pull request #43 from dieter-medium/dependabot/bundler/main/rbs-3.9.5 by @dieter-medium
|
|
93
|
+
in [#43](https://github.com/dieter-medium/bidi2pdf/pull/43)
|
|
94
|
+
- Merge pull request #41 from dieter-medium/dependabot/bundler/main/rubocop-1.80.1 by @dieter-medium
|
|
95
|
+
in [#41](https://github.com/dieter-medium/bidi2pdf/pull/41)
|
|
96
|
+
|
|
97
|
+
### 🔧 Build
|
|
98
|
+
|
|
99
|
+
- Bump json in the bundler group across 1 directory by @dependabot[bot]
|
|
100
|
+
- Bump json from 2.18.0 to 2.18.1 by @dependabot[bot]
|
|
101
|
+
- Bump pdf-reader from 2.15.0 to 2.15.1 by @dependabot[bot]
|
|
102
|
+
- Bump rubocop from 1.81.7 to 1.84.1 by @dependabot[bot]
|
|
103
|
+
- Bump rbs from 3.9.5 to 3.10.2 by @dependabot[bot]
|
|
104
|
+
- Bump thor from 1.4.0 to 1.5.0 by @dependabot[bot]
|
|
105
|
+
- Bump ruby-vips from 2.2.5 to 2.3.0 by @dependabot[bot]
|
|
106
|
+
- Bump rubocop from 1.81.6 to 1.81.7 by @dependabot[bot]
|
|
107
|
+
- Bump rake from 13.3.0 to 13.3.1 by @dependabot[bot]
|
|
108
|
+
- Bump rubocop from 1.81.1 to 1.81.6 by @dependabot[bot]
|
|
109
|
+
- Bump rspec from 3.13.1 to 3.13.2 by @dependabot[bot]
|
|
110
|
+
- Bump json from 2.15.0 to 2.15.1 by @dependabot[bot]
|
|
111
|
+
- Bump rubocop from 1.80.2 to 1.81.1 by @dependabot[bot]
|
|
112
|
+
- Bump json from 2.13.2 to 2.15.0 by @dependabot[bot]
|
|
113
|
+
- Bump rubocop from 1.80.1 to 1.80.2 by @dependabot[bot]
|
|
114
|
+
- Bump rbs from 3.9.4 to 3.9.5 by @dependabot[bot]
|
|
115
|
+
- Bump rubocop from 1.79.2 to 1.80.1 by @dependabot[bot]
|
|
116
|
+
|
|
117
|
+
### 🚀 Added
|
|
118
|
+
|
|
119
|
+
- Enhance chromedriver parameters by @dieter-medium
|
|
120
|
+
|
|
13
121
|
## [0.1.12] - 2025-09-02
|
|
14
122
|
|
|
15
123
|
### 🔄 Changed
|
|
@@ -299,9 +407,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
299
407
|
|
|
300
408
|
### 🔄 Released
|
|
301
409
|
|
|
302
|
-
- [unreleased](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.
|
|
303
|
-
- [0.1.
|
|
304
|
-
- [0.1.
|
|
410
|
+
- [unreleased](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.14..HEAD)
|
|
411
|
+
- [0.1.14](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.13..v0.1.14)
|
|
412
|
+
- [0.1.13](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.12..v0.1.13)
|
|
413
|
+
- [0.1.12](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.11..v0.1.12)
|
|
414
|
+
- [0.1.11](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.10..v0.1.11)
|
|
415
|
+
- [0.1.10](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.9..v0.1.10)
|
|
305
416
|
- [0.1.9](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.8..v0.1.9)
|
|
306
417
|
- [0.1.8](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.7..v0.1.8)
|
|
307
418
|
- [0.1.7](https://github.com/dieter-medium/bidi2pdf/compare/v0.1.6..v0.1.7)
|
data/README.md
CHANGED
|
@@ -390,6 +390,18 @@ This also provides the helper methods:
|
|
|
390
390
|
With the environment variable `DISABLE_CHROME_SANDBOX` set to `true`, the container will run Chrome without
|
|
391
391
|
the sandbox. This is useful for CI environments where the sandbox may cause issues.
|
|
392
392
|
|
|
393
|
+
Container URLs (`session_url` and similar) are built from the Docker host's address plus the container's
|
|
394
|
+
mapped port. That address is resolved by the `testcontainers` gem — which already handles a `tcp:`/`ssh:`
|
|
395
|
+
`DOCKER_HOST`, a native local daemon, and a sibling container reaching the daemon over the bridge gateway —
|
|
396
|
+
falling back to `"localhost"` only if the gem can't resolve a host at all (a known gap in
|
|
397
|
+
`testcontainers-core` 0.2.0 when the test process itself runs in a container on a custom network).
|
|
398
|
+
|
|
399
|
+
To override the Docker host address explicitly, set `TC_HOST` (e.g. `TC_HOST=localhost` for a test process
|
|
400
|
+
running in a container that shares the Docker daemon's network namespace — true docker-in-docker). `TC_HOST`
|
|
401
|
+
is a single global setting for where the daemon's published ports are reachable; it is not the name, URL, or
|
|
402
|
+
IP of an individual container. To reach one container *from another* container, join the shared network and
|
|
403
|
+
address it by alias instead (see `nginx_url(use_alias: true)` in the spec helpers).
|
|
404
|
+
|
|
393
405
|
#### Example
|
|
394
406
|
|
|
395
407
|
```ruby
|
data/docker/Dockerfile
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
FROM ruby:3.
|
|
1
|
+
FROM ruby:3.4
|
|
2
2
|
|
|
3
3
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
4
4
|
|
|
5
5
|
# Install dependencies
|
|
6
6
|
RUN apt-get update && apt-get upgrade -y &&\
|
|
7
7
|
apt-get install -y --no-install-recommends\
|
|
8
|
-
chromium chromium-driver\
|
|
8
|
+
chromium chromium-driver chromium-sandbox \
|
|
9
9
|
libglib2.0-0 \
|
|
10
10
|
libnss3 \
|
|
11
11
|
libxss1 \
|
data/docker/Dockerfile.slim
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM ruby:3.
|
|
1
|
+
FROM ruby:3.4-slim AS builder
|
|
2
2
|
|
|
3
3
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
4
4
|
|
|
@@ -31,7 +31,7 @@ RUN gem install ./bidi2pdf-*.gem
|
|
|
31
31
|
|
|
32
32
|
# Stage 2
|
|
33
33
|
|
|
34
|
-
FROM ruby:3.
|
|
34
|
+
FROM ruby:3.4-slim
|
|
35
35
|
|
|
36
36
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
37
37
|
|