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 +4 -4
- data/lib/pitcher.rb +2 -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: 549d469c2bb3c7f210ba8c430c36700988e4c4bd
|
4
|
+
data.tar.gz: 83c8e30a00096ebe6d26cd5325b46054053b4aa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4edbb0be18bed5760ef78c00433422c704bb5689818f97fc515ea823281b8b238eddfdb4683ded5321692ff00bf759df00e6e06270326838b19f39c67a7b8d9
|
7
|
+
data.tar.gz: 6c7506d9f1a0fd156827a3af9d37096002206d949df75f648efe357ac560d18a374cb57723ce56b5b35d1474cf40cfe605dee99e428ddc2e67d28f717ae328f4
|
data/lib/pitcher.rb
CHANGED
@@ -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" +
|
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
|
data/lib/pitcher/version.rb
CHANGED