usps-support 0.1.6 → 0.1.7

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: 44c0097b83de8420ace4efb33696ab970e45c78d9955ec18e938b12f10abe901
4
+ data.tar.gz: c51739593d5c6a133fed3fc264c67c37e6fefb0e39ea9f6c259a5c602d35bcd4
5
5
  SHA512:
6
- metadata.gz: 8dec3ad13bf5a597a4189ee9b144283518690e72254bd75e19fb168edfce01638d36a0b8248db88b4d4e89fb7912a8d757b4df37bc88f57c0bf20abb80d1c639
7
- data.tar.gz: 459a0fa00e7a6db50d9b4b661b3c7be9cd52286effb0b1d623160b3a128626277af46fa774a392e8f2084195ad340ad7265647feebf184db543b5300d99e20e5
6
+ metadata.gz: abc2178f85e1830d327194f481a4ed5811971e0c9984722a365bae7d4fdacbe103b7f10aaa78c4db79716d27f3138e49b0a079659b69e12ef0b394e3579952e5
7
+ data.tar.gz: ff62d9586bb8f8cc4516bb61460e783bfcc2a4c428ed20cbc977c7090034c7a9e8b525ad47b8c20f4937785be6990c809c83eb2deebf0bdc301719d667c0a4fc
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.7)
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.7'
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander