lib/scope.rb in expressive-0.0.21 vs lib/scope.rb in expressive-0.0.22

- old
+ new

@@ -163,16 +163,17 @@ elsif lookup_result.is_a?(Array) options = lookup_result.first the_proc = lookup_result.last the_proc.call(options, key, *Array(cells[2..-1]).map {|cell| cell.eval(scope)}) end - end + end end def perform_webhook(verb, scope, cells) #convert cells to array so it can manipulated easily - cells_array = cells.map{|c| c.text_value.gsub('"', '')} + cells_array = cells.map{|c| c.text_value.gsub(/\A"|"\Z/, '')} url = cells_array.shift + url = Expressive.run(url, scope) || url headers = create_webhook_headers(cells_array) params = create_webhook_parameters(scope, cells_array) begin response = Webhook.new(verb, url, params, headers).execute scope = scope.merge(response) if response.is_a?(Hash)