scarf 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83409d7ba92e1916a731e13f3f3eddefe7ae7c46
4
- data.tar.gz: b4683a50e8dd5e739e4c435e686cccf50bdf599a
3
+ metadata.gz: a32418ae1867d5b433b912e3d2caf903fb856cc7
4
+ data.tar.gz: 306f599cddd5e45ae196602e83484531d0c28aa7
5
5
  SHA512:
6
- metadata.gz: 07d0bfd396807645232bdcbc5c2eb14822678a1acf3c8bce93533dd62ccdd4a9930f6243769fa005f1545dab16ca2722a685e949099a9daf03437f1ddb0ffadf
7
- data.tar.gz: 5f9247ed99a4922c12fc0db9171776038a3e1b067df936b167da74268d8bb6bb97f966b0804932d43c4f7365162ec903fa2d571be2093b5bf3ffa932ac6e4ec4
6
+ metadata.gz: 903608e5c91661a502524467265a4914323efa87210ccdb5660722b20fbcec50a942869b1636e3891f96531494a5cda31ca9c9348fde42b5678b95f8eba4f2ea
7
+ data.tar.gz: 5a28bb71a8b3902e4c08a28cb3c720e34034559cea2106f6d231b0f39a3f1e09440139e3d12f4ba96a2681806dd5dd032b9147c5201f7bddbdb6482b72bac2a0
@@ -21,9 +21,11 @@ module Scarf
21
21
  # Surround the font name with single quotes if there's a space in the name, and isn't quoted already.
22
22
  def quoted_fonts
23
23
  quoted_fonts = @font_family.map do |font|
24
- return font unless font.include?(' ')
25
- return font if font[0] == "'"
26
- "'#{font}'"
24
+ if font.include?(' ') && font[0] != "'"
25
+ "'#{font}'"
26
+ else
27
+ font
28
+ end
27
29
  end
28
30
 
29
31
  quoted_fonts.join(', ')
data/lib/scarf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Scarf
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scarf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hari Gopal
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-20 00:00:00.000000000 Z
12
+ date: 2017-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake