usps_flags 0.5.7 → 0.5.8

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: 1c7d6f56792f73b92bcf212d97079195ef98ff23f51b92789f8dfcb6a2604a5e
4
- data.tar.gz: 19926bbf380d3568715932fcd51d56eb15f84002e29e3b561b3a1e2dfc38a38c
3
+ metadata.gz: 7d178e622dbc6370cd277324673a7f9ee15c0adcf7e3b0d59a34f6499b73ca98
4
+ data.tar.gz: c3eb0cf858463f11624f4474ce5e13cffe5f75698f2c80cf3ad0558df3028d4c
5
5
  SHA512:
6
- metadata.gz: dc5a1fd943cd68942a710943b486f438cb989c842c5297dd53e73613da53cfb886fddd3572c7ceb5032b3c5913837569853490d8fd1f831fce6f779701077ce8
7
- data.tar.gz: b15bcdd3cf42d0a534d98bf3a9ade08a587bcc0a8497f74dc481737cb8015f64a73c0beca88e88bee93c4e9d0df6869f839edcf75537f3bad7db84c529614159
6
+ metadata.gz: bf09d8306ee9bc6da4405a89e79f71866c8a36041b003033c7f40bf6e8070f3feb7f12c5b1dad473beb57b7a0d26a641b093aef5828962e6df5fe3a84943d6dd
7
+ data.tar.gz: 9f312f4248f69039910e6d04f879a0eb733044101b0d76511e66cef06a9ecc83857aea05503a98eddcd225b7997d5eba7955741a15837799883bf051b0c95986
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps_flags (0.5.7)
4
+ usps_flags (0.5.8)
5
5
  file_utils (~> 1.1, >= 1.1.2)
6
6
  mini_magick (~> 4.9, >= 4.9.4)
7
7
  rubyzip (~> 1.3, >= 1.3.0)
@@ -13,7 +13,7 @@ class USPSFlags
13
13
 
14
14
  def initialize(type, color: :blue, field_color: nil)
15
15
  valid_types = %i[s d stf n]
16
- raise "Error: Invalid trident type. Options are #{valid_types}." unless valid_types.include?(type)
16
+ raise "Error: Invalid trident type: #{type}. Options are #{valid_types}." unless valid_types.include?(type)
17
17
 
18
18
  @type = type
19
19
 
@@ -179,7 +179,7 @@ class USPSFlags
179
179
  end
180
180
 
181
181
  def flag_type(rank)
182
- specifics = { 'PORTCAP' => :pc, 'FLEETCAP' => :fc, 'STFC' => :stf }
182
+ specifics = { 'PORTCAP' => :pc, 'FLEETCAP' => :fc, 'STFC' => :stf, 'PSTFC' => :stf }
183
183
  return specifics[rank] if specifics.key?(rank)
184
184
  return :a if rank.match?(/.AIDE/)
185
185
  return :f if rank.match?(/.?FLT/)
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'usps_flags'
5
- s.version = '0.5.7'
6
- s.date = '2019-12-12'
5
+ s.version = '0.5.8'
6
+ s.date = '2019-12-15'
7
7
  s.summary = 'Flag generator for United States Power Squadrons'
8
8
  s.description = 'A flag image (PNG, SVG) generator for United States Power Squadrons.'
9
9
  s.homepage = 'http://rubygems.org/gems/usps_flags'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
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-12-12 00:00:00.000000000 Z
11
+ date: 2019-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: file_utils