extract_ttc 0.3.4-x64-mingw-ucrt → 0.3.5-x64-mingw-ucrt

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: 00d86cdaef1e338ff1b22a6ef9fec0b8e8adf414ff7fc5473056f9e7482c54b1
4
- data.tar.gz: c07eee14b0b90aec5a973bd6387778ae7f4cb2e6d99f50f99bb7c24cd9c176aa
3
+ metadata.gz: fb301c81fe0d86ad1ca747e80cf2dcab15b835dbf75a4e115f059e3ec3d535a9
4
+ data.tar.gz: '0936680d6de45aaffe410dd06ae0b5cb07d8536e73f4b3910c29fbf2e130f430'
5
5
  SHA512:
6
- metadata.gz: 2cf55c3202b4360af954541bb9d896ba766bb5bc745dacd40ef886494206ae8aa5c9ca59809acc6f58c191eeef322733de9ef13f0d88630b366deb0748db6b62
7
- data.tar.gz: 4d3534f6abfcaef78f8e94a27b17af92ad17ccb526c83b46d657609f6915f7fd532f676ab719f3f9607318af20ea4395f713d7dfd7c494e75e753fa6cb37bedc
6
+ metadata.gz: 9eb548d01e8192402a79523d59f014fc2c0a2a0426aa6185b3b458cd5d8df2f0ae769c7efdd4caf3841c9411b1133084e7c20c132c6c6568d658220f5e5cdcff
7
+ data.tar.gz: e1a0f0aaa9f7dc1a03e5287018b1fcf2d400839b64ba97da921ffd2780507dc5c63d1099920d4348e6ea7ef2c723c7dd2d03d5449d824131d4a9bd49991cacc9
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
data/lib/3.1/stripttc.so CHANGED
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: x64-mingw-ucrt
6
6
  authors:
7
7
  - Ribose Inc.