extract_ttc 0.3.4-aarch64-linux → 0.3.5-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71caf7fe320a9be4dbb2496eb5112835ac085cdb5a8a96fc1ebce666c8a01fe2
4
- data.tar.gz: '096e1ceae71395c25d55c89f5f0352db3e47397a880b4d6205c62196eeffadff'
3
+ metadata.gz: 7ffeb5e42b0e22fdcf91a6757e0b50217a169b59d1e09c2dc69fc16d97368bec
4
+ data.tar.gz: 5ad8fb1a4ecb5221b27cd1d2d0550f7dd1e93645a78d4e42a60098f066490e5c
5
5
  SHA512:
6
- metadata.gz: b62feb5fe6a2ac174760353090c46a84de3070199acd85b2d56912910dd8e915cba069539fe6e2f86b52e170f19dc02312b000a50997cd2ff344395288f3f357
7
- data.tar.gz: 3505c880e8c64ab68d78c9a16a7576a9ddff148fad0426d37ed5fa40f1c695ce6f7a7b37d8b7505ae6f27b8ec69a5dee00673d56ce16dac5a2b2390886270b58
6
+ metadata.gz: 648b38b4fb4c14dbcb87c95c8474c91947c05b6c8efaf41daf3d421ba16bd79f286a4d2e6e28e1175fc1bd4b0e16a5b8dd9e84ae1947e3b18addc88cd9985cd2
7
+ data.tar.gz: 8e8f64fe944295ed6d720d3533801cefc0b5c7ba78fbdccff5e8c5103643ef1c6a49c691d3b28d66c791803887d93799e49e46de16babd77925340cb27b193fa
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
@@ -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: aarch64-linux
6
6
  authors:
7
7
  - Ribose Inc.