pdf_matcher 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b370a574cfb2023ac0f80454d526294e3512c3cfe7f99511b56ccd8489eef97
4
- data.tar.gz: 38bfdff05969e7e072775045f2d909f5917f6896f75ecace56f5f936139e78c9
3
+ metadata.gz: c72b513695745c25fe76222180e4696e1f193792bcbe5b414ac7566ca6df67e5
4
+ data.tar.gz: 7e3733f4f0a62233268d78e539c3bcb122309863aa4d344109668b85f3acdfb5
5
5
  SHA512:
6
- metadata.gz: f0eda7923db1b84f51f4e7588434c24ef2a45adc976c4287e8e63e28fd9050608594a95a94e2d72f9d2f99d887aec54d90435791a2e5b04448774bf675ac2f74
7
- data.tar.gz: 3a6c2511fa9c6e5946373ba1765317b437ac8d56adebe5bb22e6f60ed7f6b16f6a404926c799c3a632c9908572fd9457c00e5583f41a251035970f7ac1a9fe36
6
+ metadata.gz: 19e1830cf927f2674a712036bf180865e2d3b12a1860bf8ee485d18482a21be4be250777dbe45ca349e735b0658317474dbeec0d63f762c12eaadee58bd8b4de
7
+ data.tar.gz: 314cdaf0e906a8702a03c9dea1c548318b8415adca85904539e46084260b54524b087f6c3e37ba39ee6764cadf8a76f89cd1cf45bf52a39e0a0cf3274e47c24d
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## Main (unreleased)
1
+ ## 1.0.1
2
+
3
+ ### Bug Fixes
4
+
5
+ - Fixed Encoding::UndefinedConversionError: "\xFF" from ASCII-8BIT to UTF-8 [63e8605](https://github.com/hidakatsuya/pdf_matcher/commit/63e860516d77863978a1b22c8674aa2e78572613)
2
6
 
3
7
  ## 1.0.0
4
8
 
data/README.md CHANGED
@@ -1,15 +1,22 @@
1
1
  # PdfMatcher
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/pdf_matcher.svg)](https://badge.fury.io/rb/pdf_matcher)
3
4
  [![Test](https://github.com/hidakatsuya/pdf_matcher/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/hidakatsuya/pdf_matcher/actions/workflows/test.yml)
4
5
 
5
6
  A gem to compare two PDFs and output the differences using [diff-pdf](https://github.com/vslavik/diff-pdf).
6
7
 
7
8
  ## Prerequisites
8
9
 
10
+ ### diff-pdf Required
11
+
9
12
  This gem requires [diff-pdf](https://github.com/vslavik/diff-pdf). See [the README.md](https://github.com/vslavik/diff-pdf) for how to install it.
10
13
 
11
14
  Note that you can install it with [hidakatsuya/setup-diff-pdf](https://github.com/hidakatsuya/setup-diff-pdf) in GitHub Action.
12
15
 
16
+ ### Supported Ruby Versions
17
+
18
+ 2.6, 2.7, 3.0
19
+
13
20
  ## Installation
14
21
 
15
22
  Add this line to your application's Gemfile:
@@ -60,6 +67,10 @@ result.diff_pdf_data #=> "%PDF-..." or nil
60
67
  PdfMatcher.config.diff_pdf_opts = ['--dpi=300']
61
68
  ```
62
69
 
70
+ ## Use in Testing Frameworks
71
+
72
+ - [test-unit-pdf_matcher](https://github.com/hidakatsuya/test-unit-pdf_matcher)
73
+
63
74
  ## Contributing
64
75
 
65
76
  Bug reports and pull requests are welcome on GitHub at https://github.com/hidakatsuya/pdf_matcher. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/hidakatsuya/pdf_matcher/blob/master/CODE_OF_CONDUCT.md).
@@ -51,7 +51,11 @@ module PdfMatcher
51
51
  end
52
52
 
53
53
  def open
54
- @io ||= ::Tempfile.open { |f| f.puts data; f }
54
+ @io ||= ::Tempfile.open do |f|
55
+ f.binmode
56
+ f.puts data
57
+ f
58
+ end
55
59
  end
56
60
 
57
61
  def path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PdfMatcher
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf_matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuya Hidaka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-01 00:00:00.000000000 Z
11
+ date: 2021-05-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: PdfMatcher is a gem to compare two PDFs and output the differences using
14
14
  diff-pdf