semrush 3.0.13 → 3.0.14
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/README.rdoc +4 -0
- data/lib/semrush/report.rb +3 -1
- data/lib/semrush/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -98,6 +98,10 @@ For more information about the report types, please read http://www.semrush.com/
|
|
|
98
98
|
|
|
99
99
|
== ChangeLog
|
|
100
100
|
|
|
101
|
+
=== 3.0.14, 2013-06-10
|
|
102
|
+
|
|
103
|
+
* parameter 'display_filter' has to be url-encoded in a separate way
|
|
104
|
+
|
|
101
105
|
=== 3.0.13, 2013-06-10
|
|
102
106
|
|
|
103
107
|
* Add report type 'phrase_oganic'
|
data/lib/semrush/report.rb
CHANGED
|
@@ -251,8 +251,10 @@ module Semrush
|
|
|
251
251
|
@parameters.each {|k, v|
|
|
252
252
|
if v.blank?
|
|
253
253
|
temp_url.gsub!(/&[^&=]+=%#{k.to_s}%/i, '')
|
|
254
|
-
|
|
254
|
+
elsif k.to_sym==:display_filter
|
|
255
255
|
temp_url.gsub!("%#{k.to_s.upcase}%", URI.escape(v.to_s).gsub('&', '%26').gsub('+', '%2B'))
|
|
256
|
+
else
|
|
257
|
+
temp_url.gsub!("%#{k.to_s.upcase}%", URI.escape(v.to_s).gsub('&', '%26'))
|
|
256
258
|
end
|
|
257
259
|
}
|
|
258
260
|
puts "[Semrush query] URL: #{temp_url}" if Semrush.debug
|
data/lib/semrush/version.rb
CHANGED