prawn-disable_word_break 2.0.0 → 2.1.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: bba3067f6b8890dfb47cf0e4495b033ce771971a0800f0873ed2f1edaf872a0e
4
- data.tar.gz: a6e5cf2ef7f57d66b4f3edd8ebb3ffa73b1078ba3a0dc429ea3f7327d0f68fe2
3
+ metadata.gz: 62bd33bf26599cc230f633d631c00a21a0268ac4ccbde4b50c2a7e32598824eb
4
+ data.tar.gz: eb787813d173984a74cc1902e4a2991a1ba3780910636eccd902aa8785abb70e
5
5
  SHA512:
6
- metadata.gz: ca2b9e2759bbf4ae1b1cf2ee18e60434c444f60bdd4104a22659e414859738034958a1c3181d1cb0e244da4154501bf6bf55b2ab8da0bb198e625df3871c42de
7
- data.tar.gz: 10ca0137d172f48cbab43e01992cce09d2d571a30bcb1554fc744cc7785b98e2cb004e524dd36648dcf4c76dde223cc3ab2f47533fcc093de0a28037e5ec709e
6
+ metadata.gz: ff21289a2839522110a0a4dbaeb0679844d90367149858266646723ee76e4de21e56fb7afea52e75488bfea7c575893b8cc738de337e213a76bd6305e4715df0
7
+ data.tar.gz: 1e688f6d3fed0f0e7b760c1745664f496be3ce6ac0a7e12c474727a5ff16b26fdb654b8854fc5e0baa5690fe64a8b4d3930e21f4617032cfd8213d2c4982e6c7
@@ -9,32 +9,27 @@ jobs:
9
9
  strategy:
10
10
  matrix:
11
11
  ruby_version:
12
- - 2.6
13
- - 2.7
14
- - 3.0
12
+ - '3.0'
13
+ - '3.1'
14
+ - '3.2'
15
15
  prawn_version:
16
- - 2.3
17
- - 2.4
16
+ - '2.3'
17
+ - '2.4'
18
18
  exclude:
19
- - ruby_version: 3.0
20
- prawn_version: 2.3
19
+ - ruby_version: '3.0'
20
+ prawn_version: '2.3'
21
21
 
22
22
  steps:
23
- - uses: actions/checkout@v1
23
+ - uses: actions/checkout@v4
24
24
 
25
25
  - uses: hidakatsuya/setup-diff-pdf@v1
26
26
  with:
27
- diff-pdf-version: 0.5
27
+ diff-pdf-version: '0.5'
28
28
 
29
29
  - name: Set up Ruby ${{ matrix.ruby_version }}
30
30
  uses: ruby/setup-ruby@v1
31
31
  with:
32
32
  ruby-version: ${{ matrix.ruby_version }}
33
+ bundler-cache: true
33
34
 
34
- - name: Install dependencies
35
- run: |
36
- gem install bundler
37
- bundle install --gemfile test/gemfiles/prawn-${{ matrix.prawn_version }}.gemfile --jobs 4 --retry 3
38
-
39
- - name: Run tests
40
- run: bundle exec rake test
35
+ - run: bundle exec rake test
data/README.md CHANGED
@@ -35,11 +35,11 @@ require 'prawn/disable_word_break'
35
35
 
36
36
  ### Ruby
37
37
 
38
- 2.6, 2.7, 3.0
38
+ 3.0, 3.1, 3.2
39
39
 
40
40
  ### Prawn
41
41
 
42
- 2.3+
42
+ 2.3, 2.4
43
43
 
44
44
  ## Development
45
45
 
@@ -51,12 +51,11 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
51
51
 
