extract_ttc 0.3.4-arm64-darwin → 0.3.5-arm64-darwin

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: 8553759803c8cfa0b217873cba846f5e1a1f725f8eb38c8019a5ae3b30274886
4
- data.tar.gz: 1df137d0fc4db756358164c59a6408468ef27c676ee3177a8eca41856a751e9f
3
+ metadata.gz: f173c41d869a16bbda8935452990e7fcd9c36ab4a39491aca9baeec83cbe6f39
4
+ data.tar.gz: 80852bf438eabcd0b07781ec7cd990b8e68e1a8ba62def748be285121751e04a
5
5
  SHA512:
6
- metadata.gz: b1d0b2607f4c23fc5679e7f50fa69c4ee4dab06d75485e979db3bca5184c694f3c6c1a746afec14fede3656d7948aa416fb3dfce14a905ef71e1161495d9a175
7
- data.tar.gz: eba1e71bda88dd57cd3181cce774ece746f349cee408d0b2580c7021faf44c7b5558640e7ffe297dcb13f7236b3684279babc217c3091a6ff4aa57f0ba5c25b3
6
+ metadata.gz: a931ca8be03ac502517b75cc9ab49a7780245476ae00ebd3d7895c71d986d086167aa3eae0bd0f1a1c34abd3820225b600b26e82f32bb9248280d50a8a9a6624
7
+ data.tar.gz: 7a9ecea94898e9db57b65feae9f360eac52561a9c1fa5a63add26c09ed23b0d77d24ce8655efde8682899c69c11e48b147e6b9d1d68a5b369627047984604ee5
data/README.adoc CHANGED
@@ -1,3 +1,8 @@
1
+ image:https://img.shields.io/gem/v/extract_ttc.svg["Gem Version", link="https://rubygems.org/gems/extract_ttc"]
2
+ image:https://github.com/fontist/extract_ttc/workflows/test-and-release/badge.svg["Build Status", link="https://github.com/fontist/extract_ttc/actions?workflow=test-and-release"]
3
+ // image:https://codeclimate.com/github/metanorma/extract_ttc/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/fontist/extract_ttc"]
4
+ image:https://img.shields.io/github/issues-pr-raw/fontist/extract_ttc.svg["Pull Requests", link="https://github.com/fontist/extract_ttc/pulls"]
5
+
1
6
  = ExtractTtc: Ruby gem to extract TTF from TTC
2
7
 
3
8
  == Purpose
Binary file
@@ -1,3 +1,3 @@
1
1
  module ExtractTtc
2
- VERSION = "0.3.4".freeze
2
+ VERSION = "0.3.5".freeze
3
3
  end
data/lib/extract_ttc.rb CHANGED
@@ -16,19 +16,14 @@ module ExtractTtc
16
16
  extend FFI::Library
17
17
  # NOTE: ffi doesn't support bundles out of box https://github.com/ffi/ffi/issues/42#issuecomment-750031554
18
18
  # NOTE: rake-compiler doesn't support dylib generation https://github.com/rake-compiler/rake-compiler/issues/183
19
+ lib_subdir = RUBY_VERSION.split(".").first(2).join(".")
20
+ macos_binary = "stripttc.bundle"
19
21
  lib_name = if File.exist?(
20
- File.join(
21
- File.dirname(__FILE__),
22
- RUBY_VERSION.split(".").first(2).join("."),
23
- "stripttc.bundle",
24
- ),
25
- ) || File.exist?(
26
- File.join(
27
- File.dirname(__FILE__),
28
- "stripttc.bundle",
29
- ),
22
+ File.join(File.dirname(__FILE__), lib_subdir, macos_binary),
30
23
  )
31
- "stripttc.bundle"
24
+ File.join(lib_subdir, macos_binary)
25
+ elsif File.exist?(File.join(File.dirname(__FILE__), macos_binary))
26
+ macos_binary
32
27
  else
33
28
  "stripttc.so"
34
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extract_ttc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Ribose Inc.