usps_flags 0.3.24 → 0.3.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/spec/usps_flags/core_spec.rb +26 -24
- data/spec/usps_flags/generate_spec.rb +1 -1
- data/spec/usps_flags_spec.rb +1 -1
- data/usps_flags.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3f0bbdf432d280a7867fdf3d4cd42d9ea1a1f1bcbc155cb631b9629933d40b9
|
4
|
+
data.tar.gz: 7e82ccfe0ba83c9664a4c95b5e6da40771a85a99becdf7c76cbd3e229bfc4039
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42faccac2e3284d76b12bbd26b27812b23576ce4569d164481359ba856b789a88cbd42a674cbdf4014751d15d6227c87f769e28b52f35fef0989a4c50c7a2614
|
7
|
+
data.tar.gz: c88594bb16de059b7cf7f7d3baa60934a007d413cef0c2323d480abaced05a9a2828e34f13ffc792ac5a9a5748329051b09b0f3227ffbddb186b284ba1352479
|
data/Gemfile.lock
CHANGED
@@ -61,11 +61,11 @@ describe USPSFlags::Core do
|
|
61
61
|
it "should correctly generate the swallowtail field" do
|
62
62
|
expect(USPSFlags::Core.field(style: :swallowtail)).to eql(
|
63
63
|
<<~SVG
|
64
|
-
<path d="M
|
64
|
+
<path d="M 2 1
|
65
65
|
l #{@fly} #{@hoist/6}
|
66
66
|
l -#{@fly/5} #{@hoist/3}
|
67
67
|
l #{@fly/5} #{@hoist/3}
|
68
|
-
l -#{@fly} #{@hoist/6}
|
68
|
+
l -#{@fly} #{@hoist/6} z
|
69
69
|
" fill="#FFFFFF" stroke="#000000" stroke-width="#{USPSFlags::Config::BASE_FLY/600}" />
|
70
70
|
SVG
|
71
71
|
)
|
@@ -74,28 +74,30 @@ describe USPSFlags::Core do
|
|
74
74
|
it "should correctly generate the blue past field" do
|
75
75
|
expect(USPSFlags::Core.field(style: :past, color: :blue)).to eql(
|
76
76
|
<<~SVG
|
77
|
-
<
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
77
|
+
<g transform="translate(2, 1)">
|
78
|
+
<path d="M 0 5
|
79
|
+
l #{@fly/2} #{@hoist*1/12}
|
80
|
+
l 0 #{@hoist*10/12}
|
81
|
+
l -#{@fly/2} #{@hoist*1/12}
|
82
|
+
" fill="#{@blue}" />
|
83
|
+
<path d="M #{@fly/2} #{@hoist*1/12}
|
84
|
+
l #{@fly/4} #{@hoist*1/24}
|
85
|
+
l 0 #{@hoist*9/12}
|
86
|
+
l -#{@fly/4} #{@hoist*1/24}
|
87
|
+
" fill="#FFFFFF" />
|
88
|
+
<path d="M #{@fly*3/4} #{@hoist*3/24}
|
89
|
+
l #{@fly/4} #{@hoist*1/24}
|
90
|
+
l -#{@fly/5} #{@hoist/3}
|
91
|
+
l #{@fly/5} #{@hoist/3}
|
92
|
+
l -#{@fly/4} #{@hoist*1/24}
|
93
|
+
" fill="#{@red}" />
|
94
|
+
<path d="M 0 0
|
95
|
+
l #{@fly} #{@hoist/6}
|
96
|
+
l -#{@fly/5} #{@hoist/3}
|
97
|
+
l #{@fly/5} #{@hoist/3}
|
98
|
+
l -#{@fly} #{@hoist/6} z
|
99
|
+
" fill="none" stroke="#000000" stroke-width="#{USPSFlags::Config::BASE_FLY/600}" />
|
100
|
+
</g>
|
99
101
|
SVG
|
100
102
|
)
|
101
103
|
end
|
@@ -4,7 +4,7 @@ describe USPSFlags::Generate do
|
|
4
4
|
describe "general features" do
|
5
5
|
it "should generate a flag with the correct size" do
|
6
6
|
expect(USPSFlags::Generate.svg("LtC", outfile: "")).to include(
|
7
|
-
|
7
|
+
'width="1024" height="682" viewBox="0 0 3072 2048"'
|
8
8
|
)
|
9
9
|
end
|
10
10
|
|
data/spec/usps_flags_spec.rb
CHANGED
@@ -5,7 +5,7 @@ describe USPSFlags do
|
|
5
5
|
@valid_header = <<~SVG
|
6
6
|
<?xml version="1.0" standalone="no"?>
|
7
7
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
8
|
-
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="
|
8
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="614" height="409" viewBox="0 0 3072 2048" preserveAspectRatio="xMidYMid meet">
|
9
9
|
<title>LTC</title>
|
10
10
|
<metadata>
|
11
11
|
<desc id="created-by">Julian Fiander</desc>
|
data/usps_flags.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'usps_flags'
|
3
|
-
s.version = '0.3.
|
3
|
+
s.version = '0.3.25'
|
4
4
|
s.date = '2019-04-17'
|
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.'
|