semrush 3.0.8 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -233,13 +233,13 @@ module Semrush
233
233
  }
234
234
  puts "[Semrush query] URL: #{temp_url}" if Semrush.debug
235
235
  url = URI.parse(temp_url)
236
- Semrush.before.call(params)
236
+ Semrush.before.call(params.merge(:url => url))
237
237
  response = Net::HTTP.start(url.host, url.port) {|http|
238
238
  http.get(url.path+"?"+url.query)
239
239
  }.body rescue "ERROR :: RESPONSE ERROR (-1)" # Make this error up
240
240
  response.force_encoding("utf-8")
241
241
  output = response.starts_with?("ERROR") ? error(response) : parse(response)
242
- Semrush.after.call(params, output)
242
+ Semrush.after.call(params.merge(:url => url), output)
243
243
  output
244
244
  end
245
245
 
@@ -1,3 +1,3 @@
1
1
  module Semrush
2
- VERSION = "3.0.8" # we want to follow the API version: for API 3.0, the gem will be version 3.0.x
2
+ VERSION = "3.0.9" # we want to follow the API version: for API 3.0, the gem will be version 3.0.x
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8
4
+ version: 3.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: