usps-support 0.2.51 → 0.2.52
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 +4 -4
- data/lib/usps/support/status_icons.rb +22 -0
- data/lib/usps/support/version.rb +1 -1
- data/lib/usps/support.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4f7fc7f6a99fe161a6771508a7b03ad3498772967648a59682a18549198e97a
|
|
4
|
+
data.tar.gz: d47d5bf461658c4833fff9d11cc6db4e403a4ec3848842e9a45526e44c6b5316
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe6bdedc6e048eece2e76210c229ec200cb73f07114cada4655b52de246541c17dba1bfb47bc17671efe14a837ca66fc5b5bce2013a05bab2cef58555827c68a
|
|
7
|
+
data.tar.gz: ab81c2c13eb7ac01c6ce74cbd35ae445740e43c112dd5689c6edeb6e579291da1805dc52227efe3bc44a209125a639adcd5746af5b1f66a036625fe6868c2ce5
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Usps::Support
|
|
4
|
+
# Font Awesome icon names for the branded HTTP error pages, so the error
|
|
5
|
+
# screens stay visually consistent. Keyed by HTTP status code; 403 covers both
|
|
6
|
+
# the forbidden and incorrect-login pages, which render the same glyph.
|
|
7
|
+
#
|
|
8
|
+
module StatusIcons
|
|
9
|
+
ICONS = {
|
|
10
|
+
400 => 'exclamation-circle',
|
|
11
|
+
403 => 'ban',
|
|
12
|
+
404 => 'compass-slash',
|
|
13
|
+
406 => 'align-slash',
|
|
14
|
+
422 => 'file-slash',
|
|
15
|
+
500 => 'exclamation-triangle',
|
|
16
|
+
503 => 'cloud-slash',
|
|
17
|
+
504 => 'timer'
|
|
18
|
+
}.freeze
|
|
19
|
+
|
|
20
|
+
def self.for(status) = ICONS.fetch(status)
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/usps/support/version.rb
CHANGED
data/lib/usps/support.rb
CHANGED
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.2.
|
|
4
|
+
version: 0.2.52
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julian Fiander
|
|
@@ -137,6 +137,7 @@ files:
|
|
|
137
137
|
- lib/usps/support/models/hq/squadrons/website.rb
|
|
138
138
|
- lib/usps/support/models/toast.rb
|
|
139
139
|
- lib/usps/support/sidekiq_auth.rb
|
|
140
|
+
- lib/usps/support/status_icons.rb
|
|
140
141
|
- lib/usps/support/version.rb
|
|
141
142
|
homepage: https://github.com/unitedstatespowersquadrons/usps-support
|
|
142
143
|
licenses: []
|