usps_flags 0.6.2 → 0.6.3
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 +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1fce1ce11314457a3e98a2ab0fcdb8027622afe1b1236403e966e903da0ff68
|
4
|
+
data.tar.gz: 31ca874c27dc4ea1874798a4bbd0071ec704915e9534470f6b5d3f318d9f3cfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95f901e036ee037531a550b074f111693958380e77e855b3f9e2d851a7407c96fec5fd77c9f9af0798d28edeece9adf2c21f3640eb635a512d9404a32d8cb0ec
|
7
|
+
data.tar.gz: 12cd8344933826262a3bbac4fa3e8d648d04d668d0d4d39937ff15e99645eed83516809e613838708b20f80120f1a3126cf93c9212c0af8772f838a65f8e97cb
|
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.3)
|
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.11.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.3'
|
6
|
+
s.date = '2022-03-10'
|
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.6.
|
4
|
+
version: 0.6.3
|
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: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: file_utils
|
@@ -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
|