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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9061a709e73b5612e94dfb837e10408cacd2d9ad1726b2d772c0b78de6daad02
4
- data.tar.gz: fed88c613b73470fce728338c77f98b7901614ffbf1b2863a6da66c0c873f169
3
+ metadata.gz: c68fb06c5de27009bdfe263acef48958d5ec89d8599ab410e11781b24f582070
4
+ data.tar.gz: 11b4b0d923fd4cb2c80723fc6d222b3ee67bf83f496cda0ec1348382563b33ff
5
5
  SHA512:
6
- metadata.gz: d93f552671890e67120fb622b8805b2e14822d043c1b0fa9d560264564fdee25e66c2f5bfb628ce273ac2e7f970165486715bfc8de741f3131e3e937ed6f955d
7
- data.tar.gz: 1206ffb6a85f80d363693bcb728440e1e6f64a16b30ec8cdf47de99e07d6148148ac3e954ca3e7d5def43c51af4897f36039eb8065184cc5056ec8d85e696e25
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: ${{ contains(matrix.os, 'ubuntu') || matrix.ruby == '3.1' }}
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
@@ -23,3 +23,4 @@ Gemfile.lock
23
23
 
24
24
  # VS Code
25
25
  .vscode
26
+ test*
@@ -17,7 +17,8 @@ module Fontist
17
17
  end
18
18
 
19
19
  def self.digest(path)
20
- checksums = Dir.glob(File.join(path, "*.{ttf,otf,ttc}"))
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
 
@@ -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, File::FNM_CASEFOLD)
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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Fontist
2
- VERSION = "1.14.3".freeze
2
+ VERSION = "1.14.5".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.14.3
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-08-16 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down