Skip to content

Commit

Permalink
Fix RSVP is not a constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
broerse committed Mar 17, 2017
1 parent b52a785 commit 91d2f02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
- [#40](https://github.com/martinic/ember-cli-deploy-couchdb/pull/40) Adjusting README with instructions for using ember-cli-deploy-build [@dehuszar](https://github.com/dehuszar)
- Deprecation of baseURL in ember-cli >= 2.7.0
- Remove public folder
- Fix DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead.

Thank you to all who took the time to contribute!
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports = {
var db = this.readConfig('db');

this.log('Start Upload', { color: 'green' });
var rsvp = new RSVP(function(resolve, reject) {
var promise = new RSVP.Promise(function(resolve, reject) {
push(db, couchDir, function(error, response) {
if(error) {
this.log(error + ' ' + response, { color: 'red' });
Expand All @@ -119,7 +119,7 @@ module.exports = {
}
}.bind(this));
}.bind(this));
return rsvp;
return promise;
},
});
return new DeployPlugin();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-deploy-couchdb",
"version": "0.1.3",
"version": "0.1.4",
"description": "Ember CLI Deploy plugin for CouchDB.",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit 91d2f02

Please sign in to comment.