semrush 3.0.1 → 3.0.2

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 CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Semrush is a ruby wrapper for the SEMRush API.
4
4
 
5
+ == Requirements
6
+
7
+ - Ruby 1.9
8
+ - ActiveSupport (tested with ActiveSupport 3.1)
9
+
5
10
  == Installation
6
11
 
7
12
  Add the gem to your Gemfile:
@@ -0,0 +1,7 @@
1
+ module Semrush
2
+ module Exception
3
+ class ApiReportTypeDisabled < Base
4
+
5
+ end
6
+ end
7
+ end
@@ -251,7 +251,11 @@ module Semrush
251
251
  if error_class == "NothingFound"
252
252
  []
253
253
  else
254
- raise Semrush::Exception.const_get(error_class).new(self, "#{name} (#{code})")
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
 
@@ -1,3 +1,3 @@
1
1
  module Semrush
2
- VERSION = "3.0.1" # we want to follow the API version: for API 3.0, the gem will be version 3.0.x
2
+ VERSION = "3.0.2" # we want to follow the API version: for API 3.0, the gem will be version 3.0.x
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: semrush
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.0.1
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-10-21 00:00:00 Z
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: Repository at http://github.com/weboglobin/semrush. Documentation at http://rubydoc.info/gems/semrush/3.0.0/frames
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