usps-support 0.1.6 → 0.1.8

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: 423469418349198f6dd70d7faf7c943f7ebc29cb43e7e02571a8b183418a6ebe
4
- data.tar.gz: 11f539dc406f83cb3b0e8c360f8871a2b19420f5f6a0377e4561f4a85fd9b5f6
3
+ metadata.gz: 9c749fbd52183b7c6081f0fea6f59ec5dd7459d0c16cfa6d8163f4cca332a3d5
4
+ data.tar.gz: 2ef0b36ba057e0f95692711edeaefc79feb3c2e9fbae1f049b035d7a4921b444
5
5
  SHA512:
6
- metadata.gz: 8dec3ad13bf5a597a4189ee9b144283518690e72254bd75e19fb168edfce01638d36a0b8248db88b4d4e89fb7912a8d757b4df37bc88f57c0bf20abb80d1c639
7
- data.tar.gz: 459a0fa00e7a6db50d9b4b661b3c7be9cd52286effb0b1d623160b3a128626277af46fa774a392e8f2084195ad340ad7265647feebf184db543b5300d99e20e5
6
+ metadata.gz: 2d80040fde1cbc1a53a8e6600246e80b4409c8ea655ff88359e1c2ba22fc4d7920a0bc7b27073d23da4417febe171cba9c9e5a54a69d5f91b311ef9341a58ca2
7
+ data.tar.gz: 8452a3919afd1a9ac3e66e845ce4d15f1a99b8e1761edbe4fff6c2a50acea46011a3b0fc38bebdc76189b483b4a200a7f18cc7517d03f15aa0a3bea4af180897
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-support (0.1.6)
4
+ usps-support (0.1.8)
5
5
  sassc-rails
6
6
  usps-imis-api (~> 0.10.4)
7
7
  usps-jwt_auth (~> 1.0.0)
@@ -7,10 +7,11 @@ module Usps::Support::Helpers
7
7
  GITHUB = 'https://github.com/unitedstatespowersquadrons'
8
8
  SHIELDS = 'https://img.shields.io'
9
9
 
10
- def tag_badge(version, label: nil)
11
- label = "#{label&.gsub('-', '--')&.gsub('_', '__')&.gsub(' ', '_')}-" if label.present?
10
+ def tag_badge(version, label: nil, logo: nil)
11
+ label = "#{badgeify(label)}-" if label.present?
12
+ logo = "?logo=?#{logo}" unless logo.nil?
12
13
 
13
- image_tag("#{SHIELDS}/badge/#{label}#{version}-#{version_color(version)}")
14
+ image_tag("#{SHIELDS}/badge/#{label}#{version}-#{version_color(version)}#{logo}")
14
15
  end
15
16
 
16
17
  def branch_badge(branch, repo: nil)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Support
5
- VERSION = '0.1.6'
5
+ VERSION = '0.1.8'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander