Skip to content

Commit

Permalink
General improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Oct 2, 2015
1 parent eb3dd15 commit 13f05bb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.0.3

- General improvements;
- Update `aws-sdk` to 2.2.6;

## 3.0.2

- Update `aws-sdk` to the latest version;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default StorageService('amazon', {
// api/controllers/StorageController.js
module.exports = {
upload: function(req, res) {
amazon
StorageService
.upload('<SOURCE>', '<BUCKET>:<KEY>')
.then(res.ok)
.catch(res.negotiate);
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": "sails-service-storage",
"version": "3.0.2",
"version": "3.0.3",
"description": "Service for Sails framework with Storage features",
"main": "lib/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/BaseStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import _ from 'lodash';
export default class BaseStorage {
constructor(_config) {
this._config = {};
this._provider = {};

_.assign(this._config, _config);
}
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
./test/**/*.test.js
./test/unit/**/*.test.js
--require babelhook.js
--reporter nyan
--recursive
2 changes: 1 addition & 1 deletion test/unit/BaseStorage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('BaseStorage', () => {
it('Should properly get/set provider', () => {
let storage = new BaseStorage();

assert.notOk(storage.getProvider());
assert.deepEqual(storage.getProvider(), {});
assert.instanceOf(storage.setProvider('PROVIDER'), BaseStorage);
assert.equal(storage.getProvider(), 'PROVIDER');
});
Expand Down

0 comments on commit 13f05bb

Please sign in to comment.