rmagick 6.2.0 → 7.0.0
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/CHANGELOG.md +27 -0
- data/Gemfile +3 -4
- data/README.md +49 -70
- data/Rakefile +1 -8
- data/ext/RMagick/extconf.rb +10 -8
- data/ext/RMagick/rmagick.cpp +6 -7
- data/ext/RMagick/rmagick.h +5 -18
- data/ext/RMagick/rmdraw.cpp +6 -7
- data/ext/RMagick/rmenum.cpp +5 -6
- data/ext/RMagick/rmfill.cpp +6 -8
- data/ext/RMagick/rmilist.cpp +6 -7
- data/ext/RMagick/rmimage.cpp +55 -109
- data/ext/RMagick/rminfo.cpp +6 -8
- data/ext/RMagick/rmkinfo.cpp +8 -7
- data/ext/RMagick/rmmain.cpp +7 -23
- data/ext/RMagick/rmmontage.cpp +6 -8
- data/ext/RMagick/rmpixel.cpp +6 -7
- data/ext/RMagick/rmstruct.cpp +8 -12
- data/ext/RMagick/rmutil.cpp +6 -27
- data/lib/rmagick/version.rb +4 -3
- data/lib/rmagick_internal.rb +30 -37
- data/lib/rvg/clippath.rb +3 -4
- data/lib/rvg/container.rb +3 -4
- data/lib/rvg/deep_equal.rb +3 -0
- data/lib/rvg/describable.rb +4 -5
- data/lib/rvg/embellishable.rb +7 -8
- data/lib/rvg/misc.rb +13 -12
- data/lib/rvg/paint.rb +3 -4
- data/lib/rvg/pathdata.rb +3 -4
- data/lib/rvg/rvg.rb +3 -29
- data/lib/rvg/stretchable.rb +4 -5
- data/lib/rvg/stylable.rb +4 -5
- data/lib/rvg/text.rb +9 -10
- data/lib/rvg/transformable.rb +3 -4
- data/lib/rvg/units.rb +3 -2
- data/rmagick.gemspec +6 -4
- data/sig/rmagick.rbs +2 -1
- metadata +4 -19
- data/.devcontainer/Dockerfile +0 -14
- data/.devcontainer/ImageMagick6/devcontainer.json +0 -11
- data/.devcontainer/devcontainer.json +0 -11
- data/.devcontainer/setup-repo.sh +0 -10
- data/.devcontainer/setup-user.sh +0 -45
- data/.editorconfig +0 -17
- data/.github/ISSUE_TEMPLATE/report.yml +0 -40
- data/.github/ISSUE_TEMPLATE.md +0 -17
- data/.github/workflows/ci.yml +0 -264
- data/.gitignore +0 -29
- data/.rspec +0 -2
- data/.rubocop.yml +0 -68
- data/.rubocop_todo.yml +0 -596
- data/before_install_linux.sh +0 -61
- data/before_install_osx.sh +0 -60
data/.devcontainer/setup-repo.sh
DELETED
data/.devcontainer/setup-user.sh
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e
|
|
3
|
-
|
|
4
|
-
codespaces_bash="$(cat \
|
|
5
|
-
<<'EOF'
|
|
6
|
-
# Codespaces bash prompt theme
|
|
7
|
-
__bash_prompt() {
|
|
8
|
-
local userpart='`export XIT=$? \
|
|
9
|
-
&& [ ! -z "${GITHUB_USER}" ] && echo -n "\[\033[0;32m\]@${GITHUB_USER} " || echo -n "\[\033[0;32m\]\u " \
|
|
10
|
-
&& echo -n "\[\033[0;36m\][IM ${IMAGEMAGICK_VERSION}]" \
|
|
11
|
-
&& [ "$XIT" -ne "0" ] && echo -n "\[\033[1;31m\]➜" || echo -n "\[\033[0m\]➜"`'
|
|
12
|
-
local gitbranch='`\
|
|
13
|
-
if [ "$(git config --get codespaces-theme.hide-status 2>/dev/null)" != 1 ]; then \
|
|
14
|
-
export BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD 2>/dev/null); \
|
|
15
|
-
if [ "${BRANCH}" != "" ]; then \
|
|
16
|
-
echo -n "\[\033[0;36m\](\[\033[1;31m\]${BRANCH}" \
|
|
17
|
-
&& if git ls-files --error-unmatch -m --directory --no-empty-directory -o --exclude-standard ":/*" > /dev/null 2>&1; then \
|
|
18
|
-
echo -n " \[\033[1;33m\]✗"; \
|
|
19
|
-
fi \
|
|
20
|
-
&& echo -n "\[\033[0;36m\]) "; \
|
|
21
|
-
fi; \
|
|
22
|
-
fi`'
|
|
23
|
-
local lightblue='\[\033[1;34m\]'
|
|
24
|
-
local removecolor='\[\033[0m\]'
|
|
25
|
-
PS1="${userpart} ${lightblue}\w ${gitbranch}${removecolor}\$ "
|
|
26
|
-
unset -f __bash_prompt
|
|
27
|
-
}
|
|
28
|
-
__bash_prompt
|
|
29
|
-
|
|
30
|
-
__show_notice() {
|
|
31
|
-
local __message="
|
|
32
|
-
\033[0;32mWelcome to Codespaces! You are using the pre-configured rmagick image.\033[0m
|
|
33
|
-
|
|
34
|
-
\033[0;35mTests can be executed with:\033[0m bundle exec rake
|
|
35
|
-
\033[0;35mCode style can be checked with:\033[0m STYLE_CHECKS=true bundle exec rubocop
|
|
36
|
-
"
|
|
37
|
-
echo -e "$__message"
|
|
38
|
-
|
|
39
|
-
unset -f __show_notice
|
|
40
|
-
}
|
|
41
|
-
__show_notice
|
|
42
|
-
EOF
|
|
43
|
-
)"
|
|
44
|
-
|
|
45
|
-
echo "${codespaces_bash}" >> "/root/.bashrc"
|
data/.editorconfig
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
|
|
2
|
-
# @see http://editorconfig.org
|
|
3
|
-
root = true
|
|
4
|
-
|
|
5
|
-
[*]
|
|
6
|
-
end_of_line = lf
|
|
7
|
-
charset = utf-8
|
|
8
|
-
trim_trailing_whitespace = true
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
indent_style = space
|
|
11
|
-
tab_width = 2
|
|
12
|
-
|
|
13
|
-
[*.{rb,yml,sh,md}]
|
|
14
|
-
indent_size = 2
|
|
15
|
-
|
|
16
|
-
[*.cpp]
|
|
17
|
-
indent_size = 4
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: Report
|
|
2
|
-
description: Create a report.
|
|
3
|
-
body:
|
|
4
|
-
- type: textarea
|
|
5
|
-
id: description
|
|
6
|
-
attributes:
|
|
7
|
-
label: Description
|
|
8
|
-
description: A description of the bug or feature.
|
|
9
|
-
validations:
|
|
10
|
-
required: true
|
|
11
|
-
- type: textarea
|
|
12
|
-
id: reproduce
|
|
13
|
-
attributes:
|
|
14
|
-
label: Steps to Reproduce
|
|
15
|
-
description: |
|
|
16
|
-
List of steps, sample code, failing test or link to a project that reproduces the behavior.
|
|
17
|
-
Make sure you place a stack trace inside a code (```) block to avoid linking unrelated issues.
|
|
18
|
-
validations:
|
|
19
|
-
required: true
|
|
20
|
-
- type: textarea
|
|
21
|
-
id: environment
|
|
22
|
-
attributes:
|
|
23
|
-
label: System Configuration
|
|
24
|
-
description: Tell us about the environment where you are experiencing the bug.
|
|
25
|
-
value: |
|
|
26
|
-
- ImageMagick version:
|
|
27
|
-
- RMagick version:
|
|
28
|
-
- Ruby version:
|
|
29
|
-
- Environment (Operating system, version and so on):
|
|
30
|
-
- Additional information:
|
|
31
|
-
render: markdown
|
|
32
|
-
validations:
|
|
33
|
-
required: true
|
|
34
|
-
- type: textarea
|
|
35
|
-
id: addtional-context
|
|
36
|
-
attributes:
|
|
37
|
-
label: Additional context
|
|
38
|
-
description: Add any other context about the problem here.
|
|
39
|
-
validations:
|
|
40
|
-
required: false
|
data/.github/ISSUE_TEMPLATE.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
### Description
|
|
2
|
-
<!-- A description of the bug or feature -->
|
|
3
|
-
|
|
4
|
-
### Steps to Reproduce
|
|
5
|
-
<!-- List of steps, sample code, failing test or link to a project that reproduces the behavior.
|
|
6
|
-
Make sure you place a stack trace inside a code (```) block to avoid linking unrelated issues -->
|
|
7
|
-
|
|
8
|
-
### System Configuration
|
|
9
|
-
<!-- Tell us about the environment where you are experiencing the bug -->
|
|
10
|
-
|
|
11
|
-
- ImageMagick version:
|
|
12
|
-
- RMagick version:
|
|
13
|
-
- Ruby version:
|
|
14
|
-
- Environment (Operating system, version and so on):
|
|
15
|
-
- Additional information:
|
|
16
|
-
|
|
17
|
-
<!-- Thanks for reporting the issue to RMagick! -->
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
lint:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
timeout-minutes: 20
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v6
|
|
19
|
-
- name: Set up Ruby 3.3
|
|
20
|
-
uses: ruby/setup-ruby@master
|
|
21
|
-
with:
|
|
22
|
-
ruby-version: '3.3'
|
|
23
|
-
bundler-cache: true
|
|
24
|
-
- name: Build and test with Rake
|
|
25
|
-
run: |
|
|
26
|
-
STYLE_CHECKS=true bundle exec rubocop
|
|
27
|
-
|
|
28
|
-
rbs:
|
|
29
|
-
runs-on: ubuntu-latest
|
|
30
|
-
name: RBS
|
|
31
|
-
timeout-minutes: 20
|
|
32
|
-
steps:
|
|
33
|
-
- uses: actions/checkout@v6
|
|
34
|
-
- name: Set up Ruby 3.0
|
|
35
|
-
uses: ruby/setup-ruby@master
|
|
36
|
-
with:
|
|
37
|
-
ruby-version: '3.0'
|
|
38
|
-
bundler-cache: true
|
|
39
|
-
- name: Validate RBS signatures
|
|
40
|
-
run: |
|
|
41
|
-
bundle exec rake rbs:validate && bundle exec steep check
|
|
42
|
-
|
|
43
|
-
# Seems that old imagemagick depend on ghostscript 9.x for handling fonts.
|
|
44
|
-
# However, ubuntu 24.04 has ghostscript 10.x, which is too new for old imagemagick.
|
|
45
|
-
test-linux-for-old-imagemagick:
|
|
46
|
-
runs-on: ubuntu-22.04
|
|
47
|
-
timeout-minutes: 20
|
|
48
|
-
strategy:
|
|
49
|
-
fail-fast: false
|
|
50
|
-
matrix:
|
|
51
|
-
ruby-version: ['3.0']
|
|
52
|
-
imagemagick-version:
|
|
53
|
-
- { full: 6.8.9-10, major-minor: '6.8' }
|
|
54
|
-
- { full: 7.0.11-14, major-minor: '7.0' }
|
|
55
|
-
|
|
56
|
-
name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
|
57
|
-
steps:
|
|
58
|
-
- uses: actions/checkout@v6
|
|
59
|
-
- name: Cache ImageMagick built objects
|
|
60
|
-
uses: actions/cache@v4
|
|
61
|
-
with:
|
|
62
|
-
path: ./build-ImageMagick
|
|
63
|
-
key: v1-${{ runner.os }}-imagemagick-${{ matrix.imagemagick-version.full }}
|
|
64
|
-
restore-keys: |
|
|
65
|
-
v1-${{ runner.os }}-imagemagick-${{ matrix.imagemagick-version.full }}
|
|
66
|
-
- name: Update/Install packages
|
|
67
|
-
run: |
|
|
68
|
-
export IMAGEMAGICK_VERSION=${{ matrix.imagemagick-version.full }}
|
|
69
|
-
./before_install_linux.sh
|
|
70
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
71
|
-
uses: ruby/setup-ruby@master
|
|
72
|
-
with:
|
|
73
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
74
|
-
bundler-cache: true
|
|
75
|
-
- name: Build and test with Rake
|
|
76
|
-
run: |
|
|
77
|
-
bundle exec rake
|
|
78
|
-
|
|
79
|
-
test-linux:
|
|
80
|
-
runs-on: ubuntu-latest
|
|
81
|
-
timeout-minutes: 20
|
|
82
|
-
strategy:
|
|
83
|
-
fail-fast: false
|
|
84
|
-
matrix:
|
|
85
|
-
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4', '4.0']
|
|
86
|
-
imagemagick-version:
|
|
87
|
-
- { full: 6.9.13-33, major-minor: '6.9' }
|
|
88
|
-
- { full: 7.1.2-8, major-minor: '7.1' }
|
|
89
|
-
|
|
90
|
-
name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
|
91
|
-
steps:
|
|
92
|
-
- uses: actions/checkout@v6
|
|
93
|
-
- name: Cache ImageMagick built objects
|
|
94
|
-
uses: actions/cache@v4
|
|
95
|
-
with:
|
|
96
|
-
path: ./build-ImageMagick
|
|
97
|
-
key: v1-${{ runner.os }}-imagemagick-${{ matrix.imagemagick-version.full }}
|
|
98
|
-
restore-keys: |
|
|
99
|
-
v1-${{ runner.os }}-imagemagick-${{ matrix.imagemagick-version.full }}
|
|
100
|
-
- name: Update/Install packages
|
|
101
|
-
run: |
|
|
102
|
-
export IMAGEMAGICK_VERSION=${{ matrix.imagemagick-version.full }}
|
|
103
|
-
./before_install_linux.sh
|
|
104
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
105
|
-
uses: ruby/setup-ruby@master
|
|
106
|
-
with:
|
|
107
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
108
|
-
bundler-cache: true
|
|
109
|
-
- name: Build and test with Rake
|
|
110
|
-
run: |
|
|
111
|
-
bundle exec rake
|
|
112
|
-
|
|
113
|
-
test-macos:
|
|
114
|
-
runs-on: macos-latest
|
|
115
|
-
timeout-minutes: 20
|
|
116
|
-
strategy:
|
|
117
|
-
fail-fast: false
|
|
118
|
-
matrix:
|
|
119
|
-
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4', '4.0']
|
|
120
|
-
imagemagick-version:
|
|
121
|
-
- { full: 6.9.13-33, major-minor: '6.9' }
|
|
122
|
-
- { full: 7.1.2-8, major-minor: '7.1' }
|
|
123
|
-
|
|
124
|
-
name: macOS, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
|
125
|
-
steps:
|
|
126
|
-
- uses: actions/checkout@v6
|
|
127
|
-
- name: Cache ImageMagick built objects
|
|
128
|
-
uses: actions/cache@v4
|
|
129
|
-
with:
|
|
130
|
-
path: ./build-ImageMagick
|
|
131
|
-
key: v1-${{ runner.os }}-imagemagick-${{ matrix.imagemagick-version.full }}
|
|
132
|
-
restore-keys: |
|
|
133
|
-
v1-${{ runner.os }}-imagemagick-${{ matrix.imagemagick-version.full }}
|
|
134
|
-
- name: Update/Install packages
|
|
135
|
-
run: |
|
|
136
|
-
IMAGEMAGICK_VERSION=${{ matrix.imagemagick-version.full }} ./before_install_osx.sh
|
|
137
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
138
|
-
uses: ruby/setup-ruby@master
|
|
139
|
-
with:
|
|
140
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
141
|
-
bundler-cache: true
|
|
142
|
-
- name: Build and test with Rake
|
|
143
|
-
run: |
|
|
144
|
-
bundle exec rake
|
|
145
|
-
|
|
146
|
-
test-windows:
|
|
147
|
-
runs-on: ${{ matrix.os.target }}
|
|
148
|
-
timeout-minutes: 20
|
|
149
|
-
strategy:
|
|
150
|
-
fail-fast: false
|
|
151
|
-
matrix:
|
|
152
|
-
ruby-version: ['4.0']
|
|
153
|
-
imagemagick-version:
|
|
154
|
-
- { full: 6.9.13-33, major-minor: '6.9' }
|
|
155
|
-
- { full: 7.1.2-8, major-minor: '7.1' }
|
|
156
|
-
os:
|
|
157
|
-
- { target: windows-latest, arch: 'x64' }
|
|
158
|
-
- { target: windows-11-arm, arch: 'arm64' }
|
|
159
|
-
exclude:
|
|
160
|
-
# ImageMagick 6 has not provided ARM binary. Ref. https://legacy.imagemagick.org/archive/binaries/
|
|
161
|
-
- imagemagick-version: { full: 6.9.13-33, major-minor: '6.9' }
|
|
162
|
-
os: { target: windows-11-arm, arch: 'arm64' }
|
|
163
|
-
|
|
164
|
-
env:
|
|
165
|
-
install_im_dir: C:\ImageMagick
|
|
166
|
-
install_gs_dir: C:\Ghostscript
|
|
167
|
-
|
|
168
|
-
name: MSWin ${{ matrix.os.arch }}, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
|
|
169
|
-
steps:
|
|
170
|
-
- uses: actions/checkout@v6
|
|
171
|
-
- name: Setup environment variable
|
|
172
|
-
# https://stackoverflow.com/questions/60169752/how-to-update-the-path-in-a-github-action-workflow-file-for-a-windows-latest-hos
|
|
173
|
-
run: |
|
|
174
|
-
Add-Content $env:GITHUB_PATH ${{ env.install_im_dir }}
|
|
175
|
-
Add-Content $env:GITHUB_PATH ${{ env.install_gs_dir }}\bin
|
|
176
|
-
- name: Install Ghostscript
|
|
177
|
-
shell: powershell
|
|
178
|
-
run: |
|
|
179
|
-
$url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10060/gs10060w64.exe"
|
|
180
|
-
$installer = "$env:TEMP\gs_installer.exe"
|
|
181
|
-
|
|
182
|
-
Write-Host "Downloading Ghostscript..."
|
|
183
|
-
Invoke-WebRequest -Uri $url -OutFile $installer
|
|
184
|
-
|
|
185
|
-
7z x $installer -o${{ env.install_gs_dir }} -y
|
|
186
|
-
- name: Uninstall bundled ImageMagick
|
|
187
|
-
# Bundled ImageMagick does not have C/C++ library and dll which required by rmagick.
|
|
188
|
-
shell: powershell
|
|
189
|
-
run: |
|
|
190
|
-
$regPaths = @(
|
|
191
|
-
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*",
|
|
192
|
-
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
|
193
|
-
)
|
|
194
|
-
|
|
195
|
-
# Search for ImageMagick installation entry from registry
|
|
196
|
-
$target = Get-ItemProperty $regPaths -ErrorAction SilentlyContinue |
|
|
197
|
-
Where-Object { $_.DisplayName -like "*ImageMagick*" } |
|
|
198
|
-
Select-Object -First 1
|
|
199
|
-
|
|
200
|
-
if ($target) {
|
|
201
|
-
Write-Host "Found installed ImageMagick: $($target.DisplayName)"
|
|
202
|
-
|
|
203
|
-
$uninstallCommand = $target.UninstallString -replace '"', ''
|
|
204
|
-
|
|
205
|
-
if (Test-Path $uninstallCommand) {
|
|
206
|
-
Write-Host "Running uninstaller: $uninstallCommand"
|
|
207
|
-
Start-Process -FilePath $uninstallCommand -ArgumentList "/VERYSILENT", "/NORESTART" -Wait
|
|
208
|
-
Write-Host "Uninstallation completed."
|
|
209
|
-
} else {
|
|
210
|
-
Write-Error "Uninstaller file not found at: $uninstallCommand"
|
|
211
|
-
}
|
|
212
|
-
} else {
|
|
213
|
-
Write-Host "ImageMagick is not installed (Registry check). Skipping."
|
|
214
|
-
}
|
|
215
|
-
- name: Install ImageMagick
|
|
216
|
-
# https://github.com/rmagick/ImageMagick-binaries
|
|
217
|
-
run: |
|
|
218
|
-
$imagemagick_version = "${{ matrix.imagemagick-version.full }}"
|
|
219
|
-
$arch = "${{ matrix.os.arch }}"
|
|
220
|
-
$installer_name = "ImageMagick-$($imagemagick_version)-Q16-$($arch)-dll.exe"
|
|
221
|
-
$url = "https://github.com/rmagick/ImageMagick-binaries/raw/main/$($installer_name)"
|
|
222
|
-
Invoke-WebRequest -Uri $url -OutFile $installer_name
|
|
223
|
-
Start-Process -FilePath $installer_name -ArgumentList "/DIR=${{ env.install_im_dir }} /VERYSILENT /NORESTART /TASKS=install_Devel"
|
|
224
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
225
|
-
uses: ruby/setup-ruby@master
|
|
226
|
-
with:
|
|
227
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
228
|
-
bundler-cache: true
|
|
229
|
-
- name: Build and test with Rake
|
|
230
|
-
run: |
|
|
231
|
-
cmd.exe /D /S /C "bundle exec rake"
|
|
232
|
-
|
|
233
|
-
test-windows-pkgconfig:
|
|
234
|
-
runs-on: ${{ matrix.os.target }}
|
|
235
|
-
timeout-minutes: 20
|
|
236
|
-
strategy:
|
|
237
|
-
fail-fast: false
|
|
238
|
-
matrix:
|
|
239
|
-
ruby-version: ['4.0']
|
|
240
|
-
os:
|
|
241
|
-
- { target: windows-latest, arch: 'x64' }
|
|
242
|
-
- { target: windows-11-arm, arch: 'arm64' }
|
|
243
|
-
env:
|
|
244
|
-
RMAGICK_SKIP_GHOSTSCRIPT_TEST: "true" # To avoid the tedious Ghostscript setup
|
|
245
|
-
|
|
246
|
-
name: MSWin ${{ matrix.os.arch }}, Ruby ${{ matrix.ruby-version }}, MSYS2 IM
|
|
247
|
-
steps:
|
|
248
|
-
- uses: actions/checkout@v6
|
|
249
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
250
|
-
uses: ruby/setup-ruby@master
|
|
251
|
-
with:
|
|
252
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
253
|
-
bundler-cache: true
|
|
254
|
-
- name: Install ImageMagick
|
|
255
|
-
run: |
|
|
256
|
-
if ("${{ matrix.os.arch }}" -eq "arm64") {
|
|
257
|
-
$pkg = "mingw-w64-clang-aarch64-imagemagick"
|
|
258
|
-
} else {
|
|
259
|
-
$pkg = "mingw-w64-ucrt-x86_64-imagemagick"
|
|
260
|
-
}
|
|
261
|
-
ridk exec pacman -S $pkg --noconfirm
|
|
262
|
-
- name: Build and test with Rake
|
|
263
|
-
run: |
|
|
264
|
-
cmd.exe /D /S /C "bundle exec rake"
|
data/.gitignore
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
.bundle
|
|
4
|
-
.config
|
|
5
|
-
.yardoc
|
|
6
|
-
Gemfile.lock
|
|
7
|
-
InstalledFiles
|
|
8
|
-
_yardoc
|
|
9
|
-
coverage
|
|
10
|
-
lib/bundler/man
|
|
11
|
-
pkg
|
|
12
|
-
rdoc
|
|
13
|
-
spec/reports
|
|
14
|
-
test/tmp
|
|
15
|
-
test/version_tmp
|
|
16
|
-
vendor/bundle
|
|
17
|
-
tmp
|
|
18
|
-
*.bundle
|
|
19
|
-
*.so
|
|
20
|
-
*.o
|
|
21
|
-
*.a
|
|
22
|
-
*.log
|
|
23
|
-
*.def
|
|
24
|
-
Makefile
|
|
25
|
-
extconf.h
|
|
26
|
-
compile_flags.txt
|
|
27
|
-
build-ImageMagick/
|
|
28
|
-
doc/node_modules/
|
|
29
|
-
doc/package-lock.json
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
inherit_from:
|
|
2
|
-
- .rubocop_todo.yml
|
|
3
|
-
|
|
4
|
-
plugins:
|
|
5
|
-
- rubocop-rspec
|
|
6
|
-
- rubocop-performance
|
|
7
|
-
- rubocop-on-rbs
|
|
8
|
-
|
|
9
|
-
AllCops:
|
|
10
|
-
DefaultFormatter: fuubar
|
|
11
|
-
EnabledByDefault: true
|
|
12
|
-
TargetRubyVersion: 3.0
|
|
13
|
-
Exclude:
|
|
14
|
-
- 'vendor/bundle/**/*'
|
|
15
|
-
- '**/*\.spec'
|
|
16
|
-
|
|
17
|
-
################################################################################
|
|
18
|
-
#
|
|
19
|
-
# Rules that depart from rubocop defaults
|
|
20
|
-
#
|
|
21
|
-
################################################################################
|
|
22
|
-
|
|
23
|
-
Layout/MultilineAssignmentLayout:
|
|
24
|
-
EnforcedStyle: same_line
|
|
25
|
-
|
|
26
|
-
Style/FormatString:
|
|
27
|
-
EnforcedStyle: sprintf
|
|
28
|
-
|
|
29
|
-
Style/GuardClause:
|
|
30
|
-
MinBodyLength: 3
|
|
31
|
-
|
|
32
|
-
# we may not need this after finishing RSpec conversion
|
|
33
|
-
# seems like `rubocop-rspec` already excludes the `spec/` directory
|
|
34
|
-
Style/MethodCalledOnDoEndBlock:
|
|
35
|
-
Exclude: [spec/**/*.rb]
|
|
36
|
-
|
|
37
|
-
Style/NumericLiterals:
|
|
38
|
-
MinDigits: 6
|
|
39
|
-
|
|
40
|
-
Style/TopLevelMethodDefinition:
|
|
41
|
-
Exclude: [doc/**/*.rb, examples/**/*.rb, spec/**/*.rb]
|
|
42
|
-
|
|
43
|
-
RSpec/BeNil:
|
|
44
|
-
EnforcedStyle: be
|
|
45
|
-
|
|
46
|
-
RSpec/ClassCheck:
|
|
47
|
-
EnforcedStyle: be_kind_of
|
|
48
|
-
|
|
49
|
-
################################################################################
|
|
50
|
-
#
|
|
51
|
-
# Rules we don't want to enable
|
|
52
|
-
#
|
|
53
|
-
################################################################################
|
|
54
|
-
|
|
55
|
-
RSpec/AlignLeftLetBrace:
|
|
56
|
-
Enabled: false
|
|
57
|
-
|
|
58
|
-
RSpec/AlignRightLetBrace:
|
|
59
|
-
Enabled: false
|
|
60
|
-
|
|
61
|
-
Style/Copyright:
|
|
62
|
-
Enabled: false
|
|
63
|
-
|
|
64
|
-
Style/DisableCopsWithinSourceCodeDirective:
|
|
65
|
-
Enabled: false
|
|
66
|
-
|
|
67
|
-
Style/AccessorGrouping:
|
|
68
|
-
Enabled: false
|