semrush 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -0
- data/lib/semrush/exception/api_report_type_disabled.rb +7 -0
- data/lib/semrush/report.rb +5 -1
- data/lib/semrush/version.rb +1 -1
- metadata +4 -3
data/README.rdoc
CHANGED
data/lib/semrush/report.rb
CHANGED
@@ -251,7 +251,11 @@ module Semrush
|
|
251
251
|
if error_class == "NothingFound"
|
252
252
|
[]
|
253
253
|
else
|
254
|
-
|
254
|
+
begin
|
255
|
+
raise Semrush::Exception.const_get(error_class).new(self, "#{name} (#{code})")
|
256
|
+
rescue
|
257
|
+
raise Semrush::Exception::Base.new(self, "#{name} (#{code}) *** error_class=#{error_class} not implemented ***")
|
258
|
+
end
|
255
259
|
end
|
256
260
|
end
|
257
261
|
|
data/lib/semrush/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: semrush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.0.
|
5
|
+
version: 3.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- arambert
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-12-12 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: 2.0.0
|
46
46
|
type: :development
|
47
47
|
version_requirements: *id003
|
48
|
-
description:
|
48
|
+
description: This gem is a ruby client for the SemRush API.
|
49
49
|
email:
|
50
50
|
- arambert@weboglobin.com
|
51
51
|
executables: []
|
@@ -56,6 +56,7 @@ extra_rdoc_files: []
|
|
56
56
|
|
57
57
|
files:
|
58
58
|
- lib/semrush/exception/api_access_disabled.rb
|
59
|
+
- lib/semrush/exception/api_report_type_disabled.rb
|
59
60
|
- lib/semrush/exception/bad_api_key.rb
|
60
61
|
- lib/semrush/exception/bad_argument.rb
|
61
62
|
- lib/semrush/exception/bad_query.rb
|