semrush 3.0.10 → 3.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -242,13 +242,13 @@ module Semrush
242
242
  }
243
243
  puts "[Semrush query] URL: #{temp_url}" if Semrush.debug
244
244
  url = URI.parse(temp_url)
245
- Semrush.before.call(params.merge(:url => url))
245
+ Semrush.before.call(@parameters.merge(:url => url))
246
246
  response = Net::HTTP.start(url.host, url.port) {|http|
247
247
  http.get(url.path+"?"+url.query)
248
248
  }.body rescue "ERROR :: RESPONSE ERROR (-1)" # Make this error up
249
249
  response.force_encoding("utf-8")
250
250
  output = response.starts_with?("ERROR") ? error(response) : parse(response)
251
- Semrush.after.call(params.merge(:url => url), output)
251
+ Semrush.after.call(@parameters.merge(:url => url), output)
252
252
  output
253
253
  end
254
254
 
@@ -1,3 +1,3 @@
1
1
  module Semrush
2
- VERSION = "3.0.10" # we want to follow the API version: for API 3.0, the gem will be version 3.0.x
2
+ VERSION = "3.0.11" # 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.10
4
+ version: 3.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-21 00:00:00.000000000 Z
12
+ date: 2013-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport