lib/keen/client.rb in keen-0.9.10 vs lib/keen/client.rb in keen-1.0.0

- old
+ new

@@ -101,12 +101,12 @@ def ensure_read_key! raise ConfigurationError, "Read Key must be set for this operation" unless self.read_key end def api_event_collection_resource_path(event_collection) - encoded_collection_name = Addressable::URI.escape(event_collection.to_s) - encoded_collection_name.gsub! '/', '%2F' - "/#{api_version}/projects/#{project_id}/events/#{encoded_collection_name}" + encoded_collection_name = Addressable::URI.encode_component(event_collection.to_s) + encoded_collection_name.gsub! '/', '%2F' + "/#{api_version}/projects/#{project_id}/events/#{encoded_collection_name}" end def preprocess_params(params) params = params.delete_if {|key, val| val.nil?}