fontist 1.11.5 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fontist/repo.rb +13 -1
- data/lib/fontist/system_font.rb +1 -1
- data/lib/fontist/update.rb +2 -27
- data/lib/fontist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebc9110896000190889a313f291012ebc3b84a7296230398ee61c9822c44ea87
|
|
4
|
+
data.tar.gz: 9de28427a3a46124e8ded2880de764ad9bb632bc9c919babe15123fc38eebdb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 005c1c9a434bbfa11da8602be4180e20056798afccf4c302204e6d986c6a288d7ee6cbfb387c597db79fe4ae86e50aa22729d4553813b7f025d27a1033c83f19
|
|
7
|
+
data.tar.gz: 8584ca32768a87ce2ddfd95275e6f22a9b61074df2db8b407f587931cc2729b444dd257f6435fd564bd0588a2bcf5d6e2634f611cf73a87d76ec517a86de4edf
|
data/lib/fontist/repo.rb
CHANGED
|
@@ -15,8 +15,20 @@ module Fontist
|
|
|
15
15
|
raise(Errors::RepoNotFoundError, "No such repo '#{name}'.")
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
Git.open(path)
|
|
18
|
+
git = Git.open(path)
|
|
19
|
+
git.pull("origin", git.current_branch)
|
|
20
|
+
|
|
19
21
|
Index.rebuild
|
|
22
|
+
rescue Git::GitExecuteError => e
|
|
23
|
+
raise Errors::RepoCouldNotBeUpdatedError.new(<<~MSG.chomp)
|
|
24
|
+
Formulas repo '#{name}' could not be updated.
|
|
25
|
+
Please consider reinitializing it with:
|
|
26
|
+
fontist remove #{name}
|
|
27
|
+
fontist setup #{name} REPO_URL
|
|
28
|
+
|
|
29
|
+
Git error:
|
|
30
|
+
#{e.message}
|
|
31
|
+
MSG
|
|
20
32
|
end
|
|
21
33
|
|
|
22
34
|
def remove(name)
|
data/lib/fontist/system_font.rb
CHANGED
data/lib/fontist/update.rb
CHANGED
|
@@ -41,36 +41,11 @@ module Fontist
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def update_private_repos
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
Repo.list.each do |name|
|
|
45
|
+
Repo.update(name)
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
def update_repo(path)
|
|
50
|
-
Git.open(path).pull
|
|
51
|
-
rescue Git::GitExecuteError => e
|
|
52
|
-
name = repo_name(path)
|
|
53
|
-
raise Errors::RepoCouldNotBeUpdatedError.new(<<~MSG.chomp)
|
|
54
|
-
Formulas repo '#{name}' could not be updated.
|
|
55
|
-
Please consider reinitializing it with:
|
|
56
|
-
fontist remove #{name}
|
|
57
|
-
fontist setup #{name} REPO_URL
|
|
58
|
-
|
|
59
|
-
Git error:
|
|
60
|
-
#{e.message}
|
|
61
|
-
MSG
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def private_repos
|
|
65
|
-
Dir.glob(Fontist.private_formulas_path.join("*")).select do |path|
|
|
66
|
-
File.directory?(path)
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
def repo_name(path)
|
|
71
|
-
File.basename(path)
|
|
72
|
-
end
|
|
73
|
-
|
|
74
49
|
def rebuild_index
|
|
75
50
|
Index.rebuild
|
|
76
51
|
end
|
data/lib/fontist/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fontist
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.11.
|
|
4
|
+
version: 1.11.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-09-
|
|
11
|
+
date: 2021-09-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: down
|