usps_flags-burgees 0.1.4 → 0.2.0

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: a469fcc827e4680776dc87580d16630b141050c5c962a72ca439a4c3cf66308e
4
- data.tar.gz: 6a13f04e62f6360e07a239328e7fbbf697c65d7fb69760eb80aa9e6ba40fe5a6
3
+ metadata.gz: ab59dc87853198d5b9a2cc018dd53ae8beef16ffd48c74cbb36213512e837c21
4
+ data.tar.gz: a0d5c4b3169584b49bb305d9e0be8da4b580663998482f76fe599b43f3e82522
5
5
  SHA512:
6
- metadata.gz: 8c6714852df6cc86f54bbf35132060dbe592787c507b0b69548a51902886499e4bd3b2a9f77cf5912ef9767923578b7f05d78cbfa748517d5c856f920a69e30c
7
- data.tar.gz: aa309195b5385610350756ddec9bdcb40f4d5369ea8df1079d9fbfc187454b3ce0ba42829aa11266740d2bb6a9cec2a6112e86f6f387c06354ceca238efb0556
6
+ metadata.gz: 60ca58dc73e7879ed5d874aa30475cd057ed3654a356f8575b224f95b5105f8322f28c1eb381e64545c4a02cfb8c90d3b7bc168aeb9a86035f12130c4828914b
7
+ data.tar.gz: 0c4a2b4a067fea84283148ebc2a177589f3abacb09519a36bbc772effee23bce85ce97822023e279f33bd0ac0a48523027cb7a925ea854a434966c2bd1a2d2f1
data/.rubocop.yml CHANGED
@@ -1,20 +1,21 @@
1
1
  require: rubocop-rspec
2
2
  AllCops:
3
- TargetRubyVersion: 2.5
3
+ TargetRubyVersion: 3.0
4
4
  Exclude:
5
5
  - lib/output/*
6
6
  - tmp/**/*
7
7
  - vendor/**/*
8
+ NewCops: enable
8
9
 
9
- Layout/IndentFirstHashElement:
10
+ Layout/FirstHashElementIndentation:
10
11
  EnforcedStyle: consistent
11
12
  Layout/AccessModifierIndentation:
12
13
  EnforcedStyle: outdent
13
14
  Layout/EmptyLinesAroundAccessModifier:
14
15
  Enabled: true
15
- Layout/AlignArray:
16
+ Layout/ArrayAlignment:
16
17
  Enabled: true
17
- Layout/AlignHash:
18
+ Layout/HashAlignment:
18
19
  Enabled: true
19
20
  Layout/EmptyLineAfterGuardClause:
20
21
  Enabled: true
@@ -33,6 +34,8 @@ Lint/UnusedMethodArgument:
33
34
  Enabled: true
34
35
  Lint/UselessAssignment:
35
36
  Enabled: true
37
+ Lint/ConstantDefinitionInBlock:
38
+ Enabled: false
36
39
 
37
40
  Metrics/BlockLength:
38
41
  Exclude:
@@ -51,7 +54,7 @@ Metrics/CyclomaticComplexity:
51
54
  Metrics/AbcSize:
52
55
  Enabled: true
53
56
 
54
- Naming/UncommunicativeMethodParamName:
57
+ Naming/MethodParameterName:
55
58
  Enabled: false
56
59
  Naming/AccessorMethodName:
57
60
  Enabled: false
@@ -64,6 +67,8 @@ RSpec/NestedGroups:
64
67
  Enabled: false
65
68
  RSpec/ExampleLength:
66
69
  Enabled: false
70
+ RSpec/LeakyConstantDeclaration:
71
+ Enabled: false
67
72
 
68
73
  Style/Documentation:
69
74
  Enabled: false
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 3.0.7
data/Gemfile.lock CHANGED
@@ -1,60 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps_flags-burgees (0.1.4)
4
+ usps_flags-burgees (0.2.0)
5
5
  usps_flags (~> 0.5, >= 0.5.5)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.0)
11
- diff-lcs (1.3)
12
- docile (1.3.1)
10
+ ast (2.4.2)
11
+ diff-lcs (1.5.1)
12
+ docile (1.4.0)
13
13
  file_utils (1.1.2)
14
- jaro_winkler (1.5.2)
15
- json (2.3.1)
16
14
  mini_magick (4.12.0)
17
- parallel (1.17.0)
18
- parser (2.6.3.0)
19
- ast (~> 2.4.0)
20
- rainbow (3.0.0)
15
+ parallel (1.24.0)
16
+ parser (3.3.1.0)
17
+ ast (~> 2.4.1)
18
+ racc
19
+ racc (1.7.3)
20
+ rainbow (3.1.1)
21
21
  rake (12.3.3)
22
- rspec (3.8.0)
23
- rspec-core (~> 3.8.0)
24
- rspec-expectations (~> 3.8.0)
25
- rspec-mocks (~> 3.8.0)
26
- rspec-core (3.8.0)
27
- rspec-support (~> 3.8.0)
28
- rspec-expectations (3.8.3)
22
+ regexp_parser (2.9.2)
23
+ rexml (3.2.8)
24
+ strscan (>= 3.0.9)
25
+ rspec (3.13.0)
26
+ rspec-core (~> 3.13.0)
27
+ rspec-expectations (~> 3.13.0)
28
+ rspec-mocks (~> 3.13.0)
29
+ rspec-core (3.13.0)
30
+ rspec-support (~> 3.13.0)
31
+ rspec-expectations (3.13.0)
29
32
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.8.0)
31
- rspec-mocks (3.8.0)
33
+ rspec-support (~> 3.13.0)
34
+ rspec-mocks (3.13.1)
32
35
  diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.8.0)
