diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 0000000..ffede22 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "components" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0ca0b3d..da032f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store node_modules/ +components/ diff --git a/.gitmodules b/.gitmodules index 79ddfb5..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +0,0 @@ -[submodule "tools/qunit"] - path = tools/qunit - url = https://github.com/jquery/qunit.git -[submodule "tools/jquery"] - path = tools/jquery - url = https://github.com/jquery/jquery.git diff --git a/.travis.yml b/.travis.yml index f61a724..d30ba63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ language: node_js node_js: - - 0.8 - - 0.9 - - 0.10 + - 0.11 before_script: - - npm install -g grunt-cli + - npm install -g grunt-cli bower diff --git a/README.markdown b/README.markdown index 8cdf7f8..7407517 100644 --- a/README.markdown +++ b/README.markdown @@ -66,3 +66,9 @@ version 1.0.4 if you require camel casing of names.* ### 1.0.4 - Fix an issue (#2) where arrays longer than 2 resulted in incorrect values + +## Known issues + +- In rare cases, this won't work with old checkbox/hidden hack. See [this issue for more details](https://github.com/hongymagic/jQuery.serializeObject/issues/9). + +[](https://bitdeli.com/free "Bitdeli Badge") diff --git a/bower.json b/bower.json index 5121008..2612443 100644 --- a/bower.json +++ b/bower.json @@ -1,10 +1,16 @@ { "name": "jQuery.serializeObject", "version": "2.0.3", - "main": "jQuery.serializeObject.js", + "main": "jquery.serializeObject.js", "ignore": [ "**/.*", "node_modules", "components" - ] -} \ No newline at end of file + ], + "dependencies": { + "jquery": "1.9.1" + }, + "devDependencies": { + "qunit": "~1.14.0" + } +} diff --git a/jquery.serializeObject.d.ts b/jquery.serializeObject.d.ts new file mode 100644 index 0000000..3aea456 --- /dev/null +++ b/jquery.serializeObject.d.ts @@ -0,0 +1,4 @@ + +interface JQuery { + serializeObject(): { [index: string]: string|string[] } +} diff --git a/package.json b/package.json index bb16761..b07a0b7 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "jQuery.serializeObject", - "version": "2.0.3", + "version": "2.0.4", "description": "A jQuery plugin to turn form data into JSON", "main": "jquery.serializeObject.js", + "types": "jquery.serializeObject.d.ts", "directories": { "test": "test" }, "scripts": { - "pretest": "git submodule update --init --recursive && git submodule foreach --recursive git pull origin master && cd tools/jquery && npm install && grunt", + "pretest": "bower install", "test": "grunt" }, "repository": { diff --git a/test/tests.html b/test/tests.html index 4815cc4..efc21ff 100644 --- a/test/tests.html +++ b/test/tests.html @@ -4,10 +4,10 @@