keepyourhead 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module KeepYourHead
3
3
  module Project
4
4
  Major = 0
5
5
  Minor = 2
6
- Subminor = 1
6
+ Subminor = 2
7
7
 
8
8
  FileMajor = 0
9
9
  FileMinor = 1
@@ -32,7 +32,13 @@ module Database
32
32
  def createImage(type, flashcard, options = {})
33
33
  latex = latex_code( type, flashcard, options )
34
34
 
35
- compileLatex ::File.dirname(flashcard.file.filename), latex, options
35
+ directory =
36
+ if flashcard.file.filename then
37
+ ::File.dirname(flashcard.file.filename)
38
+ else
39
+ ::File.expand_path "."
40
+ end
41
+ compileLatex directory, latex, options
36
42
  end
37
43
 
38
44
  def content(type,flashcard, options = {})
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: keepyourhead
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.1
7
- date: 2008-10-02 00:00:00 +03:00
6
+ version: 0.2.2
7
+ date: 2008-10-03 00:00:00 +03:00
8
8
  summary: KeepYourHead is a latex based flashcard trainer under GPL3
9
9
  require_paths:
10
10
  - lib