fpm-cookery 0.37.0 → 0.38.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/.github/workflows/ruby.yml +16 -4
- data/CHANGELOG.md +4 -0
- data/Rakefile +19 -0
- data/fpm-cookery.gemspec +1 -0
- data/lib/fpm/cookery/utils.rb +1 -1
- data/lib/fpm/cookery/version.rb +1 -1
- data/spec/utils_spec.rb +18 -0
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dd8cf427fc81df78b55732516e91b8c98dcae6af6c465cd790042539098efaf
|
4
|
+
data.tar.gz: 67f996dc214f34ff79f35c670dfd082bb8cca472068207dc457025c911668240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6df5723d6457029da89f9d5a64ccf73e46804171a94e474e48a9447442628c2141ccf63db3672b56d27b2c29308e95e70071744745f94d9c30f5773da8e123d
|
7
|
+
data.tar.gz: 31a87981c9f66d194a57595a71eaf1745ea4959a0cfdfd2789ce5c10613c5d7bdaafffb37b297799e05647f8065d5417f2bd81f6427994e14852d394d5b41c02
|
data/.github/workflows/ruby.yml
CHANGED
@@ -1,26 +1,38 @@
|
|
1
1
|
name: Ruby
|
2
2
|
|
3
|
-
on:
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
types: [ opened, reopened, synchronize, edited ]
|
6
|
+
push:
|
7
|
+
branches: [ main ]
|
4
8
|
|
5
9
|
jobs:
|
6
10
|
build:
|
11
|
+
name: "Ruby ${{ matrix.ruby }}"
|
7
12
|
|
8
13
|
runs-on: ubuntu-latest
|
9
14
|
strategy:
|
10
15
|
matrix:
|
11
|
-
ruby: ["2.7", "3.0", "3.1", "3.2"]
|
16
|
+
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
|
12
17
|
|
13
18
|
steps:
|
14
|
-
- uses: actions/checkout@
|
19
|
+
- uses: actions/checkout@v4
|
20
|
+
|
15
21
|
- name: Set up Ruby ${{ matrix.ruby }}
|
16
22
|
uses: ruby/setup-ruby@v1
|
17
23
|
with:
|
18
24
|
ruby-version: ${{ matrix.ruby }}
|
19
25
|
bundler-cache: true
|
26
|
+
|
20
27
|
- name: Build and test with Rake
|
21
28
|
run: |
|
22
29
|
sudo apt-get update -qq
|
23
30
|
sudo apt-get install -yqq python3-sphinx
|
24
|
-
|
31
|
+
if [ "${{ matrix.ruby }}" = "2.7" ]; then
|
32
|
+
# Last supported bundler version for Ruby 2.7
|
33
|
+
gem install bundler -v 2.4.22
|
34
|
+
else
|
35
|
+
gem install bundler
|
36
|
+
fi
|
25
37
|
bundle install --jobs 4 --retry 3
|
26
38
|
bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# v0.38.0 (2025-07-07)
|
2
|
+
* Fix compatibility with Ruby 3.2. (aalmenar / #221)
|
3
|
+
* Fix compatibility with Ruby 3.4. (#222)
|
4
|
+
|
1
5
|
# v0.37.0 (2023-04-04)
|
2
6
|
* Add `osfamily` fact and choose package target based on it. (FooBarQuaxx / #216)
|
3
7
|
* Install Sphinx toolchain for GitHub Action workflow. (FooBarQuaxx / #217)
|
data/Rakefile
CHANGED
@@ -6,6 +6,25 @@ RSpec::Core::RakeTask.new(:spec)
|
|
6
6
|
|
7
7
|
task :default => :spec
|
8
8
|
|
9
|
+
namespace 'test:ruby' do |ns|
|
10
|
+
src = File.dirname(File.expand_path(__FILE__))
|
11
|
+
|
12
|
+
%w(3.4 3.3 3.2 3.1 3.0 2.7).each do |version|
|
13
|
+
task version do
|
14
|
+
sh %(
|
15
|
+
docker run -i --rm -v #{src}:/src ruby:#{version}
|
16
|
+
bash -c '
|
17
|
+
git config --global --add safe.directory /src/.git
|
18
|
+
&& git clone -s /src /work
|
19
|
+
&& cd /work
|
20
|
+
&& bundle install -j 4
|
21
|
+
&& bundle exec rake
|
22
|
+
'
|
23
|
+
).gsub(/\s+/, ' ').strip
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
9
28
|
namespace :docs do |ns|
|
10
29
|
require 'systemu'
|
11
30
|
|
data/fpm-cookery.gemspec
CHANGED
data/lib/fpm/cookery/utils.rb
CHANGED
@@ -86,7 +86,7 @@ module FPM
|
|
86
86
|
alias_method :inreplace, :inline_replace # homebrew compat
|
87
87
|
|
88
88
|
def patch(src, level = 0)
|
89
|
-
raise "patch level must be integer" unless level.is_a?(
|
89
|
+
raise "patch level must be integer" unless level.is_a?(::Integer)
|
90
90
|
raise "#{src} does not exist" unless File.exist? src
|
91
91
|
|
92
92
|
if "#{src}".end_with?('.gz')
|
data/lib/fpm/cookery/version.rb
CHANGED
data/spec/utils_spec.rb
CHANGED
@@ -28,6 +28,14 @@ describe FPM::Cookery::Utils do
|
|
28
28
|
def run_go_build_hash
|
29
29
|
go :build, :mod => 'vendor', :v => true
|
30
30
|
end
|
31
|
+
|
32
|
+
def run_patch_level
|
33
|
+
patch 'file.patch', 'one'
|
34
|
+
end
|
35
|
+
|
36
|
+
def run_patch_missing
|
37
|
+
patch 'missing.patch'
|
38
|
+
end
|
31
39
|
end
|
32
40
|
|
33
41
|
let(:test) { TestUtils.new }
|
@@ -81,4 +89,14 @@ describe FPM::Cookery::Utils do
|
|
81
89
|
end
|
82
90
|
end
|
83
91
|
end
|
92
|
+
describe '#patch' do
|
93
|
+
it 'raises error if level is not an integer' do
|
94
|
+
expect { test.run_patch_level }.to raise_error("patch level must be integer")
|
95
|
+
end
|
96
|
+
|
97
|
+
it 'raises error if file does not exist' do
|
98
|
+
allow(File).to receive(:exist?).and_return(false)
|
99
|
+
expect { test.run_patch_missing }.to raise_error("missing.patch does not exist")
|
100
|
+
end
|
101
|
+
end
|
84
102
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fpm-cookery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernd Ahlers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -198,6 +198,20 @@ dependencies:
|
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '2.0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: base64
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 0.3.0
|
208
|
+
type: :runtime
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 0.3.0
|
201
215
|
description: A tool for building software packages with fpm.
|
202
216
|
email:
|
203
217
|
- bernd@tuneafish.de
|
@@ -347,7 +361,7 @@ files:
|
|
347
361
|
homepage: ''
|
348
362
|
licenses: []
|
349
363
|
metadata: {}
|
350
|
-
post_install_message:
|
364
|
+
post_install_message:
|
351
365
|
rdoc_options: []
|
352
366
|
require_paths:
|
353
367
|
- lib
|
@@ -362,8 +376,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
362
376
|
- !ruby/object:Gem::Version
|
363
377
|
version: '0'
|
364
378
|
requirements: []
|
365
|
-
rubygems_version: 3.
|
366
|
-
signing_key:
|
379
|
+
rubygems_version: 3.4.20
|
380
|
+
signing_key:
|
367
381
|
specification_version: 4
|
368
382
|
summary: A tool for building software packages with fpm.
|
369
383
|
test_files: []
|