semrush 3.0.10 → 3.0.11
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.
- data/lib/semrush/report.rb +2 -2
- data/lib/semrush/version.rb +1 -1
- metadata +2 -2
data/lib/semrush/report.rb
CHANGED
|
@@ -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(
|
|
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(
|
|
251
|
+
Semrush.after.call(@parameters.merge(:url => url), output)
|
|
252
252
|
output
|
|
253
253
|
end
|
|
254
254
|
|
data/lib/semrush/version.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|