omgf 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/GIT-VERSION-GEN +1 -1
- data/README +2 -2
- data/lib/omgf/hysterical_raisins.rb +1 -5
- metadata +7 -8
data/GIT-VERSION-GEN
CHANGED
data/README
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
OMGF provides an HTTP interface for {MogileFS}[http://mogilefs.org],
|
4
4
|
allowing clients to connect to MogileFS without needing specialized
|
5
|
-
libraries to interface with MogileFS. Currently,
|
6
|
-
OMGF is short for "OMGFiles", an anagram for "MogileFS".
|
5
|
+
libraries to interface with MogileFS. Currently, HystericalRaisins
|
6
|
+
is supported. OMGF is short for "OMGFiles", an anagram for "MogileFS".
|
7
7
|
|
8
8
|
It is built on top of the
|
9
9
|
{Ruby mogilefs-client}[http://bogomips.org/mogilefs-client] library
|
@@ -303,7 +303,6 @@ class OMGF::HystericalRaisins
|
|
303
303
|
new_file_opts[:content_md5] = cmd5
|
304
304
|
end
|
305
305
|
|
306
|
-
buf = ""
|
307
306
|
begin
|
308
307
|
pool_use(domain) do |mg|
|
309
308
|
begin
|
@@ -325,15 +324,12 @@ class OMGF::HystericalRaisins
|
|
325
324
|
|
326
325
|
# finally, upload the file
|
327
326
|
mg.new_file(key, new_file_opts) do |io|
|
328
|
-
|
329
|
-
io.write(buf)
|
330
|
-
end
|
327
|
+
IO.copy_stream(input, io)
|
331
328
|
end
|
332
329
|
end # pool_use
|
333
330
|
|
334
331
|
# should always return 201 if ! found, but we keep 200 for legacy
|
335
332
|
# compat if they're not logged in (via REMOTE_USER)
|
336
|
-
buf.clear
|
337
333
|
status = paths ? 204 : (env["REMOTE_USER"] ? 201 : 200)
|
338
334
|
r(status, "")
|
339
335
|
rescue MogileFS::Backend::UnregDomainError,
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: !binary |-
|
3
3
|
b21nZg==
|
4
4
|
version: !ruby/object:Gem::Version
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.4
|
6
6
|
prerelease:
|
7
7
|
platform: ruby
|
8
8
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2013-02-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: !binary |-
|
@@ -101,9 +101,9 @@ description: ! 'OMGF provides an HTTP interface for {MogileFS}[http://mogilefs.o
|
|
101
101
|
|
102
102
|
allowing clients to connect to MogileFS without needing specialized
|
103
103
|
|
104
|
-
libraries to interface with MogileFS. Currently,
|
104
|
+
libraries to interface with MogileFS. Currently, HystericalRaisins
|
105
105
|
|
106
|
-
OMGF is short for "OMGFiles", an anagram for "MogileFS".'
|
106
|
+
is supported. OMGF is short for "OMGFiles", an anagram for "MogileFS".'
|
107
107
|
email: !binary |-
|
108
108
|
b21nZkBsaWJyZWxpc3Qub3Jn
|
109
109
|
executables: []
|
@@ -172,15 +172,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 1.8.
|
175
|
+
rubygems_version: 1.8.23
|
176
176
|
signing_key:
|
177
177
|
specification_version: 3
|
178
178
|
summary: hysterical REST API for MogileFS using Rack
|
179
179
|
test_files:
|
180
|
+
- !binary |-
|
181
|
+
dGVzdC90ZXN0X2h5c3RlcmljYWxfcmFpc2lucy5yYg==
|
180
182
|
- !binary |-
|
181
183
|
dGVzdC90ZXN0X2h5c3RlcmljYWxfcmFpc2luc19jbW9nc3RvcmVkLnJi
|
182
184
|
- !binary |-
|
183
185
|
dGVzdC90ZXN0X2h5c3QucmI=
|
184
|
-
- !binary |-
|
185
|
-
dGVzdC90ZXN0X2h5c3RlcmljYWxfcmFpc2lucy5yYg==
|
186
|
-
has_rdoc:
|