lsst-git-lfs-s3 0.2.0 → 0.2.1

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: 437091d8955c2a60f97a25e2ea0594da402e0cba
4
- data.tar.gz: ff1da32dc48a5cd13b48f78b605e261311ccc4e3
3
+ metadata.gz: 9792c8954d97f23a8b1eae95b19b01e4fc3c9a96
4
+ data.tar.gz: 0ace97ee10f3c4d70381362f88000d5db1af954b
5
5
  SHA512:
6
- metadata.gz: d6be37b7523a881c3ab2ed9537966f814db9478535ef08c919df31c5f99a713562a870d4c2cff863de3e31d07ddcb68b9bba192bbc168a4da0fd424f6e694c9d
7
- data.tar.gz: ba42f8a39304e878996f7c9f3da82276e0225230ad9d34aa4444fc1c95c4b1af0c80c1c71b69b7b0fe0a7e057911e942fbaadc11b070e170ce75738666820f3e
6
+ metadata.gz: ad1782fb03251892b1fd3c99da75e8ed6eaf8168bdd307b7963ac0197ba46d51dc92f5c9d8e57653396cb5f2fdcd7f359dfc99f4ed6b3bbe430ce12c5d385b9a
7
+ data.tar.gz: 18e923be9a8de7d3ebade1a28000cef67aa832685109408507a4c392a4d069668ac543e58db2dd5c4407ceefe5e6437c1bcb403505e42d725753ba91d2560bf4
@@ -91,7 +91,9 @@ module GitLfsS3
91
91
  data = MultiJson.load(request.body.tap { |b| b.rewind }.read)
92
92
  object = object_data(data['oid'])
93
93
  if settings.public_server and settings.ceph_s3
94
- object.acl.put(acl: "public-read")
94
+ if object.exists?
95
+ object.acl.put(acl: "public-read")
96
+ end
95
97
  end
96
98
  if object.exists? && object.size == data['size']
97
99
  status 200
@@ -1,3 +1,3 @@
1
1
  module GitLfsS3
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre
@@ -9,62 +9,62 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-04 00:00:00.000000000 Z
12
+ date: 2015-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '2'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '2'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sinatra
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: multi_json
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '1'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '10'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '10'
70
70
  description: LSST's Git LFS server that uses S3 for the storage backend.
@@ -76,7 +76,7 @@ executables:
76
76
  extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
- - .gitignore
79
+ - ".gitignore"
80
80
  - Gemfile
81
81
  - README.md
82
82
  - Rakefile
@@ -101,17 +101,17 @@ require_paths:
101
101
  - lib
102
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.0.14
114
+ rubygems_version: 2.4.8
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: LSST's Git LFS server that uses S3 for the storage backend by providing presigned