fnando-kitabu 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.9
1
+ 0.3.10
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kitabu}
8
- s.version = "0.3.9"
8
+ s.version = "0.3.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nando Vieira"]
12
- s.date = %q{2009-08-28}
12
+ s.date = %q{2009-09-13}
13
13
  s.default_executable = %q{kitabu}
14
14
  s.description = %q{A framework for creating e-books from Markdown/Textile text markup using Ruby.
15
15
  Using the Prince PDF generator, you'll be able to get high quality PDFs.
@@ -20,5 +20,5 @@ rescue LoadError => e
20
20
  end
21
21
 
22
22
  module Kitabu
23
- VERSION = "0.3.9"
23
+ VERSION = "0.3.10"
24
24
  end
@@ -71,7 +71,7 @@ module Kitabu
71
71
  end
72
72
 
73
73
  def generate_pdf
74
- IO.popen('prince %s -o %s' % [html_path, pdf_path])
74
+ IO.popen('prince %s -o %s' % [html_path, pdf_path]).close
75
75
  end
76
76
 
77
77
  def generate_html
@@ -113,11 +113,10 @@ class BlackCloth < RedCloth
113
113
  end
114
114
 
115
115
  def image_size(img)
116
- puts File.expand_path(img)
117
- output = IO.popen("file images/#{img}").read
118
- m, width, height = *output.match(/([0-9]+) x ([0-9]+)/)
119
-
120
- [width.to_i, height.to_i]
116
+ IO.popen("file images/#{img}") do |io|
117
+ m, width, height = *output.match(/([0-9]+) x ([0-9]+)/)
118
+ return [width.to_i, height.to_i]
119
+ end
121
120
  end
122
121
 
123
122
  # overriding inline method
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fnando-kitabu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-28 00:00:00 -07:00
12
+ date: 2009-09-13 00:00:00 -07:00
13
13
  default_executable: kitabu
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency