rb_raven_api 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.5
2
+
3
+ * Add cstm param option for API calls
4
+
1
5
  == 0.0.3
2
6
 
3
7
  * Raven::Engines
@@ -9,8 +9,8 @@ module Raven
9
9
  # @return [Raven::Response] Response object with request results.
10
10
  #
11
11
 
12
- def self.for_domain domain
13
- Raven.http.get '', { method: 'competitors', domain: domain }
12
+ def self.for_domain domain, cstm = {}
13
+ Raven.http.get '', { method: 'competitors', domain: domain }.merge(cstm)
14
14
  end
15
15
 
16
16
  end
@@ -8,8 +8,8 @@ module Raven
8
8
  # @return [Array] Domains.
9
9
  #
10
10
 
11
- def self.all
12
- Raven.http.get '', { method: 'domains' }
11
+ def self.all cstm = {}
12
+ Raven.http.get '', { method: 'domains' }.merge(cstm)
13
13
  end
14
14
 
15
15
  ##
@@ -19,8 +19,8 @@ module Raven
19
19
  # @param engine_id [String] _Optional_ Comma separate list of search engine ids that you want to track for this domain. Defaults to '1,2,3' which is Google, Yahoo! and Bing
20
20
  #
21
21
 
22
- def self.add domain, engine_id = '1,2,3'
23
- Raven.http.get '', { method: 'add_domain', domain: domain, engine_id: engine_id }
22
+ def self.add domain, engine_id = '1,2,3', cstm = {}
23
+ Raven.http.get '', { method: 'add_domain', domain: domain, engine_id: engine_id }.merge(cstm)
24
24
  end
25
25
 
26
26
  ##
@@ -29,8 +29,8 @@ module Raven
29
29
  # @param domain [String] *Required* The domain name you want results for. _Must match exactly_
30
30
  #
31
31
 
32
- def self.keywords domain
33
- Raven.http.get '', { method: 'keywords', domain: domain }
32
+ def self.keywords domain, cstm = {}
33
+ Raven.http.get '', { method: 'keywords', domain: domain }.merge(cstm)
34
34
  end
35
35
 
36
36
  ##
@@ -39,8 +39,8 @@ module Raven
39
39
  # @param domain [String] *Required* The domain name you want results for. _Must match exactly_
40
40
  #
41
41
 
42
- def self.keywords_with_tags domain
43
- Raven.http.get '', { method: 'keywords_tags', domain: domain }
42
+ def self.keywords_with_tags domain, cstm = {}
43
+ Raven.http.get '', { method: 'keywords_tags', domain: domain }.merge(cstm)
44
44
  end
45
45
 
46
46
  ##
@@ -49,8 +49,8 @@ module Raven
49
49
  # @param domain [String] *Required* The domain name you want info for. _Must match exactly_
50
50
  #
51
51
 
52
- def self.info domain
53
- Raven.http.get '', { method: 'domain_info', domain: domain }
52
+ def self.info domain, cstm = {}
53
+ Raven.http.get '', { method: 'domain_info', domain: domain }.merge(cstm)
54
54
  end
55
55
 
56
56
  end
@@ -8,8 +8,8 @@ module Raven
8
8
  # @return [Raven::Response] Response object with request results.
9
9
  #
10
10
 
11
- def self.all
12
- Raven.http.get '', { method: 'engines' }
11
+ def self.all cstm = {}
12
+ Raven.http.get '', { method: 'engines' }.merge(cstm)
13
13
  end
14
14
 
15
15
  end
@@ -9,8 +9,8 @@ module Raven
9
9
  # @param keyword [String] *Required* - The keyword you are adding.
10
10
  #
11
11
 
12
- def self.add domain, keyword
13
- Raven.http.get '', { method: 'add_keyword', domain: domain, keyword: keyword }
12
+ def self.add domain, keyword, cstm = {}
13
+ Raven.http.get '', { method: 'add_keyword', domain: domain, keyword: keyword }.merge(cstm)
14
14
  end
15
15
 
16
16
  ##
@@ -20,8 +20,8 @@ module Raven
20
20
  # @param keyword [String] *Required* - The keyword you are removing.
21
21
  #
22
22
 
23
- def self.remove domain, keyword
24
- Raven.http.get '', { method: 'remove_keyword', domain: domain, keyword: keyword }
23
+ def self.remove domain, keyword, cstm = {}
24
+ Raven.http.get '', { method: 'remove_keyword', domain: domain, keyword: keyword }.merge(cstm)
25
25
  end
26
26
 
27
27
  end
@@ -8,8 +8,8 @@ module Raven
8
8
  # @return [Hash] Hash of profile information.
9
9
  #
10
10
 
11
- def self.info
12
- Raven.http.get '', { method: 'profile_info' }
11
+ def self.info cstm = {}
12
+ Raven.http.get '', { method: 'profile_info' }.merge(cstm)
13
13
  end
14
14
 
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_raven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-19 00:00:00.000000000 Z
12
+ date: 2013-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -141,9 +141,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  - - ! '>='
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
- segments:
145
- - 0
146
- hash: 274237030265464316
147
144
  required_rubygems_version: !ruby/object:Gem::Requirement
148
145
  none: false
149
146
  requirements: