prawn-disable_word_break 2.1.0 → 2.2.0

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: 62bd33bf26599cc230f633d631c00a21a0268ac4ccbde4b50c2a7e32598824eb
4
- data.tar.gz: eb787813d173984a74cc1902e4a2991a1ba3780910636eccd902aa8785abb70e
3
+ metadata.gz: fe741e9c74de8e63f4652ac96a2c3c67a32ded6d34611396854b06d30aa77b50
4
+ data.tar.gz: c99cd3c08e37c7fa0cfde535628214b6d9239f261d394275277fde940261baa6
5
5
  SHA512:
6
- metadata.gz: ff21289a2839522110a0a4dbaeb0679844d90367149858266646723ee76e4de21e56fb7afea52e75488bfea7c575893b8cc738de337e213a76bd6305e4715df0
7
- data.tar.gz: 1e688f6d3fed0f0e7b760c1745664f496be3ce6ac0a7e12c474727a5ff16b26fdb654b8854fc5e0baa5690fe64a8b4d3930e21f4617032cfd8213d2c4982e6c7
6
+ metadata.gz: b62be2f008301e4570d20ed00474d79e2066adc14e2453bd071e982242961d75c8596b5ddc79a73de8b7a3c5a8c4107f5b1009eb7771011eca5b5adaef7f8a15
7
+ data.tar.gz: 11923e4ab33f1467bee0aba64e1ef1b3e253c8c1d901bd238b5cd7fdac04e457b98dfe556b80b41843fe555a5b2d75f223a0f3068d29e19c6449e74e2375a40c
@@ -1,6 +1,9 @@
1
1
  name: Test
2
2
 
3
- on: [push, pull_request]
3
+ on:
4
+ push:
5
+ branches: [ main, dev ]
6
+ pull_request:
4
7
 
5
8
  jobs:
6
9
  test:
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Prawn::DisableWordBreak
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/prawn-disable_word_break.svg)](https://badge.fury.io/rb/prawn-disable_word_break)
4
- [![Test](https://github.com/hidakatsuya/prawn-disable_word_break/workflows/Test/badge.svg?branch=master)](https://github.com/hidakatsuya/prawn-disable_word_break/actions)
4
+ [![Test](https://github.com/hidakatsuya/prawn-disable_word_break/actions/workflows/test.yml/badge.svg)](https://github.com/hidakatsuya/prawn-disable_word_break/actions/workflows/test.yml)
5
5
 
6
6
  Prawn::DisableWordBreak is an extension that disables word-breaking by character such as space and hyphen to [Prawn](https://github.com/prawnpdf/prawn).
7
7
 
@@ -14,7 +14,7 @@ See [feature test](test/features/text_line_wrapping_test.rb) for details.
14
14
  Add this line to your application's Gemfile:
15
15
 
16
16
  ```ruby
17
- gem 'prawn-disable_word_break', require: false
17
+ gem 'prawn-disable_word_break'
18
18
  ```
19
19
 
20
20
  And then execute:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prawn
4
4
  module DisableWordBreak
5
- VERSION = '2.1.0'
5
+ VERSION = '2.2.0'
6
6
  end
7
7
  end
@@ -6,9 +6,10 @@ module Prawn
6
6
  module DisableWordBreak
7
7
  module Wrap
8
8
  # override
9
- def wrap(*)
10
- @line_wrap = DisableWordBreak::LineWrap.new
9
+ def initialize(*)
11
10
  super
11
+
12
+ @line_wrap = DisableWordBreak::LineWrap.new
12
13
  end
13
14
  end
14
15
  end
@@ -5,5 +5,6 @@ require 'prawn'
5
5
  require_relative 'disable_word_break/version'
6
6
  require_relative 'disable_word_break/wrap'
7
7
 
8
- Prawn::Text::Box.extensions << Prawn::DisableWordBreak::Wrap
9
- Prawn::Text::Formatted::Box.extensions << Prawn::DisableWordBreak::Wrap
8
+ Prawn::DisableWordBreak::Wrap.tap do |mod|
9
+ Prawn::Text::Formatted::Wrap.prepend(mod) unless Prawn::Text::Formatted::Wrap.include?(mod)
10
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-disable_word_break
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuya Hidaka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2023-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn