pitcher 0.1.9 → 0.2.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: de16086590c8f4982525e29bb1ad1ca57617c4ee
4
- data.tar.gz: 632ad63343048087fd1aa7005f30a97c087aba68
3
+ metadata.gz: 549d469c2bb3c7f210ba8c430c36700988e4c4bd
4
+ data.tar.gz: 83c8e30a00096ebe6d26cd5325b46054053b4aa7
5
5
  SHA512:
6
- metadata.gz: 8f21dd1ccf742a9350a1938e6640cbf11241752f4e81e6d40afe77af2453d6ea2e38600c45059cb98ba2a0cc1746952742ef016255c8ac182687da0f606b7ae1
7
- data.tar.gz: 8c37551be89af6aaf23f810d63100cb830f9b097075a1a7f4057345d5cdb976c54a9036c443cd5984db9b162a7a3fb755f4d8cf999b11c5888a1529d16630df0
6
+ metadata.gz: e4edbb0be18bed5760ef78c00433422c704bb5689818f97fc515ea823281b8b238eddfdb4683ded5321692ff00bf759df00e6e06270326838b19f39c67a7b8d9
7
+ data.tar.gz: 6c7506d9f1a0fd156827a3af9d37096002206d949df75f648efe357ac560d18a374cb57723ce56b5b35d1474cf40cfe605dee99e428ddc2e67d28f717ae328f4
@@ -61,8 +61,9 @@ module Pitcher
61
61
  # parse request body xml, extract username
62
62
  doc = Nokogiri::XML(request.body)
63
63
  user = doc.at('username').text
64
+ recordid = doc.at_xpath('metadata/metadataList/metadata/value').text
64
65
  # Write response to a file
65
- File.open('response-' + user + '.txt', 'a') { |file| file.write("\r" + request.body + "\r" + response.body.to_hash[:process_conten_tdm_response][:return] ) }
66
+ File.open('response-' + user + '.txt', 'a') { |file| file.write("\r" + recordid + "\r" + response.body.to_hash[:process_conten_tdm_response][:return] ) }
66
67
  end
67
68
  end
68
69
  end
@@ -1,3 +1,3 @@
1
1
  module Pitcher
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.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.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little