fnando-kitabu 0.3.9 → 0.3.10
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.
- data/VERSION +1 -1
- data/kitabu.gemspec +2 -2
- data/lib/kitabu.rb +1 -1
- data/lib/kitabu/base.rb +1 -1
- data/lib/kitabu/blackcloth.rb +4 -5
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.10
|
data/kitabu.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{kitabu}
|
|
8
|
-
s.version = "0.3.
|
|
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-
|
|
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.
|
data/lib/kitabu.rb
CHANGED
data/lib/kitabu/base.rb
CHANGED
data/lib/kitabu/blackcloth.rb
CHANGED
|
@@ -113,11 +113,10 @@ class BlackCloth < RedCloth
|
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
def image_size(img)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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.
|
|
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-
|
|
12
|
+
date: 2009-09-13 00:00:00 -07:00
|
|
13
13
|
default_executable: kitabu
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|