pitcher 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pitcher.rb +3 -1
- data/lib/pitcher/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: d70dd4c40b880e529ace9a4f23db45f608a1debb
|
4
|
+
data.tar.gz: 12a60af89c9b45b7bef7832668703a5c88b2fa4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f649caaa231c2aa5d411d9e1d9e85d2e1275445f2a5fb11e5103e81e865b7e2e47ee18fc2ac5fabe454666aa3d9e7b7869818e6176653584ab44258f1e7a38f
|
7
|
+
data.tar.gz: dbbbab37ebc5f7a356e8b9fbbb7f0cc8a754d9f558b52d03b54444b1f8e55c57fd1a79018d7448e9f9948aee48a318e6c4c796ceb0b94c615486f9b745c9d15b
|
data/lib/pitcher.rb
CHANGED
@@ -54,7 +54,9 @@ module Pitcher
|
|
54
54
|
)
|
55
55
|
# Create the hash that will be sent as a message to the service with the creds and data above
|
56
56
|
response = client.call(:process_conten_tdm, message: message)
|
57
|
-
File.
|
57
|
+
path = File.join Rails.root, 'public', 'uploads'
|
58
|
+
FileUtils.mkdir_p(path) unless File.exist?(path)
|
59
|
+
File.open(File.join(path, 'response.txt'), 'w') { |file| file.write(response.body.to_hash) }
|
58
60
|
|
59
61
|
end
|
60
62
|
end
|
data/lib/pitcher/version.rb
CHANGED