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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f3590888173d9be1196a8ca87bdefb0a8e0f4d7104f89d50bfac819d4890baf
4
- data.tar.gz: 77dccd8e142c9f47dd1be79496d1c7d22185594ad3e0a0f927b94fc35c9f08c3
3
+ metadata.gz: f1f643e0f29ca1df23bf363fbac476a18eac1f7d94a5531ba57c3e067b257510
4
+ data.tar.gz: e1c1b437145c267b8eab870bc201af9be5c4b0f6cafb8fd5fd87c15232b7a0f9
5
5
  SHA512:
6
- metadata.gz: 41d6c8bc63c8484fddd51fb3aeca3f6338a58a08b3c880a7016e15e0d43252183dd0a0e9ef743680a9010508c79bda7f4b9d17db5d7e71eae897060ab2278e3e
7
- data.tar.gz: 8910f191f347e60de4f0cf1b1c8d68a30c934fb8e4e00880f13246f49f4f42de18024a4c22d4eadd7860b74fe102f021f902ab359c040c5cd1ce08a714c2ce5b
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: test-and-release
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
- name: Run tests including dev ones
50
- run: |
51
- brew install lcdf-typetools
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 rspec --tag ~dev
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
@@ -5,4 +5,4 @@ require "rubocop/rake_task"
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
- task default: %i[spec rubocop]
8
+ task default: %i[spec]
@@ -68,7 +68,7 @@ module Fontist
68
68
 
69
69
  message = error.message.to_s
70
70
  if message.empty? || !error.is_a?(Thor::Error)
71
- message.prepend("[#{error.class}] ")
71
+ message = "[#{error.class}] #{message}"
72
72
  end
73
73
  config[:shell]&.say_error(message, :red)
74
74
  exit(false)
@@ -88,7 +88,10 @@ module Fontist
88
88
  end
89
89
 
90
90
  def self.new_from_file(path)
91
- data = YAML.load_file(path)
91
+ data = YAML.safe_load(
92
+ File.read(path),
93
+ permitted_classes: [Date, Symbol, Time]
94
+ )
92
95
  new(data, path)
93
96
  end
94
97
 
@@ -107,7 +107,11 @@ module Fontist
107
107
  end
108
108
 
109
109
  def generate_file_path(source)
110
- dir = Dir.mktmpdir(nil, Fontist.downloads_path)
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
 
@@ -1,3 +1,3 @@
1
1
  module Fontist
2
- VERSION = "1.21.2".freeze
2
+ VERSION = "1.21.3".freeze
3
3
  end
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.2
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: 2024-10-08 00:00:00.000000000 Z
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.3.27
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: []