52
52
  To run the test, you need [diff-pdf](https://github.com/vslavik/diff-pdf). You can run by installing it or using a Docker container for testing.
53
53
 
54
- $ docker build -t prawn-disable_word_break:latest .
55
- $ docker run -v $PWD:/src:cached -it prawn-disable_word_break bash
54
+ $ docker pull ghcr.io/hidakatsuya/ruby-with-diff-pdf:latest
55
+ $ docker run -v $PWD:/src:cached -it ghcr.io/hidakatsuya/ruby-with-diff-pdf bash
56
56
 
57
- > /src#
58
- > /src# bundle install
59
- > /src# bundle exec rake test
57
+ > src# bundle install
58
+ > src# bundle exec rake test
60
59
 
61
60
  ## Contributing
62
61
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prawn
4
4
  module DisableWordBreak
5
- VERSION = '2.0.0'
5
+ VERSION = '2.1.0'
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = 'Prawn::DisableWordBreak is an extension for Prawn that disables word-breaking by character such as space and hyphen.'
11
11
  spec.homepage = 'https://github.com/hidakatsuya/prawn-disable_word_break'
12
12
  spec.license = 'MIT'
13
- spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
13
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0')
14
14
 
15
15
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
16
16
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ['lib']
19
19
 
20
20
  spec.add_dependency 'prawn', '~> 2.3'
21
+ spec.add_runtime_dependency 'matrix', '~> 0.4'
22
+
21
23
  spec.add_development_dependency 'rake', '>= 0'
22
24
  spec.add_development_dependency 'test-unit', '>= 3.3.5'
23
25
  spec.add_development_dependency 'test-unit-rr', '>= 1.0.5'
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.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuya Hidaka
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-04 00:00:00.000000000 Z
11
+ date: 2023-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: matrix
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.4'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -90,9 +104,7 @@ extra_rdoc_files: []
90
104
  files:
91
105
  - ".github/workflows/test.yml"
92
106
  - ".gitignore"
93
- - CHANGELOG.md
94
107
  - CODE_OF_CONDUCT.md
95
- - Dockerfile
96
108
  - Gemfile
97
109
  - LICENSE.txt
98
110
  - README.md
@@ -107,7 +119,7 @@ homepage: https://github.com/hidakatsuya/prawn-disable_word_break
107
119
  licenses:
108
120
  - MIT
109
121
  metadata: {}
110
- post_install_message:
122
+ post_install_message:
111
123
  rdoc_options: []
112
124
  require_paths:
113
125
  - lib
@@ -115,15 +127,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
127
  requirements:
116
128
  - - ">="
117
129
  - !ruby/object:Gem::Version
118
- version: 2.6.0
130
+ version: 3.0.0
119
131
  required_rubygems_version: !ruby/object:Gem::Requirement
120
132
  requirements:
121
133
  - - ">="
122
134
  - !ruby/object:Gem::Version
123
135
  version: '0'
124
136
  requirements: []
125
- rubygems_version: 3.2.15
126
- signing_key:
137
+ rubygems_version: 3.4.6
138
+ signing_key:
127
139
  specification_version: 4
128
140
  summary: Disables word-breaking by character such as space and hyphen
129
141
  test_files: []
data/CHANGELOG.md DELETED
@@ -1,10 +0,0 @@
1
- ## Main (Unreleased)
2
-
3
- ## 2.0.0
4
-
5
- ### Breaking Changes
6
-
7
- - Disable word break globally when required
8
- - Removed `#disable_word_break` and `#word_break`
9
- - Drop ruby 2.4, 2.5 support
10
- - Drop prawn 2.2 support
data/Dockerfile DELETED
@@ -1,12 +0,0 @@
1
- FROM ruby:2.7.1
2
-
3
- RUN apt-get update -qq && apt-get install -y build-essential xvfb
4
-
5
- # Install diff-pdf
6
- WORKDIR /tmp
7
- RUN apt-get install -y libpoppler-glib-dev poppler-utils libwxgtk3.0-dev && curl -L https://github.com/vslavik/diff-pdf/archive/master.tar.gz -o diff-pdf-master.tar.gz && tar zxf diff-pdf-master.tar.gz && cd diff-pdf-master && ./bootstrap && ./configure && make && make install
8
-
9
- RUN mkdir /src
10
-
11
- WORKDIR /src
12
- VOLUME /src