Skip to content
This repository
Browse code

tidy up

  • Loading branch information...
commit 86f40cbe7463331d6dd912b696c5fa05683e269e 1 parent e8e5b9e
authored July 09, 2009
6  doc/README → README
@@ -14,14 +14,14 @@ Here's a rundown of the functionality:
14 14
 * Validation rules are applied to HTML elements by adding special markup classes. E.g. adding ':required' to element's classes
15 15
 makes the element being validated against provided value
16 16
 * Instead of markup, one can use external definition provided as json structure.
17  
-* It is Ajax enabled in that sence one can declare particular field being validated by the result of the server response.
  17
+* It is Ajax enabled in that sense one can declare particular field being validated by the result of the server response.
18 18
 E.g. adding ':ajax;/path_on_server/user_exists.json' to element's classes will cause any change to value of that element being
19 19
 sent to server as request. The response is expected to be json structure in the form of:
20 20
  {success: (true/false), [message: (MESSAGE_TEXT)], [advice_id: (ID_OF_THE_HTML_ELEMENT_USED_FOR_INJECTING_THE_MESSAGE)]}
21 21
 
22 22
 
23 23
 To have a html form with 4 fields: username, email, password and repeated password.
24  
-Where username is rquired and has to be at least 5 characters long and unique in the system, email is valid email addres
  24
+Where username is required and has to be at least 5 characters long and unique in the system, email is valid email adders
25 25
 password is required and has to be at least 6 character long, repeated password has to be the same as password, then one use
26 26
 the following HTML:
27 27
 
@@ -31,7 +31,7 @@ the following HTML:
31 31
 <input id="pass" class=":required :min_length;6" type="password">
32 32
 <input id="repeat_pass" class=":same_as;pass" type="password">
33 33
 
34  
-* The the deafult (:;) markup prefix and separator can be reconfigured.
  34
+* The the default (:;) markup prefix and separator can be reconfigured.
35 35
 
36 36
 * :ajax;http://host.com/user_exists.json in the example is server-side validation which Vanadium uses for checking if given username
37 37
 is already taken.
2  RakeFile
@@ -34,7 +34,7 @@ desc 'Package Vanadium for distribution.'
34 34
 task :dist => :minify do
35 35
   puts 'Packaging distribution...'
36 36
   FileUtils.cp Dir[DOC + '/**/*'], DIST
37  
-  
  37
+  FileUtils.cp 'README', DIST
38 38
   Zip::ZipFile.open(DIST + "/vanadium.zip", Zip::ZipFile::CREATE) do |zip|
39 39
     DIST_LIST.each do |f|
40 40
       zip.get_output_stream(File.basename(f)) { |o| o << File.open(f).read } if File.exists? f
6  dist/README
@@ -14,14 +14,14 @@ Here's a rundown of the functionality:
14 14
 * Validation rules are applied to HTML elements by adding special markup classes. E.g. adding ':required' to element's classes
15 15
 makes the element being validated against provided value
16 16
 * Instead of markup, one can use external definition provided as json structure.
17  
-* It is Ajax enabled in that sence one can declare particular field being validated by the result of the server response.
  17
+* It is Ajax enabled in that sense one can declare particular field being validated by the result of the server response.
18 18
 E.g. adding ':ajax;/path_on_server/user_exists.json' to element's classes will cause any change to value of that element being
19 19
 sent to server as request. The response is expected to be json structure in the form of:
20 20
  {success: (true/false), [message: (MESSAGE_TEXT)], [advice_id: (ID_OF_THE_HTML_ELEMENT_USED_FOR_INJECTING_THE_MESSAGE)]}
21 21
 
22 22
 
23 23
 To have a html form with 4 fields: username, email, password and repeated password.
24  
-Where username is rquired and has to be at least 5 characters long and unique in the system, email is valid email addres
  24
+Where username is required and has to be at least 5 characters long and unique in the system, email is valid email adders
25 25
 password is required and has to be at least 6 character long, repeated password has to be the same as password, then one use
26 26
 the following HTML:
27 27
 
@@ -31,7 +31,7 @@ the following HTML:
31 31
 <input id="pass" class=":required :min_length;6" type="password">
32 32
 <input id="repeat_pass" class=":same_as;pass" type="password">
33 33
 
34  
-* The the deafult (:;) markup prefix and separator can be reconfigured.
  34
+* The the default (:;) markup prefix and separator can be reconfigured.
35 35
 
36 36
 * :ajax;http://host.com/user_exists.json in the example is server-side validation which Vanadium uses for checking if given username
37 37
 is already taken.
BIN  dist/vanadium.zip
Binary file not shown

0 notes on commit 86f40cb

Please sign in to comment.
Something went wrong with that request. Please try again.