jitai 0.2.27 → 0.2.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/jitai.gemspec +1 -1
  3. data/lib/jitai.rb +4 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.27
1
+ 0.2.28
data/jitai.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jitai}
8
- s.version = "0.2.27"
8
+ s.version = "0.2.28"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kellydunn"]
data/lib/jitai.rb CHANGED
@@ -24,8 +24,10 @@ module Jitai
24
24
  if !File.exists?(other_file)
25
25
  puts "===== #{conversion_type.upcase} format not found. Attempting to convert... ====="
26
26
 
27
- # TODO fix broken conversion. thanks a lot ttf2eot for not having a apt-get
28
- %x{cd ttf2eot && ./ttf2eot < #{'../' + @cwd + font_file} > #{'../' + @cwd + font_file.split(".")[0] + conversion_type}}
27
+ # TODO fix incredibly bad hack
28
+ curr_dir = Dir.getcwd
29
+ ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.28/lib/ttf2eot/"
30
+ %x{cd #{ttf2eot_dir} && ./ttf2eot < #{'../' + @cwd + font_file} > #{'../' + @cwd + font_file.split(".")[0] + conversion_type} && cd #{curr_dir}}
29
31
  end
30
32
 
31
33
  # Rename files, account for conventions.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jitai
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 27
10
- version: 0.2.27
9
+ - 28
10
+ version: 0.2.28
11
11
  platform: ruby
12
12
  authors:
13
13
  - kellydunn