web_font 0.1.11 → 0.1.12
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/web_font/downloader.rb +6 -1
- data/lib/web_font/version.rb +1 -1
- data/test/index/google/fonts.json +1106 -1086
- data/test/index/google/index.json +1 -1
- data/test/lib/web_font/downloader_test.rb +4 -2
- metadata +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"a":{"start":0,"end":67},"b":{"start":68,"end":99},"c":{"start":100,"end":160},"d":{"start":161,"end":185},"e":{"start":186,"end":205},"f":{"start":206,"end":234},"g":{"start":235,"end":262},"h":{"start":263,"end":275},"i":{"start":276,"end":296},"j":{"start":297,"end":311},"k":{"start":312,"end":329},"l":{"start":330,"end":356},"m":{"start":357,"end":414},"n":{"start":415,"end":438},"o":{"start":439,"end":458},"p":{"start":459,"end":503},"q":{"start":504,"end":511},"r":{"start":512,"end":549},"s":{"start":550,"end":
|
1
|
+
{"a":{"start":0,"end":67},"b":{"start":68,"end":99},"c":{"start":100,"end":160},"d":{"start":161,"end":185},"e":{"start":186,"end":205},"f":{"start":206,"end":234},"g":{"start":235,"end":262},"h":{"start":263,"end":275},"i":{"start":276,"end":296},"j":{"start":297,"end":311},"k":{"start":312,"end":329},"l":{"start":330,"end":356},"m":{"start":357,"end":414},"n":{"start":415,"end":438},"o":{"start":439,"end":458},"p":{"start":459,"end":503},"q":{"start":504,"end":511},"r":{"start":512,"end":549},"s":{"start":550,"end":610},"t":{"start":611,"end":626},"u":{"start":627,"end":638},"v":{"start":639,"end":650},"w":{"start":651,"end":657},"y":{"start":658,"end":661},"z":{"start":662,"end":662}}
|
@@ -14,9 +14,10 @@ describe WebFont::Downloader do
|
|
14
14
|
|
15
15
|
it 'downloads all fonts in the item' do
|
16
16
|
downloader = WebFont::Downloader.new
|
17
|
-
downloader.download('Open Sans', destination_path)
|
17
|
+
fonts = downloader.download('Open Sans', destination_path)
|
18
18
|
|
19
19
|
Dir.glob(File.join(destination_path, '*.ttf')).size.must_equal 10
|
20
|
+
Dir.glob(File.join(destination_path, '*.ttf')).size.must_equal fonts.size
|
20
21
|
end
|
21
22
|
end
|
22
23
|
|
@@ -38,9 +39,10 @@ describe WebFont::Downloader do
|
|
38
39
|
Dir.glob('test/fonts/*.ttf').size.must_equal 11
|
39
40
|
|
40
41
|
downloader = WebFont::Downloader.new
|
41
|
-
downloader.download('Open Sans', destination_path)
|
42
|
+
fonts = downloader.download('Open Sans', destination_path)
|
42
43
|
|
43
44
|
Dir.glob(File.join(destination_path, '*.ttf')).size.must_equal 10
|
45
|
+
Dir.glob(File.join(destination_path, '*.ttf')).size.must_equal fonts.size
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_font
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sophy Eung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|