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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 549d469c2bb3c7f210ba8c430c36700988e4c4bd
4
- data.tar.gz: 83c8e30a00096ebe6d26cd5325b46054053b4aa7
3
+ metadata.gz: 1d79a53b6700c0fcc15c7cad1b72873f1076cb4b
4
+ data.tar.gz: febff2b80b5b45fd648dcf34fa4b7998922de05a
5
5
  SHA512:
6
- metadata.gz: e4edbb0be18bed5760ef78c00433422c704bb5689818f97fc515ea823281b8b238eddfdb4683ded5321692ff00bf759df00e6e06270326838b19f39c67a7b8d9
7
- data.tar.gz: 6c7506d9f1a0fd156827a3af9d37096002206d949df75f648efe357ac560d18a374cb57723ce56b5b35d1474cf40cfe605dee99e428ddc2e67d28f717ae328f4
6
+ metadata.gz: 1c7176bcb7c28a9ee2f563d1842a1240607706fff74eeb4bccdbd58e82a6b42c4cfe721e861d39a77be3987bae57553a7092c86bf1543f20e4294b42658afb2d
7
+ data.tar.gz: a0beda259aea01399c534860e1a8710ce8c68f17756e56b1d71e2d74824c8c69a602b226b3b1442251b39e227755843f08d35ea20f36d4e20433955d199e64c9
@@ -1,3 +1,3 @@
1
1
  module Pitcher
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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
- recordid = doc.at_xpath('metadata/metadataList/metadata/value').text
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
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little