Skip to content

Commit

Permalink
Bump version to 1.0.0 and add Gruntfile for building release pkg
Browse files Browse the repository at this point in the history
Bumped AWS SDK version to latest v3.x.

Also relicensed to EUPL-1.2.
  • Loading branch information
mikesname committed Feb 12, 2021
1 parent c4db4b2 commit dc19511
Show file tree
Hide file tree
Showing 9 changed files with 5,769 additions and 243 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.iml
composer.phar
/vendor/
node_modules
pkg
57 changes: 57 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/**
* @package omeka-amazon-s3-storage-adapter
* @copyright King's College London Department of Digital Humanities
* @license https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
*/

module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-contrib-compress');

var pkg = grunt.file.readJSON('package.json');

grunt.initConfig({

compress: {

dist: {
options: {
archive: 'pkg/omeka-amazon-s3-storage-adapter-'+pkg.version+'.zip'
},
dest: 'AmazonS3StorageAdapter/',
src: [

'**',

// GIT
'!.git/**',
'!.gitignore',

// NPM
'!package.json',
'!package-lock.json',
'!node_modules/**',

// GRUNT
'!.grunt/**',
'!Gruntfile.js',

// DIST
'!pkg/**',

// Editor settings
'!*.vim',
'!.idea',
'!*.iml',
]
}

}

});

// Spawn release package.
grunt.registerTask('package', [
'compress'
]);
};
369 changes: 194 additions & 175 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ the `Omeka_Storage_Adapter_ZendS3` which ships with the application.

The main differences are:

- this adapter uses the official AWS S3 SDK library
- this adapter uses the official AWS SDK library
- it requires PHP 5.5 or above
- requires you supply the AWS region in the configuration
- it supports the V4 authorization mechanism that is required on AWS
Expand All @@ -26,4 +26,6 @@ storage.adapterOptions.bucket = my-bucket-name
storage.adapterOptions.region = eu-central-1
```

**Note**: This plugin has not yet been tested much so use at your own risk!
*Note*: including the AWS SDK makes this plugin package very large since
there is currently no way to depend on _just_ the S3-related parts. This
will hopefully be remedied in future.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "An Amazon S3 storage adapter for Omeka which uses Amazon's official AWS library.",
"type": "project",
"require": {
"aws/aws-sdk-php": "^3.19"
"aws/aws-sdk-php": "^3.173"
},
"license": "EUPL-1.1"
}
Loading

0 comments on commit dc19511

Please sign in to comment.