lib/dashcode-converter.rb in dashcode-converter-0.0.1 vs lib/dashcode-converter.rb in dashcode-converter-0.1.0

- old
+ new

@@ -1,9 +1,10 @@ require 'json' require 'nokogiri' require 'erb' require 'fileutils' +require 'v8' module DashcodeConverter JSON_PARAMS= { :indent=> " ", @@ -29,17 +30,19 @@ end end class String def remove_indent - match= self.match(/(^\s+)/) - return self unless match - self.gsub(/^#{match[1]}/, '').strip + str= sub(/^\n*/, "") + match= str.match(/(^\s+)/) + return str unless match + str.gsub(/^#{match[1]}/, '').strip end def indent(str) self.gsub(/^/, str) end end require 'dashcode-converter/controller' require 'dashcode-converter/nib' +require 'dashcode-converter/scripts' require 'dashcode-converter/project' \ No newline at end of file