<commit_before>h1. Formtastic Validation JS Lib

h2. Dependencies

This lib uses "YUI 3 Test":http://developer.yahoo.com/yui/3/test for unit testing. Minifying is done using "yui-compressor":http://developer.yahoo.com/yui/compressor/

Do install yui-compressor before attempting to build the files.

h2. Testing

Open the formtastic_validation_test.htm file under the test directory. Modify the tests in the htm file directly.

h2. Building

Run this on the commandline

<pre>
  $ yui-compressor -o build/formtastic_validation.min.js src/formtastic_validation.js
</pre>

h3. TODO

set up rake tasks for both testing and building<commit_msg>updated the readme for javascripts<commit_after>h1. Formtastic Validation JS Lib

h2. Dependencies

Minifying is done using "yui-compressor":http://developer.yahoo.com/yui/compressor/

Do install yui-compressor before attempting to build the files.

h2. Testing

Testing is done using cuucmber on the formtastic validation app

h2. Building

Run this on the commandline

<pre>
  $ yui-compressor -o build/formtastic_validation.min.js src/formtastic_validation.js
</pre>

{'fraction_non_alphanumeric': 0.07567567567567568, 'fraction_numerical': 0.00990990990990991, 'mean_word_length': 4.5, 'pattern_counts': {'":': 3, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2729904', 'n_tokens_mistral': 369, 'n_tokens_neox': 352, 'n_words': 121}