breezy_pdf 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/breezy_pdf/uploads/base.rb +0 -9
- data/lib/breezy_pdf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1f5503ff612f6180a6062a1335ae8f2688bd4d2
|
4
|
+
data.tar.gz: 5bd6c965412f913fb4b815b57a810a0a3e3b9b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e1b432206986603453e39d6116695725c94483b030d41907ba87565115707eb4fb2224be5e5f5b5a9178ed2c2e89e210e9e29a12054f1ffac0f0ec1ab3ee55a
|
7
|
+
data.tar.gz: 32358c3c27beb58186da8b4a709d8f6f97686ba7e451ddb5d5d4c9d339a207902f56e8c6ad339e6a9b3a7ca665631c2954498f70bc5ddd2878692512c4c48b2f
|
@@ -15,7 +15,6 @@ module BreezyPDF::Uploads
|
|
15
15
|
@start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
16
16
|
BreezyPDF.logger.info(%([BreezyPDF] Starting private asset upload for #{@filename}))
|
17
17
|
upload!
|
18
|
-
complete_upload!
|
19
18
|
|
20
19
|
@end_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
21
20
|
BreezyPDF.logger.info(
|
@@ -42,14 +41,6 @@ module BreezyPDF::Uploads
|
|
42
41
|
@file ||= File.open(@file_path)
|
43
42
|
end
|
44
43
|
|
45
|
-
def complete_upload!
|
46
|
-
BreezyPDF.logger.info(%([BreezyPDF] Initiating completion of private asset upload for #{@filename}))
|
47
|
-
client.put("/uploads/#{resource.id}", {})
|
48
|
-
rescue Net::HTTP => error
|
49
|
-
BreezyPDF.logger.fatal(%([BreezyPDF] Unable to complete private asset upload for #{@filename}))
|
50
|
-
raise CompletionError, error.message
|
51
|
-
end
|
52
|
-
|
53
44
|
def upload!
|
54
45
|
BreezyPDF.logger.info(%([BreezyPDF] Initiating private asset upload of #{@filename}))
|
55
46
|
upload_response = upload_http.request(upload_request)
|
data/lib/breezy_pdf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breezy_pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Westendorf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|