usps_flags-burgees 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile.lock +2 -2
- data/lib/usps_flags/burgees/builtins.rb +5 -3
- data/usps_flags-burgees.gemspec +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dfbe4de0cf3f84e19f9962ac2468d10d9771304
|
4
|
+
data.tar.gz: cb098ab6344283502c6aa87dee64fc231781be04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffef84491af30a92483bfe253ad143b7efcf99364ad95150b2744242e73b391d0c67335c845cf6b0594caa45405dd9fe97b7112d7dd36c3ab16bbbfd6beb84be
|
7
|
+
data.tar.gz: b3eb29ad3dbea269cd67e92a7be2871f1c1f4c8d9ec2a39303e572abd4ad195ae147d2b5880949568a67ebf82bcde1c9015e808c7af3c71da78f956519d4c380
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
usps_flags-burgees (0.0.
|
4
|
+
usps_flags-burgees (0.0.10)
|
5
5
|
usps_flags (~> 0.3, >= 0.3.11)
|
6
6
|
|
7
7
|
GEM
|
@@ -34,7 +34,7 @@ GEM
|
|
34
34
|
json (>= 1.8, < 3)
|
35
35
|
simplecov-html (~> 0.10.0)
|
36
36
|
simplecov-html (0.10.2)
|
37
|
-
usps_flags (0.3.
|
37
|
+
usps_flags (0.3.12)
|
38
38
|
file_utils (~> 1.1, >= 1.1.2)
|
39
39
|
mini_magick (~> 4.8, >= 4.8.0)
|
40
40
|
rubyzip (~> 1.2, >= 1.2.1)
|
@@ -2,14 +2,16 @@
|
|
2
2
|
#
|
3
3
|
# @private
|
4
4
|
class USPSFlags::Burgees::Builtins
|
5
|
+
@@builtins_dir = "#{File.expand_path(File.dirname(__FILE__))}/builtins"
|
6
|
+
|
5
7
|
def self.available
|
6
|
-
Dir.glob("
|
8
|
+
Dir.glob("#{@@builtins_dir}/**/*.svg").map { |b|
|
7
9
|
b.split("/").last.split(".svg").first
|
8
10
|
}.map(&:to_sym)
|
9
11
|
end
|
10
12
|
|
11
13
|
def self.get(burgee)
|
12
|
-
raise USPSFlags::Errors::UnknownBurgee unless self.available.include?(burgee)
|
13
|
-
::File.read("
|
14
|
+
raise USPSFlags::Errors::UnknownBurgee "Looked in #{@@builtins_dir}" unless self.available.include?(burgee)
|
15
|
+
::File.read("#{@@builtins_dir}/#{burgee}.svg")
|
14
16
|
end
|
15
17
|
end
|
data/usps_flags-burgees.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'usps_flags-burgees'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '2017-11-
|
3
|
+
s.version = '0.0.10'
|
4
|
+
s.date = '2017-11-09'
|
5
5
|
s.summary = 'Flag generator for United States Power Squadrons burgees'
|
6
6
|
s.description = 'An extension to the flag image (PNG, SVG) generator for United States Power Squadrons to generate burgees.'
|
7
7
|
s.homepage = 'http://rubygems.org/gems/usps_flags-burgees'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usps_flags-burgees
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Fiander
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
3YzYAc+kXfD7kkzA2NMvLT6Q1v03qQyIZ8BS8SNk5wLGAdLM+IravFDLEs448fjz
|
31
31
|
lEAU0RHLFVbE+CXW6makIlWGHR0=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2017-11-
|
33
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: usps_flags
|
metadata.gz.sig
CHANGED
Binary file
|