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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17cdb6d1a1b7884bacbc3d43b20dabc43705d7da
4
- data.tar.gz: 45b65770285a0f819a272f14e23715f216684e3b
3
+ metadata.gz: 3dfbe4de0cf3f84e19f9962ac2468d10d9771304
4
+ data.tar.gz: cb098ab6344283502c6aa87dee64fc231781be04
5
5
  SHA512:
6
- metadata.gz: 75caed7857b7c30d4dbef2158a91b1f9ddfa4200e7b53c2f48b0092d4c6bb3dac37f25c4fc3d47f85ba89aee43438b9615f1c4a495cedc8ab7d97a94c03e50bf
7
- data.tar.gz: 23676c88f54dab8765b5351be84f913b4c97c0f6056eb73369619467465de58d003a41489dcf937b94bd5d4ce7def66b5db716fb8d48747cbac879fb12886403
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.9)
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.11)
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("lib/usps_flags/burgees/builtins/**/*.svg").map { |b|
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("lib/usps_flags/burgees/builtins/#{burgee}.svg")
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
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'usps_flags-burgees'
3
- s.version = '0.0.9'
4
- s.date = '2017-11-08'
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.9
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-08 00:00:00.000000000 Z
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