s33r 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,11 @@ include Readline
14
14
  # AMAZON S3 KEYS!!!
15
15
  accesskey = 'accesskey'
16
16
  secretaccesskey = 'secretaccesskey'
17
+ if 'accesskey' == accesskey
18
+ config, _ = S33r.load_config('../fores33r/config/s3.yaml')
19
+ accesskey = config[:access]
20
+ secretaccesskey = config[:secret]
21
+ end
17
22
 
18
23
  puts "****************************"
19
24
 
@@ -2287,3 +2287,746 @@ Rendering within layouts/application
2287
2287
  Rendering browser/index
2288
2288
  Rendered browser/_create_bucket (0.00285)
2289
2289
  Completed in 0.77938 (1 reqs/sec) | Rendering: 0.01656 (2%) | 200 OK [http://localhost/]
2290
+ BrowserController: missing default helper path browser_helper
2291
+
2292
+
2293
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:22:05) [GET]
2294
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2295
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2296
+
2297
+
2298
+ NoMethodError (undefined method `s3_url' for #<S33r::Client:0xb76689a8>):
2299
+ .//../../lib/s33r/networking.rb:53:in `do_request'
2300
+ .//../../lib/s33r/networking.rb:165:in `do_get'
2301
+ .//../../lib/s33r/client.rb:93:in `buckets'
2302
+ .//../../lib/s33r/client.rb:117:in `bucket_names'
2303
+ /app/controllers/browser_controller.rb:12:in `index'
2304
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
2305
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
2306
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2307
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2308
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2309
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2310
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2311
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2312
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2313
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2314
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2315
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2316
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2317
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2318
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2319
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2320
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2321
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2322
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2323
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2324
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2325
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2326
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2327
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2328
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2329
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2330
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2331
+ script/server:3
2332
+
2333
+
2334
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2335
+ BrowserController: missing default helper path browser_helper
2336
+
2337
+
2338
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:22:25) [GET]
2339
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2340
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2341
+
2342
+
2343
+ NameError (/opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant Get):
2344
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2345
+ (eval):1:in `do_request'
2346
+ .//../../lib/s33r/networking.rb:165:in `eval'
2347
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2348
+ .//../../lib/s33r/networking.rb:165:in `do_get'
2349
+ .//../../lib/s33r/client.rb:93:in `buckets'
2350
+ .//../../lib/s33r/client.rb:117:in `bucket_names'
2351
+ /app/controllers/browser_controller.rb:12:in `index'
2352
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
2353
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
2354
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2355
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2356
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2357
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2358
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2359
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2360
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2361
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2362
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2363
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2364
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2365
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2366
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2367
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2368
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2369
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2370
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2371
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2372
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2373
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2374
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2375
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2376
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2377
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2378
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2379
+ script/server:3
2380
+
2381
+
2382
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2383
+ BrowserController: missing default helper path browser_helper
2384
+
2385
+
2386
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:22:48) [GET]
2387
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2388
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2389
+
2390
+
2391
+ NameError (/opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant Get):
2392
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2393
+ (eval):1:in `do_request'
2394
+ .//../../lib/s33r/networking.rb:165:in `eval'
2395
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2396
+ .//../../lib/s33r/networking.rb:165:in `do_get'
2397
+ .//../../lib/s33r/client.rb:93:in `buckets'
2398
+ .//../../lib/s33r/client.rb:117:in `bucket_names'
2399
+ /app/controllers/browser_controller.rb:12:in `index'
2400
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
2401
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
2402
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2403
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2404
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2405
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2406
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2407
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2408
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2409
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2410
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2411
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2412
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2413
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2414
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2415
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2416
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2417
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2418
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2419
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2420
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2421
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2422
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2423
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2424
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2425
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2426
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2427
+ script/server:3
2428
+
2429
+
2430
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2431
+ BrowserController: missing default helper path browser_helper
2432
+
2433
+
2434
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:22:50) [GET]
2435
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2436
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2437
+
2438
+
2439
+ NameError (/opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant Get):
2440
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2441
+ (eval):1:in `do_request'
2442
+ .//../../lib/s33r/networking.rb:165:in `eval'
2443
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2444
+ .//../../lib/s33r/networking.rb:165:in `do_get'
2445
+ .//../../lib/s33r/client.rb:93:in `buckets'
2446
+ .//../../lib/s33r/client.rb:117:in `bucket_names'
2447
+ /app/controllers/browser_controller.rb:12:in `index'
2448
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
2449
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
2450
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2451
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2452
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2453
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2454
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2455
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2456
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2457
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2458
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2459
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2460
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2461
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2462
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2463
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2464
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2465
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2466
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2467
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2468
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2469
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2470
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2471
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2472
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2473
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2474
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2475
+ script/server:3
2476
+
2477
+
2478
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2479
+ BrowserController: missing default helper path browser_helper
2480
+
2481
+
2482
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:23:24) [GET]
2483
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2484
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2485
+
2486
+
2487
+ NameError (/opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant Get):
2488
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2489
+ (eval):1:in `do_request'
2490
+ .//../../lib/s33r/networking.rb:165:in `eval'
2491
+ .//../../lib/s33r/networking.rb:62:in `do_request'
2492
+ .//../../lib/s33r/networking.rb:165:in `do_get'
2493
+ .//../../lib/s33r/client.rb:93:in `buckets'
2494
+ .//../../lib/s33r/client.rb:117:in `bucket_names'
2495
+ /app/controllers/browser_controller.rb:12:in `index'
2496
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
2497
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
2498
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2499
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2500
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2501
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2502
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2503
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2504
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2505
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2506
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2507
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2508
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2509
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2510
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2511
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2512
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2513
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2514
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2515
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2516
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2517
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2518
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2519
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2520
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2521
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2522
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2523
+ script/server:3
2524
+
2525
+
2526
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2527
+ BrowserController: missing default helper path browser_helper
2528
+
2529
+
2530
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:24:08) [GET]
2531
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2532
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2533
+ Rendering within layouts/application
2534
+ Rendering browser/index
2535
+ Rendered browser/_create_bucket (0.00169)
2536
+ Completed in 1.02442 (0 reqs/sec) | Rendering: 0.06193 (6%) | 200 OK [http://localhost/]
2537
+ BrowserController: missing default helper path browser_helper
2538
+
2539
+
2540
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:24:11) [GET]
2541
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2542
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "action"=>"show_bucket", "controller"=>"browser"}
2543
+ Rendering within layouts/application
2544
+ Rendering browser/show_bucket
2545
+ Rendered browser/_upload (0.00192)
2546
+ Completed in 0.87333 (1 reqs/sec) | Rendering: 0.03982 (4%) | 200 OK [http://localhost/show_bucket/elliotsmith-backup]
2547
+ BrowserController: missing default helper path browser_helper
2548
+
2549
+
2550
+ Processing BrowserController#delete (for 127.0.0.1 at 2007-01-18 23:24:15) [GET]
2551
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2552
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "resource_key"=>"osbc_us_2005_notes.html", "action"=>"delete", "controller"=>"browser"}
2553
+ Redirected to http://localhost:3000/show_bucket/elliotsmith-backup
2554
+ Completed in 0.52855 (1 reqs/sec) | 302 Found [http://localhost/delete/elliotsmith-backup/osbc_us_2005_notes.html]
2555
+ BrowserController: missing default helper path browser_helper
2556
+
2557
+
2558
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:24:16) [GET]
2559
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2560
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "action"=>"show_bucket", "controller"=>"browser"}
2561
+ Rendering within layouts/application
2562
+ Rendering browser/show_bucket
2563
+ Rendered browser/_upload (0.00113)
2564
+ Completed in 0.49325 (2 reqs/sec) | Rendering: 0.00305 (0%) | 200 OK [http://localhost/show_bucket/elliotsmith-backup]
2565
+ BrowserController: missing default helper path browser_helper
2566
+
2567
+
2568
+ Processing BrowserController#upload (for 127.0.0.1 at 2007-01-18 23:24:21) [POST]
2569
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2570
+ Parameters: {"commit"=>"Upload", "action"=>"upload", "upload"=>{"bucket_name"=>"elliotsmith-backup", "filename"=>#<File:/tmp/CGI10081.1>}, "controller"=>"browser"}
2571
+ Redirected to http://localhost:3000/show_bucket/elliotsmith-backup
2572
+ Completed in 1.59526 (0 reqs/sec) | 302 Found [http://localhost/browser/upload]
2573
+ BrowserController: missing default helper path browser_helper
2574
+
2575
+
2576
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:24:23) [GET]
2577
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2578
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "action"=>"show_bucket", "controller"=>"browser"}
2579
+ Rendering within layouts/application
2580
+ Rendering browser/show_bucket
2581
+ Rendered browser/_upload (0.00143)
2582
+ Completed in 0.81280 (1 reqs/sec) | Rendering: 0.00688 (0%) | 200 OK [http://localhost/show_bucket/elliotsmith-backup]
2583
+ BrowserController: missing default helper path browser_helper
2584
+
2585
+
2586
+ Processing BrowserController#delete (for 127.0.0.1 at 2007-01-18 23:24:29) [GET]
2587
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2588
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "resource_key"=>"RedCloth-3.0.4.gem", "action"=>"delete", "controller"=>"browser"}
2589
+ Redirected to http://localhost:3000/show_bucket/elliotsmith-backup
2590
+ Completed in 0.49471 (2 reqs/sec) | 302 Found [http://localhost/delete/elliotsmith-backup/RedCloth-3.0.4.gem]
2591
+ BrowserController: missing default helper path browser_helper
2592
+
2593
+
2594
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:24:30) [GET]
2595
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2596
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "action"=>"show_bucket", "controller"=>"browser"}
2597
+ Rendering within layouts/application
2598
+ Rendering browser/show_bucket
2599
+ Rendered browser/_upload (0.00145)
2600
+ Completed in 0.59698 (1 reqs/sec) | Rendering: 0.00448 (0%) | 200 OK [http://localhost/show_bucket/elliotsmith-backup]
2601
+ BrowserController: missing default helper path browser_helper
2602
+
2603
+
2604
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:24:32) [GET]
2605
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2606
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2607
+ Rendering within layouts/application
2608
+ Rendering browser/index
2609
+ Rendered browser/_create_bucket (0.00071)
2610
+ Completed in 0.78859 (1 reqs/sec) | Rendering: 0.00531 (0%) | 200 OK [http://localhost/]
2611
+ BrowserController: missing default helper path browser_helper
2612
+
2613
+
2614
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:24:34) [GET]
2615
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2616
+ Parameters: {"bucket_name"=>"elliotsmith-s33r-demo", "action"=>"show_bucket", "controller"=>"browser"}
2617
+ Rendering within layouts/application
2618
+ Rendering browser/show_bucket
2619
+ Rendered browser/_upload (0.00155)
2620
+ Completed in 0.89607 (1 reqs/sec) | Rendering: 0.00720 (0%) | 200 OK [http://localhost/show_bucket/elliotsmith-s33r-demo]
2621
+ BrowserController: missing default helper path browser_helper
2622
+
2623
+
2624
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:24:37) [GET]
2625
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2626
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2627
+ Rendering within layouts/application
2628
+ Rendering browser/index
2629
+ Rendered browser/_create_bucket (0.00086)
2630
+ Completed in 0.79893 (1 reqs/sec) | Rendering: 0.00635 (0%) | 200 OK [http://localhost/]
2631
+ BrowserController: missing default helper path browser_helper
2632
+
2633
+
2634
+ Processing BrowserController#create_bucket (for 127.0.0.1 at 2007-01-18 23:24:42) [POST]
2635
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2636
+ Parameters: {"commit"=>"Create", "bucket"=>{"name"=>"elliotsmith-charlieboy", "prefix"=>"1"}, "action"=>"create_bucket", "controller"=>"browser"}
2637
+ Redirected to http://localhost:3000/
2638
+ Completed in 0.92465 (1 reqs/sec) | 302 Found [http://localhost/create_bucket]
2639
+ BrowserController: missing default helper path browser_helper
2640
+
2641
+
2642
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:24:43) [GET]
2643
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2644
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2645
+ Rendering within layouts/application
2646
+ Rendering browser/index
2647
+ Rendered browser/_create_bucket (0.00135)
2648
+ Completed in 0.79534 (1 reqs/sec) | Rendering: 0.01203 (1%) | 200 OK [http://localhost/]
2649
+ BrowserController: missing default helper path browser_helper
2650
+
2651
+
2652
+ Processing BrowserController#delete (for 127.0.0.1 at 2007-01-18 23:24:47) [GET]
2653
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2654
+ Parameters: {"bucket_name"=>"elliotsmith-elliotsmith-charlieboy", "action"=>"delete", "controller"=>"browser"}
2655
+ Redirected to http://localhost:3000/
2656
+ Completed in 1.10006 (0 reqs/sec) | 302 Found [http://localhost/delete/elliotsmith-elliotsmith-charlieboy]
2657
+ BrowserController: missing default helper path browser_helper
2658
+
2659
+
2660
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:24:48) [GET]
2661
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2662
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2663
+ Rendering within layouts/application
2664
+ Rendering browser/index
2665
+ Rendered browser/_create_bucket (0.00222)
2666
+ Completed in 0.81461 (1 reqs/sec) | Rendering: 0.01161 (1%) | 200 OK [http://localhost/]
2667
+ BrowserController: missing default helper path browser_helper
2668
+
2669
+
2670
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:39:31) [GET]
2671
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2672
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2673
+
2674
+
2675
+ NoMethodError (undefined method `s3_url' for #<S33r::Client:0xb7611548>):
2676
+ .//../../lib/s33r/networking.rb:53:in `do_request'
2677
+ .//../../lib/s33r/networking.rb:165:in `do_get'
2678
+ .//../../lib/s33r/client.rb:93:in `buckets'
2679
+ .//../../lib/s33r/client.rb:117:in `bucket_names'
2680
+ /app/controllers/browser_controller.rb:12:in `index'
2681
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters'
2682
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
2683
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2684
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2685
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2686
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2687
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2688
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2689
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2690
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2691
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2692
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2693
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2694
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2695
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2696
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2697
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2698
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2699
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2700
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2701
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2702
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2703
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2704
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2705
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2706
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2707
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2708
+ script/server:3
2709
+
2710
+
2711
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2712
+ BrowserController: missing default helper path browser_helper
2713
+
2714
+
2715
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:39:45) [GET]
2716
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2717
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2718
+ Rendering within layouts/application
2719
+ Rendering browser/index
2720
+ Rendered browser/_create_bucket (0.00149)
2721
+ Completed in 0.79398 (1 reqs/sec) | Rendering: 0.00893 (1%) | 200 OK [http://localhost/]
2722
+ BrowserController: missing default helper path browser_helper
2723
+
2724
+
2725
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:39:48) [GET]
2726
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2727
+ Parameters: {"bucket_name"=>"elliotsmith-backup", "action"=>"show_bucket", "controller"=>"browser"}
2728
+ Rendering within layouts/application
2729
+ Rendering browser/show_bucket
2730
+ Rendered browser/_upload (0.00156)
2731
+ Completed in 0.60257 (1 reqs/sec) | Rendering: 0.00469 (0%) | 200 OK [http://localhost/show_bucket/elliotsmith-backup]
2732
+ BrowserController: missing default helper path browser_helper
2733
+
2734
+
2735
+ Processing BrowserController#index (for 127.0.0.1 at 2007-01-18 23:39:51) [GET]
2736
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2737
+ Parameters: {"action"=>"index", "controller"=>"browser"}
2738
+ Rendering within layouts/application
2739
+ Rendering browser/index
2740
+ Rendered browser/_create_bucket (0.00085)
2741
+ Completed in 0.78675 (1 reqs/sec) | Rendering: 0.00642 (0%) | 200 OK [http://localhost/]
2742
+ BrowserController: missing default helper path browser_helper
2743
+
2744
+
2745
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:39:54) [GET]
2746
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2747
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
2748
+ Rendering within layouts/application
2749
+ Rendering browser/show_bucket
2750
+ Rendered browser/_upload (0.00449)
2751
+ Completed in 0.97351 (1 reqs/sec) | Rendering: 0.12280 (12%) | 200 OK [http://localhost/show_bucket/townx.org]
2752
+ BrowserController: missing default helper path browser_helper
2753
+
2754
+
2755
+ Processing BrowserController#delete (for 127.0.0.1 at 2007-01-18 23:39:58) [GET]
2756
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2757
+ Parameters: {"bucket_name"=>"townx.org", "resource_key"=>"/home/ell/personal/photos/misc/elliot.jpg", "action"=>"delete", "controller"=>"browser"}
2758
+ Redirected to http://localhost:3000/show_bucket/townx.org
2759
+ Completed in 0.48315 (2 reqs/sec) | 302 Found [http://localhost/delete/townx.org/%2Fhome%2Fell%2Fpersonal%2Fphotos%2Fmisc%2Felliot.jpg]
2760
+ BrowserController: missing default helper path browser_helper
2761
+
2762
+
2763
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-18 23:39:58) [GET]
2764
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2765
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
2766
+ Rendering within layouts/application
2767
+ Rendering browser/show_bucket
2768
+ Rendered browser/_upload (0.00142)
2769
+ Completed in 1.30787 (0 reqs/sec) | Rendering: 0.01456 (1%) | 200 OK [http://localhost/show_bucket/townx.org]
2770
+ BrowserController: missing default helper path browser_helper
2771
+
2772
+
2773
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:04:16) [GET]
2774
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2775
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
2776
+
2777
+
2778
+ NoMethodError (undefined method `bucket_name_valid?' for #<S33r::Bucket:0xb744c118>):
2779
+ .//../../lib/s33r/bucket.rb:16:in `initialize'
2780
+ .//../../lib/s33r/client.rb:139:in `get_bucket'
2781
+ /app/controllers/browser_controller.rb:90:in `get_bucket_listing'
2782
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `call_filters'
2783
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `call_filters'
2784
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:383:in `before_action'
2785
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:365:in `perform_action_without_benchmark'
2786
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2787
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2788
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2789
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2790
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2791
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2792
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2793
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2794
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2795
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2796
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2797
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2798
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2799
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2800
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2801
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2802
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2803
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2804
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2805
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2806
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2807
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2808
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2809
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2810
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2811
+ script/server:3
2812
+
2813
+
2814
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2815
+ BrowserController: missing default helper path browser_helper
2816
+
2817
+
2818
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:04:17) [GET]
2819
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2820
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
2821
+
2822
+
2823
+ NoMethodError (undefined method `bucket_name_valid?' for #<S33r::Bucket:0xb766d53c>):
2824
+ .//../../lib/s33r/bucket.rb:16:in `initialize'
2825
+ .//../../lib/s33r/client.rb:139:in `get_bucket'
2826
+ /app/controllers/browser_controller.rb:90:in `get_bucket_listing'
2827
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `call_filters'
2828
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `call_filters'
2829
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:383:in `before_action'
2830
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:365:in `perform_action_without_benchmark'
2831
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2832
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2833
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2834
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2835
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2836
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2837
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2838
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2839
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2840
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2841
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2842
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2843
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2844
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2845
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2846
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2847
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2848
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2849
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2850
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2851
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2852
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2853
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2854
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2855
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2856
+ script/server:3
2857
+
2858
+
2859
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2860
+ BrowserController: missing default helper path browser_helper
2861
+
2862
+
2863
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:04:18) [GET]
2864
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2865
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
2866
+
2867
+
2868
+ NoMethodError (undefined method `bucket_name_valid?' for #<S33r::Bucket:0xb744a174>):
2869
+ .//../../lib/s33r/bucket.rb:16:in `initialize'
2870
+ .//../../lib/s33r/client.rb:139:in `get_bucket'
2871
+ /app/controllers/browser_controller.rb:90:in `get_bucket_listing'
2872
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `call_filters'
2873
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `call_filters'
2874
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:383:in `before_action'
2875
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:365:in `perform_action_without_benchmark'
2876
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2877
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2878
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2879
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2880
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2881
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2882
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2883
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2884
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2885
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2886
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2887
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2888
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2889
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2890
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2891
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2892
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2893
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2894
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2895
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2896
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2897
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2898
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2899
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2900
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2901
+ script/server:3
2902
+
2903
+
2904
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2905
+ BrowserController: missing default helper path browser_helper
2906
+
2907
+
2908
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:04:18) [GET]
2909
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2910
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
2911
+
2912
+
2913
+ NoMethodError (undefined method `bucket_name_valid?' for #<S33r::Bucket:0xb76991a0>):
2914
+ .//../../lib/s33r/bucket.rb:16:in `initialize'
2915
+ .//../../lib/s33r/client.rb:139:in `get_bucket'
2916
+ /app/controllers/browser_controller.rb:90:in `get_bucket_listing'
2917
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `call_filters'
2918
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `call_filters'
2919
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:383:in `before_action'
2920
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:365:in `perform_action_without_benchmark'
2921
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2922
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2923
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2924
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2925
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2926
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2927
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2928
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2929
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2930
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2931
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2932
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2933
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2934
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2935
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2936
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2937
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2938
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2939
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2940
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2941
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2942
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2943
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2944
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2945
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2946
+ script/server:3
2947
+
2948
+
2949
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2950
+ BrowserController: missing default helper path browser_helper
2951
+
2952
+
2953
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:04:20) [GET]
2954
+ Session ID: e2df130ead6691252a2fe285c054fbdd
2955
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
2956
+
2957
+
2958
+ NoMethodError (undefined method `bucket_name_valid?' for #<S33r::Bucket:0xb74a8058>):
2959
+ .//../../lib/s33r/bucket.rb:16:in `initialize'
2960
+ .//../../lib/s33r/client.rb:139:in `get_bucket'
2961
+ /app/controllers/browser_controller.rb:90:in `get_bucket_listing'
2962
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `call_filters'
2963
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `call_filters'
2964
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:383:in `before_action'
2965
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:365:in `perform_action_without_benchmark'
2966
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2967
+ /opt/lampp/lib/ruby/1.8/benchmark.rb:293:in `measure'
2968
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
2969
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
2970
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
2971
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
2972
+ /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
2973
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
2974
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
2975
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
2976
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
2977
+ /opt/lampp/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
2978
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
2979
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
2980
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:95:in `start'
2981
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:92:in `start'
2982
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:23:in `start'
2983
+ /opt/lampp/lib/ruby/1.8/webrick/server.rb:82:in `start'
2984
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
2985
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
2986
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2987
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2988
+ /opt/lampp/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
2989
+ /opt/lampp/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
2990
+ /opt/lampp/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
2991
+ script/server:3
2992
+
2993
+
2994
+ Rendering /opt/lampp/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
2995
+ BrowserController: missing default helper path browser_helper
2996
+
2997
+
2998
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:04:44) [GET]
2999
+ Session ID: e2df130ead6691252a2fe285c054fbdd
3000
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
3001
+ Rendering within layouts/application
3002
+ Rendering browser/show_bucket
3003
+ Rendered browser/_upload (0.00277)
3004
+ Completed in 20.85113 (0 reqs/sec) | Rendering: 0.01806 (0%) | 200 OK [http://localhost/show_bucket/townx.org]
3005
+ BrowserController: missing default helper path browser_helper
3006
+
3007
+
3008
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:05:06) [GET]
3009
+ Session ID: e2df130ead6691252a2fe285c054fbdd
3010
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
3011
+ Rendering within layouts/application
3012
+ Rendering browser/show_bucket
3013
+ Rendered browser/_upload (0.00149)
3014
+ Completed in 0.90474 (1 reqs/sec) | Rendering: 0.01082 (1%) | 200 OK [http://localhost/show_bucket/townx.org]
3015
+ BrowserController: missing default helper path browser_helper
3016
+
3017
+
3018
+ Processing BrowserController#delete (for 127.0.0.1 at 2007-01-19 00:05:13) [GET]
3019
+ Session ID: e2df130ead6691252a2fe285c054fbdd
3020
+ Parameters: {"bucket_name"=>"townx.org", "resource_key"=>"/home/ell/personal/photos/misc/greedy.jpg", "action"=>"delete", "controller"=>"browser"}
3021
+ Redirected to http://localhost:3000/show_bucket/townx.org
3022
+ Completed in 0.49438 (2 reqs/sec) | 302 Found [http://localhost/delete/townx.org/%2Fhome%2Fell%2Fpersonal%2Fphotos%2Fmisc%2Fgreedy.jpg]
3023
+ BrowserController: missing default helper path browser_helper
3024
+
3025
+
3026
+ Processing BrowserController#show_bucket (for 127.0.0.1 at 2007-01-19 00:05:13) [GET]
3027
+ Session ID: e2df130ead6691252a2fe285c054fbdd
3028
+ Parameters: {"bucket_name"=>"townx.org", "action"=>"show_bucket", "controller"=>"browser"}
3029
+ Rendering within layouts/application
3030
+ Rendering browser/show_bucket
3031
+ Rendered browser/_upload (0.00557)
3032
+ Completed in 1.31795 (0 reqs/sec) | Rendering: 0.01349 (1%) | 200 OK [http://localhost/show_bucket/townx.org]
@@ -1,2 +1,42 @@
1
+ require 'base64'
2
+ require 'time'
3
+ require 'yaml'
4
+ require 'erb'
5
+ require 'cgi'
6
+ require 'uri'
7
+ require 'openssl'
8
+ require 'net/http'
9
+ require 'net/https'
10
+ require 'stringio'
11
+
12
+ require 'rubygems'
13
+ require_gem 'builder'
14
+
15
+ begin
16
+ require 'xml/libxml'
17
+ rescue LoadError
18
+ require_gem 'libxml-ruby'
19
+ end
20
+
21
+ to_load = ['mimetypes', 'builder', 'libxml_extensions', 's33r_http', 'networking',
22
+ 's33r_exception', 'utility', 's3_acl', 's3_logging', 'bucket_listing', 'client', 'bucket', 's3_obj']
23
+
1
24
  base = File.join(File.dirname(__FILE__), 's33r')
2
- Dir[File.join(base, "*.rb")].each { |f| require f }
25
+ to_load.each do |f|
26
+ require File.join(base, f)
27
+ end
28
+
29
+ S33r.module_eval do
30
+ include S33r::S3Exception
31
+ end
32
+
33
+ S33r::Networking.module_eval do
34
+ include Net
35
+ end
36
+
37
+ S33r::Client.class_eval do
38
+ include S33r
39
+ include S33r::Networking
40
+ include S33r::S3Logging
41
+ include S33r::S3ACL
42
+ end
@@ -1,11 +1,7 @@
1
- base = File.dirname(__FILE__)
2
- require File.join(base, 'utility')
3
-
4
1
  # These methods are added to any Client with a bucket
5
2
  # binding set.
6
3
  module S33r
7
4
  class Bucket < Client
8
-
9
5
  attr_accessor :name
10
6
 
11
7
  # +options+:
@@ -17,6 +13,8 @@ module S33r
17
13
  # S33r will check before trying to create the bucket and will just return the
18
14
  # bucket if it does.
19
15
  def initialize(bucket_name, options={})
16
+ bucket_name_valid?(bucket_name)
17
+
20
18
  super(options)
21
19
 
22
20
  if options[:create]
@@ -1,7 +1,3 @@
1
- base = File.dirname(__FILE__)
2
- require File.join(base, 'libxml_loader')
3
- require File.join(base, 's33r_exception')
4
-
5
1
  module S33r
6
2
  # Represents a ListBucketResult
7
3
  # (see http://docs.amazonwebservices.com/AmazonS3/2006-03-01/)
@@ -25,7 +21,7 @@ module S33r
25
21
  rescue
26
22
  message = "Cannot create bucket listing from supplied XML"
27
23
  message += " (was nil)" if bucket_listing_xml.nil?
28
- raise S3Exception::InvalidBucketListing, message
24
+ raise InvalidBucketListing, message
29
25
  end
30
26
  end
31
27
 
@@ -1,5 +1,3 @@
1
- require 'builder'
2
-
3
1
  module S33r
4
2
  # Variant of XmlMarkup which explicitly orders attributes.
5
3
  class OrderlyXmlMarkup < Builder::XmlMarkup
@@ -1,19 +1,8 @@
1
- base = File.dirname(__FILE__)
2
- require File.join(base, 'networking')
3
- require File.join(base, 's3_acl')
4
- require File.join(base, 's3_logging')
5
- require File.join(base, 'utility')
6
-
7
1
  module S33r
8
2
  # Use this class to do operations on the Service, e.g.
9
3
  # creating buckets, deleting buckets, listing all buckets,
10
4
  # returning a single bucket.
11
5
  class Client
12
- include Networking
13
- include S3ACL
14
- include S3Logging
15
- include S33r
16
-
17
6
  # Options used to create this Client.
18
7
  attr_reader :created_with_options
19
8
 
@@ -53,6 +42,13 @@ module S33r
53
42
  set_options(options)
54
43
  end
55
44
 
45
+ # Setup a client from a YAML file.
46
+ def self.init(yaml_file)
47
+ config, options = S33r.load_config(yaml_file)
48
+ config.merge!(options)
49
+ self.new(config)
50
+ end
51
+
56
52
  # Set options for the client.
57
53
  #
58
54
  # +options+ may include the following which alter how the Client interacts with S3; they also
@@ -183,7 +179,7 @@ module S33r
183
179
  if options[:max_keys]
184
180
  max_keys = options[:max_keys].to_i
185
181
  if max_keys > BUCKET_LIST_MAX_MAX_KEYS
186
- raise S3Exception::BucketListingMaxKeysError, "max_keys option to list bucket cannot be > #{BUCKET_LIST_MAX_MAX_KEYS}"
182
+ raise BucketListingMaxKeysError, "max_keys option to list bucket cannot be > #{BUCKET_LIST_MAX_MAX_KEYS}"
187
183
  end
188
184
  querystring['max-keys'] = max_keys
189
185
  end
@@ -1,5 +1,3 @@
1
- require File.join(File.dirname(__FILE__), 'libxml_loader')
2
-
3
1
  # Convenience methods for libxml classes.
4
2
  module XML
5
3
  # Find first element matching +xpath+ and return its content
@@ -18,7 +16,7 @@ module XML
18
16
  end
19
17
 
20
18
  # Parse an XML string into an XML::Document instance.
21
- def XML.get_xml_doc(xml_str)
19
+ def self.get_xml_doc(xml_str)
22
20
  parser = XML::Parser.new
23
21
  parser.string = xml_str
24
22
  parser.parse
@@ -1,5 +1,3 @@
1
- # TODO: clarify license
2
- #
3
1
  # MIME::Types for Ruby
4
2
  # Version 1.15
5
3
  #
@@ -8,7 +6,8 @@
8
6
  # $Id: types.rb,v 1.4 2006/02/12 21:27:22 austin Exp $
9
7
  #
10
8
  # The ChangeLog contains all details on revisions.
11
- #
9
+ # Released under a Ruby-compatible, MIT style licence
10
+ # (see http://raa.ruby-lang.org/project/mime-types/)
12
11
 
13
12
  # The namespace for MIME applications, tools, and libraries.
14
13
  module MIME
@@ -1,20 +1,6 @@
1
- require 'uri'
2
- require 'openssl'
3
- require 'net/http'
4
- require 'net/https'
5
- require 'stringio'
6
-
7
- base = File.dirname(__FILE__)
8
- require File.join(base, 's33r_exception')
9
- require File.join(base, 's33r_http')
10
- require File.join(base, 'utility')
11
-
12
1
  # Core functionality for managing HTTP requests to S3.
13
2
  module S33r
14
3
  module Networking
15
- include S3Exception
16
- include Net
17
-
18
4
  #-- These are specific to the mechanics of the HTTP request.
19
5
 
20
6
  # Net::HTTP instance.
@@ -1,10 +1,3 @@
1
- require 'net/http'
2
- base = File.dirname(__FILE__)
3
- require File.join(base, 's33r_exception')
4
- require File.join(base, 'utility')
5
- require File.join(base, 'libxml_loader')
6
- require File.join(base, 'libxml_extensions')
7
-
8
1
  # Additions to the Net::HTTP classes
9
2
 
10
3
  # Adds some convenience functions for checking response status, parsing
@@ -1,9 +1,3 @@
1
- require 'rubygems'
2
- require_gem 'builder'
3
- base = File.dirname(__FILE__)
4
- require File.join(base, 'libxml_loader')
5
- require File.join(base, 's33r_exception')
6
-
7
1
  module S33r
8
2
  # S3 ACL handling.
9
3
  #
@@ -143,7 +137,7 @@ module S33r
143
137
  else
144
138
  @permission = PERMISSIONS[permission]
145
139
  end
146
- raise S3Exception::InvalidPermission, \
140
+ raise InvalidPermission, \
147
141
  "Permission #{permission.to_s} is not a valid permission specifier" if @permission.nil?
148
142
  end
149
143
 
@@ -1,8 +1,3 @@
1
- require 'rubygems'
2
- require_gem 'builder'
3
- require File.join(File.dirname(__FILE__), 'libxml_loader')
4
- require File.join(File.dirname(__FILE__), 's3_acl')
5
-
6
1
  module S33r
7
2
  module S3Logging
8
3
 
@@ -1,7 +1,3 @@
1
- require 'date'
2
- require File.join(File.dirname(__FILE__), 's3_acl')
3
- require File.join(File.dirname(__FILE__), 'client')
4
-
5
1
  # Representation of an object stored in a bucket.
6
2
  module S33r
7
3
  class S3Object < Client
@@ -51,7 +47,7 @@ module S33r
51
47
  def set_properties(metadata)
52
48
  # required properties
53
49
  @etag = metadata[:etag].gsub("\"", "") if metadata[:etag]
54
- @last_modified = DateTime.parse(metadata[:last_modified]) if metadata[:last_modified]
50
+ @last_modified = Time.parse(metadata[:last_modified]) if metadata[:last_modified]
55
51
  @size = metadata[:size].to_i if metadata[:size]
56
52
  @render_as_attachment = metadata[:render_as_attachment] || false
57
53
 
@@ -1,14 +1,3 @@
1
- require 'base64'
2
- require 'time'
3
- require 'yaml'
4
- require 'erb'
5
- require 'cgi'
6
-
7
- base = File.dirname(__FILE__)
8
- require File.join(base, 'libxml_loader')
9
- require File.join(base, 'libxml_extensions')
10
- require File.join(base, 's33r_exception')
11
-
12
1
  # Module to handle S3 operations which don't require an internet connection,
13
2
  # i.e. data validation and request-building operations;
14
3
  # also holds all the constants relating to S3.
@@ -24,8 +13,6 @@ require File.join(base, 's33r_exception')
24
13
  # this software code. (c) 2006 Amazon Digital Services, Inc. or its
25
14
  # affiliates.
26
15
  module S33r
27
- include S3Exception
28
-
29
16
  HOST = 's3.amazonaws.com'
30
17
  PORT = 443
31
18
  NON_SSL_PORT = 80
@@ -269,7 +256,9 @@ module S33r
269
256
 
270
257
  # Ensure that a bucket_name is well-formed (no leading or trailing slash).
271
258
  def bucket_name_valid?(bucket_name)
272
- if ('/' == bucket_name[0,1] || '/' == bucket_name[-1,1])
259
+ if !bucket_name.is_a?(String)
260
+ raise MalformedBucketName, "Bucket name must be a string"
261
+ elsif ('/' == bucket_name[0,1] || '/' == bucket_name[-1,1])
273
262
  raise MalformedBucketName, "Bucket name cannot have a leading or trailing slash"
274
263
  end
275
264
  end
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.1
7
- date: 2007-01-18 00:00:00 +00:00
6
+ version: 0.5.2
7
+ date: 2007-01-19 00:00:00 +00:00
8
8
  summary: A library for accessing Amazon S3
9
9
  require_paths:
10
10
  - lib
@@ -73,6 +73,7 @@ files:
73
73
  - examples/fores33r/tmp/sessions
74
74
  - examples/fores33r/tmp/sockets
75
75
  - examples/fores33r/tmp/sessions/ruby_sess.75445a6f4154aa9d
76
+ - examples/fores33r/tmp/sessions/ruby_sess.f55f1b0adcf2e2d8
76
77
  - examples/fores33r/log/development.log
77
78
  - examples/fores33r/log/mongrel.log
78
79
  - examples/fores33r/script/performance
@@ -123,7 +124,6 @@ files:
123
124
  - lib/s33r
124
125
  - lib/s33r.rb
125
126
  - lib/s33r/bucket_listing.rb
126
- - lib/s33r/libxml_loader.rb
127
127
  - lib/s33r/utility.rb
128
128
  - lib/s33r/s3_acl.rb
129
129
  - lib/s33r/s3_obj.rb
@@ -136,7 +136,6 @@ files:
136
136
  - lib/s33r/bucket.rb
137
137
  - lib/s33r/networking.rb
138
138
  - lib/s33r/s3_logging.rb
139
- - lib/s33r/svn-commit.tmp
140
139
  - test/files
141
140
  - test/cases
142
141
  - test/test_setup.rb
@@ -1,6 +0,0 @@
1
- begin
2
- require 'xml/libxml'
3
- rescue LoadError
4
- require 'rubygems'
5
- require_gem 'libxml-ruby'
6
- end
@@ -1,4 +0,0 @@
1
- Fixing namespaces for S3Exception
2
- --This line, and those below, will be ignored--
3
-
4
- M utility.rb