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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3e8e4708a93d2b255aec71efea80892bccedd25
4
- data.tar.gz: 241e6197cfae7e4b358f1865147bc9fd86776098
3
+ metadata.gz: 3d2352e0018c792c02ab16e388921dc2be0c8d83
4
+ data.tar.gz: 1a64011a110382bba544e96a6d58a693f6d1cfb7
5
5
  SHA512:
6
- metadata.gz: 7cfe39bf94321c66b8cedf1e78d0e230c7cfb7e11f4602b0e34da44181b719fa47793c2f76a12a3fd069dfbf2cd120126f545970741b96e2aa1ecc930c935926
7
- data.tar.gz: 3f092a99eeeaa23b3012993be4a4f4f70f00179fabf3172ce4e4f8d3d93318b7b6c691f63db052a2468858d611fa8235c4ad06a8dcba92bf43183daf754ae306
6
+ metadata.gz: 64e34143b6818f14f0a80ac4c54503845ed9a063c352e57e0c0a87df97ede042723f141a49a5df06a8d47ae4316c9e2d00e9503e430df3503e92c65742405bce
7
+ data.tar.gz: 9ee6c205d02d970af776a5355711ca085d8c2b78a9b489ba8b5c6a74a529ab5e3714fbd2184d6be0b116b6ff5414ecf9f74359f0286a0c70792fe396f03dc0ff
@@ -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,}", ' ').sub(/<.*Image>.*<\/.*Image>/, '<Image>[data]</Image>')
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
@@ -1,3 +1,3 @@
1
1
  module Endicia
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-21 00:00:00.000000000 Z
12
+ date: 2017-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri