lib/riak/bucket.rb in riak-client-2.3.2 vs lib/riak/bucket.rb in riak-client-2.4.0.pre1

- old
+ new

@@ -21,11 +21,11 @@ # Create a Riak bucket manually. # @param [Client] client the {Riak::Client} for this bucket # @param [String] name the name of the bucket def initialize(client, name) - raise ArgumentError, t("client_type", :client => client.inspect) unless Client === client - raise ArgumentError, t("string_type", :string => name.inspect) unless String === name + raise ArgumentError, t('client_type', :client => client.inspect) unless Client === client + raise ArgumentError, t('string_type', :string => name.inspect) unless String === name raise ArgumentError, t('zero_length_bucket') if name == '' @client, @name = client, name end # Retrieves a list of keys in this bucket.