Skip to content

Commit

Permalink
Some love.
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Jan 12, 2015
1 parent 8bbf81a commit a31751c
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 119 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.*
24 changes: 12 additions & 12 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
{
"predef": [
"console",
"module",
"define",
"self"
"self",
"unescape",
"module"
],

"browser": true,
"devel": true,

"bitwise": false,
"curly": false,
"curly": true,
"eqeqeq": false,
"forin": false,
"immed": true,
"latedef": true,
"latedef": false,
"newcap": true,
"noarg": true,
"noempty": false,
"nonew": true,
"plusplus": false,
"regexp": false,
"regexp": true,
"undef": true,
"unused": true,
"quotmark": "single",
"strict": false,
"trailing": true,
"unused": true,

"asi": false,
"boss": false,
Expand All @@ -33,15 +35,15 @@
"es5": false,
"esnext": false,
"evil": false,
"expr": false,
"expr": true,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": false,
"multistr": false,
"loopfunc": true,
"multistr": true,
"onecase": true,
"regexdash": false,
"scripturl": false,
Expand All @@ -53,7 +55,5 @@

"nomen": false,
"onevar": false,
"white": true,

"mootools": true
"white": true
}
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.5",
"homepage": "https://github.com/satazor/SparkMD5",
"authors": [
"André Cruz <andremiguelcruz@msn.com>"
"André Cruz <andremiguelcruz@msn.com>"
],
"description": "Lightning fast normal and incremental md5 for javascript",
"main": "spark-md5.js",
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@
"spark",
"incremental"
],
"author": "André Cruz <andremiguelcruz@msn.com>",
"author": "André Cruz <andremiguelcruz@msn.com>",
"license": "WTFPL",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/satazor/SparkMD5/issues"
},
"scripts": {
"min": "uglifyjs spark-md5.js > spark-md5.min.js"
},
"devDependencies": {
"uglify-js": "^2.4.16"
}
}
6 changes: 2 additions & 4 deletions spark-md5.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*jshint bitwise:false*/
/*global unescape*/

(function (factory) {
if (typeof exports === 'object') {
// Node/CommonJS
Expand All @@ -11,6 +8,7 @@
} else {
// Browser globals (with support for web workers)
var glob;

try {
glob = window;
} catch (e) {
Expand Down Expand Up @@ -424,7 +422,7 @@
* @return {SparkMD5} The instance itself
*/
SparkMD5.prototype.reset = function () {
this._buff = "";
this._buff = '';
this._length = 0;
this._state = [1732584193, -271733879, -1732584194, 271733878];

Expand Down
2 changes: 1 addition & 1 deletion spark-md5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a31751c

Please sign in to comment.