lsst-git-lfs-s3 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -6
- data/lib/git-lfs-s3/application.rb +5 -4
- 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: d0be52919513909eef0f0f6e6e712e9beea29e4e
|
4
|
+
data.tar.gz: befaf21c52a0e5a9ba3108144adfff830dd603fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf88659af0a18bce90047d6e9ef4021039c6d77df45c3efa975eec3424cbfd3d31876c14622dcb85ee35bd08b6cf75c33743052c0cec6b83fbf6f5e781dec02a
|
7
|
+
data.tar.gz: fb464ebb9a4ce8ad118077e04f14fc9d7e2f5d5713811a2d840d60271111423353f51ef54deb9cd3fae3908d479ca9d7f81febf474059791c871ce0751aa0515
|
data/.gitignore
CHANGED
@@ -97,15 +97,16 @@ module GitLfsS3
|
|
97
97
|
post '/verify', provides: 'application/vnd.git-lfs+json' do
|
98
98
|
data = MultiJson.load(request.body.tap { |b| b.rewind }.read)
|
99
99
|
object = object_data(data['oid'])
|
100
|
+
if not object.exists?
|
101
|
+
status 404
|
102
|
+
end
|
100
103
|
if settings.public_server and settings.ceph_s3
|
101
|
-
if object.
|
104
|
+
if object.acl.grants.include?(public_read_grant)
|
102
105
|
object.acl.put(acl: "public-read")
|
103
106
|
end
|
104
107
|
end
|
105
|
-
if object.
|
108
|
+
if object.size == data['size']
|
106
109
|
status 200
|
107
|
-
else
|
108
|
-
status 404
|
109
110
|
end
|
110
111
|
end
|
111
112
|
end
|
data/lib/git-lfs-s3/version.rb
CHANGED