phew 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/phew/font.rb +1 -2
- data/lib/phew/version.rb +5 -0
- data/lib/phew.rb +1 -0
- metadata +49 -30
- data/Gemfile +0 -6
- data/Rakefile +0 -27
- data/doc/character_map.png +0 -0
- data/doc/fontviewer.gif +0 -0
- data/doc/gfontview.png +0 -0
- data/doc/gnome_specimen.png +0 -0
- data/doc/prior-art.md +0 -40
- data/doc/waterfall.png +0 -0
- data/test/phew/font_repository_test.rb +0 -22
- data/test/phew/font_test.rb +0 -19
- data/test/test_helper.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba2487dea895ae0ee4f08ae7a46b70ac1217d039c04085e2693e5a8bc367b0dc
|
4
|
+
data.tar.gz: 678972a46930fc6a9e070081b40f1bbf26fd0c28faf97fd47d47101fde58d104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f9a170bdee15a2eab39560ca9627ac31a7452336daa0fce0fedc59d72d01d906ba395c44aaa77c1674c091534d6364878d512c3920de2f31396dc9f759f471c
|
7
|
+
data.tar.gz: 6f0a3567d8947705e7b894a34909d866b639a8a6792ffb6d3047c71e06140d2e306fbf0577ea4c6e8d92f9ab6fd0d9b7e2ffaac983edb6f3648c26e6c16f5669
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ selected (the default state), and those that have been rejected.
|
|
29
29
|
|
30
30
|
## License
|
31
31
|
|
32
|
-
Copyright (c) 2012, 2015 Matijs van Zuijlen
|
32
|
+
Copyright (c) 2012, 2015-2024 Matijs van Zuijlen
|
33
33
|
|
34
34
|
Phew is free software; you can redistribute it and/or modify it under the terms
|
35
35
|
of the GNU General Public License as published by the Free Software Foundation,
|
data/lib/phew/font.rb
CHANGED
@@ -25,8 +25,7 @@ module Phew
|
|
25
25
|
lang = Pango::Language.new
|
26
26
|
cov = @font.get_coverage lang
|
27
27
|
text_cov = text.each_codepoint.map { |cp| cov.get cp }
|
28
|
-
|
29
|
-
Pango::CoverageLevel::Enum.symbols.map { |lvl| [lvl, text_cov.count(lvl)] }]
|
28
|
+
Pango::CoverageLevel::Enum.symbols.to_h { |lvl| [lvl, text_cov.count(lvl)] }
|
30
29
|
end
|
31
30
|
end
|
32
31
|
end
|
data/lib/phew/version.rb
ADDED
data/lib/phew.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gir_ffi-gtk
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.17.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.17.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gir_ffi-pango
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.17
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.17
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: atspi_app_driver
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.9.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.9.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.14.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.14.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,48 +94,76 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '13.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake-manifest
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.2.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.2.0
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rubocop
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
117
|
+
version: '1.52'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
124
|
+
version: '1.52'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rubocop-minitest
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
131
|
+
version: 0.34.1
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.34.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-packaging
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.5.2
|
118
146
|
type: :development
|
119
147
|
prerelease: false
|
120
148
|
version_requirements: !ruby/object:Gem::Requirement
|
121
149
|
requirements:
|
122
150
|
- - "~>"
|
123
151
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
152
|
+
version: 0.5.2
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: rubocop-performance
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
128
156
|
requirements:
|
129
157
|
- - "~>"
|
130
158
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
159
|
+
version: '1.18'
|
132
160
|
type: :development
|
133
161
|
prerelease: false
|
134
162
|
version_requirements: !ruby/object:Gem::Requirement
|
135
163
|
requirements:
|
136
164
|
- - "~>"
|
137
165
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
166
|
+
version: '1.18'
|
139
167
|
description: List and compare installed fonts on GNOME
|
140
168
|
email:
|
141
169
|
- matijs@matijs.net
|
@@ -145,29 +173,20 @@ extensions: []
|
|
145
173
|
extra_rdoc_files: []
|
146
174
|
files:
|
147
175
|
- COPYING
|
148
|
-
- Gemfile
|
149
176
|
- README.md
|
150
|
-
- Rakefile
|
151
177
|
- bin/phew
|
152
|
-
- doc/character_map.png
|
153
|
-
- doc/fontviewer.gif
|
154
|
-
- doc/gfontview.png
|
155
|
-
- doc/gnome_specimen.png
|
156
|
-
- doc/prior-art.md
|
157
|
-
- doc/waterfall.png
|
158
178
|
- lib/phew.rb
|
159
179
|
- lib/phew/application.rb
|
160
180
|
- lib/phew/font.rb
|
161
181
|
- lib/phew/font_repository.rb
|
162
182
|
- lib/phew/script.rb
|
163
183
|
- lib/phew/script_list.rb
|
164
|
-
-
|
165
|
-
- test/phew/font_test.rb
|
166
|
-
- test/test_helper.rb
|
184
|
+
- lib/phew/version.rb
|
167
185
|
homepage: http://www.github.com/mvz/phew-font-viewer
|
168
186
|
licenses:
|
169
187
|
- GPL-3
|
170
|
-
metadata:
|
188
|
+
metadata:
|
189
|
+
rubygems_mfa_required: 'true'
|
171
190
|
post_install_message:
|
172
191
|
rdoc_options:
|
173
192
|
- "--main"
|
@@ -179,14 +198,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
198
|
requirements:
|
180
199
|
- - ">="
|
181
200
|
- !ruby/object:Gem::Version
|
182
|
-
version:
|
201
|
+
version: 3.0.0
|
183
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
203
|
requirements:
|
185
204
|
- - ">="
|
186
205
|
- !ruby/object:Gem::Version
|
187
206
|
version: '0'
|
188
207
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
208
|
+
rubygems_version: 3.5.3
|
190
209
|
signing_key:
|
191
210
|
specification_version: 4
|
192
211
|
summary: A GNOME Font Viewer
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "rake/clean"
|
4
|
-
require "bundler/gem_helper"
|
5
|
-
require "rake/testtask"
|
6
|
-
|
7
|
-
Bundler::GemHelper.install_tasks
|
8
|
-
|
9
|
-
namespace :test do
|
10
|
-
Rake::TestTask.new(:unit) do |t|
|
11
|
-
t.libs = ["lib"]
|
12
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
13
|
-
t.warning = true
|
14
|
-
end
|
15
|
-
|
16
|
-
Rake::TestTask.new(:features) do |t|
|
17
|
-
t.libs = ["lib"]
|
18
|
-
t.test_files = FileList["features/**/*_test.rb"]
|
19
|
-
t.warning = true
|
20
|
-
end
|
21
|
-
|
22
|
-
task all: [:unit, :features]
|
23
|
-
end
|
24
|
-
|
25
|
-
task test: "test:all"
|
26
|
-
|
27
|
-
task default: "test"
|
data/doc/character_map.png
DELETED
Binary file
|
data/doc/fontviewer.gif
DELETED
Binary file
|
data/doc/gfontview.png
DELETED
Binary file
|
data/doc/gnome_specimen.png
DELETED
Binary file
|
data/doc/prior-art.md
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# Prior Art
|
2
|
-
|
3
|
-
## Font Viewer
|
4
|
-
|
5
|
-
[Website](http://fontviewer.net/)
|
6
|
-
|
7
|
-
![FontViewer screen shot](fontviewer.gif)
|
8
|
-
|
9
|
-
Pleasantly sparse interface with obnoxious branding.
|
10
|
-
|
11
|
-
The grid display of different font weights is a nice touch.
|
12
|
-
|
13
|
-
## GFontView
|
14
|
-
|
15
|
-
[Website](http://gfontview.sourceforge.net/)
|
16
|
-
|
17
|
-
![GFontView screen shot](gfontview.png)
|
18
|
-
|
19
|
-
Based on files rather than installed fonts.
|
20
|
-
|
21
|
-
Only shows one font at a time.
|
22
|
-
|
23
|
-
## Gnome Specimen
|
24
|
-
|
25
|
-
![Specimen screen shot](gnome_specimen.png)
|
26
|
-
|
27
|
-
Clean interface. Does not allow filtering by desired script or text.
|
28
|
-
|
29
|
-
|
30
|
-
## Waterfall
|
31
|
-
|
32
|
-
![Waterfall screen shot](waterfall.png)
|
33
|
-
|
34
|
-
Allows easy switching between different parts of the character set.
|
35
|
-
|
36
|
-
## Character Map
|
37
|
-
|
38
|
-
![Character map screen shot](character_map.png)
|
39
|
-
|
40
|
-
A different way of selecting scripts. Nice balanced UI.
|
data/doc/waterfall.png
DELETED
Binary file
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "../test_helper"
|
4
|
-
|
5
|
-
describe Phew::FontRepository do
|
6
|
-
describe "#get_font" do
|
7
|
-
it "returns an instance of Phew::Font" do
|
8
|
-
ctx = Gdk.pango_context_get
|
9
|
-
repo = Phew::FontRepository.new ctx
|
10
|
-
font = repo.get_font "Sans"
|
11
|
-
_(font).must_be_instance_of Phew::Font
|
12
|
-
end
|
13
|
-
|
14
|
-
it "returns the same object if called again with the same description" do
|
15
|
-
ctx = Gdk.pango_context_get
|
16
|
-
repo = Phew::FontRepository.new ctx
|
17
|
-
font = repo.get_font "Sans"
|
18
|
-
font_again = repo.get_font "Sans"
|
19
|
-
_(font_again).must_be_same_as font
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
data/test/phew/font_test.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "../test_helper"
|
4
|
-
|
5
|
-
describe Phew::Font do
|
6
|
-
describe "#coverage_summary" do
|
7
|
-
it "returns summarized coverage information for the given string" do
|
8
|
-
ctx = Gdk.pango_context_get
|
9
|
-
|
10
|
-
pfont = Phew::Font.new ctx, "Sans"
|
11
|
-
|
12
|
-
test_string = "This is a test"
|
13
|
-
summary = pfont.coverage_summary test_string
|
14
|
-
|
15
|
-
_(summary.keys.sort).must_equal [:none, :fallback, :approximate, :exact].sort
|
16
|
-
_(summary.values.sum).must_equal test_string.size
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|