usps_flags-grades 0.0.7 → 0.0.8

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: 5a5991abb508061d741c0e065757ecc32ddbd14e878d1203dd45785916f6e5f1
4
- data.tar.gz: 6e53b7a1d08472ad0152747f96b236100c948142a995c845464e8125a3fe2ced
3
+ metadata.gz: 7a1af62f4a1307029234a0235262e74173db5dacc16ef87e85f498dee4898a3f
4
+ data.tar.gz: 7b7f085b360c55049221d7e2ed0fcb7cc35aa1388feaa2f467720d896e83825d
5
5
  SHA512:
6
- metadata.gz: 011e2f9724320cfb0fb8b07fc8d2c00b3b813226bedb5c94a7dea12b34fd8b9d3c86bd6bfcad507305c0fe6d5f2b0be54a3a23dfe6701f086b89aa88acdf88da
7
- data.tar.gz: 2b3ac1f555c1728eaf7dfeb1bdda2b0309d3a90e439b23c83803eb329a2f058f78580e71ca8eee7d79f3e66048f874949b7060956492615c41a3cd263e574218
6
+ metadata.gz: faa98be163dfaec298f587e28f81796c13081a6f0e34795e7877f37a4aa6f3719b381d95c91e83a99f777187f6cd1d7acdc62c94fc6093e58619c410174ce040
7
+ data.tar.gz: cc038bfa53f5bd03b28587ec89985cc0f28f96e853bec24231cd6638c5dc24dbbb9cac01012dbd79cca0867d799ee95e548b52716129e2e6cfd0da9ad31f1073
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps_flags-grades (0.0.7)
5
- usps_flags (~> 0.3, >= 0.3.21)
4
+ usps_flags-grades (0.0.8)
5
+ usps_flags (~> 0.4, >= 0.4.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -11,7 +11,7 @@ GEM
11
11
  docile (1.1.5)
12
12
  file_utils (1.1.2)
13
13
  json (2.1.0)
14
- mini_magick (4.9.2)
14
+ mini_magick (4.9.3)
15
15
  rake (12.2.1)
16
16
  rspec (3.7.0)
17
17
  rspec-core (~> 3.7.0)
@@ -26,13 +26,13 @@ GEM
26
26
  diff-lcs (>= 1.2.0, < 2.0)
27
27
  rspec-support (~> 3.7.0)
28
28
  rspec-support (3.7.0)
29
- rubyzip (1.2.2)
29
+ rubyzip (1.2.3)
30
30
  simplecov (0.15.1)
31
31
  docile (~> 1.1.0)
32
32
  json (>= 1.8, < 3)
33
33
  simplecov-html (~> 0.10.0)
34
34
  simplecov-html (0.10.2)
35
- usps_flags (0.3.21)
35
+ usps_flags (0.4.0)
36
36
  file_utils (~> 1.1, >= 1.1.2)
37
37
  mini_magick (~> 4.8, >= 4.8.0)
38
38
  rubyzip (~> 1.2, >= 1.2.1)
data/README.md CHANGED
@@ -21,6 +21,23 @@ end
21
21
  insignia.svg #=> Generates SVG file at "/path/to/svg/output.svg"
22
22
  ```
23
23
 
24
+ ## Security
25
+
26
+ This gem is cryptographically signed. To be sure the gem code hasn’t been
27
+ tampered with:
28
+
29
+ Add my public key as a trusted certificate:
30
+
31
+ ```sh
32
+ gem cert --add <(curl -Ls https://raw.github.com/jfiander/usps-flags_grades/master/certs/jfiander.pem)
33
+ ```
34
+
35
+ Then install the gem securely:
36
+
37
+ ```sh
38
+ gem install usps_flags-grades -P HighSecurity
39
+ ```
40
+
24
41
  ## License
25
42
 
26
43
  Actual images generated are
@@ -0,0 +1,26 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEdDCCAtygAwIBAgIBATANBgkqhkiG9w0BAQsFADBAMRIwEAYDVQQDDAlqc2Zp
3
+ YW5kZXIxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
4
+ bTAeFw0xOTAxMjMxNzM4MjVaFw0yMDAxMjMxNzM4MjVaMEAxEjAQBgNVBAMMCWpz
5
+ ZmlhbmRlcjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYD
6
+ Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigK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PJDnRy0Tq+Bt3ABYpXRxiGSdU0IaiswaAJbS/gE8o3F6cFt+
23
+ rXsgsbyfuQ2qLMlerkty7GJ+pHsj4MEVXsBm2nydroGlrfM2iNTUozBYAmSgPNRB
24
+ B1FdUkmlEmKUkHPDdhxKep/O05CqDPBfXI+1e6NvmOveMz0Hqh4JFm0LL1Z8RrJ3
25
+ jLN773uenk91I/YgJu6f1X7E5nN6BJNgL+hI0JdZrclhFvsWMGu3EA==
26
+ -----END CERTIFICATE-----
@@ -27,6 +27,7 @@ class USPSFlags::Grades::Grade
27
27
  end
28
28
 
29
29
  private
30
+
30
31
  def bar
31
32
  <<~SVG
32
33
  <rect x="0" y="0" width="100" height="35" fill="#{USPSFlags::Config::GOLD}" />
@@ -36,7 +37,7 @@ class USPSFlags::Grades::Grade
36
37
  def star
37
38
  <<~SVG
38
39
  <g transform="scale(0.25) translate(0, 150)">
39
- #{USPSFlags::Core::Star.new.svg.gsub("fill=\"#FFFFFF\"", "fill=\"#{USPSFlags::Config::GOLD}\"")}
40
+ #{USPSFlags::Core::Icons::Star.new.svg.gsub('fill="#FFFFFF"', "fill=\"#{USPSFlags::Config::GOLD}\"")}
40
41
  </g>
41
42
  SVG
42
43
  end
@@ -1,20 +1,20 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'usps_flags-grades'
3
- s.version = '0.0.7'
4
- s.date = '2019-02-08'
3
+ s.version = '0.0.8'
4
+ s.date = '2019-05-30'
5
5
  s.summary = 'Insignia generator for United States Power Squadrons'
6
6
  s.description = 'An extension to the flag image (PNG, SVG) generator for United States Power Squadrons to generate grade insignia.'
7
7
  s.homepage = 'http://rubygems.org/gems/usps_flags-grades'
8
8
  s.license = 'GPL-3.0'
9
9
  s.authors = ['Julian Fiander']
10
10
  s.email = 'julian@fiander.one'
11
- s.require_paths = ['lib', 'spec']
11
+ s.require_paths = %w[lib spec]
12
12
  s.files = `git ls-files`.split("\n")
13
13
  s.test_files = `git ls-files -- spec/*`.split("\n")
14
14
 
15
15
  s.required_ruby_version = '~> 2.4'
16
16
 
17
- s.add_runtime_dependency 'usps_flags', '~> 0.3', '>= 0.3.21'
17
+ s.add_runtime_dependency 'usps_flags', '~> 0.4', '>= 0.4.0'
18
18
 
19
19
  s.add_development_dependency 'rake', '~> 12.2', '>= 12.2.1'
20
20
  s.add_development_dependency 'rspec', '~> 3.7', '>= 3.7.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps_flags-grades
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2019-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: usps_flags
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.3.21
22
+ version: 0.4.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.3.21
32
+ version: 0.4.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -54,22 +54,22 @@ dependencies:
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 3.7.0
60
57
  - - "~>"
61
58
  - !ruby/object:Gem::Version
62
59
  version: '3.7'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.7.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: 3.7.0
70
67
  - - "~>"
71
68
  - !ruby/object:Gem::Version
72
69
  version: '3.7'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 3.7.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: simplecov
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,7 @@ files:
107
107
  - LICENSE
108
108
  - README.md
109
109
  - Rakefile
110
+ - certs/jfiander.pem
110
111
  - lib/usps_flags/grades.rb
111
112
  - lib/usps_flags/grades/config.rb
112
113
  - lib/usps_flags/grades/edpro.rb
@@ -137,7 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
138
  - !ruby/object:Gem::Version
138
139
  version: '0'
139
140
  requirements: []
140
- rubygems_version: 3.0.2
141
+ rubyforge_project:
142
+ rubygems_version: 2.7.6
141
143
  signing_key:
142
144
  specification_version: 4
143
145
  summary: Insignia generator for United States Power Squadrons