postman_mta 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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63d6c39090e609521da139680163a8ea087177b08058fa9c891200ed74b2db24
|
4
|
+
data.tar.gz: aad564e61a4c45ff2bbcfae4f1415acee51a0c5e064431974977a10fd2af4741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c30c98c0a6baa305f4676965941e404b60421decf6ea2c71f5f934bf0c4bc597296955da11aa05caf67abc2315bdd4c95b8f9e7c2308be443d470ee3e7c6ec
|
7
|
+
data.tar.gz: c03703cc5f1d59d2b0bde4aa848fdb7ea95366a9cdb9bc3049ff00c704bd2115d9893ae15641ea2e4d29178dfece718dcce1045ba6050b6820941470dce02caf
|
@@ -5,6 +5,7 @@ module PostmanMta
|
|
5
5
|
def show
|
6
6
|
response = attachment.find(params[:uuid]).deep_symbolize_keys
|
7
7
|
file = response.dig(:json, :attachment)
|
8
|
+
raise(PostmanMta::RecordNotFound, "Attachment via id #{params[:uuid]} not found") unless file
|
8
9
|
|
9
10
|
if file[:body].present?
|
10
11
|
send_attachment(file)
|
data/lib/postman_mta.rb
CHANGED
data/lib/postman_mta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postman_mta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Malinovskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -176,6 +176,7 @@ files:
|
|
176
176
|
- lib/postman_mta/api_client.rb
|
177
177
|
- lib/postman_mta/api_request.rb
|
178
178
|
- lib/postman_mta/engine.rb
|
179
|
+
- lib/postman_mta/record_not_found.rb
|
179
180
|
- lib/postman_mta/utils/sendfile_url.rb
|
180
181
|
- lib/postman_mta/utils/signature.rb
|
181
182
|
- lib/postman_mta/utils/signed_request.rb
|