s33r 0.5 → 0.5.1

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.
@@ -12,10 +12,8 @@ include S33r
12
12
  include Readline
13
13
 
14
14
  # AMAZON S3 KEYS!!!
15
- #accesskey = 'accesskey'
16
- #secretaccesskey = 'secretaccesskey'
17
- accesskey = '0X9Q0PZYBY1K0NBMTN02'
18
- secretaccesskey = 'mkKa0mBIcdUOrXPSM2NH7+PdOlD0LKD54isx62nw'
15
+ accesskey = 'accesskey'
16
+ secretaccesskey = 'secretaccesskey'
19
17
 
20
18
  puts "****************************"
21
19
 
@@ -2257,3 +2257,33 @@ Rendering within layouts/application
2257
2257
  Rendering browser/show_bucket
2258
2258
  Rendered browser/_upload (0.00143)
2259
2259
  Completed in 0.72835 (1 reqs/sec) | Rendering: 0.01473 (2%) | 200 OK [http://localhost/show_bucket/townx.org]
2260
+ BrowserController: missing default helper path browser_helper
2261
+
2262
+
2263
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-17 19:52:11) [GET]
2264
+ Session ID: fef5c8088669b1d4840591e420f21f88
2265
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2266
+ Rendering within layouts/application
2267
+ Rendering browser/index
2268
+ Rendered browser/_create_bucket (0.00184)
2269
+ Completed in 1.20525 (0 reqs/sec) | Rendering: 0.00910 (0%) | 200 OK [http://localhost/]
2270
+ BrowserController: missing default helper path browser_helper
2271
+
2272
+
2273
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-17 19:52:14) [GET]
2274
+ Session ID: fef5c8088669b1d4840591e420f21f88
2275
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "action"=>"show_bucket", "controller"=>"browser"}
2276
+ Rendering within layouts/application
2277
+ Rendering browser/show_bucket
2278
+ Rendered browser/_upload (0.00179)
2279
+ Completed in 0.94319 (1 reqs/sec) | Rendering: 0.00588 (0%) | 200 OK [http://localhost/show_bucket/elliotsmith-backup]
2280
+ BrowserController: missing default helper path browser_helper
2281
+
2282
+
2283
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 09:26:29) [GET]
2284
+ Session ID: fef5c8088669b1d4840591e420f21f88
2285
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2286
+ Rendering within layouts/application
2287
+ Rendering browser/index
2288
+ Rendered browser/_create_bucket (0.00285)
2289
+ Completed in 0.77938 (1 reqs/sec) | Rendering: 0.01656 (2%) | 200 OK [http://localhost/]
@@ -5,3 +5,4 @@ options:
5
5
  default_expires: '12th November 2033'
6
6
  use_ssl: true
7
7
  dump_requests: false
8
+ default_prefix: 'myprefix'
@@ -248,8 +248,6 @@ module S33r
248
248
  # acl on a put.
249
249
  #
250
250
  #-- TODO: finish documentation for options
251
- #-- TODO: implement canned_acl
252
- #-- TODO: pass Policy as an option
253
251
  def put(thing, options={}, headers={})
254
252
  is_file = options[:file]
255
253
 
@@ -0,0 +1,4 @@
1
+ Fixing namespaces for S3Exception
2
+ --This line, and those below, will be ignored--
3
+
4
+ M utility.rb
@@ -7,6 +7,7 @@ require 'cgi'
7
7
  base = File.dirname(__FILE__)
8
8
  require File.join(base, 'libxml_loader')
9
9
  require File.join(base, 'libxml_extensions')
10
+ require File.join(base, 's33r_exception')
10
11
 
11
12
  # Module to handle S3 operations which don't require an internet connection,
12
13
  # i.e. data validation and request-building operations;
@@ -23,6 +24,8 @@ require File.join(base, 'libxml_extensions')
23
24
  # this software code. (c) 2006 Amazon Digital Services, Inc. or its
24
25
  # affiliates.
25
26
  module S33r
27
+ include S3Exception
28
+
26
29
  HOST = 's3.amazonaws.com'
27
30
  PORT = 443
28
31
  NON_SSL_PORT = 80
@@ -74,8 +77,6 @@ module S33r
74
77
  }
75
78
  GROUP_ACL_URI_BASE = 'http://acs.amazonaws.com/groups/'
76
79
 
77
- include S3Exception
78
-
79
80
  # Load YAML config. file for S33r operations. The config. file looks like this:
80
81
  #
81
82
  # :include: test/files/config.yaml
@@ -251,7 +252,7 @@ module S33r
251
252
  headers = {}
252
253
  unless canned_acl.nil?
253
254
  unless CANNED_ACLS.include?(canned_acl)
254
- raise S3Exception::UnsupportedCannedACL, "The canned ACL #{canned_acl} is not supported"
255
+ raise UnsupportedCannedACL, "The canned ACL #{canned_acl} is not supported"
255
256
  end
256
257
  headers[AWS_HEADER_PREFIX + 'acl'] = canned_acl
257
258
  end
@@ -269,7 +270,7 @@ module S33r
269
270
  # Ensure that a bucket_name is well-formed (no leading or trailing slash).
270
271
  def bucket_name_valid?(bucket_name)
271
272
  if ('/' == bucket_name[0,1] || '/' == bucket_name[-1,1])
272
- raise S3Exception::MalformedBucketName, "Bucket name cannot have a leading or trailing slash"
273
+ raise MalformedBucketName, "Bucket name cannot have a leading or trailing slash"
273
274
  end
274
275
  end
275
276
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: s33r
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.5"
7
- date: 2007-01-17 00:00:00 +00:00
6
+ version: 0.5.1
7
+ date: 2007-01-18 00:00:00 +00:00
8
8
  summary: A library for accessing Amazon S3
9
9
  require_paths:
10
10
  - lib
@@ -72,6 +72,7 @@ files:
72
72
  - examples/fores33r/tmp/cache
73
73
  - examples/fores33r/tmp/sessions
74
74
  - examples/fores33r/tmp/sockets
75
+ - examples/fores33r/tmp/sessions/ruby_sess.75445a6f4154aa9d
75
76
  - examples/fores33r/log/development.log
76
77
  - examples/fores33r/log/mongrel.log
77
78
  - examples/fores33r/script/performance
@@ -135,6 +136,7 @@ files:
135
136
  - lib/s33r/bucket.rb
136
137
  - lib/s33r/networking.rb
137
138
  - lib/s33r/s3_logging.rb
139
+ - lib/s33r/svn-commit.tmp
138
140
  - test/files
139
141
  - test/cases
140
142
  - test/test_setup.rb