
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
test-unit-pdf_matcher
Advanced tools
This gem provides assert_match_pdf
assertion by PdfMatcher to Test::Unit.
This gem requires diff-pdf
. See the documentation of PdfMatcher for details.
Add this line to your application's Gemfile:
gem 'test-unit-pdf_matcher'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install test-unit-pdf_matcher
Add this line to your test_helper.rb
:
require 'test/unit/pdf_matcher`
assert_match_pdf pdf1_data, pdf2_data
assert_match_pdf '/path/to/1.pdf', '/path/to/2.pdf'
assert_match_pdf Pathnae('/path/to/1.pdf'), Pathname('/path/to/2.pdf')
You can generate a difference PDF by output_diff_path
option:
assert_match_pdf pdf1_data, pdf2_data, output_diff_path: '/path/to/diff.pdf'
::PdfMatcher.config.diff_pdf_opts = %w(--dpi=300 --grayscale)
See diff-pdf --help
for the available diff-pdf options.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that test-unit-pdf_matcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.