filestojs 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FilesToJS.rb +1 -1
- metadata +1 -1
data/lib/FilesToJS.rb
CHANGED
@@ -21,7 +21,7 @@ class FilesToJs
|
|
21
21
|
file_string = ""
|
22
22
|
File.open("#{file_path}",'r') do |f1|
|
23
23
|
while line = f1.gets
|
24
|
-
file_string = file_string + line.gsub('\'','
|
24
|
+
file_string = file_string + line.gsub('\'',''').strip
|
25
25
|
end
|
26
26
|
end
|
27
27
|
@js = @js + "#{@js_object_name}['#{file_filename}']='#{file_string}';"
|