sztupy-shaml 0.3.1 → 0.3.5
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/lib/shaml.rb +6 -2
- metadata +1 -1
data/lib/shaml.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'zip/zip'
|
3
3
|
|
4
|
-
SHAML_VERSION="0.3.
|
4
|
+
SHAML_VERSION="0.3.5"
|
5
5
|
|
6
6
|
TEMPLATEDIR = File.join(File.dirname(__FILE__),"templates")
|
7
7
|
|
@@ -112,7 +112,11 @@ else
|
|
112
112
|
File.open(infname,"rb") do |infile|
|
113
113
|
File.open(outfname,"wb+") do |outfile|
|
114
114
|
puts "Writing #{outfname}"
|
115
|
-
|
115
|
+
if infname=~/\.dll/ then
|
116
|
+
outfile.write infile.read
|
117
|
+
else
|
118
|
+
outfile.write infile.read.gsub("WebBase",name);
|
119
|
+
end
|
116
120
|
end
|
117
121
|
end
|
118
122
|
end
|