usps_flags 0.3.16 → 0.3.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,8 +27,9 @@ class USPSFlags::Helpers
27
27
  # @param [String] outfile Path to the output file.
28
28
  # @param [String] size Actual size to output as.
29
29
  # @param [String] size_key Size suffix to attach to the file name.
30
- def resize_png(png_file, file: nil, outfile: nil, size:, size_key:)
30
+ def resize_png(png_file, file: nil, outfile: nil, size:, size_key: nil)
31
31
  raise USPSFlags::Errors::PNGConversionError if outfile.nil? && file.nil?
32
+ raise USPSFlags::Errors::PNGConversionError if outfile.nil? && size_key.nil?
32
33
  output_file_name = outfile || "#{USPSFlags.configuration.flags_dir}/PNG/#{file}.#{size_key}.png"
33
34
  MiniMagick::Tool::Convert.new do |convert|
34
35
  convert << "-background" << "none"
@@ -16,7 +16,7 @@ describe USPSFlags::Generate do
16
16
  l 0 2048
17
17
  l -3072 0
18
18
  l 0 -2048
19
- " fill="#BF0D3E" />
19
+ " fill="#E4002B" />
20
20
  SVG
21
21
  )
22
22
  end
@@ -24,31 +24,31 @@ describe USPSFlags do
24
24
  l 0 -896
25
25
  l -40 8
26
26
  l 80 -136
27
- " fill="#BF0D3E" />
27
+ " fill="#E4002B" />
28
28
  <path d="M 1296 1024
29
29
  l 480 0
30
30
  l 0 80
31
31
  l -480 0
32
32
  l 0 -80
33
- " fill="#BF0D3E" />
33
+ " fill="#E4002B" />
34
34
  <path d="M 1296 1025
35
35
  l 0 -432
36
36
  l 120 136
37
37
  l -40 0
38
38
  l 0 296
39
- " fill="#BF0D3E" />
39
+ " fill="#E4002B" />
40
40
  <path d="M 1776 1025
41
41
  l 0 -432
42
42
  l -120 136
43
43
  l 40 0
44
44
  l 0 296
45
- " fill="#BF0D3E" />
45
+ " fill="#E4002B" />
46
46
  <path d="M 1392 1184
47
47
  l 288 0
48
48
  l 0 80
49
49
  l -288 0
50
50
  l 0 -80
51
- " fill="#BF0D3E" />
51
+ " fill="#E4002B" />
52
52
  </g>
53
53
  <g transform="translate(512)">
54
54
  <path d="M 1536 512
@@ -59,31 +59,31 @@ describe USPSFlags do
59
59
  l 0 -896
60
60
  l -40 8
61
61
  l 80 -136
62
- " fill="#BF0D3E" />
62
+ " fill="#E4002B" />
63
63
  <path d="M 1296 1024
64
64
  l 480 0
65
65
  l 0 80
66
66
  l -480 0
67
67
  l 0 -80
68
- " fill="#BF0D3E" />
68
+ " fill="#E4002B" />
69
69
  <path d="M 1296 1025
70
70
  l 0 -432
71
71
  l 120 136
72
72
  l -40 0
73
73
  l 0 296
74
- " fill="#BF0D3E" />
74
+ " fill="#E4002B" />
75
75
  <path d="M 1776 1025
76
76
  l 0 -432
77
77
  l -120 136
78
78
  l 40 0
79
79
  l 0 296
80
- " fill="#BF0D3E" />
80
+ " fill="#E4002B" />
81
81
  <path d="M 1392 1184
82
82
  l 288 0
83
83
  l 0 80
84
84
  l -288 0
85
85
  l 0 -80
86
- " fill="#BF0D3E" />
86
+ " fill="#E4002B" />
87
87
  </g>
88
88
  </svg>
89
89
  SVG
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'usps_flags'
3
- s.version = '0.3.16'
4
- s.date = '2017-12-02'
3
+ s.version = '0.3.17'
4
+ s.date = '2018-01-10'
5
5
  s.summary = 'Flag generator for United States Power Squadrons'
6
6
  s.description = 'A flag image (PNG, SVG) generator for United States Power Squadrons.'
7
7
  s.homepage = 'http://rubygems.org/gems/usps_flags'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
@@ -30,7 +30,7 @@ cert_chain:
30
30
  3YzYAc+kXfD7kkzA2NMvLT6Q1v03qQyIZ8BS8SNk5wLGAdLM+IravFDLEs448fjz
31
31
  lEAU0RHLFVbE+CXW6makIlWGHR0=
32
32
  -----END CERTIFICATE-----
33
- date: 2017-12-02 00:00:00.000000000 Z
33
+ date: 2018-01-10 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: file_utils
@@ -188,6 +188,7 @@ files:
188
188
  - lib/usps_flags/core/trumpet.rb
189
189
  - lib/usps_flags/core/us.rb
190
190
  - lib/usps_flags/core/wheel.rb
191
+ - lib/usps_flags/core/wheel.svg.partial
191
192
  - lib/usps_flags/errors.rb
192
193
  - lib/usps_flags/generate.rb
193
194
  - lib/usps_flags/generate/flag.rb
metadata.gz.sig CHANGED
Binary file