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 +4 -4
- data/lib/pitcher.rb +3 -3
- data/lib/pitcher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc179b692937c0e053ac2a3cb3a0bab0e6e2eb4
|
4
|
+
data.tar.gz: 3919eebd20fc7abce3bbc3b8ba1b85a28d940899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b10285d38ab1f2f3d91dd6c4156c9d34b3a8b076860af046861079544618533462810fe6fe6416fad3de19df331c8f643024b80f5ef42fcc05ca32840e5b991e
|
7
|
+
data.tar.gz: 139936dcdc6d1dce75f9111f3abb88794f868c31ae08d2d0865bffdd831eaf08a8792fa50a3e00949c2229a7217a18ee34bf5c3e6b6153ca4534916ea0502fe6
|
data/lib/pitcher.rb
CHANGED
@@ -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].
|
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
|
data/lib/pitcher/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|