semrush 3.0.16 → 3.0.17

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc9e913c7a6a7d6e74a93d8ee7989c597219762f
4
- data.tar.gz: d6a6f3225cf4ac4249c44946fe81f3ae64e4a2c8
3
+ metadata.gz: 85662610b8f89ddac7c5a11fe300e2d511bf3d84
4
+ data.tar.gz: b7db20f6941ea9ea979a0b228716bd64164d5627
5
5
  SHA512:
6
- metadata.gz: 42c30663c5e278bb5e1cdfccd1ed8443ec1b00b9e609eaac1e4d90c6bd7a1a7b00d9ef3387f89c47b6cafcf284d65ba4b5a00a981b73690d36e009f90a30e8f4
7
- data.tar.gz: 9546b93e5e95d5602f713534103da12743fbf86a800a0a6831cb7064384956138ff59f4fd73047a3c347b438230aa75f452e0d8ce763be46485723c6bc79fc86
6
+ metadata.gz: 4703e8a305598018687fb3fed9f19e0295edf9dfbf7592d6a7802c65ff92b0562e313edf28b4085c604b3054fe547e71fa462d2d9894c4318db789c6b6b22cdd
7
+ data.tar.gz: 5bf28d8b9ee98899cbee041b06744a103bab2c782b5e497878e78a695b41f42cbc6ed6b04a3446b544bac71b16f34c9b668b88950784b7b92f2c11b247193bc9
data/README.rdoc CHANGED
@@ -100,6 +100,10 @@ For more information about the report types, please read http://www.semrush.com/
100
100
 
101
101
  == ChangeLog
102
102
 
103
+ === 3.0.17, 2014-08-01
104
+
105
+ * Remove Pony dependency
106
+
103
107
  === 3.0.16, 2014-07-21
104
108
 
105
109
  * Add support for fullsearch reports
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)
@@ -1,3 +1,3 @@
1
1
  module Semrush
2
- VERSION = "3.0.16" # we want to follow the API version: for API 3.0, the gem will be version 3.0.x
2
+ VERSION = "3.0.17" # 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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.16
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-07-21 00:00:00.000000000 Z
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