lib/s33r/s3_acl.rb in s33r-0.5.1 vs lib/s33r/s3_acl.rb in s33r-0.5.2
- old
+ new
@@ -1,11 +1,5 @@
-require 'rubygems'
-require_gem 'builder'
-base = File.dirname(__FILE__)
-require File.join(base, 'libxml_loader')
-require File.join(base, 's33r_exception')
-
module S33r
# S3 ACL handling.
#
# NB an individual ACL for an object can only contain <= 100 grants.
module S3ACL
@@ -141,10 +135,10 @@
if permission.is_a? String
@permission = permission
else
@permission = PERMISSIONS[permission]
end
- raise S3Exception::InvalidPermission, \
+ raise InvalidPermission, \
"Permission #{permission.to_s} is not a valid permission specifier" if @permission.nil?
end
# Note that setting a grant for an Amazon customer is the
# same as setting a grant for the CanonicalUser who owns the