From fe35c941eb27c254562c437d80831276c19b9de7 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Thu, 11 Dec 2008 11:43:15 +0100 Subject: [PATCH] Split src code into lang, dom and ajax directories. --- lib/protodoc.rb | 1 + src/{ => ajax}/ajax.js | 0 src/{ => dom}/dom.js | 0 src/{ => dom}/event.js | 0 src/{ => dom}/form.js | 0 src/{ => dom}/selector.js | 0 src/{ => lang}/array.js | 0 src/{ => lang}/class.js | 0 src/{ => lang}/date.js | 0 src/{ => lang}/enumerable.js | 0 src/{ => lang}/function.js | 0 src/{ => lang}/hash.js | 0 src/{ => lang}/number.js | 0 src/{ => lang}/object.js | 0 src/{ => lang}/periodical_executer.js | 0 src/{ => lang}/range.js | 0 src/{ => lang}/regexp.js | 0 src/{ => lang}/string.js | 0 src/{ => lang}/template.js | 0 19 files changed, 1 insertion(+) rename src/{ => ajax}/ajax.js (100%) rename src/{ => dom}/dom.js (100%) rename src/{ => dom}/event.js (100%) rename src/{ => dom}/form.js (100%) rename src/{ => dom}/selector.js (100%) rename src/{ => lang}/array.js (100%) rename src/{ => lang}/class.js (100%) rename src/{ => lang}/date.js (100%) rename src/{ => lang}/enumerable.js (100%) rename src/{ => lang}/function.js (100%) rename src/{ => lang}/hash.js (100%) rename src/{ => lang}/number.js (100%) rename src/{ => lang}/object.js (100%) rename src/{ => lang}/periodical_executer.js (100%) rename src/{ => lang}/range.js (100%) rename src/{ => lang}/regexp.js (100%) rename src/{ => lang}/string.js (100%) rename src/{ => lang}/template.js (100%) diff --git a/lib/protodoc.rb b/lib/protodoc.rb index 31311b0..8695707 100644 --- a/lib/protodoc.rb +++ b/lib/protodoc.rb @@ -21,6 +21,7 @@ module Protodoc include Environment def initialize(filename) + filename = File.join(filename.split('/')) @filename = File.expand_path(filename) @template = ERB.new(IO.read(@filename), nil, '%') end diff --git a/src/ajax.js b/src/ajax/ajax.js similarity index 100% rename from src/ajax.js rename to src/ajax/ajax.js diff --git a/src/dom.js b/src/dom/dom.js similarity index 100% rename from src/dom.js rename to src/dom/dom.js diff --git a/src/event.js b/src/dom/event.js similarity index 100% rename from src/event.js rename to src/dom/event.js diff --git a/src/form.js b/src/dom/form.js similarity index 100% rename from src/form.js rename to src/dom/form.js diff --git a/src/selector.js b/src/dom/selector.js similarity index 100% rename from src/selector.js rename to src/dom/selector.js diff --git a/src/array.js b/src/lang/array.js similarity index 100% rename from src/array.js rename to src/lang/array.js diff --git a/src/class.js b/src/lang/class.js similarity index 100% rename from src/class.js rename to src/lang/class.js diff --git a/src/date.js b/src/lang/date.js similarity index 100% rename from src/date.js rename to src/lang/date.js diff --git a/src/enumerable.js b/src/lang/enumerable.js similarity index 100% rename from src/enumerable.js rename to src/lang/enumerable.js diff --git a/src/function.js b/src/lang/function.js similarity index 100% rename from src/function.js rename to src/lang/function.js diff --git a/src/hash.js b/src/lang/hash.js similarity index 100% rename from src/hash.js rename to src/lang/hash.js diff --git a/src/number.js b/src/lang/number.js similarity index 100% rename from src/number.js rename to src/lang/number.js diff --git a/src/object.js b/src/lang/object.js similarity index 100% rename from src/object.js rename to src/lang/object.js diff --git a/src/periodical_executer.js b/src/lang/periodical_executer.js similarity index 100% rename from src/periodical_executer.js rename to src/lang/periodical_executer.js diff --git a/src/range.js b/src/lang/range.js similarity index 100% rename from src/range.js rename to src/lang/range.js diff --git a/src/regexp.js b/src/lang/regexp.js similarity index 100% rename from src/regexp.js rename to src/lang/regexp.js diff --git a/src/string.js b/src/lang/string.js similarity index 100% rename from src/string.js rename to src/lang/string.js diff --git a/src/template.js b/src/lang/template.js similarity index 100% rename from src/template.js rename to src/lang/template.js