fontcustom 1.3.5.pre → 1.3.5

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: 03162e2e3d2f981836841779efa778ea14db503b
4
- data.tar.gz: ee716312d19ebe9444301e1915388ca8e94748cc
3
+ metadata.gz: 7bb98673956f8d1fb1104898456348f491017f60
4
+ data.tar.gz: 68bd540c06bac96d0c52cc88a342052598137113
5
5
  SHA512:
6
- metadata.gz: 5b44778820e39ae89a45f682e799894357c29a6e12ea90d312a7585c31672ddd9a670558b0383714cd61ad5eaae12769e960c7c0bfee969b49b0f97f0d2b296a
7
- data.tar.gz: fc12e842ed7b575721ca81d9dc08036545e45843464ebdc3c714b05575a3347a8e6c369ce6a178737d72522ecce5d6df2051f7ac512bf94b3273de8b316c0967
6
+ metadata.gz: d4dac02e94a65f6c1ff6b912245e8028b637b8f21541f9622377a71638443c802836828f54c90c2638d72e9063673eb9f04e40a5f3c3a7ccd8bb55f553579e15
7
+ data.tar.gz: da2ed0b92e8cb795ae2cd7d25bd72d865e6f23a02d591e223b5762bfd64ed35c0300c73571c5cbcf88faabb0566d08a99bed1610142c14b4b76c25fe4472b28c
@@ -6,7 +6,6 @@ on the menu:
6
6
 
7
7
  * **Ruby on Rails integration**
8
8
  * **Compass integration**
9
- * Base 64 encode fonts into CSS
10
9
  * Templates for LESS, stylus, etc.
11
10
  * Ligature support
12
11
  * Windows support
@@ -136,7 +136,7 @@ module Fontcustom
136
136
  font-family: "#{font_name}";
137
137
  src: #{url}("#{path}.eot");
138
138
  src: #{url}("#{path}.eot?#iefix") format("embedded-opentype"),
139
- #{url}(#{woff_data_uri}),
139
+ url("#{woff_data_uri}"),
140
140
  #{url}("#{path}.woff") format("woff"),
141
141
  #{url}("#{path}.ttf") format("truetype"),
142
142
  #{url}("#{path}.svg##{font_name}") format("svg");
@@ -158,7 +158,7 @@ module Fontcustom
158
158
 
159
159
  def woff_base64
160
160
  woff_path = File.join(@options[:output][:fonts], "#{@font_path_alt}.woff")
161
- Base64.encode64(File.read(File.join(woff_path))).gsub("\n", "")
161
+ Base64.encode64(File.binread(File.join(woff_path))).gsub("\n", "")
162
162
  end
163
163
 
164
164
  def glyph_selectors
@@ -47,14 +47,13 @@ if options['autowidth']:
47
47
  #
48
48
 
49
49
  def removeSwitchFromSvg( file ):
50
- svgfile = open(file, 'r+')
51
- tmpsvgfile = tempfile.NamedTemporaryFile(suffix=".svg", delete=False)
50
+ svgfile = open(file, 'r')
52
51
  svgtext = svgfile.read()
53
- svgfile.seek(0)
52
+ svgfile.close()
53
+ tmpsvgfile = tempfile.NamedTemporaryFile(suffix=".svg", delete=False)
54
54
  svgtext = svgtext.replace('<switch>', '')
55
55
  svgtext = svgtext.replace('</switch>', '')
56
56
  tmpsvgfile.file.write(svgtext)
57
- svgfile.close()
58
57
  tmpsvgfile.file.close()
59
58
 
60
59
  return tmpsvgfile.name
@@ -1,3 +1,3 @@
1
1
  module Fontcustom
2
- VERSION = "1.3.5.pre"
2
+ VERSION = "1.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontcustom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5.pre
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kai Zau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-21 00:00:00.000000000 Z
12
+ date: 2014-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -191,9 +191,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - '>'
194
+ - - '>='
195
195
  - !ruby/object:Gem::Version
196
- version: 1.3.1
196
+ version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
199
  rubygems_version: 2.1.9