lib/scope.rb in expressive-0.0.22 vs lib/scope.rb in expressive-0.0.23
- old
+ new
@@ -170,10 +170,10 @@
def perform_webhook(verb, scope, cells)
#convert cells to array so it can manipulated easily
cells_array = cells.map{|c| c.text_value.gsub(/\A"|"\Z/, '')}
url = cells_array.shift
- url = Expressive.run(url, scope) || url
+ url = Expressive.run(url, scope) if url =~ /\A\(.*\)\Z/
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)