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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87a60c4fc9a10e630a5dd87eb4a47bdb9d9b02e3
4
- data.tar.gz: d784db052f045fd9285c0e9521f03d0c8e3be558
3
+ metadata.gz: 07d1f478053a6c45ceefdb00d3e55050d8b73d10
4
+ data.tar.gz: f41444ad00a59132dda790b87e983dbab71818c0
5
5
  SHA512:
6
- metadata.gz: 2d31f5b993a19bb8ffbeee5ba0e8ca481485984a8e52ef6adc56088100bdf520f58f09ff2c206af3465f381062a6976146a383e045eeab999a143193c26db85c
7
- data.tar.gz: 02cdb618456dec8c3a57d792b6ba6e05bd0c682580642975cd37a2142076e0c0a836efaa9659b4bfb14a4cf2f08675d12a5a41f714bc59310cde4f287eec92d1
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' => obj.presigned_url(:get,
77
- :expires_in => 86400),
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' => obj.presigned_url(:put,
95
- acl: 'public-read',
96
- :expires_in => 86400),
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' => error,
110
- 'message' => 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
@@ -1,3 +1,3 @@
1
1
  module GitLfsS3
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre