lsst-git-lfs-s3 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/git-lfs-s3/application.rb +14 -12
- 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: 07d1f478053a6c45ceefdb00d3e55050d8b73d10
|
|
4
|
+
data.tar.gz: f41444ad00a59132dda790b87e983dbab71818c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 408c816c7eb33ce4fc1df01dba9e33317a83947239cd7c6152fbd3ec8856f77eccca9fcb81f8a74fab03ef37b24724be90cb0fb565d8e9c5f028e6ec69545e82
|
|
7
|
+
data.tar.gz: 59a744a51b5a75f7cfecbccc98376e58d0d265f871066fe18fe3ae79326a03957a0b48af91543f449b87bdc84dd0c8b080b98de3778b8da9a1de20c0247f0de2
|
|
@@ -72,12 +72,12 @@ module GitLfsS3
|
|
|
72
72
|
'size' => size,
|
|
73
73
|
'authenticated' => authenticated,
|
|
74
74
|
'actions' => {
|
|
75
|
-
'download'
|
|
76
|
-
'href'
|
|
77
|
-
|
|
75
|
+
'download' => {
|
|
76
|
+
'href' => obj.presigned_url(:get,
|
|
77
|
+
:expires_in => 86400),
|
|
78
|
+
'expires_at' => expire_at,
|
|
78
79
|
},
|
|
79
80
|
},
|
|
80
|
-
'expires_at' => expire_at,
|
|
81
81
|
}
|
|
82
82
|
end
|
|
83
83
|
|
|
@@ -90,12 +90,12 @@ module GitLfsS3
|
|
|
90
90
|
'size' => size,
|
|
91
91
|
'authenticated' => authenticated,
|
|
92
92
|
'actions' => {
|
|
93
|
-
'upload'
|
|
94
|
-
'href'
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
'upload' => {
|
|
94
|
+
'href' => obj.presigned_url(:put,
|
|
95
|
+
acl: 'public-read',
|
|
96
|
+
:expires_in => 86400),
|
|
97
|
+
'expires_at' => expire_at,
|
|
97
98
|
},
|
|
98
|
-
'expires_at' => expire_at,
|
|
99
99
|
},
|
|
100
100
|
}
|
|
101
101
|
end
|
|
@@ -106,8 +106,8 @@ module GitLfsS3
|
|
|
106
106
|
'oid' => obj_json[:oid],
|
|
107
107
|
'size' => obj_json[:size],
|
|
108
108
|
'error' => {
|
|
109
|
-
'code'
|
|
110
|
-
'message'
|
|
109
|
+
'code' => error,
|
|
110
|
+
'message' => message,
|
|
111
111
|
},
|
|
112
112
|
}
|
|
113
113
|
end
|
|
@@ -181,7 +181,9 @@ module GitLfsS3
|
|
|
181
181
|
end
|
|
182
182
|
elsif params[:operation] == 'upload'
|
|
183
183
|
if authenticated
|
|
184
|
-
lfs_resp(upload(authenticated, params))
|
|
184
|
+
resp = lfs_resp(upload(authenticated, params))
|
|
185
|
+
logger.debug resp
|
|
186
|
+
resp
|
|
185
187
|
else
|
|
186
188
|
error_resp(401, 'Credentials needed')
|
|
187
189
|
end
|
data/lib/git-lfs-s3/version.rb
CHANGED