lsst-git-lfs-s3 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-lfs-s3/application.rb +3 -3
- data/lib/git-lfs-s3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c56681beab455a5733c58fe10b1275cd50e3e01
|
4
|
+
data.tar.gz: ec3656ac09d4e671c197550bd5c46537a8da0a28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e69199d6b0796a1c78a7ee50236d40bdd5d89d87d25d722258420df984e40dc6748cc80b81c4aaf8390fa72b179dba9d1f180086b4e26113fd3ba6d67effd7a0
|
7
|
+
data.tar.gz: 4d931519d3de9be55b4708345ddcb6a92e8147d5fe7ca361f0e24f3938789cf3e9a1ef2df26cceee6b0ae0c43ef8503813d926686070fd0f1b414b8ba1e4f338
|
@@ -119,7 +119,7 @@ module GitLfsS3
|
|
119
119
|
# Handle git-lfs batch downloads.
|
120
120
|
objects = []
|
121
121
|
params[:objects].each do |obj_json|
|
122
|
-
obj_json = IndifferentHash
|
122
|
+
obj_json = IndifferentHash[obj_json]
|
123
123
|
obj = object_data(obj_json[:oid])
|
124
124
|
if valid_obj?(obj_json)
|
125
125
|
if obj.exists?
|
@@ -138,7 +138,7 @@ module GitLfsS3
|
|
138
138
|
# Handle git-lfs batch uploads.
|
139
139
|
objects = []
|
140
140
|
params[:objects].each do |obj_json|
|
141
|
-
obj_json = IndifferentHash
|
141
|
+
obj_json = IndifferentHash[obj_json]
|
142
142
|
obj = object_data(obj_json[:oid])
|
143
143
|
if valid_obj?(obj_json)
|
144
144
|
if obj.exists?
|
@@ -176,7 +176,7 @@ module GitLfsS3
|
|
176
176
|
post '/objects/batch', provides: 'application/vnd.git-lfs+json' do
|
177
177
|
# git-lfs batch API
|
178
178
|
authenticated = authorized?
|
179
|
-
params = IndifferentHash
|
179
|
+
params = IndifferentHash[JSON.parse(request.body.read)]
|
180
180
|
logger.debug params
|
181
181
|
if params[:operation] == 'download'
|
182
182
|
if settings.public_server
|
data/lib/git-lfs-s3/version.rb
CHANGED