subdb 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/javalib/filedrop.jar +0 -0
- data/lib/subdb.rb +2 -2
- data/lib/subdb/client_utils.rb +1 -1
- data/lib/subdb/version.rb +1 -1
- metadata +4 -3
Binary file
|
data/lib/subdb.rb
CHANGED
@@ -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, "
|
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, "
|
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)
|
data/lib/subdb/client_utils.rb
CHANGED
data/lib/subdb/version.rb
CHANGED
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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
|