cloudfront 0.0.1 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +11 -8
- data/LICENSE.txt +1 -1
- data/README.rdoc +64 -7
- data/Rakefile +11 -14
- data/cloudfront.gemspec +85 -27
- data/lib/cloudfront.rb +39 -0
- data/lib/cloudfront/connection.rb +25 -0
- data/lib/cloudfront/distribution/distribution.rb +136 -0
- data/lib/cloudfront/distribution/download_distribution.rb +54 -0
- data/lib/cloudfront/distribution/streaming_distribution.rb +53 -0
- data/lib/cloudfront/errors/cloudfront_error.rb +13 -0
- data/lib/cloudfront/errors/cname_already_exists_error.rb +7 -0
- data/lib/cloudfront/errors/distribution_already_exists_error.rb +7 -0
- data/lib/cloudfront/errors/illegal_update_error.rb +7 -0
- data/lib/cloudfront/errors/invalid_origin_access_identity_error.rb +7 -0
- data/lib/cloudfront/errors/invalid_origin_error.rb +7 -0
- data/lib/cloudfront/errors/invalid_required_protocol_error.rb +7 -0
- data/lib/cloudfront/errors/missing_body_error.rb +7 -0
- data/lib/cloudfront/errors/precondition_failed_error.rb +7 -0
- data/lib/cloudfront/errors/too_many_distribution_cnames_error.rb +7 -0
- data/lib/cloudfront/errors/too_many_distributions_error.rb +7 -0
- data/lib/cloudfront/errors/too_many_trusted_signers_error.rb +7 -0
- data/lib/cloudfront/errors/trusted_signer_does_not_exist_error.rb +7 -0
- data/lib/cloudfront/exceptions/delete_enabled_distribution_exception.rb +7 -0
- data/lib/cloudfront/exceptions/distribution_already_disabled_exception.rb +7 -0
- data/lib/cloudfront/exceptions/distribution_already_enabled_exception.rb +7 -0
- data/lib/cloudfront/exceptions/distribution_configuration_exception.rb +7 -0
- data/lib/cloudfront/exceptions/missing_etag_exception.rb +7 -0
- data/lib/cloudfront/helpers/aliases.rb +71 -0
- data/lib/cloudfront/helpers/cache_behavior.rb +166 -0
- data/lib/cloudfront/helpers/cache_behaviors.rb +108 -0
- data/lib/cloudfront/helpers/download_distribution.rb +157 -0
- data/lib/cloudfront/helpers/invalidation.rb +83 -0
- data/lib/cloudfront/helpers/logging.rb +71 -0
- data/lib/cloudfront/helpers/origin.rb +101 -0
- data/lib/cloudfront/helpers/origin_access_identity.rb +58 -0
- data/lib/cloudfront/helpers/origins.rb +94 -0
- data/lib/cloudfront/helpers/s3_origin.rb +51 -0
- data/lib/cloudfront/helpers/streaming_distribution.rb +150 -0
- data/lib/cloudfront/helpers/trusted_signers.rb +73 -0
- data/lib/cloudfront/invalidation/invalidations.rb +57 -0
- data/lib/cloudfront/origin_access_identity/origin_access_identity.rb +60 -0
- data/lib/cloudfront/utils/api.rb +18 -0
- data/lib/cloudfront/utils/array.rb +5 -0
- data/lib/cloudfront/utils/configuration_checker.rb +19 -0
- data/lib/cloudfront/utils/string.rb +11 -0
- data/lib/cloudfront/utils/util.rb +20 -0
- data/lib/cloudfront/utils/xml_serializer.rb +18 -0
- data/lib/faraday/request/cloudfront_signer.rb +35 -0
- data/lib/faraday/request/xml_content_type.rb +18 -0
- metadata +198 -31
- data/.document +0 -5
- data/Gemfile.lock +0 -27
- data/test/helper.rb +0 -19
- data/test/test_cloudfront.rb +0 -7
data/.document
DELETED
data/Gemfile.lock
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
git (1.2.5)
|
5
|
-
jeweler (1.8.3)
|
6
|
-
bundler (~> 1.0)
|
7
|
-
git (>= 1.2.5)
|
8
|
-
rake
|
9
|
-
rdoc
|
10
|
-
json (1.7.0)
|
11
|
-
minitest (3.0.1)
|
12
|
-
rake (0.9.2.2)
|
13
|
-
rcov (0.9.11)
|
14
|
-
rdoc (3.12)
|
15
|
-
json (~> 1.4)
|
16
|
-
yard (0.7.4)
|
17
|
-
|
18
|
-
PLATFORMS
|
19
|
-
ruby
|
20
|
-
|
21
|
-
DEPENDENCIES
|
22
|
-
bundler (~> 1.0.0)
|
23
|
-
jeweler (~> 1.8.3)
|
24
|
-
minitest
|
25
|
-
rcov
|
26
|
-
rdoc (~> 3.12)
|
27
|
-
yard (~> 0.7)
|
data/test/helper.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'minitest/unit'
|
11
|
-
|
12
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
-
require 'cloudfront'
|
15
|
-
|
16
|
-
class MiniTest::Unit::TestCase
|
17
|
-
end
|
18
|
-
|
19
|
-
MiniTest::Unit.autorun
|