Skip to content

Commit

Permalink
update versions, readme, changelog; remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
clineamb committed Sep 22, 2015
1 parent 39402c4 commit ea7f812
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# gulp-s3-upload
__Version 1.2.0__
__Version 1.3.0__

Use for uploading assets to Amazon S3 servers.
This helps to make it an easy gulp task.
Expand Down Expand Up @@ -311,7 +311,7 @@ Example (passing a `function`):

## License

Copyright (c) 2014, [Caroline Amaba](mailto:caroline.amaba@gmail.com)
Copyright (c) 2015, [Caroline Amaba](mailto:github@carolineamaba.com)

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Version 1.3.0

* **NEW** -- Added `maps.ParamName` options! You can now map each parameter offered by the `S3.putObject` function. More in the [Readme](readme.md).
* Fixed [issue #23](https://github.com/clineamb/gulp-s3-upload/issues/23) on existing mapping functions (`metadataMap`, `manualContentEncoding`).
* Updated Readme.


## Version 1.2.0

* Added `manualContentEncoding` option from [pull request #22](https://github.com/clineamb/gulp-s3-upload/pull/22)
Expand Down
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,15 @@ gulpPrefixer = function (AWS) {
// returns the appropriate type for that give putObject Param
// { Bucket: ... maps: { 'CacheControl': function()..., 'Expires': function()... }, etc. }
// See: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property
// *** NEW in 1.2 ***
// *** NEW in 1.3 ***

if(!_.isUndefined(options.maps)) {

_.each(options.maps, function(mapRoutine, ParamName) {
console.log(mapRoutine, ParamName);

if(_.isFunction(mapRoutine)) {
options[ParamName] = mapRoutine(keyname);
}
});

console.log(options);
}

// === ETag Hash Comparison =============================
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": "gulp-s3-upload",
"version": "1.2.0",
"version": "1.3.0",
"description": "A gulp task to asynchronous upload/update assets to an AWS S3 Bucket.",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit ea7f812

Please sign in to comment.