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 +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +43 -37
- data/lib/usps_flags/core/trident_specs/build_intersections.rb +2 -2
- data/lib/usps_flags/core.rb +2 -2
- data/lib/usps_flags/generate.rb +2 -2
- data/usps_flags.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79a3d684d778e24b82b3862480bc013ae22b6db3c988a758db88f2bcf584f89f
|
4
|
+
data.tar.gz: 64789bb99cb5f94ec982d829a0d9373d14077e0302791137301aecc219c2bfa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ad45351598cab222639f72999b4b52bae6dae07bc1a5c79f8ea0eb249867aaf84e5f65fe9ce78dc8527acdba94ca009402ccf44b29fd8d65905bf1f2385eea
|
7
|
+
data.tar.gz: b55688e0b3635f12b53edc9d3bb6377520e877bd79550b96e65c0d9955b09cf760fdc6cba5b02e050105d428127f0857f0ee59bb6f4cd953995dee26f812fcbd
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
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.
|
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.
|
13
|
-
diff-lcs (1.
|
14
|
-
docile (1.
|
12
|
+
ast (2.4.2)
|
13
|
+
diff-lcs (1.5.0)
|
14
|
+
docile (1.4.0)
|
15
15
|
file_utils (1.1.2)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
27
|
-
rspec-
|
28
|
-
|
29
|
-
rspec-
|
30
|
-
rspec-
|
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.
|
33
|
-
rspec-mocks (3.
|
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.
|
36
|
-
rspec-support (3.
|
37
|
-
rubocop (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.
|
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, <
|
44
|
-
rubocop-
|
45
|
-
|
46
|
-
|
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.
|
49
|
-
docile (~> 1.1
|
50
|
-
|
51
|
-
|
52
|
-
simplecov-html (0.
|
53
|
-
|
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
|
-
|
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
|
-
|
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(
|
13
|
+
configure_sizes(fly)
|
14
14
|
configure_labels('')
|
15
15
|
end
|
16
16
|
|
data/lib/usps_flags/core.rb
CHANGED
@@ -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')
|
data/lib/usps_flags/generate.rb
CHANGED
@@ -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.
|
6
|
-
s.date = '
|
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 = '
|
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.
|
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:
|
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.
|
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
|