34
- rspec-support (3.8.0)
35
- rubocop (0.71.0)
36
- jaro_winkler (~> 1.5.1)
36
+ rspec-support (~> 3.13.0)
37
+ rspec-support (3.13.1)
38
+ rubocop (0.93.1)
37
39
  parallel (~> 1.10)
38
- parser (>= 2.6)
40
+ parser (>= 2.7.1.5)
39
41
  rainbow (>= 2.2.2, < 4.0)
42
+ regexp_parser (>= 1.8)
43
+ rexml
44
+ rubocop-ast (>= 0.6.0)
40
45
  ruby-progressbar (~> 1.7)
41
- unicode-display_width (>= 1.4.0, < 1.7)
42
- rubocop-rspec (1.33.0)
43
- rubocop (>= 0.60.0)
44
- ruby-progressbar (1.10.1)
46
+ unicode-display_width (>= 1.4.0, < 2.0)
47
+ rubocop-ast (1.31.3)
48
+ parser (>= 3.3.1.0)
49
+ rubocop-rspec (1.44.1)
50
+ rubocop (~> 0.87)
51
+ rubocop-ast (>= 0.7.1)
52
+ ruby-progressbar (1.13.0)
45
53
  rubyzip (1.3.0)
46
- simplecov (0.16.1)
54
+ simplecov (0.22.0)
47
55
  docile (~> 1.1)
48
- json (>= 1.8, < 3)
49
- simplecov-html (~> 0.10.0)
50
- simplecov-html (0.10.2)
51
- unicode-display_width (1.6.0)
52
- usps_flags (0.6.3)
56
+ simplecov-html (~> 0.11)
57
+ simplecov_json_formatter (~> 0.1)
58
+ simplecov-html (0.12.3)
59
+ simplecov_json_formatter (0.1.4)
60
+ strscan (3.1.0)
61
+ unicode-display_width (1.8.0)
62
+ usps_flags (0.7.0)
53
63
  file_utils (~> 1.1, >= 1.1.2)
54
64
  mini_magick (~> 4.9, >= 4.9.4)
55
65
  rubyzip (~> 1.3, >= 1.3.0)
56
66
 
57
67
  PLATFORMS
68
+ arm64-darwin-23
58
69
  ruby
59
70
 
60
71
  DEPENDENCIES
@@ -66,4 +77,4 @@ DEPENDENCIES
66
77
  usps_flags-burgees!
67
78
 
68
79
  BUNDLED WITH
69
- 1.17.3
80
+ 2.5.10
@@ -25,7 +25,7 @@ class USPSFlags
25
25
  # end
26
26
  #
27
27
  # burgee.svg #=> Generates SVG file at "/path/to/svg/output.svg"
28
- def initialize(options = {})
28
+ def initialize(**options)
29
29
  @squadron = options[:squadron]
30
30
  @outfile = options[:outfile]
31
31
  # @width = 3000
@@ -36,8 +36,7 @@ class USPSFlags
36
36
  @title ||= format_title(@squadron)
37
37
  end
38
38
 
39
- attr_accessor :squadron
40
- attr_accessor :outfile
39
+ attr_accessor :squadron, :outfile
41
40
  # attr_accessor :width
42
41
  # attr_accessor :height
43
42
  attr_accessor :title
@@ -53,7 +52,7 @@ class USPSFlags
53
52
  header_opts = crossed ? { width: 1200, height: 600, scale: 7.25 } : {}
54
53
 
55
54
  @svg = <<~SVG
56
- #{USPSFlags::Core.headers(header_opts.merge(title: @title))}
55
+ #{USPSFlags::Core.headers(**header_opts.merge(title: @title))}
57
56
  #{burgee}
58
57
  #{USPSFlags::Core.footer}
59
58
  SVG
@@ -86,7 +85,7 @@ class USPSFlags
86
85
  def format_title(burgee)
87
86
  burgee_string = burgee.to_s
88
87
  if burgee_string.match?(/_/)
89
- burgee_string.gsub('_', ' ').split(' ').map(&:capitalize).join(' ') + ' Burgee'
88
+ "#{burgee_string.gsub('_', ' ').split(' ').map(&:capitalize).join(' ')} Burgee"
90
89
  else
91
90
  "#{burgee_string.capitalize} Burgee"
92
91
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'usps_flags-burgees'
5
- s.version = '0.1.4'
6
- s.date = '2023-03-13'
5
+ s.version = '0.2.0'
6
+ s.date = '2024-05-17'
7
7
  s.summary = 'Flag generator for United States Power Squadrons burgees'
8
8
  s.description = 'An extension to the flag image generator for United States Power Squadrons to generate burgees.'
9
9
  s.homepage = 'http://rubygems.org/gems/usps_flags-burgees'
@@ -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 = '>= 3.0'
18
18
 
19
19
  s.add_runtime_dependency 'usps_flags', '~> 0.5', '>= 0.5.5'
20
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps_flags-burgees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: usps_flags
@@ -164,7 +164,7 @@ homepage: http://rubygems.org/gems/usps_flags-burgees
164
164
  licenses:
165
165
  - GPL-3.0
166
166
  metadata: {}
167
- post_install_message:
167
+ post_install_message:
168
168
  rdoc_options: []
169
169
  require_paths:
170
170
  - lib
@@ -173,15 +173,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: '2.5'
176
+ version: '3.0'
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - ">="
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.2.30
184
- signing_key:
183
+ rubygems_version: 3.2.33
184
+ signing_key:
185
185
  specification_version: 4
186
186
  summary: Flag generator for United States Power Squadrons burgees
187
187
  test_files: