endicia_ruby 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/endicia_ruby/request.rb +2 -1
- data/lib/endicia_ruby/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: 3d2352e0018c792c02ab16e388921dc2be0c8d83
|
4
|
+
data.tar.gz: 1a64011a110382bba544e96a6d58a693f6d1cfb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e34143b6818f14f0a80ac4c54503845ed9a063c352e57e0c0a87df97ede042723f141a49a5df06a8d47ae4316c9e2d00e9503e430df3503e92c65742405bce
|
7
|
+
data.tar.gz: 9ee6c205d02d970af776a5355711ca085d8c2b78a9b489ba8b5c6a74a529ab5e3714fbd2184d6be0b116b6ff5414ecf9f74359f0286a0c70792fe396f03dc0ff
|
data/lib/endicia_ruby/request.rb
CHANGED
@@ -152,7 +152,8 @@ module Endicia
|
|
152
152
|
|
153
153
|
# Make a one line string with image data stripped for use in logging
|
154
154
|
def format_xml_for_logging(xml_string)
|
155
|
-
xml_string.to_s.gsub("\r\n", '').gsub("\n", '').gsub("\t", '').gsub("\s{2,}", ' ')
|
155
|
+
xml_string.to_s.gsub("\r\n", '').gsub("\n", '').gsub("\t", '').gsub("\s{2,}", ' ')
|
156
|
+
.sub(/<([[:alnum:]]*Image)>.+?<\/[[:alnum:]]*Image>/, '<\1>[data]</\1>')
|
156
157
|
end
|
157
158
|
|
158
159
|
# Helper for logging messages via Rails.logger if available or just puts if not using Rails
|
data/lib/endicia_ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: endicia_ruby
|
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
|
- Jon Dean
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|