web_font 0.1.10 → 0.1.11

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: eb753424337541b17625e10dbd146b1f84a35c0b
4
- data.tar.gz: b6076da3f9391c9083a15af5833126ad7cac6744
3
+ metadata.gz: 2ae183fa487332dced1057571b3cc38f66dfbd8b
4
+ data.tar.gz: 01dd9580374e4b9876be8f6e736a551afff975db
5
5
  SHA512:
6
- metadata.gz: a165a46a45ece9e425058f888c3005d59f38d4f2424337738b825d6cfd8b0d3ec4c8d05d4c9382248cbde42aff074ed171302eb4943e4d45b5240b6ad4bad531
7
- data.tar.gz: 6007ef20f7352538551218337e0c58fa8a3593cdd2135932df5fe9e9163f55a27c1372bc4a8bfaded4551f9a46d89159b3b1f754a2399e4cf8a70f789b1246f3
6
+ metadata.gz: d4414f7ba24c86ec9f09a76292f9ba5875975b8bba70d4f4e58403181871462face98c662a71d640be93cf4aac81fe13caaa96d141eb0615fe20ad846172b485
7
+ data.tar.gz: 072fa4b030642b596e148321d80c0758547f7a0288696c7cd50d7138f217a3fc8c80351defced18ff937836d8ed163e9cd77b35fd76223774c138d6892d3e2f5
@@ -15,8 +15,10 @@ module WebFont
15
15
  font_family = font_family.downcase
16
16
  alphabet = font_family[0]
17
17
  hash = indices[alphabet]
18
- start = hash['start']
19
18
 
19
+ return {} unless hash
20
+
21
+ start = hash['start']
20
22
  item = while start <= hash['end']
21
23
  break items[start] if match?(font_family, items[start]['family'])
22
24
  start += 1
@@ -1,3 +1,3 @@
1
1
  module WebFont
2
- VERSION = '0.1.10'
2
+ VERSION = '0.1.11'
3
3
  end