usps_flags 0.6.2 → 0.6.4

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: e50d14a11c735b4f9f42cdf1e900ab1b30613e09316ce57c27ce6453b9d3d5ae
4
- data.tar.gz: 59a5f3523c03d5ceb97d7596923ea53c322f8fe9701d23bd5bca1d1d4f7956ce
3
+ metadata.gz: 79a3d684d778e24b82b3862480bc013ae22b6db3c988a758db88f2bcf584f89f
4
+ data.tar.gz: 64789bb99cb5f94ec982d829a0d9373d14077e0302791137301aecc219c2bfa2
5
5
  SHA512:
6
- metadata.gz: e21147c8d7ce0d667d5a128a39552c1039508aeb58c1f5935a95269f108c15004509d0303234bdfd72373ecc348da6026a2af2cb0f2a6271c179629342e283e0
7
- data.tar.gz: 2481de64b0dbe9c5e3d9b09f0f28a7ccd39f83d878dc8db5dbba17c12cc14f89c4e62ac9c3cc1767e20d540a05782bc93eca674c73a6a2b9462b1029146e629e
6
+ metadata.gz: 29ad45351598cab222639f72999b4b52bae6dae07bc1a5c79f8ea0eb249867aaf84e5f65fe9ce78dc8527acdba94ca009402ccf44b29fd8d65905bf1f2385eea
7
+ data.tar.gz: b55688e0b3635f12b53edc9d3bb6377520e877bd79550b96e65c0d9955b09cf760fdc6cba5b02e050105d428127f0857f0ee59bb6f4cd953995dee26f812fcbd
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.7.4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps_flags (0.6.2)
4
+ usps_flags (0.6.4)
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)
@@ -9,51 +9,57 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- ast (2.4.0)
13
- diff-lcs (1.3)
14
- docile (1.1.5)
12
+ ast (2.4.2)
13
+ diff-lcs (1.5.0)
14
+ docile (1.4.0)
15
15
  file_utils (1.1.2)
16
- jaro_winkler (1.5.4)
17
- json (2.3.1)
18
- mini_magick (4.10.1)
19
- parallel (1.19.1)
20
- parser (2.6.5.0)
21
- ast (~> 2.4.0)
22
- rainbow (3.0.0)
16
+ mini_magick (4.12.0)
17
+ parallel (1.21.0)
18
+ parser (3.1.1.0)
19
+ ast (~> 2.4.1)
20
+ rainbow (3.1.1)
23
21
  rake (12.3.3)
24
- rspec (3.7.0)
25
- rspec-core (~> 3.7.0)
26
- rspec-expectations (~> 3.7.0)
27
- rspec-mocks (~> 3.7.0)
28
- rspec-core (3.7.0)
29
- rspec-support (~> 3.7.0)
30
- rspec-expectations (3.7.0)
22
+ regexp_parser (2.2.1)
23
+ rexml (3.2.5)
24
+ rspec (3.11.0)
25
+ rspec-core (~> 3.11.0)
26
+ rspec-expectations (~> 3.11.0)
27
+ rspec-mocks (~> 3.11.0)
28
+ rspec-core (3.11.0)
29
+ rspec-support (~> 3.11.0)
30
+ rspec-expectations (3.11.0)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.7.0)
33
- rspec-mocks (3.7.0)
32
+ rspec-support (~> 3.11.0)
33
+ rspec-mocks (3.11.0)
34
34
  diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.7.0)
36
- rspec-support (3.7.0)
37
- rubocop (0.77.0)
38
- jaro_winkler (~> 1.5.1)
35
+ rspec-support (~> 3.11.0)
36
+ rspec-support (3.11.0)
37
+ rubocop (0.93.1)
39
38
  parallel (~> 1.10)
40
- parser (>= 2.6)
39
+ parser (>= 2.7.1.5)
41
40
  rainbow (>= 2.2.2, < 4.0)
41
+ regexp_parser (>= 1.8)
42
+ rexml
43
+ rubocop-ast (>= 0.6.0)
42
44
  ruby-progressbar (~> 1.7)
43
- unicode-display_width (>= 1.4.0, < 1.7)
44
- rubocop-rspec (1.33.0)
45
- rubocop (>= 0.60.0)
46
- ruby-progressbar (1.10.1)
45
+ unicode-display_width (>= 1.4.0, < 2.0)
46
+ rubocop-ast (1.16.0)
47
+ parser (>= 3.1.1.0)
48
+ rubocop-rspec (1.44.1)
49
+ rubocop (~> 0.87)
50
+ rubocop-ast (>= 0.7.1)
51
+ ruby-progressbar (1.11.0)
47
52
  rubyzip (1.3.0)
