extract_ttc 0.3.4 → 0.3.5

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: 726ed344297adb0a19bf31a9805601a20387201583633760437a93535990ceef
4
- data.tar.gz: 16ee6ef956167272ce1dd07b7cc93c9517e1cac4feae613c3fb41f77995e1822
3
+ metadata.gz: 3cab74de59c65e6b2d545d6584f5bc89f7d12ba76114c141d285b84e359b768f
4
+ data.tar.gz: a4f3b9d5f0f3125d7a0e368e00ae1e6f31d7a3fae99da923744c019e334754f8
5
5
  SHA512:
6
- metadata.gz: 89699b35d304b4b4616fdbe0b7a017aa263a928142a3f4a94369d6ab17089ae5401b0097e4abe42b3be3a636146645e3b267eb254d8a3e67686314b538c5dd0c
7
- data.tar.gz: 28c6a9d78339b3e9ddb4460f78d9b3c2049a721e81894760adc6638df59469315beeed3c2d515197862d6cc9caa495977f59af56621d706b7fe032d097c141ac
6
+ metadata.gz: 1695798a00d98f864302dc192945ade55991384c1e2575b1ec0809b710ebca313c36a68db8b76ceeaa9e159d6c3d56f9680b5c50531a0badd898dff23bbd1571
7
+ data.tar.gz: 2841a9c6821da665be66f6a46c9f20e59a241abf50756c918ce5a2e17a5bc907ed557a2a4837c79d28fcfda5e97f1b962764cd797bd85fd91d08b5da18be0fa1
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: ruby
6
6
  authors:
7
7
  - Ribose Inc.