usps-imis-api 0.11.20 → 0.11.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b704d2eaa3bdb496f4e575b19fff48a0a8d61bb14033ac92ee56910772e72fc
4
- data.tar.gz: f2772a7590150c7f342530e2d008d773680abac4372625f226b512bd3357c8c1
3
+ metadata.gz: 35b16ade1f6397b66b62731eb83a514ef1fa4a1e4ef656f639a153ecb1bbc8a5
4
+ data.tar.gz: b0b191774bd37dcea2342ff8fa5349a06bfb62de69cb1835316bc522367bbda9
5
5
  SHA512:
6
- metadata.gz: ea13f8318a6f0424158973f42eff29903b556764f4fb94e85d415f68109a09593f19acd6e9f9db9350b6a6c25f2f6bfb7ae12848501b32048a8063ce47fc0678
7
- data.tar.gz: 20f05f14c38428f0c33d055df86bbb47263e7aebef7478b13eee5e6ad5f93c949b46921bf5f34792e9dd4add55f5ec43783ad4b941f83d73015bbc9989453cf0
6
+ metadata.gz: 7604ac9a7672a37fa47cd6d5585d54e54f2a5bcf8853fb4200ceb54c20db0c24e16b5036f94ced091fa9523cf2157934bb840c6f171ec4b567113f50f1423ea3
7
+ data.tar.gz: cc021585df733a3dc596cbd54486655b297290665128b1f4fa362976e9274d2b4b572ae88417f3fd17f9cd33a3352e62a64726e9c9357e1801629be93c150b94
data/Readme.md CHANGED
@@ -82,5 +82,7 @@ file to [rubygems.org](https://rubygems.org).
82
82
 
83
83
  ## PHP
84
84
 
85
- This same API is
86
- [available for PHP](https://github.com/unitedstatespowersquadrons/imis-api).
85
+ A wrapper for the CLI from this API is
86
+ [available for PHP](https://github.com/unitedstatespowersquadrons/imis-api-php).
87
+
88
+ You can also view the [original PHP API](https://github.com/unitedstatespowersquadrons/imis-api).
@@ -5,6 +5,8 @@ module Usps
5
5
  # Formats log statements
6
6
  #
7
7
  class LoggerFormatter < ::Logger::Formatter
8
+ include ::ActiveSupport::TaggedLogging::Formatter
9
+
8
10
  def call(severity, time, _progname, message)
9
11
  log_chunks = [
10
12
  format('%-5s', severity.to_s),
@@ -14,7 +16,7 @@ module Usps
14
16
  '|',
15
17
  formatted_tags,
16
18
  '|',
17
- message.sub(/^#{Regexp.escape(tags_text)}/, '')
19
+ message.to_s.sub(/^#{Regexp.escape(tags_text)}/, '')
18
20
  ]
19
21
  "#{log_chunks.join(' ')}\n"
20
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Imis
5
- VERSION = '0.11.20'
5
+ VERSION = '0.11.21'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-imis-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.20
4
+ version: 0.11.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander