pitcher 0.2.1 → 0.2.2

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: 1d79a53b6700c0fcc15c7cad1b72873f1076cb4b
4
- data.tar.gz: febff2b80b5b45fd648dcf34fa4b7998922de05a
3
+ metadata.gz: dbc179b692937c0e053ac2a3cb3a0bab0e6e2eb4
4
+ data.tar.gz: 3919eebd20fc7abce3bbc3b8ba1b85a28d940899
5
5
  SHA512:
6
- metadata.gz: 1c7176bcb7c28a9ee2f563d1842a1240607706fff74eeb4bccdbd58e82a6b42c4cfe721e861d39a77be3987bae57553a7092c86bf1543f20e4294b42658afb2d
7
- data.tar.gz: a0beda259aea01399c534860e1a8710ce8c68f17756e56b1d71e2d74824c8c69a602b226b3b1442251b39e227755843f08d35ea20f36d4e20433955d199e64c9
6
+ metadata.gz: b10285d38ab1f2f3d91dd6c4156c9d34b3a8b076860af046861079544618533462810fe6fe6416fad3de19df331c8f643024b80f5ef42fcc05ca32840e5b991e
7
+ data.tar.gz: 139936dcdc6d1dce75f9111f3abb88794f868c31ae08d2d0865bffdd831eaf08a8792fa50a3e00949c2229a7217a18ee34bf5c3e6b6153ca4534916ea0502fe6
@@ -58,13 +58,13 @@ module Pitcher
58
58
  # build request without sending
59
59
  request = client.build_request(:process_conten_tdm, message: message)
60
60
 
61
- # parse request body xml, extract username
61
+ # parse request body xml, extract username and contendm record number
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
+ recordid = recordids[0].text
66
66
  # Write response to a file
67
- File.open('response-' + user + '.txt', 'a') { |file| file.write("\r" + recordid + "\r" + response.body.to_hash[:process_conten_tdm_response][:return] ) }
67
+ File.open('response-' + user + '.txt', 'a') { |file| file.write("\r\r" + "CONTENTdm Record Number:" + recordid + "\r" + response.body.to_hash[:process_conten_tdm_response][:return] ) }
68
68
  end
69
69
  end
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module Pitcher
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pitcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-24 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler