subdb 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -69,7 +69,7 @@ class Subdb
69
69
  url = URI.parse(self.class.api_url)
70
70
 
71
71
  begin
72
- file = File.open(path, "r")
72
+ file = File.open(path, "rb")
73
73
 
74
74
  io = UploadIO.new(file, "application/octet-stream", File.basename(path))
75
75
 
@@ -101,7 +101,7 @@ class Subdb
101
101
  chunk_size = 64 * 1024
102
102
 
103
103
  size = File.size(@path)
104
- file = File.open(@path, "r")
104
+ file = File.open(@path, "rb")
105
105
  data = file.read(chunk_size)
106
106
  file.seek(size - chunk_size)
107
107
  data += file.read(chunk_size)
@@ -81,7 +81,7 @@ module Subdb::ClientUtils
81
81
  downloaded = subdb.download(languages)
82
82
 
83
83
  if downloaded
84
- File.open(base + ".srt", "w") do |f|
84
+ File.open(base + ".srt", "wb") do |f|
85
85
  f << downloaded
86
86
  end
87
87
 
@@ -20,5 +20,5 @@
20
20
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
21
 
22
22
  class Subdb
23
- VERSION = "0.1.3"
23
+ VERSION = "0.1.4"
24
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subdb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wilker Lucio
@@ -34,6 +34,7 @@ files:
34
34
  - lib/subdb/client_utils.rb
35
35
  - lib/subdb/version.rb
36
36
  - lib/subdb.rb
37
+ - javalib/filedrop.jar
37
38
  - vendor/multipart-post/composite_io.rb
38
39
  - vendor/multipart-post/multipart_post.rb
39
40
  - vendor/multipart-post/multipartable.rb