fontsquirrel-download 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fontsquirrel-download.gemspec +1 -0
- data/lib/fontsquirrel-download/download.rb +3 -3
- data/lib/fontsquirrel-download/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a450bf94b594471eb9e6e4db56de489d7db0e91
|
4
|
+
data.tar.gz: a5228c3ba13ea0c9747f0741d27ad51dafc3ea24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 277240c6fab518a227815c81b5771635de69bf5c798f503a1baf4a98e6b4acf459a5e579b6980e8b540019fdb1950365e2f2a031f70c17562fa2fea571ec3168
|
7
|
+
data.tar.gz: bf874da2fb384f0d1e19d3e57bb7e8ed703a673582351cbf283b01dcdd3aff235ec21a0d2b4e0ea572d37a52f06344487e6357847b72ec690e5e18b2ada926b7
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require "open-uri"
|
2
|
-
require "zip
|
2
|
+
require "zip"
|
3
3
|
module FontSquirrel
|
4
4
|
class Download
|
5
5
|
TEMPLATE = <<-DOC
|
@@ -19,7 +19,7 @@ DOC
|
|
19
19
|
FileUtils.mkdir_p @options[:font_dir]
|
20
20
|
zipfile = nil
|
21
21
|
quietly do
|
22
|
-
zipfile = Zip::
|
22
|
+
zipfile = Zip::File.open(@options[:tmp_name])
|
23
23
|
end
|
24
24
|
zipfile.each do |entry|
|
25
25
|
case entry.name
|
@@ -32,7 +32,7 @@ DOC
|
|
32
32
|
|
33
33
|
FileUtils.rm @options[:tmp_name].to_s
|
34
34
|
ensure
|
35
|
-
zipfile.close
|
35
|
+
zipfile.close if zipfile.present?
|
36
36
|
end
|
37
37
|
|
38
38
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontsquirrel-download
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wienert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubyzip
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
41
55
|
description: ' Download and extract font-kits from fontsquirrel easily with a rake
|
42
56
|
tasks.'
|
43
57
|
email:
|
@@ -81,3 +95,4 @@ signing_key:
|
|
81
95
|
specification_version: 4
|
82
96
|
summary: Download and extract font-kits from fontsquirrel easily with a rake tasks.
|
83
97
|
test_files: []
|
98
|
+
has_rdoc:
|