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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cff9393daf26cbbd2eb966bbb810a5218cdba85c5a97d06837e92ff7e8554ba3
4
- data.tar.gz: 65083fa7e4189889205a70d61fc3824ae0f2eb62ec5cf31bcb61444f3ecc5bf3
3
+ metadata.gz: 5eb7e4c39012f4c7c899d8bd44f5556b01b635145c347029643293b447908aa6
4
+ data.tar.gz: f2041da52a3da3557cfbb9c14141d3a321c346341c6710f34161a233b16cf477
5
5
  SHA512:
6
- metadata.gz: 5ef231b206e5d251169dc0a3b0fc9f4de004cf5f512a13d3c761c5537bb431425c824bbd237ca9df1bafcc729989ff5e1e4c8ed8f7a37830c53ff927ca46f18a
7
- data.tar.gz: 3cdfa3b3c0af96afed9edc88bc4f9fdf78c94403b7cd7a541899fea9cb24589a00c9cdde4def70ba0fbbd25d96267a49f64f54ceafb11a07dc7e19baa71e4197
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
- Hash[
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
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Phew
4
+ VERSION = "0.0.6"
5
+ end
data/lib/phew.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "phew/application"
4
+ require "phew/version"
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.5
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: 2021-01-17 00:00:00.000000000 Z
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.14
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.14
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.13.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.13.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.8.0
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.8.0
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.10.1
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.10.1
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.9.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.9.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
- - test/phew/font_repository_test.rb
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.5.0
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.2.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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # The gem's dependencies are specified in the gemspec
6
- gemspec
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"
Binary file
data/doc/fontviewer.gif DELETED
Binary file
data/doc/gfontview.png DELETED
Binary file
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
@@ -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
data/test/test_helper.rb DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "minitest/autorun"
4
-
5
- require "phew"
6
-
7
- # Gtk must be initialized for all the font retrieval methods to work.
8
- Gtk.init