Skip to content

Commit bc4aeea

Browse files
committed
setting up travis...
1 parent 0ed7b3b commit bc4aeea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+73
-57
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: node_js
22
node_js:
3-
- "0.10"
4-
- "0.8"
3+
- "0.12"
54
before_script:
65
- npm install -g grunt-cli

Gruntfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ module.exports = function(grunt) {
128128
grunt.loadNpmTasks("grunt-contrib-jshint");
129129
grunt.loadNpmTasks("grunt-contrib-uglify");
130130
grunt.loadNpmTasks("grunt-contrib-watch");
131-
grunt.loadNpmTasks('grunt-contrib-qunit');
131+
grunt.loadNpmTasks('grunt-contrib-qunit');
132132

133133
grunt.registerTask("build", ["version", "concat", "uglify"]);
134-
grunt.registerTask("default", ["jshint", "qunit", "build"]);
134+
grunt.registerTask('test', ['jshint', 'qunit']);
135+
grunt.registerTask("default", ["test", "build"]);
135136

136137
};

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,11 @@ it calls jQ func **$.formUtils.validateInput** to validate the single input when
257257
- "Validation help" no longer puts constraints on input names
258258
- Improved confirmation validation
259259
- Now possible to set `errorMessagePosition` to a callback function
260-
- Now possible to add `data-validation-ignore` to filter out certain characters before validation.
260+
- Now possible to add `data-validation-ignore` to filter out certain characters before validation
261+
- New sanitation method `strip` that removes defined characters
261262
- Now possible to declare attributes not prefixed with data-validation in jsconf module
262263
- All inputs gets sanitized on page load when using sanitation module
263-
264+
- Allow dates to omit leading zero using `data-validation-require-leading-zero="false"`
264265

265266
#### 2.2.8
266267
- The plugin is now again possible to install via bower.

form-validator/brazil.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @website http://formvalidator.net/#brazil-validators
1313
* @license MIT
14-
* @version 2.2.93
14+
* @version 2.2.101
1515
*/
1616

1717
$.formUtils.addValidator({

form-validator/brazil.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/date.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license MIT
13-
* @version 2.2.93
13+
* @version 2.2.101
1414
*/
1515
(function($) {
1616

form-validator/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
*
44
* @website by
55
* @license MIT
6-
* @version 2.2.93
6+
* @version 2.2.101
77
*/
88
!function(a){a.formUtils.addValidator({name:"time",validatorFunction:function(a){if(null===a.match(/^(\d{2}):(\d{2})$/))return!1;var b=parseInt(a.split(":")[0],10),c=parseInt(a.split(":")[1],10);return b>23||c>59?!1:!0},errorMessage:"",errorMessageKey:"badTime"}),a.formUtils.addValidator({name:"birthdate",validatorFunction:function(b,c,d){var e="yyyy-mm-dd";c.valAttr("format")?e=c.valAttr("format"):"undefined"!=typeof d.dateFormat&&(e=d.dateFormat);var f=a.formUtils.parseDate(b,e);if(!f)return!1;var g=new Date,h=g.getFullYear(),i=f[0],j=f[1],k=f[2];if(i===h){var l=g.getMonth()+1;if(j===l){var m=g.getDate();return m>=k}return l>j}return h>i&&i>h-124},errorMessage:"",errorMessageKey:"badDate"})}(jQuery);

form-validator/file.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#file-validators
1212
* @license MIT
13-
* @version 2.2.93
13+
* @version 2.2.101
1414
*/
1515
(function($, window) {
1616

form-validator/file.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/html5.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @website http://formvalidator.net/
1919
* @license MIT
20-
* @version 2.2.93
20+
* @version 2.2.101
2121
*/
2222
(function($, window) {
2323

form-validator/html5.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/jquery.form-validator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @website http://formvalidator.net/
77
* @license MIT
8-
* @version 2.2.93
8+
* @version 2.2.101
99
*/
1010
(function ($) {
1111

@@ -432,7 +432,7 @@
432432
* @param {String} type
433433
* @return {Boolean}
434434
*/
435-
ignoreInput = function (name, type) {
435+
ignoreInput = function (name, type) {
436436
if (type === 'submit' || type === 'button' || type === 'reset') {
437437
return true;
438438
}
@@ -1024,7 +1024,7 @@
10241024
var ignore = $elem.valAttr('ignore');
10251025
if( ignore ) {
10261026
$.each(ignore.split(''), function(i, char) {
1027-
value = value.replace(new RegExp('\\'+char, 'g'), '');
1027+
value = value.replace(new RegExp('\\'+char), '');
10281028
});
10291029
}
10301030

form-validator/jquery.form-validator.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/jsconf.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @website http://formvalidator.net/#location-validators
99
* @license MIT
10-
* @version 2.2.93
10+
* @version 2.2.101
1111
*/
1212
(function($) {
1313

form-validator/jsconf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
*
44
* @website by
55
* @license MIT
6-
* @version 2.2.93
6+
* @version 2.2.101
77
*/
88
!function(a){"use strict";a.setupValidation=function(b){var c=a(b.form||"form");a.each(b.validate||b.validation||{},function(b,d){var e;e="#"===b[0]?a(b):c.find("."===b[0]?b:'*[name="'+b+'"]'),e.attr("data-validation",d.validation),a.each(d,function(a,b){"validation"!==a&&b!==!1&&(b===!0&&(b="true"),"_"===a[0]?(a=a.substring(1),b===!1?e.removeAttr(a):e.attr(a,b)):e.valAttr(a,b))})}),a.validate(b)}}(jQuery);

form-validator/lang/cz.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license MIT
9-
* @version 2.2.93
9+
* @version 2.2.101
1010
*/
1111
(function($, window) {
1212

form-validator/lang/cz.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/lang/de.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license MIT
9-
* @version 2.2.93
9+
* @version 2.2.101
1010
*/
1111
(function($, window) {
1212

form-validator/lang/de.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/lang/es.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license Dual licensed under the MIT or GPL Version 2 licenses
9-
* @version 2.2.93
9+
* @version 2.2.101
1010
*/
1111
(function($, window) {
1212

form-validator/lang/es.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/lang/fr.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license MIT
9-
* @version 2.2.93
9+
* @version 2.2.101
1010
*/
1111
(function($, window) {
1212

0 commit comments

Comments
 (0)