usps-support 0.1.5 → 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: be44cc3fce990710f4d5d05825b2aeb5d20003ab09e74df278b50f4dfaefbcc4
4
- data.tar.gz: 6f3bd47419d11b346f74d691d4b430042f2421c1da57d8dd61381056bef4c267
3
+ metadata.gz: 44c0097b83de8420ace4efb33696ab970e45c78d9955ec18e938b12f10abe901
4
+ data.tar.gz: c51739593d5c6a133fed3fc264c67c37e6fefb0e39ea9f6c259a5c602d35bcd4
5
5
  SHA512:
6
- metadata.gz: c33290f5e60460e176bb479ec7883354f9e8e34a9b1d234d4feae0a13d43747cdc7f022ed22bd1e898620222ff0984060ab768c6ca3da681bc26beed4321c60e
7
- data.tar.gz: 4527289d50541292afa7e80b46258b4b28338d600b9e446d7c6baf6fd102de5a235b26c5874bc895495f4be2487681192fe10c96333c42f27ba4b847fc2e4f14
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.5)
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.5'
5
+ VERSION = '0.1.7'
6
6
  end
7
7
  end
data/lib/usps/support.rb CHANGED
@@ -5,7 +5,9 @@ require_relative 'support/version'
5
5
  module Usps
6
6
  # Shared helpers and general models for USPS Rails applications
7
7
  #
8
- module Support; end
8
+ module Support
9
+ def self.version = Gem::Version.new(VERSION)
10
+ end
9
11
  end
10
12
 
11
13
  require_relative 'support/helpers'
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.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander