fontina-windows 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fontina/windows/meta_package.rb +5 -6
- data/lib/fontina/windows/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8731e9fabbf93ca7d38a85a1643aedcc29d30a54
|
4
|
+
data.tar.gz: 38dfa87bd104dbf29fed3c6bde14a844058f2729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f4717910b49b5ceea9ead854915cf175657b0ba3647712b564efc1f3155416d8661539d1195a389f431c78f535ca06af59d29b29b84b51d9dad384bbdd3bca5
|
7
|
+
data.tar.gz: 520124dd4276db71e04c4dcfe4ba6967e6627db2f9816467f9c0655459ecb737a00f21679050db414ccba4e8f1c27240a9529eb90847a0fe27591fa5d98f61e5
|
@@ -29,17 +29,16 @@ module Fontina
|
|
29
29
|
def install(force: false)
|
30
30
|
return if installed? unless force
|
31
31
|
|
32
|
-
add_times = 1
|
33
32
|
path = Windows.font_registered? registered_name
|
34
33
|
|
35
34
|
Dir.chdir(Windows.fonts_directory) do
|
36
|
-
|
35
|
+
removed_times = Windows.remove_font_resource path if path and File.exist? path
|
36
|
+
|
37
37
|
path, = FileUtils.safe_write file.filename, file.content
|
38
|
-
end
|
39
38
|
|
40
|
-
|
41
|
-
unless
|
42
|
-
fail "Windows reported #{
|
39
|
+
font_count = Windows.add_font_resource path, times: [1, removed_times.to_i].max
|
40
|
+
unless font_count == package.fonts.length
|
41
|
+
fail "Windows reported #{font_count} fonts added (expected: #{package.fonts.length})"
|
43
42
|
end
|
44
43
|
end
|
45
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontina-windows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Petter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fontina
|