semrush 3.0.13 → 3.0.14

Sign up to get free protection for your applications and to get access to all the features.
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'
@@ -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
- else
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
@@ -1,3 +1,3 @@
1
1
  module Semrush
2
- VERSION = "3.0.13" # we want to follow the API version: for API 3.0, the gem will be version 3.0.x
2
+ VERSION = "3.0.14" # 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.13
4
+ version: 3.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: