Skip to content

Commit

Permalink
Bump to version 2.x of PSI
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcryer committed Nov 16, 2015
1 parent eb8f0df commit f984c43
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
@@ -0,0 +1,12 @@
root = true

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

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
* text=auto
8 changes: 5 additions & 3 deletions .travis.yml
@@ -1,4 +1,6 @@
language:
- node_js
sudo: false
language: node_js
node_js:
- "0.10"
- 'stable'
- '0.12'
- '0.10'
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -12,16 +12,17 @@
"url": "git://github.com/jrcryer/grunt-pagespeed.git"
},
"contributors": [],
"version": "1.0.0",
"version": "2.0.0",
"main": "Gruntfile.coffee",
"engines": {
"node": ">=0.8.0"
},
"license": "MIT",
"devDependencies": {
"grunt": "~0.4.1"
},
"dependencies": {
"psi": "^1.0.6"
"psi": "^2.0.0"
},
"keywords": [
"gruntplugin",
Expand Down
5 changes: 3 additions & 2 deletions tasks/pagespeed.coffee
Expand Up @@ -20,7 +20,8 @@ module.exports = (grunt) ->
current = 0

for index, options of params
psi.output(options.url, options, (err, response) ->
psi.output(options.url, options).then (response) ->
current++
done() if numOfTests == current
.catch (err) ->
done(err) if numOfTests == current
)

0 comments on commit f984c43

Please sign in to comment.