extract_ttc 0.3.4-x86_64-linux-musl → 0.3.5-x86_64-linux-musl

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: 9b11346276a9178aa56a1394afe19072135dc4a4cf2689a1c2ff25055cd308ef
4
- data.tar.gz: 01c11e0fcc9ae68152fd287f8b9ff00de56a73a7e01040063d1c41fc28c2edac
3
+ metadata.gz: d9240be3468aad748df64b84cda34097af8f949143e03145b75b80772bd37fb9
4
+ data.tar.gz: 7fbb0db543a51142d516309c6d2b17485af53cc11d5da3775776c472bc733e4b
5
5
  SHA512:
6
- metadata.gz: d9c8e965138f4ebc08eafdd51ba31707b89a64bafab4716655ddf1e9d0267caac5ca1414f2815fb837ed2489d2d179b3bb2ee1436b351d26cd6857d43399d607
7
- data.tar.gz: ac208fdaebf05dc0a96da5f5d38e9f0a31419e0697d59d115f81ec245f75bac0a7fe1465aa7594e6346b1f7748bae1c245df0f76c91bfc379d54aed6c97677a7
6
+ metadata.gz: 240bff2e5a93c1273d1db0813d2050cae296d89c16aac8bdb9c0767adf509aaccb0c6430a06df2b556198dadd32daecc55cef268db72281d1062c393edee24ed
7
+ data.tar.gz: d6fbcdb93a659ba43a8f38a50219e47e0e2ebfcb34a355b99778ab4c3c46bc55ff86896220b6e3f2b80dc8a470639777cf52593b0839011ee7e8f25888ed6506
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: x86_64-linux-musl
6
6
  authors:
7
7
  - Ribose Inc.