fontist 1.21.2 → 1.21.3
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/post-rake.yml +26 -0
- data/.github/workflows/rake-metanorma.yaml +53 -0
- data/.github/workflows/{test-and-release.yml → rake.yml} +7 -64
- data/Rakefile +1 -1
- data/lib/fontist/cli/thor_ext.rb +1 -1
- data/lib/fontist/formula.rb +4 -1
- data/lib/fontist/utils/cache.rb +5 -1
- data/lib/fontist/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1f643e0f29ca1df23bf363fbac476a18eac1f7d94a5531ba57c3e067b257510
|
4
|
+
data.tar.gz: e1c1b437145c267b8eab870bc201af9be5c4b0f6cafb8fd5fd87c15232b7a0f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a0f1a24057b83018f2d7ea44b5e4026a1b22759eecc900c9854cb72c51ead62faa0b6250bc79dc0bb04c6a4929f000b99ace89d20e617b480da54b589dcd354
|
7
|
+
data.tar.gz: 0f90c437007d9493a8d4e3fd2949c2532ba7dd2e0a9d10deb7960d0ff88481a21e43a485261db755b25a4a61730afbbfdf952f97f9e52816c168d24daeb9e20b
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: post-rake
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
workflow_run:
|
6
|
+
workflows:
|
7
|
+
- rake
|
8
|
+
- rake-metanorma
|
9
|
+
types:
|
10
|
+
- completed
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
post-rake:
|
14
|
+
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.ref, 'refs/tags/v') }}
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v4
|
18
|
+
|
19
|
+
- if: contains(github.ref, 'refs/tags/v')
|
20
|
+
name: Repository ready for release
|
21
|
+
uses: peter-evans/repository-dispatch@v3
|
22
|
+
with:
|
23
|
+
token: ${{ secrets.FONTIST_CI_PAT_TOKEN }}
|
24
|
+
repository: ${{ github.repository }}
|
25
|
+
event-type: do-release
|
26
|
+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "type": "do-release"}'
|
@@ -0,0 +1,53 @@
|
|
1
|
+
name: rake-metanorma
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
tags: [ 'v*' ]
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
concurrency:
|
10
|
+
group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}'
|
11
|
+
cancel-in-progress: true
|
12
|
+
|
13
|
+
env:
|
14
|
+
BUNDLER_VER: 2.3.24
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
prepare:
|
18
|
+
uses: metanorma/ci/.github/workflows/prepare-rake.yml@main
|
19
|
+
|
20
|
+
metanorma:
|
21
|
+
name: Test metanorma on Ruby ${{ matrix.ruby.version }} ${{ matrix.os }}
|
22
|
+
runs-on: ${{ matrix.os }}
|
23
|
+
|
24
|
+
needs: prepare
|
25
|
+
if: needs.prepare.outputs.push-for-tag != 'true'
|
26
|
+
|
27
|
+
continue-on-error: ${{ matrix.ruby.experimental }}
|
28
|
+
strategy:
|
29
|
+
fail-fast: false
|
30
|
+
max-parallel: 5
|
31
|
+
matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}
|
32
|
+
|
33
|
+
steps:
|
34
|
+
- uses: actions/checkout@v4
|
35
|
+
with:
|
36
|
+
repository: metanorma/metanorma
|
37
|
+
|
38
|
+
- uses: actions/checkout@master
|
39
|
+
with:
|
40
|
+
path: "fontist"
|
41
|
+
|
42
|
+
- run: 'echo ''gem "fontist", path: "./fontist"'' > Gemfile.devel'
|
43
|
+
|
44
|
+
- uses: ruby/setup-ruby@v1
|
45
|
+
with:
|
46
|
+
ruby-version: ${{ matrix.ruby.version }}
|
47
|
+
rubygems: ${{ matrix.ruby.rubygems }}
|
48
|
+
bundler: ${{ env.BUNDLER_VER }}
|
49
|
+
bundler-cache: true
|
50
|
+
|
51
|
+
- uses: metanorma/metanorma-build-scripts/inkscape-setup-action@main
|
52
|
+
|
53
|
+
- run: bundle exec rake
|
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: rake
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
@@ -46,17 +46,9 @@ jobs:
|
|
46
46
|
bundler-cache: true
|
47
47
|
|
48
48
|
- if: matrix.os == 'macos-latest'
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
bundle exec rspec
|
53
|
-
env:
|
54
|
-
TEST_ENV: CI
|
55
|
-
|
56
|
-
- if: matrix.os != 'macos-latest'
|
57
|
-
run: bundle exec rspec --tag ~dev
|
58
|
-
env:
|
59
|
-
TEST_ENV: CI
|
49
|
+
run: brew install lcdf-typetools
|
50
|
+
|
51
|
+
- run: bundle exec rake
|
60
52
|
|
61
53
|
archlinux-test:
|
62
54
|
name: Test on Arch Linux
|
@@ -66,6 +58,8 @@ jobs:
|
|
66
58
|
image: 'archlinux:latest'
|
67
59
|
strategy:
|
68
60
|
fail-fast: false
|
61
|
+
env:
|
62
|
+
CI: true
|
69
63
|
|
70
64
|
steps:
|
71
65
|
- name: Setup packages
|
@@ -82,55 +76,4 @@ jobs:
|
|
82
76
|
bundle install
|
83
77
|
|
84
78
|
- name: Test
|
85
|
-
run: bundle exec
|
86
|
-
|
87
|
-
metanorma:
|
88
|
-
name: Test metanorma on Ruby ${{ matrix.ruby.version }} ${{ matrix.os }}
|
89
|
-
runs-on: ${{ matrix.os }}
|
90
|
-
|
91
|
-
needs: prepare
|
92
|
-
if: needs.prepare.outputs.push-for-tag != 'true'
|
93
|
-
|
94
|
-
continue-on-error: ${{ matrix.ruby.experimental }}
|
95
|
-
strategy:
|
96
|
-
fail-fast: false
|
97
|
-
max-parallel: 5
|
98
|
-
matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}
|
99
|
-
|
100
|
-
steps:
|
101
|
-
- uses: actions/checkout@v4
|
102
|
-
with:
|
103
|
-
repository: metanorma/metanorma
|
104
|
-
|
105
|
-
- uses: actions/checkout@master
|
106
|
-
with:
|
107
|
-
path: "fontist"
|
108
|
-
|
109
|
-
- run: 'echo ''gem "fontist", path: "./fontist"'' > Gemfile.devel'
|
110
|
-
|
111
|
-
- uses: ruby/setup-ruby@v1
|
112
|
-
with:
|
113
|
-
ruby-version: ${{ matrix.ruby.version }}
|
114
|
-
rubygems: ${{ matrix.ruby.rubygems }}
|
115
|
-
bundler: ${{ env.BUNDLER_VER }}
|
116
|
-
bundler-cache: true
|
117
|
-
|
118
|
-
- uses: metanorma/metanorma-build-scripts/inkscape-setup-action@main
|
119
|
-
|
120
|
-
- run: bundle exec rake
|
121
|
-
|
122
|
-
release:
|
123
|
-
name: Release gem
|
124
|
-
needs: [ test, archlinux-test, metanorma ]
|
125
|
-
runs-on: ubuntu-latest
|
126
|
-
if: contains(github.ref, 'refs/tags/v')
|
127
|
-
steps:
|
128
|
-
- uses: actions/checkout@v4
|
129
|
-
|
130
|
-
- name: Repository ready for release
|
131
|
-
uses: peter-evans/repository-dispatch@v3
|
132
|
-
with:
|
133
|
-
token: ${{ secrets.FONTIST_CI_PAT_TOKEN }}
|
134
|
-
repository: ${{ github.repository }}
|
135
|
-
event-type: do-release
|
136
|
-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "type": "do-release"}'
|
79
|
+
run: bundle exec rake
|
data/Rakefile
CHANGED
data/lib/fontist/cli/thor_ext.rb
CHANGED
data/lib/fontist/formula.rb
CHANGED
data/lib/fontist/utils/cache.rb
CHANGED
@@ -107,7 +107,11 @@ module Fontist
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def generate_file_path(source)
|
110
|
-
|
110
|
+
# WORKAROUND: `to_s` below is needed to avoid ArgumentError
|
111
|
+
# on `Dir.mktmpdir`, which occurs in ruby-3.4-preview2.
|
112
|
+
# Double-check on stable ruby-3.4 and remove if no longer needed.
|
113
|
+
|
114
|
+
dir = Dir.mktmpdir(nil, Fontist.downloads_path.to_s)
|
111
115
|
File.join(dir, filename(source))
|
112
116
|
end
|
113
117
|
|
data/lib/fontist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.21.
|
4
|
+
version: 1.21.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: down
|
@@ -353,9 +353,11 @@ extensions: []
|
|
353
353
|
extra_rdoc_files: []
|
354
354
|
files:
|
355
355
|
- ".github/workflows/deploy-pages.yml"
|
356
|
+
- ".github/workflows/post-rake.yml"
|
357
|
+
- ".github/workflows/rake-metanorma.yaml"
|
358
|
+
- ".github/workflows/rake.yml"
|
356
359
|
- ".github/workflows/release.yml"
|
357
360
|
- ".github/workflows/tebako-pack.yml"
|
358
|
-
- ".github/workflows/test-and-release.yml"
|
359
361
|
- ".gitignore"
|
360
362
|
- ".hound.yml"
|
361
363
|
- ".rspec"
|
@@ -477,8 +479,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
477
479
|
- !ruby/object:Gem::Version
|
478
480
|
version: '0'
|
479
481
|
requirements: []
|
480
|
-
rubygems_version: 3.
|
481
|
-
signing_key:
|
482
|
+
rubygems_version: 3.5.22
|
483
|
+
signing_key:
|
482
484
|
specification_version: 4
|
483
485
|
summary: Install openly-licensed fonts on Windows, Linux and Mac!
|
484
486
|
test_files: []
|