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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffe2ddc0fead77ef1f7c5a530a878c083ce12e39
4
- data.tar.gz: 619b4f4c7444521bd2099bc3c5bce0c903a1e5e0
3
+ metadata.gz: 5a450bf94b594471eb9e6e4db56de489d7db0e91
4
+ data.tar.gz: a5228c3ba13ea0c9747f0741d27ad51dafc3ea24
5
5
  SHA512:
6
- metadata.gz: 4cbb95cf8ed25f970af3f29d92f2d15e8a1d11e4a07552c1dbc020a079195e83eecca399b1d16ca8e9700adec44c31ecc457ef5b0548259910c3a423c79265f6
7
- data.tar.gz: 76163c51f85ec5e28682d61c038a1da47ae8a23a8231ad807a0f3b34192763a52762f4a933698f49629ee1ab24bea60b37bba3c0d99bf821fe84a3d7aae6c9f0
6
+ metadata.gz: 277240c6fab518a227815c81b5771635de69bf5c798f503a1baf4a98e6b4acf459a5e579b6980e8b540019fdb1950365e2f2a031f70c17562fa2fea571ec3168
7
+ data.tar.gz: bf874da2fb384f0d1e19d3e57bb7e8ed703a673582351cbf283b01dcdd3aff235ec21a0d2b4e0ea572d37a52f06344487e6357847b72ec690e5e18b2ada926b7
@@ -17,4 +17,5 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency "rubyzip"
19
19
  gem.add_dependency "rails", ">= 3.1"
20
+ gem.add_dependency "rubyzip", ">= 1.0"
20
21
  end
@@ -1,5 +1,5 @@
1
1
  require "open-uri"
2
- require "zip/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::ZipFile.open(@options[:tmp_name])
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
@@ -1,3 +1,3 @@
1
1
  module FontSquirrel
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
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.1
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-01 00:00:00.000000000 Z
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: