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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5364cce286a0666a9e6b0838783e222713b1c81c81c6b61b4d956a33975e3fb
4
- data.tar.gz: 003d045bf7259ebbafd22d30f635953a92044d75bb2a8fac09ff117024a5e039
3
+ metadata.gz: 5f9ab5d165c202f4af2a99caa777e90a0f5df7a4b06fd8de58fa9d3d3a86079d
4
+ data.tar.gz: 5a54878338bdb11837dafa04550092da604b4f86ebdd5ae68a08410597f32c20
5
5
  SHA512:
6
- metadata.gz: 3cf48ba6ea1fee114a10464caf922b391de05bcfe188b8131ab603ccd4a819efae4d1ec2ea2429b58969989bc48264f097db2c7cdc3a2ae1119afa2065ced8e2
7
- data.tar.gz: fddb300fe2af46cfed93aa17aa43412383cb367ab1e47ce19b8b8910016e2b3a3c291e875fbcc372dd2d5b5e326f5607741584922f1323c2d837bab9cc5a80f5
6
+ metadata.gz: b7b2a9a9438a142a22991c594c9c36c11859cb4066f3f0995bcc31a2e9f5693b1298298b06fc72faf45135421cbb54fa3b37d081d356fc596d3c31e246877e0a
7
+ data.tar.gz: 1e210586ed6693d2708e17ca7dee3026de42e5afd9db08a0ef174957ba5a9d28dc61fdd65e039aecd19dcce09f82500f34b4a44fa5a3460ba229e477daace60b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps_flags-grades (0.0.11)
4
+ usps_flags-grades (0.0.12)
5
5
  usps_flags (~> 0.4, >= 0.4.0)
6
6
 
7
7
  GEM
@@ -5,15 +5,17 @@
5
5
  class USPSFlags::Grades::EdPro
6
6
  class << self
7
7
  def get(grade)
8
- raise USPSFlags::Errors::InvalidInsignia, "EdPro is only valid for grades AP, JN, N" unless for_grade(grade)
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="15" fill="#{USPSFlags::Config::GOLD}" />
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
- [:ap, :jn, :n].include?(grade)
18
+ %i[ap jn n].include?(grade)
17
19
  end
18
20
  end
19
21
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'usps_flags-grades'
3
- s.version = '0.0.11'
4
- s.date = '2019-06-02'
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.11
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-02 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: usps_flags