fontist 1.14.3 → 1.14.5
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/test-and-release.yml +22 -2
- data/.gitignore +1 -0
- data/lib/fontist/import/google.rb +2 -1
- data/lib/fontist/system_font.rb +3 -1
- data/lib/fontist/utils/ui.rb +6 -0
- data/lib/fontist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c68fb06c5de27009bdfe263acef48958d5ec89d8599ab410e11781b24f582070
|
|
4
|
+
data.tar.gz: 11b4b0d923fd4cb2c80723fc6d222b3ee67bf83f496cda0ec1348382563b33ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba79faf4ab79d0f61b45139b2d2b377aac6c05568a776c8a9066ce22ce888ad3c5ccac29d4a7c70edfaee0a864563f2d0d09951ca888e05b2413975375c64893
|
|
7
|
+
data.tar.gz: 47be34621947a7bb5a0cb0ffe2a60c997049887329aa1d2a86dc12443139034f9d1ec712531c01393f179ace16e083f1890e24eb549093c3bedd8e724ad3e4b0
|
|
@@ -14,7 +14,7 @@ jobs:
|
|
|
14
14
|
test:
|
|
15
15
|
name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
|
|
16
16
|
runs-on: ${{ matrix.os }}
|
|
17
|
-
continue-on-error:
|
|
17
|
+
continue-on-error: false
|
|
18
18
|
strategy:
|
|
19
19
|
fail-fast: false
|
|
20
20
|
matrix:
|
|
@@ -42,9 +42,29 @@ jobs:
|
|
|
42
42
|
env:
|
|
43
43
|
TEST_ENV: CI
|
|
44
44
|
|
|
45
|
+
archlinux-test:
|
|
46
|
+
name: Test on Arch Linux
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
container:
|
|
49
|
+
image: 'archlinux:latest'
|
|
50
|
+
continue-on-error: false
|
|
51
|
+
strategy:
|
|
52
|
+
fail-fast: false
|
|
53
|
+
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/checkout@v3
|
|
56
|
+
|
|
57
|
+
- name: Setup packages
|
|
58
|
+
run: pacman -Syu --noconfirm git ruby binutils gcc autoconf make libffi
|
|
59
|
+
|
|
60
|
+
- run: bundle install
|
|
61
|
+
|
|
62
|
+
- name: Test
|
|
63
|
+
run: bundle exec rspec --tag ~dev
|
|
64
|
+
|
|
45
65
|
release:
|
|
46
66
|
name: Release gem
|
|
47
|
-
needs: test
|
|
67
|
+
needs: [ test, archlinux-test ]
|
|
48
68
|
runs-on: ubuntu-latest
|
|
49
69
|
if: contains(github.ref, 'refs/tags/v')
|
|
50
70
|
steps:
|
data/.gitignore
CHANGED
|
@@ -17,7 +17,8 @@ module Fontist
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def self.digest(path)
|
|
20
|
-
checksums = Dir.glob(File.join(path,
|
|
20
|
+
checksums = Dir.glob(File.join(path,
|
|
21
|
+
"*.{[t|T][t|T][f|F],[o|O][t|T][f|F],[t|T][t|T][c|C]}"))
|
|
21
22
|
.sort
|
|
22
23
|
.map { |x| Digest::SHA256.file(x).to_s }
|
|
23
24
|
|
data/lib/fontist/system_font.rb
CHANGED
|
@@ -21,7 +21,9 @@ module Fontist
|
|
|
21
21
|
templates = YAML.load_file(config_path)["system"][os]["paths"]
|
|
22
22
|
patterns = expand_paths(templates)
|
|
23
23
|
|
|
24
|
-
Dir.glob(patterns
|
|
24
|
+
Dir.glob(patterns)
|
|
25
|
+
# File::FNM_CASEFOLD is officially ignored -- see https://ruby-doc.org/core-3.1.1/Dir.html#method-c-glob
|
|
26
|
+
# "Case sensitivity depends on your system"
|
|
25
27
|
end
|
|
26
28
|
|
|
27
29
|
def self.reset_system_font_paths_cache
|
data/lib/fontist/utils/ui.rb
CHANGED
|
@@ -37,6 +37,12 @@ module Fontist
|
|
|
37
37
|
|
|
38
38
|
def self.ask(message, options = {})
|
|
39
39
|
new.ask(message, options)
|
|
40
|
+
rescue Errno::EBADF
|
|
41
|
+
say(<<~MSG.chomp)
|
|
42
|
+
ERROR: Fontist is unable to obtain agreement without an interactive prompt.
|
|
43
|
+
Please provide explicit agreement at execution or re-run Fontist with an interactive prompt.
|
|
44
|
+
MSG
|
|
45
|
+
"error"
|
|
40
46
|
end
|
|
41
47
|
|
|
42
48
|
def self.print(message)
|
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.14.
|
|
4
|
+
version: 1.14.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: down
|