pitcher 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pitcher/version.rb +1 -1
- data/lib/pitcher.rb +2 -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: 1d79a53b6700c0fcc15c7cad1b72873f1076cb4b
|
4
|
+
data.tar.gz: febff2b80b5b45fd648dcf34fa4b7998922de05a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c7176bcb7c28a9ee2f563d1842a1240607706fff74eeb4bccdbd58e82a6b42c4cfe721e861d39a77be3987bae57553a7092c86bf1543f20e4294b42658afb2d
|
7
|
+
data.tar.gz: a0beda259aea01399c534860e1a8710ce8c68f17756e56b1d71e2d74824c8c69a602b226b3b1442251b39e227755843f08d35ea20f36d4e20433955d199e64c9
|
data/lib/pitcher/version.rb
CHANGED
data/lib/pitcher.rb
CHANGED
@@ -61,7 +61,8 @@ 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
|
-
|
64
|
+
recordids = doc.xpath('//value')
|
65
|
+
recordid = recordids[0].to_s
|
65
66
|
# Write response to a file
|
66
67
|
File.open('response-' + user + '.txt', 'a') { |file| file.write("\r" + recordid + "\r" + response.body.to_hash[:process_conten_tdm_response][:return] ) }
|
67
68
|
end
|