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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e5329df126cbda9ae4c2d57087112eb606fd122
4
- data.tar.gz: 2bebe69bc7b1365b0de092ac70540277f377ae8d
3
+ metadata.gz: d0be52919513909eef0f0f6e6e712e9beea29e4e
4
+ data.tar.gz: befaf21c52a0e5a9ba3108144adfff830dd603fb
5
5
  SHA512:
6
- metadata.gz: 922ef0899f0146774d03d4ac26aadefa7ed2ae1419a20b92bc4044a6fae4b8a95c134ef27d5db4d71125d03ebb963863ef2db56ecaaffaabf508565402e18243
7
- data.tar.gz: efb4c65c139b9b478dd3ca930ae9cad5b709be4e98394245315377a1aaf877a8a18075c568064a32923ad4a29124b02d575793cbae06d175491e7956b8173392
6
+ metadata.gz: cf88659af0a18bce90047d6e9ef4021039c6d77df45c3efa975eec3424cbfd3d31876c14622dcb85ee35bd08b6cf75c33743052c0cec6b83fbf6f5e781dec02a
7
+ data.tar.gz: fb464ebb9a4ce8ad118077e04f14fc9d7e2f5d5713811a2d840d60271111423353f51ef54deb9cd3fae3908d479ca9d7f81febf474059791c871ce0751aa0515
data/.gitignore CHANGED
@@ -3,9 +3,4 @@
3
3
  .DS_Store
4
4
  logs
5
5
  pkg
6
- Gemfile.lock
7
- vendor
8
-
9
- # Emacs
10
- #*#
11
- *~
6
+ Gemfile.lock
@@ -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.exists? and not object.acl.grants.include?(public_read_grant)
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.exists? && object.size == data['size']
108
+ if object.size == data['size']
106
109
  status 200
107
- else
108
- status 404
109
110
  end
110
111
  end
111
112
  end
@@ -1,3 +1,3 @@
1
1
  module GitLfsS3
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lsst-git-lfs-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre