textile2html 0.1.1 → 0.1.2

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 CHANGED
@@ -1 +1 @@
1
- 0.1.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("#{Regexp.escape(src_dir)}/", '')
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{textile2html}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["akimatter"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.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: 292681208699901645
142
+ hash: 3955570532499151001
143
143
  segments:
144
144
  - 0
145
145
  version: "0"