pitcher 0.1.8 → 0.1.9

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: 492c692773ace2ff3497a54ebfb66a776b6eefdc
4
- data.tar.gz: a92e5656c411917f3f6d37a451ba8ee89f20a8c8
3
+ metadata.gz: de16086590c8f4982525e29bb1ad1ca57617c4ee
4
+ data.tar.gz: 632ad63343048087fd1aa7005f30a97c087aba68
5
5
  SHA512:
6
- metadata.gz: 70ff818d0e2d77d0f53b9873c5daa4457b68dd03b6d9f39c8dc2881c4459a578a12206756126bb0bd7e09abbb60bc500ab4cb61dc24290298fb6eddfd69d98ac
7
- data.tar.gz: 9d8f87ed40a790462a2134fd25b565afdc012a99aabc33027cd7d40843392e14aef99bc712b46a8bdc77772eed3b599d6542ef7af5e4b354ae1d2dce8a851c46
6
+ metadata.gz: 8f21dd1ccf742a9350a1938e6640cbf11241752f4e81e6d40afe77af2453d6ea2e38600c45059cb98ba2a0cc1746952742ef016255c8ac182687da0f606b7ae1
7
+ data.tar.gz: 8c37551be89af6aaf23f810d63100cb830f9b097075a1a7f4057345d5cdb976c54a9036c443cd5984db9b162a7a3fb755f4d8cf999b11c5888a1529d16630df0
@@ -1,3 +1,3 @@
1
1
  module Pitcher
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
data/lib/pitcher.rb CHANGED
@@ -55,11 +55,11 @@ module Pitcher
55
55
  )
56
56
  # Create the hash that will be sent as a message to the service with the creds and data above
57
57
  response = client.call(:process_conten_tdm, message: message)
58
- # Get request body
58
+ # build request without sending
59
59
  request = client.build_request(:process_conten_tdm, message: message)
60
- XML = request.body
61
- # parse request body xml, extract username and metadata
62
- doc = Nokogiri::XML(XML)
60
+
61
+ # parse request body xml, extract username
62
+ doc = Nokogiri::XML(request.body)
63
63
  user = doc.at('username').text
64
64
  # Write response to a file
65
65
  File.open('response-' + user + '.txt', 'a') { |file| file.write("\r" + request.body + "\r" + response.body.to_hash[:process_conten_tdm_response][:return] ) }
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.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little