mss-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +9 -0
- data/LICENSE.txt +0 -0
- data/README.md +192 -0
- data/bin/mss-rb +178 -0
- data/ca-bundle.crt +3554 -0
- data/lib/mss/core/async_handle.rb +89 -0
- data/lib/mss/core/cacheable.rb +76 -0
- data/lib/mss/core/client.rb +786 -0
- data/lib/mss/core/collection/simple.rb +81 -0
- data/lib/mss/core/collection/with_limit_and_next_token.rb +70 -0
- data/lib/mss/core/collection/with_next_token.rb +96 -0
- data/lib/mss/core/collection.rb +262 -0
- data/lib/mss/core/configuration.rb +527 -0
- data/lib/mss/core/credential_providers.rb +653 -0
- data/lib/mss/core/data.rb +251 -0
- data/lib/mss/core/deprecations.rb +83 -0
- data/lib/mss/core/endpoints.rb +36 -0
- data/lib/mss/core/http/connection_pool.rb +374 -0
- data/lib/mss/core/http/curb_handler.rb +150 -0
- data/lib/mss/core/http/handler.rb +88 -0
- data/lib/mss/core/http/net_http_handler.rb +144 -0
- data/lib/mss/core/http/patch.rb +98 -0
- data/lib/mss/core/http/request.rb +258 -0
- data/lib/mss/core/http/response.rb +80 -0
- data/lib/mss/core/indifferent_hash.rb +87 -0
- data/lib/mss/core/inflection.rb +55 -0
- data/lib/mss/core/ini_parser.rb +41 -0
- data/lib/mss/core/json_client.rb +46 -0
- data/lib/mss/core/json_parser.rb +75 -0
- data/lib/mss/core/json_request_builder.rb +34 -0
- data/lib/mss/core/json_response_parser.rb +78 -0
- data/lib/mss/core/lazy_error_classes.rb +107 -0
- data/lib/mss/core/log_formatter.rb +426 -0
- data/lib/mss/core/managed_file.rb +31 -0
- data/lib/mss/core/meta_utils.rb +44 -0
- data/lib/mss/core/model.rb +61 -0
- data/lib/mss/core/naming.rb +29 -0
- data/lib/mss/core/option_grammar.rb +737 -0
- data/lib/mss/core/options/json_serializer.rb +81 -0
- data/lib/mss/core/options/validator.rb +154 -0
- data/lib/mss/core/options/xml_serializer.rb +117 -0
- data/lib/mss/core/page_result.rb +74 -0
- data/lib/mss/core/policy.rb +938 -0
- data/lib/mss/core/query_client.rb +40 -0
- data/lib/mss/core/query_error_parser.rb +23 -0
- data/lib/mss/core/query_request_builder.rb +46 -0
- data/lib/mss/core/query_response_parser.rb +34 -0
- data/lib/mss/core/region.rb +84 -0
- data/lib/mss/core/region_collection.rb +79 -0
- data/lib/mss/core/resource.rb +412 -0
- data/lib/mss/core/resource_cache.rb +39 -0
- data/lib/mss/core/response.rb +214 -0
- data/lib/mss/core/response_cache.rb +49 -0
- data/lib/mss/core/rest_error_parser.rb +23 -0
- data/lib/mss/core/rest_json_client.rb +39 -0
- data/lib/mss/core/rest_request_builder.rb +153 -0
- data/lib/mss/core/rest_response_parser.rb +65 -0
- data/lib/mss/core/rest_xml_client.rb +46 -0
- data/lib/mss/core/service_interface.rb +82 -0
- data/lib/mss/core/signers/base.rb +45 -0
- data/lib/mss/core/signers/cloud_front.rb +55 -0
- data/lib/mss/core/signers/s3.rb +158 -0
- data/lib/mss/core/signers/version_2.rb +71 -0
- data/lib/mss/core/signers/version_3.rb +85 -0
- data/lib/mss/core/signers/version_3_https.rb +60 -0
- data/lib/mss/core/signers/version_4/chunk_signed_stream.rb +190 -0
- data/lib/mss/core/signers/version_4.rb +227 -0
- data/lib/mss/core/uri_escape.rb +43 -0
- data/lib/mss/core/xml/frame.rb +245 -0
- data/lib/mss/core/xml/frame_stack.rb +84 -0
- data/lib/mss/core/xml/grammar.rb +306 -0
- data/lib/mss/core/xml/parser.rb +69 -0
- data/lib/mss/core/xml/root_frame.rb +64 -0
- data/lib/mss/core/xml/sax_handlers/libxml.rb +46 -0
- data/lib/mss/core/xml/sax_handlers/nokogiri.rb +55 -0
- data/lib/mss/core/xml/sax_handlers/ox.rb +40 -0
- data/lib/mss/core/xml/sax_handlers/rexml.rb +46 -0
- data/lib/mss/core/xml/stub.rb +122 -0
- data/lib/mss/core.rb +602 -0
- data/lib/mss/errors.rb +161 -0
- data/lib/mss/rails.rb +194 -0
- data/lib/mss/s3/access_control_list.rb +262 -0
- data/lib/mss/s3/acl_object.rb +263 -0
- data/lib/mss/s3/acl_options.rb +200 -0
- data/lib/mss/s3/bucket.rb +757 -0
- data/lib/mss/s3/bucket_collection.rb +161 -0
- data/lib/mss/s3/bucket_lifecycle_configuration.rb +472 -0
- data/lib/mss/s3/bucket_region_cache.rb +51 -0
- data/lib/mss/s3/bucket_tag_collection.rb +110 -0
- data/lib/mss/s3/bucket_version_collection.rb +78 -0
- data/lib/mss/s3/cipher_io.rb +119 -0
- data/lib/mss/s3/client/xml.rb +265 -0
- data/lib/mss/s3/client.rb +2076 -0
- data/lib/mss/s3/config.rb +60 -0
- data/lib/mss/s3/cors_rule.rb +107 -0
- data/lib/mss/s3/cors_rule_collection.rb +193 -0
- data/lib/mss/s3/data_options.rb +190 -0
- data/lib/mss/s3/encryption_utils.rb +145 -0
- data/lib/mss/s3/errors.rb +93 -0
- data/lib/mss/s3/multipart_upload.rb +353 -0
- data/lib/mss/s3/multipart_upload_collection.rb +75 -0
- data/lib/mss/s3/object_collection.rb +355 -0
- data/lib/mss/s3/object_metadata.rb +102 -0
- data/lib/mss/s3/object_upload_collection.rb +76 -0
- data/lib/mss/s3/object_version.rb +153 -0
- data/lib/mss/s3/object_version_collection.rb +88 -0
- data/lib/mss/s3/paginated_collection.rb +74 -0
- data/lib/mss/s3/policy.rb +73 -0
- data/lib/mss/s3/prefix_and_delimiter_collection.rb +46 -0
- data/lib/mss/s3/prefixed_collection.rb +84 -0
- data/lib/mss/s3/presign_v4.rb +135 -0
- data/lib/mss/s3/presigned_post.rb +574 -0
- data/lib/mss/s3/region_detection.rb +75 -0
- data/lib/mss/s3/request.rb +61 -0
- data/lib/mss/s3/s3_object.rb +1795 -0
- data/lib/mss/s3/tree/branch_node.rb +67 -0
- data/lib/mss/s3/tree/child_collection.rb +103 -0
- data/lib/mss/s3/tree/leaf_node.rb +93 -0
- data/lib/mss/s3/tree/node.rb +21 -0
- data/lib/mss/s3/tree/parent.rb +86 -0
- data/lib/mss/s3/tree.rb +115 -0
- data/lib/mss/s3/uploaded_part.rb +81 -0
- data/lib/mss/s3/uploaded_part_collection.rb +83 -0
- data/lib/mss/s3/website_configuration.rb +101 -0
- data/lib/mss/s3.rb +161 -0
- data/lib/mss/version.rb +16 -0
- data/lib/mss-sdk.rb +2 -0
- data/lib/mss.rb +14 -0
- data/rails/init.rb +14 -0
- metadata +201 -0
@@ -0,0 +1,101 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# or in the "license" file accompanying this file. This file is
|
9
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
10
|
+
# ANY KIND, either express or implied. See the License for the specific
|
11
|
+
# language governing permissions and limitations under the License.
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
require 'base64'
|
15
|
+
|
16
|
+
module MSS
|
17
|
+
class S3
|
18
|
+
class WebsiteConfiguration
|
19
|
+
|
20
|
+
# @option options [Hash] :redirect_all_requests_to
|
21
|
+
# Describes the redirect behavior for every request to this
|
22
|
+
# bucket's website endpoint. If this element is present, no
|
23
|
+
# other options are are allowed.
|
24
|
+
# * `:host_name` - (*required*, String)
|
25
|
+
# Name of the host where requests will be redirected.
|
26
|
+
# * `:protocol` - (String)
|
27
|
+
# Protocol to use (http, https) when redirecting requests. The
|
28
|
+
# default is the protocol that is used in the original request.
|
29
|
+
# @option options [Hash] :index_document
|
30
|
+
# * `:suffix` - (*required*, String) - A suffix that is appended to
|
31
|
+
# a request that is for a directory on the website endpoint
|
32
|
+
# (e.g. if the suffix is index.html and you make a request to
|
33
|
+
# samplebucket/images/ the data that is returned will be for
|
34
|
+
# the object with the key name images/index.html).
|
35
|
+
# The suffix must not be empty and must not include a
|
36
|
+
# slash character.
|
37
|
+
# @option options [Hash] :error_document
|
38
|
+
# * `:key` - (*required*, String) - The object key name to use
|
39
|
+
# when a 4XX class error occurs.
|
40
|
+
# @option options [Array<Hash>] :routing_rules
|
41
|
+
# * `:redirect` - (*required*, Hash)
|
42
|
+
# * `:host_name` - (String)
|
43
|
+
# * `:protocol` - (String)
|
44
|
+
# * `:replace_key_prefix_with` - (String)
|
45
|
+
# * `:replace_key_with` - (String)
|
46
|
+
# * `:http_redirect_code` - (String)
|
47
|
+
# * `:condition` - (Hash)
|
48
|
+
# * `:key_prefix_equals` - (String)
|
49
|
+
# * `:http_error_code_returned_equals` - (String)
|
50
|
+
def initialize options = {}
|
51
|
+
@options = deep_copy(options)
|
52
|
+
if @options.empty?
|
53
|
+
@options[:index_document] = { :suffix => 'index.html' }
|
54
|
+
@options[:error_document] = { :key => 'error.html' }
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# @return [Hash]
|
59
|
+
attr_reader :options
|
60
|
+
|
61
|
+
alias_method :to_hash, :options
|
62
|
+
|
63
|
+
# This method exists for backwards compatability.
|
64
|
+
# @return [String,nil]
|
65
|
+
# @api private
|
66
|
+
def index_document_suffix
|
67
|
+
(@options[:index_document] || {})[:suffix]
|
68
|
+
end
|
69
|
+
|
70
|
+
# This method exists for backwards compatability.
|
71
|
+
# @api private
|
72
|
+
def index_document_suffix= suffix
|
73
|
+
@options.delete(:redirect_all_requests_to)
|
74
|
+
@options[:index_document] ||= {}
|
75
|
+
@options[:index_document][:suffix] = suffix
|
76
|
+
end
|
77
|
+
|
78
|
+
# This method exists for backwards compatability.
|
79
|
+
# @return [String,nil]
|
80
|
+
# @api private
|
81
|
+
def error_document_key
|
82
|
+
(@options[:error_document] || {})[:key]
|
83
|
+
end
|
84
|
+
|
85
|
+
# This method exists for backwards compatability.
|
86
|
+
# @api private
|
87
|
+
def error_document_key= key
|
88
|
+
@options.delete(:redirect_all_requests_to)
|
89
|
+
@options[:error_document] ||= {}
|
90
|
+
@options[:error_document][:key] = key
|
91
|
+
end
|
92
|
+
|
93
|
+
private
|
94
|
+
|
95
|
+
def deep_copy hash
|
96
|
+
Marshal.load(Marshal.dump(hash))
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
data/lib/mss/s3.rb
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# or in the "license" file accompanying this file. This file is
|
9
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
10
|
+
# ANY KIND, either express or implied. See the License for the specific
|
11
|
+
# language governing permissions and limitations under the License.
|
12
|
+
|
13
|
+
require 'mss/core'
|
14
|
+
require 'mss/s3/config'
|
15
|
+
|
16
|
+
module MSS
|
17
|
+
|
18
|
+
# Provides an expressive, object-oriented interface to Amazon S3.
|
19
|
+
#
|
20
|
+
# To use Amazon S3 you must first
|
21
|
+
#
|
22
|
+
# For more information about Amazon S3, see:
|
23
|
+
#
|
24
|
+
#
|
25
|
+
# # Credentials
|
26
|
+
#
|
27
|
+
# You can setup default credentials for all MSS services via
|
28
|
+
# MSS.config:
|
29
|
+
#
|
30
|
+
# MSS.config(
|
31
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
32
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
33
|
+
#
|
34
|
+
# Or you can set them directly on the S3 interface:
|
35
|
+
#
|
36
|
+
# s3 = MSS::S3.new(
|
37
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
38
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
39
|
+
#
|
40
|
+
# # Buckets
|
41
|
+
#
|
42
|
+
# Before you can upload files to S3, you need to create a bucket.
|
43
|
+
#
|
44
|
+
# s3 = MSS::S3.new
|
45
|
+
# bucket = s3.buckets.create('my-bucket')
|
46
|
+
#
|
47
|
+
# If a bucket already exists, you can get a reference to the bucket.
|
48
|
+
#
|
49
|
+
# bucket = s3.buckets['my-bucket'] # no request made
|
50
|
+
#
|
51
|
+
# You can also enumerate all buckets in your account.
|
52
|
+
#
|
53
|
+
# s3.buckets.each do |bucket|
|
54
|
+
# puts bucket.name
|
55
|
+
# end
|
56
|
+
#
|
57
|
+
# See {BucketCollection} and {Bucket} for more information on working
|
58
|
+
# with buckets.
|
59
|
+
#
|
60
|
+
# # Objects
|
61
|
+
#
|
62
|
+
# Buckets contain objects. Each object in a bucket has a unique key.
|
63
|
+
#
|
64
|
+
# ## Getting an Object
|
65
|
+
#
|
66
|
+
# If the object already exists, you can get a reference to the object.
|
67
|
+
#
|
68
|
+
# # makes no request, returns an MSS::S3::S3Object
|
69
|
+
# obj = bucket.objects['key']
|
70
|
+
#
|
71
|
+
# ## Reading and Writing an Object
|
72
|
+
#
|
73
|
+
# The example above returns an {S3Object}. You call {S3Object#write} and
|
74
|
+
# {S3Object#read} to upload to and download from S3 respectively.
|
75
|
+
#
|
76
|
+
# # streaming upload a file to S3
|
77
|
+
# obj.write(Pathname.new('/path/to/file.txt'))
|
78
|
+
#
|
79
|
+
# # streaming download from S3 to a file on disk
|
80
|
+
# File.open('file.txt', 'wb') do |file|
|
81
|
+
# obj.read do |chunk|
|
82
|
+
# file.write(chunk)
|
83
|
+
# end
|
84
|
+
# end
|
85
|
+
#
|
86
|
+
# ## Enumerating Objects
|
87
|
+
#
|
88
|
+
# You can enumerate objects in your buckets.
|
89
|
+
#
|
90
|
+
# # enumerate ALL objects in the bucket (even if the bucket contains
|
91
|
+
# # more than 1k objects)
|
92
|
+
# bucket.objects.each do |obj|
|
93
|
+
# puts obj.key
|
94
|
+
# end
|
95
|
+
#
|
96
|
+
# # enumerate at most 20 objects with the given prefix
|
97
|
+
# bucket.objects.with_prefix('photos/').each(:limit => 20) do |photo|
|
98
|
+
# puts photo.key
|
99
|
+
# end
|
100
|
+
#
|
101
|
+
# See {ObjectCollection} and {S3Object} for more information on working
|
102
|
+
# with objects.
|
103
|
+
#
|
104
|
+
class S3
|
105
|
+
|
106
|
+
autoload :AccessControlList, 'mss/s3/access_control_list'
|
107
|
+
autoload :ACLObject, 'mss/s3/acl_object'
|
108
|
+
autoload :ACLOptions, 'mss/s3/acl_options'
|
109
|
+
autoload :Bucket, 'mss/s3/bucket'
|
110
|
+
autoload :BucketCollection, 'mss/s3/bucket_collection'
|
111
|
+
#autoload :BucketTagCollection, 'mss/s3/bucket_tag_collection'
|
112
|
+
#autoload :BucketLifecycleConfiguration, 'mss/s3/bucket_lifecycle_configuration'
|
113
|
+
#autoload :BucketRegionCache, 'mss/s3/bucket_region_cache'
|
114
|
+
#autoload :BucketVersionCollection, 'mss/s3/bucket_version_collection'
|
115
|
+
autoload :Client, 'mss/s3/client'
|
116
|
+
#autoload :CORSRule, 'mss/s3/cors_rule'
|
117
|
+
#autoload :CORSRuleCollection, 'mss/s3/cors_rule_collection'
|
118
|
+
autoload :DataOptions, 'mss/s3/data_options'
|
119
|
+
autoload :EncryptionUtils, 'mss/s3/encryption_utils'
|
120
|
+
autoload :CipherIO, 'mss/s3/cipher_io'
|
121
|
+
autoload :Errors, 'mss/s3/errors'
|
122
|
+
autoload :MultipartUpload, 'mss/s3/multipart_upload'
|
123
|
+
autoload :MultipartUploadCollection, 'mss/s3/multipart_upload_collection'
|
124
|
+
autoload :ObjectCollection, 'mss/s3/object_collection'
|
125
|
+
autoload :ObjectMetadata, 'mss/s3/object_metadata'
|
126
|
+
autoload :ObjectUploadCollection, 'mss/s3/object_upload_collection'
|
127
|
+
#autoload :ObjectVersion, 'mss/s3/object_version'
|
128
|
+
#autoload :ObjectVersionCollection, 'mss/s3/object_version_collection'
|
129
|
+
autoload :PaginatedCollection, 'mss/s3/paginated_collection'
|
130
|
+
#autoload :Policy, 'mss/s3/policy'
|
131
|
+
autoload :PrefixAndDelimiterCollection, 'mss/s3/prefix_and_delimiter_collection'
|
132
|
+
autoload :PrefixedCollection, 'mss/s3/prefixed_collection'
|
133
|
+
autoload :PresignedPost, 'mss/s3/presigned_post'
|
134
|
+
#autoload :PresignV4, 'mss/s3/presign_v4'
|
135
|
+
autoload :Request, 'mss/s3/request'
|
136
|
+
#autoload :RegionDetection, 'mss/s3/region_detection'
|
137
|
+
autoload :S3Object, 'mss/s3/s3_object'
|
138
|
+
autoload :Tree, 'mss/s3/tree'
|
139
|
+
autoload :UploadedPart, 'mss/s3/uploaded_part'
|
140
|
+
autoload :UploadedPartCollection, 'mss/s3/uploaded_part_collection'
|
141
|
+
#autoload :WebsiteConfiguration, 'mss/s3/website_configuration'
|
142
|
+
|
143
|
+
include Core::ServiceInterface
|
144
|
+
|
145
|
+
endpoint_prefix 's3'
|
146
|
+
|
147
|
+
#BUCKET_REGIONS = BucketRegionCache.new
|
148
|
+
|
149
|
+
# @return [BucketCollection] Returns a collection that represents all
|
150
|
+
# buckets in the account.
|
151
|
+
def buckets
|
152
|
+
BucketCollection.new(:config => @config)
|
153
|
+
end
|
154
|
+
|
155
|
+
def presigned_post_info(bucket, key = "${filename}", opts)
|
156
|
+
pp = buckets[bucket].presigned_post({:key => key, :secure => config.use_ssl}.merge(opts))
|
157
|
+
{:form => pp.fields, :url => pp.url.to_s}
|
158
|
+
end
|
159
|
+
|
160
|
+
end
|
161
|
+
end
|
data/lib/mss/version.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# or in the "license" file accompanying this file. This file is
|
9
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
10
|
+
# ANY KIND, either express or implied. See the License for the specific
|
11
|
+
# language governing permissions and limitations under the License.
|
12
|
+
|
13
|
+
module MSS
|
14
|
+
# Current version of the MSS SDK for Ruby
|
15
|
+
VERSION = '1.0.0'
|
16
|
+
end
|
data/lib/mss-sdk.rb
ADDED
data/lib/mss.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
require 'mss-sdk'
|
data/rails/init.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# or in the "license" file accompanying this file. This file is
|
9
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
10
|
+
# ANY KIND, either express or implied. See the License for the specific
|
11
|
+
# language governing permissions and limitations under the License.
|
12
|
+
|
13
|
+
# this file exists for Rails < v3
|
14
|
+
MSS::Rails.setup
|
metadata
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mss-sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Meituan Storage Service
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.4'
|
41
|
+
description: Meituan Storage Service SDK for Ruby.
|
42
|
+
email: mos@meituan.com
|
43
|
+
executables:
|
44
|
+
- mss-rb
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".yardopts"
|
49
|
+
- LICENSE.txt
|
50
|
+
- README.md
|
51
|
+
- bin/mss-rb
|
52
|
+
- ca-bundle.crt
|
53
|
+
- lib/mss-sdk.rb
|
54
|
+
- lib/mss.rb
|
55
|
+
- lib/mss/core.rb
|
56
|
+
- lib/mss/core/async_handle.rb
|
57
|
+
- lib/mss/core/cacheable.rb
|
58
|
+
- lib/mss/core/client.rb
|
59
|
+
- lib/mss/core/collection.rb
|
60
|
+
- lib/mss/core/collection/simple.rb
|
61
|
+
- lib/mss/core/collection/with_limit_and_next_token.rb
|
62
|
+
- lib/mss/core/collection/with_next_token.rb
|
63
|
+
- lib/mss/core/configuration.rb
|
64
|
+
- lib/mss/core/credential_providers.rb
|
65
|
+
- lib/mss/core/data.rb
|
66
|
+
- lib/mss/core/deprecations.rb
|
67
|
+
- lib/mss/core/endpoints.rb
|
68
|
+
- lib/mss/core/http/connection_pool.rb
|
69
|
+
- lib/mss/core/http/curb_handler.rb
|
70
|
+
- lib/mss/core/http/handler.rb
|
71
|
+
- lib/mss/core/http/net_http_handler.rb
|
72
|
+
- lib/mss/core/http/patch.rb
|
73
|
+
- lib/mss/core/http/request.rb
|
74
|
+
- lib/mss/core/http/response.rb
|
75
|
+
- lib/mss/core/indifferent_hash.rb
|
76
|
+
- lib/mss/core/inflection.rb
|
77
|
+
- lib/mss/core/ini_parser.rb
|
78
|
+
- lib/mss/core/json_client.rb
|
79
|
+
- lib/mss/core/json_parser.rb
|
80
|
+
- lib/mss/core/json_request_builder.rb
|
81
|
+
- lib/mss/core/json_response_parser.rb
|
82
|
+
- lib/mss/core/lazy_error_classes.rb
|
83
|
+
- lib/mss/core/log_formatter.rb
|
84
|
+
- lib/mss/core/managed_file.rb
|
85
|
+
- lib/mss/core/meta_utils.rb
|
86
|
+
- lib/mss/core/model.rb
|
87
|
+
- lib/mss/core/naming.rb
|
88
|
+
- lib/mss/core/option_grammar.rb
|
89
|
+
- lib/mss/core/options/json_serializer.rb
|
90
|
+
- lib/mss/core/options/validator.rb
|
91
|
+
- lib/mss/core/options/xml_serializer.rb
|
92
|
+
- lib/mss/core/page_result.rb
|
93
|
+
- lib/mss/core/policy.rb
|
94
|
+
- lib/mss/core/query_client.rb
|
95
|
+
- lib/mss/core/query_error_parser.rb
|
96
|
+
- lib/mss/core/query_request_builder.rb
|
97
|
+
- lib/mss/core/query_response_parser.rb
|
98
|
+
- lib/mss/core/region.rb
|
99
|
+
- lib/mss/core/region_collection.rb
|
100
|
+
- lib/mss/core/resource.rb
|
101
|
+
- lib/mss/core/resource_cache.rb
|
102
|
+
- lib/mss/core/response.rb
|
103
|
+
- lib/mss/core/response_cache.rb
|
104
|
+
- lib/mss/core/rest_error_parser.rb
|
105
|
+
- lib/mss/core/rest_json_client.rb
|
106
|
+
- lib/mss/core/rest_request_builder.rb
|
107
|
+
- lib/mss/core/rest_response_parser.rb
|
108
|
+
- lib/mss/core/rest_xml_client.rb
|
109
|
+
- lib/mss/core/service_interface.rb
|
110
|
+
- lib/mss/core/signers/base.rb
|
111
|
+
- lib/mss/core/signers/cloud_front.rb
|
112
|
+
- lib/mss/core/signers/s3.rb
|
113
|
+
- lib/mss/core/signers/version_2.rb
|
114
|
+
- lib/mss/core/signers/version_3.rb
|
115
|
+
- lib/mss/core/signers/version_3_https.rb
|
116
|
+
- lib/mss/core/signers/version_4.rb
|
117
|
+
- lib/mss/core/signers/version_4/chunk_signed_stream.rb
|
118
|
+
- lib/mss/core/uri_escape.rb
|
119
|
+
- lib/mss/core/xml/frame.rb
|
120
|
+
- lib/mss/core/xml/frame_stack.rb
|
121
|
+
- lib/mss/core/xml/grammar.rb
|
122
|
+
- lib/mss/core/xml/parser.rb
|
123
|
+
- lib/mss/core/xml/root_frame.rb
|
124
|
+
- lib/mss/core/xml/sax_handlers/libxml.rb
|
125
|
+
- lib/mss/core/xml/sax_handlers/nokogiri.rb
|
126
|
+
- lib/mss/core/xml/sax_handlers/ox.rb
|
127
|
+
- lib/mss/core/xml/sax_handlers/rexml.rb
|
128
|
+
- lib/mss/core/xml/stub.rb
|
129
|
+
- lib/mss/errors.rb
|
130
|
+
- lib/mss/rails.rb
|
131
|
+
- lib/mss/s3.rb
|
132
|
+
- lib/mss/s3/access_control_list.rb
|
133
|
+
- lib/mss/s3/acl_object.rb
|
134
|
+
- lib/mss/s3/acl_options.rb
|
135
|
+
- lib/mss/s3/bucket.rb
|
136
|
+
- lib/mss/s3/bucket_collection.rb
|
137
|
+
- lib/mss/s3/bucket_lifecycle_configuration.rb
|
138
|
+
- lib/mss/s3/bucket_region_cache.rb
|
139
|
+
- lib/mss/s3/bucket_tag_collection.rb
|
140
|
+
- lib/mss/s3/bucket_version_collection.rb
|
141
|
+
- lib/mss/s3/cipher_io.rb
|
142
|
+
- lib/mss/s3/client.rb
|
143
|
+
- lib/mss/s3/client/xml.rb
|
144
|
+
- lib/mss/s3/config.rb
|
145
|
+
- lib/mss/s3/cors_rule.rb
|
146
|
+
- lib/mss/s3/cors_rule_collection.rb
|
147
|
+
- lib/mss/s3/data_options.rb
|
148
|
+
- lib/mss/s3/encryption_utils.rb
|
149
|
+
- lib/mss/s3/errors.rb
|
150
|
+
- lib/mss/s3/multipart_upload.rb
|
151
|
+
- lib/mss/s3/multipart_upload_collection.rb
|
152
|
+
- lib/mss/s3/object_collection.rb
|
153
|
+
- lib/mss/s3/object_metadata.rb
|
154
|
+
- lib/mss/s3/object_upload_collection.rb
|
155
|
+
- lib/mss/s3/object_version.rb
|
156
|
+
- lib/mss/s3/object_version_collection.rb
|
157
|
+
- lib/mss/s3/paginated_collection.rb
|
158
|
+
- lib/mss/s3/policy.rb
|
159
|
+
- lib/mss/s3/prefix_and_delimiter_collection.rb
|
160
|
+
- lib/mss/s3/prefixed_collection.rb
|
161
|
+
- lib/mss/s3/presign_v4.rb
|
162
|
+
- lib/mss/s3/presigned_post.rb
|
163
|
+
- lib/mss/s3/region_detection.rb
|
164
|
+
- lib/mss/s3/request.rb
|
165
|
+
- lib/mss/s3/s3_object.rb
|
166
|
+
- lib/mss/s3/tree.rb
|
167
|
+
- lib/mss/s3/tree/branch_node.rb
|
168
|
+
- lib/mss/s3/tree/child_collection.rb
|
169
|
+
- lib/mss/s3/tree/leaf_node.rb
|
170
|
+
- lib/mss/s3/tree/node.rb
|
171
|
+
- lib/mss/s3/tree/parent.rb
|
172
|
+
- lib/mss/s3/uploaded_part.rb
|
173
|
+
- lib/mss/s3/uploaded_part_collection.rb
|
174
|
+
- lib/mss/s3/website_configuration.rb
|
175
|
+
- lib/mss/version.rb
|
176
|
+
- rails/init.rb
|
177
|
+
homepage: https://mos.meituan.com
|
178
|
+
licenses:
|
179
|
+
- Apache 2.0
|
180
|
+
metadata: {}
|
181
|
+
post_install_message:
|
182
|
+
rdoc_options: []
|
183
|
+
require_paths:
|
184
|
+
- lib
|
185
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
requirements: []
|
196
|
+
rubyforge_project:
|
197
|
+
rubygems_version: 2.4.5.1
|
198
|
+
signing_key:
|
199
|
+
specification_version: 4
|
200
|
+
summary: MSS SDK for Ruby
|
201
|
+
test_files: []
|