phew 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phew/font.rb +1 -2
- data/lib/phew/version.rb +5 -0
- data/lib/phew.rb +1 -0
- metadata +31 -26
- 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: 5eb7e4c39012f4c7c899d8bd44f5556b01b635145c347029643293b447908aa6
|
4
|
+
data.tar.gz: f2041da52a3da3557cfbb9c14141d3a321c346341c6710f34161a233b16cf477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c0c685cb173aceb658e0f275ba64d3e3fccf41ebacafff19e65d3619c270b67f3ff835dfcc6595bca9400e224c2adffb38d79c2a9def42fafa138e661163719
|
7
|
+
data.tar.gz: 5a968a69a7d6c30a9c798c59a75c81b7091a48992fbac49937ccbaa6de064ab64f7433706e8e65da0fd765604ad93f6423c93bb6338a51311fc083efea2145ed
|
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.6
|
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: 2022-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gir_ffi-gtk
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.15
|
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.15
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: atspi_app_driver
|
43
43
|
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,62 @@ 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.25.0
|
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.25.0
|
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.17.0
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
138
|
+
version: 0.17.0
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: rubocop-performance
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
145
|
+
version: 1.13.0
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
152
|
+
version: 1.13.0
|
139
153
|
description: List and compare installed fonts on GNOME
|
140
154
|
email:
|
141
155
|
- matijs@matijs.net
|
@@ -145,29 +159,20 @@ extensions: []
|
|
145
159
|
extra_rdoc_files: []
|
146
160
|
files:
|
147
161
|
- COPYING
|
148
|
-
- Gemfile
|
149
162
|
- README.md
|
150
|
-
- Rakefile
|
151
163
|
- 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
164
|
- lib/phew.rb
|
159
165
|
- lib/phew/application.rb
|
160
166
|
- lib/phew/font.rb
|
161
167
|
- lib/phew/font_repository.rb
|
162
168
|
- lib/phew/script.rb
|
163
169
|
- lib/phew/script_list.rb
|
164
|
-
-
|
165
|
-
- test/phew/font_test.rb
|
166
|
-
- test/test_helper.rb
|
170
|
+
- lib/phew/version.rb
|
167
171
|
homepage: http://www.github.com/mvz/phew-font-viewer
|
168
172
|
licenses:
|
169
173
|
- GPL-3
|
170
|
-
metadata:
|
174
|
+
metadata:
|
175
|
+
rubygems_mfa_required: 'true'
|
171
176
|
post_install_message:
|
172
177
|
rdoc_options:
|
173
178
|
- "--main"
|
@@ -179,14 +184,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
184
|
requirements:
|
180
185
|
- - ">="
|
181
186
|
- !ruby/object:Gem::Version
|
182
|
-
version: 2.
|
187
|
+
version: 2.6.0
|
183
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
189
|
requirements:
|
185
190
|
- - ">="
|
186
191
|
- !ruby/object:Gem::Version
|
187
192
|
version: '0'
|
188
193
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.3.3
|
190
195
|
signing_key:
|
191
196
|
specification_version: 4
|
192
197
|
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
|