s33r 0.3.1 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/cli/acl_x.rb +41 -0
- data/examples/cli/logging_x.rb +20 -0
- data/{bin → examples/cli}/s3cli.rb +13 -20
- data/examples/fores33r/README +183 -0
- data/examples/fores33r/Rakefile +10 -0
- data/examples/fores33r/app/controllers/application.rb +4 -0
- data/examples/fores33r/app/controllers/browser_controller.rb +68 -0
- data/examples/fores33r/app/helpers/application_helper.rb +8 -0
- data/examples/fores33r/app/views/browser/index.rhtml +14 -0
- data/examples/fores33r/app/views/browser/show_bucket.rhtml +14 -0
- data/examples/fores33r/app/views/layouts/application.rhtml +29 -0
- data/examples/fores33r/config/boot.rb +44 -0
- data/examples/fores33r/config/database.yml +35 -0
- data/examples/fores33r/config/environment.rb +64 -0
- data/examples/fores33r/config/environments/development.rb +21 -0
- data/examples/fores33r/config/environments/production.rb +18 -0
- data/examples/fores33r/config/environments/test.rb +19 -0
- data/examples/fores33r/config/routes.rb +23 -0
- data/examples/fores33r/doc/README_FOR_APP +2 -0
- data/examples/fores33r/log/development.log +5507 -0
- data/examples/fores33r/log/production.log +0 -0
- data/examples/fores33r/log/server.log +0 -0
- data/examples/fores33r/log/test.log +0 -0
- data/examples/fores33r/public/404.html +8 -0
- data/examples/fores33r/public/500.html +8 -0
- data/examples/fores33r/public/dispatch.cgi +10 -0
- data/examples/fores33r/public/dispatch.fcgi +24 -0
- data/examples/fores33r/public/dispatch.rb +10 -0
- data/examples/fores33r/public/favicon.ico +0 -0
- data/examples/fores33r/public/images/rails.png +0 -0
- data/examples/fores33r/public/javascripts/application.js +2 -0
- data/examples/fores33r/public/javascripts/controls.js +815 -0
- data/examples/fores33r/public/javascripts/dragdrop.js +913 -0
- data/examples/fores33r/public/javascripts/effects.js +958 -0
- data/examples/fores33r/public/javascripts/prototype.js +2006 -0
- data/examples/fores33r/public/robots.txt +1 -0
- data/examples/fores33r/public/stylesheets/core.css +37 -0
- data/examples/fores33r/script/about +3 -0
- data/examples/fores33r/script/breakpointer +3 -0
- data/examples/fores33r/script/console +3 -0
- data/examples/fores33r/script/destroy +3 -0
- data/examples/fores33r/script/generate +3 -0
- data/examples/fores33r/script/performance/benchmarker +3 -0
- data/examples/fores33r/script/performance/profiler +3 -0
- data/examples/fores33r/script/plugin +3 -0
- data/examples/fores33r/script/process/reaper +3 -0
- data/examples/fores33r/script/process/spawner +3 -0
- data/examples/fores33r/script/runner +3 -0
- data/examples/fores33r/script/server +3 -0
- data/examples/fores33r/test/test_helper.rb +28 -0
- data/examples/fores33r/tmp/sessions/ruby_sess.39d37e054d21d545 +0 -0
- data/examples/fores33r/tmp/sessions/ruby_sess.acf71fc73aa74983 +0 -0
- data/examples/fores33r/tmp/sessions/ruby_sess.c1697b7d6670f3cd +0 -0
- data/examples/s3.yaml +11 -0
- data/html/classes/Net/HTTPGenericRequest.html +32 -32
- data/html/classes/Net/HTTPResponse.html +20 -19
- data/html/classes/S33r.html +422 -190
- data/html/classes/S33r/BucketListing.html +107 -70
- data/html/classes/S33r/Client.html +888 -414
- data/html/classes/S33r/LoggingResource.html +222 -0
- data/html/classes/S33r/NamedBucket.html +149 -150
- data/html/classes/S33r/OrderlyXmlMarkup.html +165 -0
- data/html/classes/S33r/S33rException.html +3 -0
- data/html/classes/S33r/S33rException/BucketNotLogTargetable.html +119 -0
- data/html/classes/S33r/S33rException/InvalidPermission.html +111 -0
- data/html/classes/S33r/S33rException/InvalidS3GroupType.html +111 -0
- data/html/classes/S33r/S3ACL.html +125 -0
- data/html/classes/S33r/S3ACL/ACLDoc.html +521 -0
- data/html/classes/S33r/{S3User.html → S3ACL/AmazonCustomer.html} +27 -30
- data/html/classes/S33r/S3ACL/CanonicalUser.html +212 -0
- data/html/classes/S33r/S3ACL/Grant.html +403 -0
- data/html/classes/S33r/S3ACL/Grantee.html +239 -0
- data/html/classes/S33r/S3ACL/Group.html +178 -0
- data/html/classes/S33r/S3Object.html +53 -50
- data/html/classes/S33r/Sync.html +6 -6
- data/html/classes/XML.html +4 -2
- data/html/created.rid +1 -1
- data/html/files/README_txt.html +82 -28
- data/html/files/lib/s33r/bucket_listing_rb.html +1 -8
- data/html/files/lib/s33r/builder_rb.html +108 -0
- data/html/files/lib/s33r/client_rb.html +2 -1
- data/html/files/lib/s33r/core_rb.html +2 -1
- data/html/files/lib/s33r/libxml_extensions_rb.html +1 -1
- data/html/files/lib/s33r/logging_rb.html +109 -0
- data/html/files/lib/s33r/named_bucket_rb.html +1 -1
- data/html/files/lib/s33r/s33r_exception_rb.html +1 -1
- data/html/files/lib/s33r/s33r_http_rb.html +1 -1
- data/html/files/lib/s33r/s3_acl_rb.html +109 -0
- data/html/fr_class_index.html +12 -1
- data/html/fr_file_index.html +3 -0
- data/html/fr_method_index.html +101 -57
- data/lib/s33r/bucket_listing.rb +21 -22
- data/lib/s33r/builder.rb +20 -0
- data/lib/s33r/client.rb +240 -42
- data/lib/s33r/core.rb +106 -36
- data/lib/s33r/libxml_extensions.rb +2 -2
- data/lib/s33r/logging.rb +43 -0
- data/lib/s33r/named_bucket.rb +16 -17
- data/lib/s33r/s33r_exception.rb +11 -0
- data/lib/s33r/s33r_http.rb +2 -1
- data/lib/s33r/s3_acl.rb +337 -0
- data/test/cases/spec_acl.rb +146 -0
- data/test/cases/spec_all_buckets.rb +28 -0
- data/test/cases/spec_bucket_listing.rb +2 -2
- data/test/cases/spec_client.rb +45 -18
- data/test/cases/spec_core.rb +0 -9
- data/test/cases/spec_namedbucket.rb +3 -3
- data/test/files/acl.xml +47 -0
- data/test/files/acl_grant1.xml +7 -0
- data/test/files/acl_grant2.xml +6 -0
- data/test/files/acl_grant3.xml +6 -0
- data/test/files/acl_grant4.xml +6 -0
- data/test/files/all_buckets.xml +21 -0
- data/test/files/bucket_listing.xml +138 -1
- data/test/files/client_config.yml +0 -1
- data/test/files/logging_acl.xml +34 -0
- data/test/files/namedbucket_config.yml +1 -5
- data/test/files/namedbucket_config2.yml +1 -5
- data/test/test_setup.rb +1 -0
- metadata +132 -7
@@ -0,0 +1,34 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
|
3
|
+
<Owner>
|
4
|
+
<ID>a9a7b886d6fd24a52fe8ca5bef65f89a64e0193f23000e241bf9b1c61be666e9</ID>
|
5
|
+
<DisplayName>chriscustomer</DisplayName>
|
6
|
+
</Owner>
|
7
|
+
<AccessControlList>
|
8
|
+
<Grant>
|
9
|
+
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
|
10
|
+
<ID>a9a7b886d6fd24a52fe8ca5bef65f89a64e0193f23000e241bf9b1c61be666e9</ID>
|
11
|
+
<DisplayName>chriscustomer</DisplayName>
|
12
|
+
</Grantee>
|
13
|
+
<Permission>FULL_CONTROL</Permission>
|
14
|
+
</Grant>
|
15
|
+
<Grant>
|
16
|
+
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AmazonCustomerByEmail">
|
17
|
+
<EmailAddress>elliot@test.org</EmailAddress>
|
18
|
+
</Grantee>
|
19
|
+
<Permission>READ</Permission>
|
20
|
+
</Grant>
|
21
|
+
<Grant>
|
22
|
+
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group">
|
23
|
+
<URI>http://acs.amazonaws.com/groups/s3/LogDelivery</URI>
|
24
|
+
</Grantee>
|
25
|
+
<Permission>READ_ACP</Permission>
|
26
|
+
</Grant>
|
27
|
+
<Grant>
|
28
|
+
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group">
|
29
|
+
<URI>http://acs.amazonaws.com/groups/s3/LogDelivery</URI>
|
30
|
+
</Grantee>
|
31
|
+
<Permission>WRITE</Permission>
|
32
|
+
</Grant>
|
33
|
+
</AccessControlList>
|
34
|
+
</AccessControlPolicy>
|
data/test/test_setup.rb
CHANGED
metadata
CHANGED
@@ -3,14 +3,14 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: s33r
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2006-
|
6
|
+
version: "0.4"
|
7
|
+
date: 2006-10-23 00:00:00 +01:00
|
8
8
|
summary: A library for accessing Amazon S3
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: elliot@moochlabs.com/
|
12
12
|
homepage: http://moochlabs.com/
|
13
|
-
rubyforge_project:
|
13
|
+
rubyforge_project: s33r
|
14
14
|
description:
|
15
15
|
autorequire: s33r
|
16
16
|
default_executable:
|
@@ -29,18 +29,111 @@ post_install_message:
|
|
29
29
|
authors:
|
30
30
|
- Elliot Smith
|
31
31
|
files:
|
32
|
-
-
|
32
|
+
- examples/cli
|
33
|
+
- examples/fores33r
|
34
|
+
- examples/s3.yaml
|
35
|
+
- examples/cli/s3cli.rb
|
36
|
+
- examples/cli/acl_x.rb
|
37
|
+
- examples/cli/logging_x.rb
|
38
|
+
- examples/fores33r/app
|
39
|
+
- examples/fores33r/config
|
40
|
+
- examples/fores33r/db
|
41
|
+
- examples/fores33r/doc
|
42
|
+
- examples/fores33r/lib
|
43
|
+
- examples/fores33r/log
|
44
|
+
- examples/fores33r/public
|
45
|
+
- examples/fores33r/script
|
46
|
+
- examples/fores33r/test
|
47
|
+
- examples/fores33r/vendor
|
48
|
+
- examples/fores33r/tmp
|
49
|
+
- examples/fores33r/Rakefile
|
50
|
+
- examples/fores33r/README
|
51
|
+
- examples/fores33r/app/controllers
|
52
|
+
- examples/fores33r/app/helpers
|
53
|
+
- examples/fores33r/app/models
|
54
|
+
- examples/fores33r/app/views
|
55
|
+
- examples/fores33r/app/controllers/application.rb
|
56
|
+
- examples/fores33r/app/controllers/browser_controller.rb
|
57
|
+
- examples/fores33r/app/helpers/application_helper.rb
|
58
|
+
- examples/fores33r/app/views/layouts
|
59
|
+
- examples/fores33r/app/views/browser
|
60
|
+
- examples/fores33r/app/views/layouts/application.rhtml
|
61
|
+
- examples/fores33r/app/views/browser/show_bucket.rhtml
|
62
|
+
- examples/fores33r/app/views/browser/index.rhtml
|
63
|
+
- examples/fores33r/config/environments
|
64
|
+
- examples/fores33r/config/database.yml
|
65
|
+
- examples/fores33r/config/routes.rb
|
66
|
+
- examples/fores33r/config/boot.rb
|
67
|
+
- examples/fores33r/config/environment.rb
|
68
|
+
- examples/fores33r/config/environments/production.rb
|
69
|
+
- examples/fores33r/config/environments/development.rb
|
70
|
+
- examples/fores33r/config/environments/test.rb
|
71
|
+
- examples/fores33r/doc/README_FOR_APP
|
72
|
+
- examples/fores33r/lib/tasks
|
73
|
+
- examples/fores33r/log/server.log
|
74
|
+
- examples/fores33r/log/production.log
|
75
|
+
- examples/fores33r/log/development.log
|
76
|
+
- examples/fores33r/log/test.log
|
77
|
+
- examples/fores33r/public/images
|
78
|
+
- examples/fores33r/public/javascripts
|
79
|
+
- examples/fores33r/public/stylesheets
|
80
|
+
- examples/fores33r/public/dispatch.rb
|
81
|
+
- examples/fores33r/public/dispatch.cgi
|
82
|
+
- examples/fores33r/public/dispatch.fcgi
|
83
|
+
- examples/fores33r/public/404.html
|
84
|
+
- examples/fores33r/public/500.html
|
85
|
+
- examples/fores33r/public/favicon.ico
|
86
|
+
- examples/fores33r/public/robots.txt
|
87
|
+
- examples/fores33r/public/images/rails.png
|
88
|
+
- examples/fores33r/public/javascripts/prototype.js
|
89
|
+
- examples/fores33r/public/javascripts/effects.js
|
90
|
+
- examples/fores33r/public/javascripts/dragdrop.js
|
91
|
+
- examples/fores33r/public/javascripts/controls.js
|
92
|
+
- examples/fores33r/public/javascripts/application.js
|
93
|
+
- examples/fores33r/public/stylesheets/core.css
|
94
|
+
- examples/fores33r/script/performance
|
95
|
+
- examples/fores33r/script/process
|
96
|
+
- examples/fores33r/script/about
|
97
|
+
- examples/fores33r/script/breakpointer
|
98
|
+
- examples/fores33r/script/console
|
99
|
+
- examples/fores33r/script/destroy
|
100
|
+
- examples/fores33r/script/generate
|
101
|
+
- examples/fores33r/script/runner
|
102
|
+
- examples/fores33r/script/server
|
103
|
+
- examples/fores33r/script/plugin
|
104
|
+
- examples/fores33r/script/performance/benchmarker
|
105
|
+
- examples/fores33r/script/performance/profiler
|
106
|
+
- examples/fores33r/script/process/reaper
|
107
|
+
- examples/fores33r/script/process/spawner
|
108
|
+
- examples/fores33r/test/fixtures
|
109
|
+
- examples/fores33r/test/functional
|
110
|
+
- examples/fores33r/test/integration
|
111
|
+
- examples/fores33r/test/mocks
|
112
|
+
- examples/fores33r/test/unit
|
113
|
+
- examples/fores33r/test/test_helper.rb
|
114
|
+
- examples/fores33r/test/mocks/development
|
115
|
+
- examples/fores33r/test/mocks/test
|
116
|
+
- examples/fores33r/vendor/plugins
|
117
|
+
- examples/fores33r/tmp/sessions
|
118
|
+
- examples/fores33r/tmp/sockets
|
119
|
+
- examples/fores33r/tmp/cache
|
120
|
+
- examples/fores33r/tmp/sessions/ruby_sess.c1697b7d6670f3cd
|
121
|
+
- examples/fores33r/tmp/sessions/ruby_sess.acf71fc73aa74983
|
122
|
+
- examples/fores33r/tmp/sessions/ruby_sess.39d37e054d21d545
|
33
123
|
- lib/s33r
|
34
124
|
- lib/s33r.rb
|
35
125
|
- lib/s33r/sync.rb
|
36
126
|
- lib/s33r/client.rb
|
37
127
|
- lib/s33r/mimetypes.rb
|
128
|
+
- lib/s33r/builder.rb
|
38
129
|
- lib/s33r/s33r_http.rb
|
39
130
|
- lib/s33r/bucket_listing.rb
|
131
|
+
- lib/s33r/s3_acl.rb
|
40
132
|
- lib/s33r/core.rb
|
41
133
|
- lib/s33r/named_bucket.rb
|
42
134
|
- lib/s33r/libxml_extensions.rb
|
43
135
|
- lib/s33r/s33r_exception.rb
|
136
|
+
- lib/s33r/logging.rb
|
44
137
|
- test/files
|
45
138
|
- test/test_bucket_setup.rb
|
46
139
|
- test/test_setup.rb
|
@@ -55,12 +148,21 @@ files:
|
|
55
148
|
- test/files/namedbucket_config.yml
|
56
149
|
- test/files/namedbucket_config2.yml
|
57
150
|
- test/files/client_config.yml
|
151
|
+
- test/files/all_buckets.xml
|
152
|
+
- test/files/acl.xml
|
153
|
+
- test/files/acl_grant2.xml
|
154
|
+
- test/files/acl_grant1.xml
|
155
|
+
- test/files/acl_grant3.xml
|
156
|
+
- test/files/acl_grant4.xml
|
157
|
+
- test/files/logging_acl.xml
|
58
158
|
- test/cases/spec_core.rb
|
59
159
|
- test/cases/spec_sync.rb
|
60
160
|
- test/cases/spec_bucket_listing.rb
|
161
|
+
- test/cases/spec_all_buckets.rb
|
61
162
|
- test/cases/spec_xml.rb
|
62
163
|
- test/cases/spec_client.rb
|
63
164
|
- test/cases/spec_namedbucket.rb
|
165
|
+
- test/cases/spec_acl.rb
|
64
166
|
- html/created.rid
|
65
167
|
- html/rdoc-style.css
|
66
168
|
- html/files
|
@@ -78,12 +180,15 @@ files:
|
|
78
180
|
- html/files/lib/s33r/sync_rb.html
|
79
181
|
- html/files/lib/s33r/client_rb.html
|
80
182
|
- html/files/lib/s33r/mimetypes_rb.html
|
183
|
+
- html/files/lib/s33r/builder_rb.html
|
81
184
|
- html/files/lib/s33r/s33r_http_rb.html
|
82
185
|
- html/files/lib/s33r/bucket_listing_rb.html
|
186
|
+
- html/files/lib/s33r/s3_acl_rb.html
|
83
187
|
- html/files/lib/s33r/core_rb.html
|
84
188
|
- html/files/lib/s33r/named_bucket_rb.html
|
85
189
|
- html/files/lib/s33r/libxml_extensions_rb.html
|
86
190
|
- html/files/lib/s33r/s33r_exception_rb.html
|
191
|
+
- html/files/lib/s33r/logging_rb.html
|
87
192
|
- html/classes/XML.html
|
88
193
|
- html/classes/XML
|
89
194
|
- html/classes/Net.html
|
@@ -102,11 +207,14 @@ files:
|
|
102
207
|
- html/classes/S33r/S33rException.html
|
103
208
|
- html/classes/S33r/S33rException
|
104
209
|
- html/classes/S33r/Sync.html
|
105
|
-
- html/classes/S33r/
|
210
|
+
- html/classes/S33r/S3ACL.html
|
211
|
+
- html/classes/S33r/S3ACL
|
212
|
+
- html/classes/S33r/LoggingResource.html
|
106
213
|
- html/classes/S33r/S3Object.html
|
107
214
|
- html/classes/S33r/NamedBucket.html
|
108
215
|
- html/classes/S33r/BucketListing.html
|
109
216
|
- html/classes/S33r/Client.html
|
217
|
+
- html/classes/S33r/OrderlyXmlMarkup.html
|
110
218
|
- html/classes/S33r/S33rException/MissingResource.html
|
111
219
|
- html/classes/S33r/S33rException/InvalidBucketListing.html
|
112
220
|
- html/classes/S33r/S33rException/BucketListingMaxKeysError.html
|
@@ -114,9 +222,18 @@ files:
|
|
114
222
|
- html/classes/S33r/S33rException/MalformedBucketName.html
|
115
223
|
- html/classes/S33r/S33rException/MissingRequiredHeaders.html
|
116
224
|
- html/classes/S33r/S33rException/MethodNotAvailable.html
|
225
|
+
- html/classes/S33r/S33rException/InvalidPermission.html
|
226
|
+
- html/classes/S33r/S33rException/InvalidS3GroupType.html
|
117
227
|
- html/classes/S33r/S33rException/S3FallenOver.html
|
118
228
|
- html/classes/S33r/S33rException/UnsupportedCannedACL.html
|
119
229
|
- html/classes/S33r/S33rException/UnsupportedHTTPMethod.html
|
230
|
+
- html/classes/S33r/S33rException/BucketNotLogTargetable.html
|
231
|
+
- html/classes/S33r/S3ACL/Group.html
|
232
|
+
- html/classes/S33r/S3ACL/CanonicalUser.html
|
233
|
+
- html/classes/S33r/S3ACL/AmazonCustomer.html
|
234
|
+
- html/classes/S33r/S3ACL/ACLDoc.html
|
235
|
+
- html/classes/S33r/S3ACL/Grantee.html
|
236
|
+
- html/classes/S33r/S3ACL/Grant.html
|
120
237
|
test_files: []
|
121
238
|
|
122
239
|
rdoc_options: []
|
@@ -129,5 +246,13 @@ extensions: []
|
|
129
246
|
|
130
247
|
requirements: []
|
131
248
|
|
132
|
-
dependencies:
|
133
|
-
|
249
|
+
dependencies:
|
250
|
+
- !ruby/object:Gem::Dependency
|
251
|
+
name: builder
|
252
|
+
version_requirement:
|
253
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 0.0.0
|
258
|
+
version:
|