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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab0eb42e6d05202f818fdcf9c6a3073a3c6721dd
4
- data.tar.gz: 51e11ab6a5d56c79a1a87235d1b6aaa634887fb9
3
+ metadata.gz: d70dd4c40b880e529ace9a4f23db45f608a1debb
4
+ data.tar.gz: 12a60af89c9b45b7bef7832668703a5c88b2fa4a
5
5
  SHA512:
6
- metadata.gz: 0550bd9ad5f164610eb0d3539eb1865aee3e5a879933d90e0fea66df93de90f9b5295eabc4fda444ccb08ad35f75938abaf23bc80f6b63c58cd09207c85829e5
7
- data.tar.gz: 9487aae4a71b7084f090428edde4fb843e737b27ccfb33677e4ac935c794d8ade8a09ecbeee30443640b0cb4c72e853008d54c38f9f1115031a27616e90783a3
6
+ metadata.gz: 9f649caaa231c2aa5d411d9e1d9e85d2e1275445f2a5fb11e5103e81e865b7e2e47ee18fc2ac5fabe454666aa3d9e7b7869818e6176653584ab44258f1e7a38f
7
+ data.tar.gz: dbbbab37ebc5f7a356e8b9fbbb7f0cc8a754d9f558b52d03b54444b1f8e55c57fd1a79018d7448e9f9948aee48a318e6c4c796ceb0b94c615486f9b745c9d15b
@@ -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.open('response.txt', 'w') { |file| file.write(response.body.to_hash) }
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
@@ -1,3 +1,3 @@
1
1
  module Pitcher
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pitcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little