suby 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/suby.rb +3 -3
  2. data/suby.gemspec +2 -2
  3. metadata +30 -44
  4. checksums.yaml +0 -7
@@ -1,5 +1,5 @@
1
1
  require 'path'
2
- require 'zip/zip'
2
+ require 'zip'
3
3
  require 'mime/types'
4
4
 
5
5
  Path.require_tree 'suby', except: %w[downloader/]
@@ -17,7 +17,7 @@ module Suby
17
17
  include Interface
18
18
 
19
19
  def download_subtitles(files, options = {})
20
- Zip.options[:on_exists_proc] = options[:force]
20
+ Zip.on_exists_proc = options[:force]
21
21
  files.each { |file|
22
22
  file = Path(file)
23
23
  if file.dir?
@@ -72,7 +72,7 @@ module Suby
72
72
  def extract_sub_from_archive(archive, format, file)
73
73
  case format
74
74
  when :zip
75
- Zip::ZipFile.open(archive.to_s) { |zip|
75
+ Zip::File.open(archive.to_s) { |zip|
76
76
  sub = zip.entries.find { |entry|
77
77
  entry.to_s =~ /\.#{Regexp.union SUB_EXTENSIONS}$/
78
78
  }
@@ -12,9 +12,9 @@ Gem::Specification.new do |s|
12
12
  s.required_ruby_version = '>= 1.9.2'
13
13
  s.add_dependency 'path', '>= 1.3.0'
14
14
  s.add_dependency 'nokogiri'
15
- s.add_dependency 'rubyzip'
15
+ s.add_dependency 'rubyzip', '~> 1.1.0'
16
16
  s.add_dependency 'term-ansicolor'
17
17
  s.add_dependency 'mime-types', '>= 1.19'
18
18
 
19
- s.version = '0.4.1'
19
+ s.version = '0.4.2'
20
20
  end
metadata CHANGED
@@ -1,85 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - eregon
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-27 00:00:00.000000000 Z
12
+ date: 2013-11-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: path
15
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &2152578260 !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 1.3.0
20
22
  type: :runtime
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: 1.3.0
24
+ version_requirements: *2152578260
27
25
  - !ruby/object:Gem::Dependency
28
26
  name: nokogiri
29
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &2152577700 !ruby/object:Gem::Requirement
28
+ none: false
30
29
  requirements:
31
- - - '>='
30
+ - - ! '>='
32
31
  - !ruby/object:Gem::Version
33
32
  version: '0'
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
35
+ version_requirements: *2152577700
41
36
  - !ruby/object:Gem::Dependency
42
37
  name: rubyzip
43
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &2152576900 !ruby/object:Gem::Requirement
39
+ none: false
44
40
  requirements:
45
- - - '>='
41
+ - - ~>
46
42
  - !ruby/object:Gem::Version
47
- version: '0'
43
+ version: 1.1.0
48
44
  type: :runtime
49
45
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
46
+ version_requirements: *2152576900
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: term-ansicolor
57
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &2152576280 !ruby/object:Gem::Requirement
50
+ none: false
58
51
  requirements:
59
- - - '>='
52
+ - - ! '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  type: :runtime
63
56
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
57
+ version_requirements: *2152576280
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: mime-types
71
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &2152575740 !ruby/object:Gem::Requirement
61
+ none: false
72
62
  requirements:
73
- - - '>='
63
+ - - ! '>='
74
64
  - !ruby/object:Gem::Version
75
65
  version: '1.19'
76
66
  type: :runtime
77
67
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '1.19'
68
+ version_requirements: *2152575740
83
69
  description: Find and download subtitles
84
70
  email: eregontp@gmail.com
85
71
  executables:
@@ -101,26 +87,26 @@ files:
101
87
  - suby.gemspec
102
88
  homepage: https://github.com/eregon/suby
103
89
  licenses: []
104
- metadata: {}
105
90
  post_install_message:
106
91
  rdoc_options: []
107
92
  require_paths:
108
93
  - lib
109
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
+ none: false
110
96
  requirements:
111
- - - '>='
97
+ - - ! '>='
112
98
  - !ruby/object:Gem::Version
113
99
  version: 1.9.2
114
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
+ none: false
115
102
  requirements:
116
- - - '>='
103
+ - - ! '>='
117
104
  - !ruby/object:Gem::Version
118
105
  version: '0'
119
106
  requirements: []
120
107
  rubyforge_project:
121
- rubygems_version: 2.0.3
108
+ rubygems_version: 1.8.11
122
109
  signing_key:
123
- specification_version: 4
110
+ specification_version: 3
124
111
  summary: Subtitles' downloader
125
112
  test_files: []
126
- has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f17d40637d77c01f9874b653abb840327dabea3c
4
- data.tar.gz: be7b03b43c69b0b2700431c3f0e88279fb3f0682
5
- SHA512:
6
- metadata.gz: 11d9b1686500050a697ca7bf2b032738348e468a7bba3c785c2d94558ac08349cb53aa019a66463bce24d02a94bb4afb2d4b293ec17e289f3c88b8f416dd8d6a
7
- data.tar.gz: 1c82ed3ab63745bf8e8fd1d0186e2d310d7d805228e80d763a688d8d079d571db02c5293e77d0f153491de15f6fe9a2cdeb8206f5cb0c0a67f90bec78e084bdc