textile2html 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/textile2html.rb +1 -1
- data/textile2html.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/textile2html.rb
CHANGED
@@ -60,7 +60,7 @@ class Textile2Html
|
|
60
60
|
|
61
61
|
erb = ERB.new(File.read(options[:layout]))
|
62
62
|
html = erb.result(b)
|
63
|
-
rel_path = src_file.sub(
|
63
|
+
rel_path = src_file.sub(/^#{Regexp.escape(src_dir)}\//, '')
|
64
64
|
dest_rel_path = rel_path.sub(/\.textile$/, '.html')
|
65
65
|
dest_path = File.expand_path(dest_rel_path, options[:dest_dir])
|
66
66
|
dest_dir = File.dirname(dest_path)
|
data/textile2html.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- akimatter
|
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
139
|
requirements:
|
140
140
|
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
hash:
|
142
|
+
hash: 3955570532499151001
|
143
143
|
segments:
|
144
144
|
- 0
|
145
145
|
version: "0"
|