extract_ttc 0.3.4-x86_64-darwin → 0.3.5-x86_64-darwin

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: 3f9693c1ab33b76f8361712852a5ef264832e521e80f98c0d40a1d448c238e1c
4
- data.tar.gz: '03118b90a8caa1dc27394ab426b3d7d78b32d4e611fc4e1c337b0334323a6ca4'
3
+ metadata.gz: 14f20ba4431c661e9816bfc95c863f3873c6155f8ee45f362ce5bfa28c475240
4
+ data.tar.gz: fd06adeff98a5b85863abc51156a9b33aee8aa11215ad877159f9d9aa8c36ee6
5
5
  SHA512:
6
- metadata.gz: 4bf267e1fdbd4aa229a6b7fff8ed99601de9adba8f9857861aaac8beb1071f994a7f6815bb62c368df8537b80ad1321feb748c7f5eec6c0de46be2052a0d8e23
7
- data.tar.gz: 594192844b62de58fb6997f14cabf392b12618e6b7cc564e625c2ab838cb5a098484db99ef3aae2204e9747ad600ce96188288ebd74ab56e1347c1e260be9e09
6
+ metadata.gz: f1fefd44989618f423c47645886c9844b39de21cf30935cbf04cd4af917be8f02d3451181f01c7bc4e5d48b60083a9baadad6ff57b28ef370b3c8c4998cbb546
7
+ data.tar.gz: 06aaad55677e699d5b375c30b4e3d609063d8b35adb656e855a84f3ceb12eabb343ddd6fa2aa97177469f0bef575ad137da492608f635ccd94ae75fdf5591b91
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: x86_64-darwin
6
6
  authors:
7
7
  - Ribose Inc.