48
- simplecov (0.15.1)
49
- docile (~> 1.1.0)
50
- json (>= 1.8, < 3)
51
- simplecov-html (~> 0.10.0)
52
- simplecov-html (0.10.2)
53
- unicode-display_width (1.6.0)
53
+ simplecov (0.21.2)
54
+ docile (~> 1.1)
55
+ simplecov-html (~> 0.11)
56
+ simplecov_json_formatter (~> 0.1)
57
+ simplecov-html (0.12.3)
58
+ simplecov_json_formatter (0.1.4)
59
+ unicode-display_width (1.8.0)
54
60
 
55
61
  PLATFORMS
56
- ruby
62
+ arm64-darwin-21
57
63
 
58
64
  DEPENDENCIES
59
65
  rake (~> 12.2, >= 12.2.1)
@@ -64,4 +70,4 @@ DEPENDENCIES
64
70
  usps_flags!
65
71
 
66
72
  BUNDLED WITH
67
- 1.17.3
73
+ 2.2.31
@@ -8,9 +8,9 @@ class USPSFlags
8
8
  class Core
9
9
  module TridentSpecs
10
10
  class BuildIntersections
11
- def initialize(scaled_border: false)
11
+ def initialize(fly: 2048, scaled_border: false)
12
12
  @scaled_border = scaled_border
13
- configure_sizes(Rational(2048, 5))
13
+ configure_sizes(fly)
14
14
  configure_labels('')
15
15
  end
16
16
 
@@ -10,8 +10,8 @@ class USPSFlags
10
10
  USPSFlags::Core::TridentSpecs::Build.new(fly: fly, unit: unit, scaled_border: scaled_border).svg
11
11
  end
12
12
 
13
- def self.intersection_spec(scaled_border: false)
14
- USPSFlags::Core::TridentSpecs::BuildIntersections.new(scaled_border: scaled_border).svg
13
+ def self.intersection_spec(fly: 2048, scaled_border: false)
14
+ USPSFlags::Core::TridentSpecs::BuildIntersections.new(fly: fly, scaled_border: scaled_border).svg
15
15
  end
16
16
 
17
17
  def self.headers(width: nil, height: nil, pennant: false, scale: nil, title: 'USPS Flag')
@@ -110,10 +110,10 @@ class USPSFlags
110
110
  # @param [String] outfile The unit to append to all trident measurements.
111
111
  # @param [String] scale The image scale divisor factor.
112
112
  # @return [String] Returns the SVG data.
113
- def intersection_spec(outfile: nil, scale: nil, scaled_border: false)
113
+ def intersection_spec(outfile: nil, fly: 2048, scale: nil, scaled_border: false)
114
114
  svg = +''
115
115
  svg << USPSFlags::Core.headers(scale: scale, title: 'USPS Trident Specifications')
116
- svg << USPSFlags::Core.intersection_spec(scaled_border: scaled_border)
116
+ svg << USPSFlags::Core.intersection_spec(fly: fly, scaled_border: scaled_border)
117
117
  svg << USPSFlags::Core.footer
118
118
 
119
119
  USPSFlags::Helpers.output(svg, outfile: outfile)
data/usps_flags.gemspec CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'usps_flags'
5
- s.version = '0.6.2'
6
- s.date = '2020-08-04'
5
+ s.version = '0.6.4'
6
+ s.date = '2023-03-13'
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'
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.test_files = `git ls-files -- spec/*`.split("\n")
16
16
 
17
- s.required_ruby_version = '~> 2.5'
17
+ s.required_ruby_version = '>= 2.5'
18
18
 
19
19
  s.add_runtime_dependency 'file_utils', '~> 1.1', '>= 1.1.2'
20
20
  s.add_runtime_dependency 'mini_magick', '~> 4.9', '>= 4.9.4'
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.6.2
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-04 00:00:00.000000000 Z
11
+ date: 2023-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: file_utils
@@ -254,7 +254,7 @@ require_paths:
254
254
  - doc
255
255
  required_ruby_version: !ruby/object:Gem::Requirement
256
256
  requirements:
257
- - - "~>"
257
+ - - ">="
258
258
  - !ruby/object:Gem::Version
259
259
  version: '2.5'
260
260
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  requirements: []
266
- rubygems_version: 3.1.4
266
+ rubygems_version: 3.1.6
267
267
  signing_key:
268
268
  specification_version: 4
269
269
  summary: Flag generator for United States Power Squadrons