semrush 3.0.16 → 3.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +4 -0
- data/lib/semrush.rb +0 -16
- data/lib/semrush/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85662610b8f89ddac7c5a11fe300e2d511bf3d84
|
4
|
+
data.tar.gz: b7db20f6941ea9ea979a0b228716bd64164d5627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4703e8a305598018687fb3fed9f19e0295edf9dfbf7592d6a7802c65ff92b0562e313edf28b4085c604b3054fe547e71fa462d2d9894c4318db789c6b6b22cdd
|
7
|
+
data.tar.gz: 5bf28d8b9ee98899cbee041b06744a103bab2c782b5e497878e78a695b41f42cbc6ed6b04a3446b544bac71b16f34c9b668b88950784b7b92f2c11b247193bc9
|
data/README.rdoc
CHANGED
data/lib/semrush.rb
CHANGED
@@ -4,7 +4,6 @@ require 'net/http'
|
|
4
4
|
require 'csv'
|
5
5
|
require 'rubygems'
|
6
6
|
require 'active_support/all'
|
7
|
-
require 'pony' #for the warning mails
|
8
7
|
require 'semrush/exception'
|
9
8
|
require 'semrush/report'
|
10
9
|
|
@@ -20,23 +19,8 @@ module Semrush
|
|
20
19
|
mattr_accessor :after
|
21
20
|
@@after = Proc.new{}
|
22
21
|
|
23
|
-
|
24
|
-
# Email Options (TODO: remove if unnecessary)
|
25
|
-
# config.email : recipient for the email notifications (default: nil)
|
26
|
-
# config.email_options : Hash with email config (smtp, sendmail, ...). We use the Pony gem to send mails, this hash will be send to Pony.options
|
27
|
-
# config.seconds_between_mails : Minimum time (in seconds) between 2 mails with the same subject
|
28
|
-
mattr_accessor :email
|
29
|
-
mattr_accessor :email_options
|
30
|
-
@@email_options = {}
|
31
|
-
mattr_accessor :seconds_between_mails
|
32
|
-
@@seconds_between_mails = 600
|
33
|
-
mattr_accessor :too_many_queries
|
34
|
-
@@too_many_queries = {:subject => 'SemRush API: too many queries for the day', :body => 'You made too many requests for today. You should upgrade your plan in order to be able to send more requests to SemRush.'}
|
35
|
-
mattr_accessor :too_many_queries_sent_at
|
36
|
-
|
37
22
|
def self.config
|
38
23
|
yield self
|
39
|
-
Pony.options = @@email_options
|
40
24
|
raise Exception::BadApiKey.new if @@api_key.nil? || @@api_key.empty?
|
41
25
|
raise Exception::BadArgument.new(self, "before is not a proc: proc type is required.") unless @@before.is_a?(Proc)
|
42
26
|
raise Exception::BadArgument.new(self, "after is not a proc: proc type is required.") unless @@after.is_a?(Proc)
|
data/lib/semrush/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arambert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: pony
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.0
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|