usps_flags-grades 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/usps_flags/grades/edpro.rb +5 -3
- data/usps_flags-grades.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f9ab5d165c202f4af2a99caa777e90a0f5df7a4b06fd8de58fa9d3d3a86079d
|
4
|
+
data.tar.gz: 5a54878338bdb11837dafa04550092da604b4f86ebdd5ae68a08410597f32c20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7b2a9a9438a142a22991c594c9c36c11859cb4066f3f0995bcc31a2e9f5693b1298298b06fc72faf45135421cbb54fa3b37d081d356fc596d3c31e246877e0a
|
7
|
+
data.tar.gz: 1e210586ed6693d2708e17ca7dee3026de42e5afd9db08a0ef174957ba5a9d28dc61fdd65e039aecd19dcce09f82500f34b4a44fa5a3460ba229e477daace60b
|
data/Gemfile.lock
CHANGED
@@ -5,15 +5,17 @@
|
|
5
5
|
class USPSFlags::Grades::EdPro
|
6
6
|
class << self
|
7
7
|
def get(grade)
|
8
|
-
|
8
|
+
unless for_grade(grade)
|
9
|
+
raise USPSFlags::Errors::InvalidInsignia, 'EdPro is only valid for grades AP, JN, N'
|
10
|
+
end
|
9
11
|
|
10
12
|
<<~SVG
|
11
|
-
<rect x="0" y="100" width="#{USPSFlags::Grades::Grade.width(grade)}" height="
|
13
|
+
<rect x="0" y="100" width="#{USPSFlags::Grades::Grade.width(grade)}" height="20" fill="#{USPSFlags::Config::GOLD}" />
|
12
14
|
SVG
|
13
15
|
end
|
14
16
|
|
15
17
|
def for_grade(grade)
|
16
|
-
[
|
18
|
+
%i[ap jn n].include?(grade)
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
data/usps_flags-grades.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'usps_flags-grades'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '2019-06-
|
3
|
+
s.version = '0.0.12'
|
4
|
+
s.date = '2019-06-04'
|
5
5
|
s.summary = 'Insignia generator for United States Power Squadrons'
|
6
6
|
s.description = 'An extension to the flag image (PNG, SVG) generator for United States Power Squadrons to generate grade insignia.'
|
7
7
|
s.homepage = 'http://rubygems.org/gems/usps_flags-grades'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usps_flags-grades
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Fiander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: usps_flags
|