forked from psteininger/ex_aws_s3_direct_upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
58 lines (53 loc) · 1.76 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
defmodule ExAws.S3.DirectUpload.Mixfile do
use Mix.Project
def project do
[
app: :ex_aws_s3_direct_upload,
version: "1.0.4",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
source_url: "https://github.com/laborvoices/ex_aws_s3_direct_upload",
description: description(),
package: package(),
deps: deps(),
]
end
# Configuration for the OTP application
def application do
[extra_applications: [:logger]]
end
# Dependencies
defp deps do
[
{:poison, "~> 2.0 or ~> 3.0"},
{:ex_aws_s3, "~> 2.0.1"},
{:hackney, "~> 1.9"},
{:sweet_xml, "~> 0.6"},
{:ex_doc, "~> 0.19", only: :dev, runtime: false}
]
end
defp description do
"""
Pre-signed S3 upload helper for client-side multipart POSTs, using ExAWS for authentication. Allows use of Instance Role for authentication.
"""
end
defp package do
[
name: :ex_aws_s3_direct_upload,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
authors: ["Andrew Kappen", "Piotr Steininger"],
maintainers: ["Piotr Steininger"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/laborvoices/ex_aws_s3_direct_upload",
"S3 Direct Uploads With Ember And Phoenix" =>
"http://haughtcodeworks.com/blog/software-development/s3-direct-uploads-with-ember-and-phoenix/",
"Browser-Based Upload using HTTP POST (Using AWS Signature Version 4)" =>
"http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html",
"Task 3: Calculate the Signature for AWS Signature Version 4" =>
"http://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html"
}
]
end
end