extract_ttc 0.3.4-x86_64-linux → 0.3.5-x86_64-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: 3e8005bcb855980ec948c3ed80559d0679a268e466095ead6c5ca0333275bb63
4
- data.tar.gz: 4881fa2e9eeef4d882af7bc0d1e3c89538f1854fd784ad2f44250b25ce093c57
3
+ metadata.gz: 29ad36a60583010cc68f5ea966b36d68a0be7dc14527e0256eed8032430e70b3
4
+ data.tar.gz: 998739e3f0a1bd4d13c542edc4e1760d6288365ad1807561e4897512380956b5
5
5
  SHA512:
6
- metadata.gz: 8493584d69eebe9cdede829707b78a7e5582e82c95e95c7567e6a288b3a2dfee0d7fa5a7b5becebc850978d4d3f600132de06e4c4adb8ee91bde8355d319442d
7
- data.tar.gz: 638acbb0d167df11e2c4de7d5fb93dabe461fef045d0e20b48aa015227c95e7c98a8ffbb1d445f79ca7327d52d5108f3b8980ac02854b9f37563443628d865a0
6
+ metadata.gz: 385fde641020f06e1c301ac4034f026ea4df999f061759e8055cfc17f3478aff8af49ef3e90b152abf7da075fc9a6e4e8e8fad4eb3040336226eb07f40366724
7
+ data.tar.gz: 470cd86afd0a0edcac654c14fc30cb06ed7eec1df898c8d5554d6bbece3c3f8323080de9b3af14f4f131d2bacd6546162aa46a611fff7309ac8175d16c26499c
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
6
6
  authors:
7
7
  - Ribose Inc.