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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96b722d371478d5978e17bc5f174e8706178e69be7976dd56548620224994b59
4
- data.tar.gz: 9d2e726c677dd5cc021d2a351425653811bc4cadb3dbeb35d3afc9be33c62d00
3
+ metadata.gz: a3f0bbdf432d280a7867fdf3d4cd42d9ea1a1f1bcbc155cb631b9629933d40b9
4
+ data.tar.gz: 7e82ccfe0ba83c9664a4c95b5e6da40771a85a99becdf7c76cbd3e229bfc4039
5
5
  SHA512:
6
- metadata.gz: 66797f5b2f22a5c887351308d948efafea434211806b24c28663c1440daab5bb40f85c8742c36129f5af412a78602fbeb51c810aadd8eb32e2a0777f622a57f1
7
- data.tar.gz: 91a60392d0ba0ff67f439280273627d518f04556215686c55fc63eb0278d6821aa8826a7a4a423738d9ddefeccc04ad213800e08f4d66937b032349733e1e191
6
+ metadata.gz: 42faccac2e3284d76b12bbd26b27812b23576ce4569d164481359ba856b789a88cbd42a674cbdf4014751d15d6227c87f769e28b52f35fef0989a4c50c7a2614
7
+ data.tar.gz: c88594bb16de059b7cf7f7d3baa60934a007d413cef0c2323d480abaced05a9a2828e34f13ffc792ac5a9a5748329051b09b0f3227ffbddb186b284ba1352479
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps_flags (0.3.24)
4
+ usps_flags (0.3.25)
5
5
  file_utils (~> 1.1, >= 1.1.2)
6
6
  mini_magick (~> 4.8, >= 4.8.0)
7
7
  rubyzip (~> 1.2, >= 1.2.1)
@@ -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 0 0
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
- <path d="M 0 0
78
- l #{@fly/2} #{@hoist*1/12}
79
- l 0 #{@hoist*10/12}
80
- l -#{@fly/2} #{@hoist*1/12}
81
- " fill="#{@blue}" />
82
- <path d="M #{@fly/2} #{@hoist*1/12}
83
- l #{@fly/4} #{@hoist*1/24}
84
- l 0 #{@hoist*9/12}
85
- l -#{@fly/4} #{@hoist*1/24}
86
- " fill="#FFFFFF" />
87
- <path d="M #{@fly*3/4} #{@hoist*3/24}
88
- l #{@fly/4} #{@hoist*1/24}
89
- l -#{@fly/5} #{@hoist/3}
90
- l #{@fly/5} #{@hoist/3}
91
- l -#{@fly/4} #{@hoist*1/24}
92
- " fill="#{@red}" />
93
- <path d="M 0 0
94
- l #{@fly} #{@hoist/6}
95
- l -#{@fly/5} #{@hoist/3}
96
- l #{@fly/5} #{@hoist/3}
97
- l -#{@fly} #{@hoist/6}
98
- " fill="none" stroke="#000000" stroke-width="#{USPSFlags::Config::BASE_FLY/600}" />
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
- "width=\"1024pt\" height=\"682pt\" viewBox=\"0 0 3072 2048\""
7
+ 'width="1024" height="682" viewBox="0 0 3072 2048"'
8
8
  )
9
9
  end
10
10
 
@@ -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="614pt" height="409pt" viewBox="0 0 3072 2048" preserveAspectRatio="xMidYMid meet">
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>
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'usps_flags'
3
- s.version = '0.3.24'
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.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.24
4
+ version: 0.3.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander