This repository has been archived by the owner on Aug 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcors.gemspec
42 lines (36 loc) · 1.81 KB
/
cors.gemspec
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
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'cors/version'
Gem::Specification.new do |gem|
gem.name = "cors"
gem.version = CORS::VERSION
gem.authors = ["Kim Burgestrand"]
gem.email = ["kim@burgestrand.se"]
gem.homepage = "http://github.com/elabs/cors"
gem.summary = "CORS policy validation- and signing library for Amazon S3 REST API."
gem.description = <<~DESCRIPTION
Cross-origin resource sharing (CORS) is great; it allows your visitors to
asynchronously upload files to e.g. Filepicker or Amazon S3, without the
files having to round-trip through your web server. Unfortunately, giving
your users complete write access to your online storage also exposes you to
malicious intent.
To combat harmful usage, good upload services that allow client-side
upload, support a mechanism that allows you to validate and sign all upload
requests to your online storage. By validating every request, you can give
your visitors a nice upload experience, while keeping the bad visitors at
bay.
The CORS gem comes with support for the Amazon S3 REST API.
DESCRIPTION
gem.post_install_message = <<~POST_INSTALL_MESSAGE
[DEPRECATED] The CORS gem is deprecated and will not receive further updates.
The functionality of CORS is now provided by the ruby AWS SDK:
https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/PresignedPost.html
POST_INSTALL_MESSAGE
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
gem.add_dependency "multi_json"
gem.add_development_dependency "rspec"
end