bitballoon 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bitballoon/site.rb +2 -1
- data/lib/bitballoon/version.rb +1 -1
- metadata +2 -2
data/lib/bitballoon/site.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'digest/sha1'
|
2
|
+
require 'uri'
|
2
3
|
|
3
4
|
module BitBalloon
|
4
5
|
class Site < Model
|
@@ -18,7 +19,7 @@ module BitBalloon
|
|
18
19
|
end
|
19
20
|
|
20
21
|
(required || []).each do |sha|
|
21
|
-
client.request(:put, ::File.join(path, "files", shas[sha]), :body => ::File.read(::File.join(dir, shas[sha])))
|
22
|
+
client.request(:put, ::File.join(path, "files", URI.encode(shas[sha])), :body => ::File.read(::File.join(dir, shas[sha])), :headers => {"Content-Type" => "application/octet-stream"})
|
22
23
|
end
|
23
24
|
|
24
25
|
refresh
|
data/lib/bitballoon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitballoon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|