fontastic2sass 1.0.1 → 1.0.2

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: 9f36e68d54c12954dbc5b5c68ba9bb2483b009df
4
- data.tar.gz: 345b14f6d1c2f91e5ebbe49679e9fa7183f019b9
3
+ metadata.gz: ee5ad6d93a3df13a0e1b5eb7bbec5919b1f0683b
4
+ data.tar.gz: f97630188dde419c785bc8fac845c944a21df558
5
5
  SHA512:
6
- metadata.gz: 4a0ab71312f94695383d94ad4c8341f13b2e8e2beaad2d5f1fc7d2e209ee0928fe54988be0132ef167336f7a99b231e4a8a515479194180d3ade198fa860b99c
7
- data.tar.gz: 4ffa1926ff5636b9cd0a51ca397d208844718dd1e25e5ebd0dc75d742651a84f46e8a3edfa8c0eee7feffe55c5169f012f1b8dbc4f18284a85548a0ca3cdc80e
6
+ metadata.gz: a558ecce0a2b5c5978de0392fee6adee97642742528b01237d2b05409e55c9f60a9ce0235edc9d351f5bfabe2c96a12606b50515cdbd765933768dc2ac7da0f1
7
+ data.tar.gz: a32e3b59e843360219b9efb4c482491aca9bee42d14443e4a3808dacd6434999ce129d673502635df3734c1d56c49f8eb5f7d6d606c18e2dbc38acf27fe9f7c3
@@ -13,7 +13,7 @@ class Fontastic2Sass::Font
13
13
 
14
14
  @raw_icons.each do |icon|
15
15
  icons[icon.first] = {
16
- codepoint: icon.last
16
+ codepoint: icon.last.include?('\\') ? icon.last : '\%0x' % icon.last.codepoints.first.ord
17
17
  }
18
18
  end
19
19
 
@@ -7,9 +7,9 @@ class Fontastic2Sass::Sass
7
7
  def initialize(font, syntax = 'sass', compatible = false)
8
8
  @font = font
9
9
  @syntax = syntax
10
-
10
+
11
11
  @format = compatible ? 'list' : 'map'
12
-
12
+
13
13
  @code = sass_convert 'sass', syntax, template(@format)
14
14
  end
15
15
 
@@ -1,7 +1,7 @@
1
1
  $icons: ( <%=
2
2
  list = []
3
3
  icons.each do |icon, contents|
4
- list.push "#{icon}: '#{contents[:codepoint]}'"
4
+ list.push "'#{icon}': '#{contents[:codepoint]}'"
5
5
  end
6
6
 
7
7
  list.join(", ")
@@ -1,4 +1,4 @@
1
1
  module Fontastic2Sass
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontastic2sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Foster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor