al_papi 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f94f272af2e8d0822dc70cd7d1b581b1bd06634d
4
+ data.tar.gz: c54796aa7be95b01098df4debd8b717a10caa84a
5
+ SHA512:
6
+ metadata.gz: 7856c8183a2cbc513dba37e98196eda31f845a54bd7311d1b6945616201b565eeee1ef6f6385deadf784ec926333fbc94b11a300019bbb4a1b00d6eed004fd2d
7
+ data.tar.gz: a04e5850d2e157cbd3abad145417032aa6a538ba6cdd9394ce5d9ee062d68f42983e502285751dfbd1f9450605fed977b19c4f6d83c2c6889d34ae06188ae906
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
- AuthorityLabs Partner API Gem [![Build Status](https://secure.travis-ci.org/mtchavez/al_papi.png)](http://travis-ci.org/mtchavez/al_papi?branch=master)
1
+ AuthorityLabs Partner API Gem
2
2
  =============================
3
3
 
4
4
  A wrapper around the Partner API calls. Allows post, priority post and get calls.
5
5
 
6
6
  * Github: http://github.com/mtchavez/al_papi
7
+ * [![Build Status](https://secure.travis-ci.org/mtchavez/al_papi.png)](http://travis-ci.org/mtchavez/al_papi?branch=master)
8
+ * [![Code Climate](https://codeclimate.com/github/mtchavez/al_papi.png)](https://codeclimate.com/github/mtchavez/al_papi)
7
9
 
8
10
  ## Install
9
11
 
@@ -13,47 +15,53 @@ A wrapper around the Partner API calls. Allows post, priority post and get calls
13
15
 
14
16
  Set configuration options to be used on requests:
15
17
 
16
- require 'al_papi'
18
+ ```ruby
19
+ require 'al_papi'
17
20
 
18
- AlPapi.configure do |config|
19
- config.api_key = 'yR43BtBDjadfavMy6a6aK0'
20
- end
21
+ AlPapi.configure do |config|
22
+ config.api_key = 'yR43BtBDjadfavMy6a6aK0'
23
+ end
24
+ ```
21
25
 
22
26
  ## Account
23
27
 
24
28
  Account endpoint lets you get basic info about your account, current queue times and any system messages.
25
29
 
26
- # Pass your account ID into the info method
27
- res = AlPapi::Account.info '1'
28
-
29
- # Response body will be JSON response
30
- res.body
31
-
32
- # You can use the parsed_body method for convenience to access data
33
- account_info = @res.parsed_body
34
- account_info.user.current_balance # 500.00
35
- account_info.queue.bing_time # 15
36
- account_info.messages.system # ['The system is back online!']
30
+ ```ruby
31
+ # Pass your account ID into the info method
32
+ res = AlPapi::Account.info '1'
33
+
34
+ # Response body will be JSON response
35
+ res.body
36
+
37
+ # You can use the parsed_body method for convenience to access data
38
+ account_info = @res.parsed_body
39
+ account_info.user.current_balance # 500.00
40
+ account_info.queue.bing_time # 15
41
+ account_info.messages.system # ['The system is back online!']
42
+ ```
37
43
 
38
44
  Example response in JSON
39
45
 
40
- {
41
- "messages": {
42
- "system": ['The system is back online!']
43
- },
44
- "queue": {
45
- "bing_time": 15,
46
- "google_time": 3,
47
- "yahoo_time": 2
48
- },
49
- "user": {
50
- "current_balance": 500.00,
51
- "current_get_count": 2000,
52
- "current_post_count": 1000,
53
- "hourly_get_limit": 2000,
54
- "hourly_post_limit": 1000
55
- }
46
+ ```javascript
47
+ {
48
+ "messages": {
49
+ "system": ['The system is back online!']
50
+ },
51
+ "queue": {
52
+ "bing_time": 15,
53
+ "google_time": 3,
54
+ "yahoo_time": 2
55
+ },
56
+ "user": {
57
+ "current_balance": 500.00,
58
+ "current_get_count": 2000,
59
+ "current_post_count": 1000,
60
+ "hourly_get_limit": 2000,
61
+ "hourly_post_limit": 1000
56
62
  }
63
+ }
64
+ ```
57
65
 
58
66
  ## Keywords
59
67
 
@@ -64,87 +72,95 @@ when they are ready.
64
72
 
65
73
  Post your keyword-engine-locale combination to the API:
66
74
 
67
- res = AlPapi::Keyword.post keyword: "Centaur Love'n", engine: 'google', locale: 'en-us'
75
+ ```ruby
76
+ res = AlPapi::Keyword.post keyword: "Centaur Love'n", engine: 'google', locale: 'en-us'
68
77
 
69
- if res.success?
70
- p 'Centaur High Hoof'
71
- else
72
- p 'PAPI Fail'
73
- end
78
+ if res.success?
79
+ p 'Centaur High Hoof'
80
+ else
81
+ p 'PAPI Fail'
82
+ end
83
+ ```
74
84
 
75
85
  ### Priority POST
76
86
 
77
87
  Post your keyword to the priority queue if you need results in a more timely manner:
78
88
 
79
- res = AlPapi::Keyword.priority_post keyword: "Mad Scientist", engine: 'bing', locale: 'en-ca'
89
+ ```ruby
90
+ res = AlPapi::Keyword.priority_post keyword: "Mad Scientist", engine: 'bing', locale: 'en-ca'
80
91
 
81
- if res.success?
82
- p 'Canadian Bing Scientist Time'
83
- else
84
- p 'PAPI Fail'
85
- end
92
+ if res.success?
93
+ p 'Canadian Bing Scientist Time'
94
+ else
95
+ p 'PAPI Fail'
96
+ end
97
+ ```
86
98
 
87
99
  ### GET
88
100
 
89
101
  When you are ready to get your results you can do a GET request for your keyword-engine-locale combo:
90
102
 
91
- res = AlPapi::Keyword.get keyword: "Mad Scientist", engine: 'bing', locale: 'en-ca'
103
+ ```ruby
104
+ res = AlPapi::Keyword.get keyword: "Mad Scientist", engine: 'bing', locale: 'en-ca'
92
105
 
93
- if res.success?
94
- p 'Canadian Bing Scientist Time'
95
- res.body # Hash of your results for that keyword-engine-locale
96
- else
97
- p 'PAPI Fail'
98
- end
106
+ if res.success?
107
+ p 'Canadian Bing Scientist Time'
108
+ res.body # Hash of your results for that keyword-engine-locale
109
+ else
110
+ p 'PAPI Fail'
111
+ end
112
+ ```
99
113
 
100
114
  ### Response
101
115
 
102
116
  When making an API request a response object is returned with any errors, http response code and http reponse body.
103
117
 
104
- res = req.get keyword: "Mad Scientist", engine: 'bing', locale: 'en-ca'
105
-
106
- # Errors:
107
- # Returns an array of error objects.
108
- res.errors
109
-
110
- if res.errors.present?
111
- res.errors.each do |error|
112
- p error.code # http repsonse code
113
- p error.message # error message
114
- p error.params # params of request
115
- p error.path # path of request
116
- end
117
- end
118
-
119
- # Success:
120
- # Returns true or false if request was successful or not.
121
- res.success?
122
-
123
- # Body:
124
- # Returns body of response.
125
- # On GET requests the body will be a hash of your results if successful.
126
- res.body
127
-
128
- # Parsed Body:
129
- # Returns the parsed JSON body, if present, as a Hashie::Mash object.
130
- # This can be useful to get an object with methods to call instead of
131
- # indexing into nested hashes.
132
-
133
- # Code:
134
- # Returns http response code.
135
- # 204: On GET requests when no data is available yet
136
- # 200: Successful
137
- # 401: Invalid api key
138
- # 500: Server Error
139
- res.code
140
-
141
- # Over Limit:
142
- # Returns true or false if over hourly limit
143
- res.over_limit?
144
-
145
- # Suspended:
146
- # Returns true or false if your account has been suspended
147
- res.suspended?
118
+ ```ruby
119
+ res = req.get keyword: "Mad Scientist", engine: 'bing', locale: 'en-ca'
120
+
121
+ # Errors:
122
+ # Returns an array of error objects.
123
+ res.errors
124
+
125
+ if res.errors.present?
126
+ res.errors.each do |error|
127
+ p error.code # http repsonse code
128
+ p error.message # error message
129
+ p error.params # params of request
130
+ p error.path # path of request
131
+ end
132
+ end
133
+
134
+ # Success:
135
+ # Returns true or false if request was successful or not.
136
+ res.success?
137
+
138
+ # Body:
139
+ # Returns body of response.
140
+ # On GET requests the body will be a hash of your results if successful.
141
+ res.body
142
+
143
+ # Parsed Body:
144
+ # Returns the parsed JSON body, if present, as a Hashie::Mash object.
145
+ # This can be useful to get an object with methods to call instead of
146
+ # indexing into nested hashes.
147
+
148
+ # Code:
149
+ # Returns http response code.
150
+ # 204: On GET requests when no data is available yet
151
+ # 200: Successful
152
+ # 401: Invalid api key
153
+ # 500: Server Error
154
+ res.code
155
+
156
+ # Over Limit:
157
+ # Returns true or false if over hourly limit
158
+ res.over_limit?
159
+
160
+ # Suspended:
161
+ # Returns true or false if your account has been suspended
162
+ res.suspended?
163
+ ```
148
164
 
149
165
  ## Web Insight
150
166
 
@@ -158,7 +174,9 @@ and return the results to your callback URL passed in or set for your account.
158
174
  Post the URL of the page you want to gain insight into and the callback URL knowing when your results are
159
175
  ready to get.
160
176
 
161
- res = AlPapi::WebInsight.post url: 'http://www.qwiki.com', callback: 'http://your-callback-url.com'
177
+ ```ruby
178
+ res = AlPapi::WebInsight.post url: 'http://www.qwiki.com', callback: 'http://your-callback-url.com'
179
+ ```
162
180
 
163
181
  ### GET
164
182
 
@@ -166,7 +184,9 @@ When your results are ready to get you will receive a callback that contains the
166
184
  to get the insight on your URL. In the callback you should receive a date_created and time_created to use
167
185
  in your get request. You will also use your original URL posted.
168
186
 
169
- res = AlPapi::WebInsight.get url: 'http://www.qwiki.com', date_created: '2012-06-14', time_created: '01:50'
187
+ ```ruby
188
+ res = AlPapi::WebInsight.get url: 'http://www.qwiki.com', date_created: '2012-06-14', time_created: '01:50'
189
+ ```
170
190
 
171
191
  ## Extras
172
192
 
@@ -174,7 +194,9 @@ in your get request. You will also use your original URL posted.
174
194
 
175
195
  Supported engines are Google, Yahoo and Bing. To get a list of supported engines run the following:
176
196
 
177
- AlPapi::Engines.all
197
+ ```ruby
198
+ AlPapi::Engines.all
199
+ ```
178
200
 
179
201
  ### Locales
180
202
 
@@ -185,40 +207,48 @@ for the engine you are posting a keyword to there is a locales class to help you
185
207
 
186
208
  A way to see all the supported locales for a specified engine
187
209
 
188
- AlPapi::Locales.supported # defaults to google
210
+ ```ruby
211
+ AlPapi::Locales.supported # defaults to google
212
+ ```
189
213
 
190
214
  Example response
191
215
 
192
- {
193
- engine: google
194
- locales: {
195
- ko-kr: {
196
- description: Korea - Korean
197
- tld: http://www.google.co.kr
198
- },
199
- ...
200
- el-gr: {
201
- description: Greece - Greek
202
- tld: http://www.google.gr
203
- }
204
- }
205
- supported: true
216
+ ```javascript
217
+ {
218
+ engine: google
219
+ locales: {
220
+ ko-kr: {
221
+ description: Korea - Korean
222
+ tld: http://www.google.co.kr
223
+ },
224
+ ...
225
+ el-gr: {
226
+ description: Greece - Greek
227
+ tld: http://www.google.gr
206
228
  }
229
+ }
230
+ supported: true
231
+ }
232
+ ```
207
233
 
208
234
  ### Description
209
235
 
210
236
  You can query the API to see if a specific locale is supported for an engine and get a description of that locale.
211
237
 
212
- AlPapi::Locales.description 'google', 'ko-kr'
238
+ ```ruby
239
+ AlPapi::Locales.description 'google', 'ko-kr'
240
+ ```
213
241
 
214
242
  Example response
215
243
 
216
- {
217
- locale: ko-kr
218
- description: Korea - Korean
219
- supported: true
220
- engine: google
221
- }
244
+ ```javascript
245
+ {
246
+ locale: ko-kr
247
+ description: Korea - Korean
248
+ supported: true
249
+ engine: google
250
+ }
251
+ ```
222
252
 
223
253
  ## License
224
254
 
@@ -15,16 +15,17 @@ module AlPapi
15
15
  def post(path, params = {})
16
16
  request 'post', path, build_params(params)
17
17
  end
18
-
18
+
19
19
  def build_params(params = {})
20
20
  params.merge(:auth_token => @config.api_key, :format => 'json')
21
21
  end
22
22
 
23
23
  def request(http_verb, path, params = nil)
24
24
  url = "#{@config.host}#{path}"
25
- args = http_verb == 'post' ? [http_verb, url, params] : [http_verb, url]
25
+ args = [http_verb, url]
26
+ args << params if http_verb == 'post'
26
27
 
27
- response = RestClient.send *args do |res, req, raw_res|
28
+ RestClient.send(*args) do |res, req, raw_res|
28
29
  body = raw_res.body
29
30
  code = raw_res.code.to_i
30
31
 
@@ -33,9 +34,9 @@ module AlPapi
33
34
 
34
35
  case code
35
36
  when 200
36
- begin
37
- parsed = JSON.parse body
38
- rescue JSON::ParserError => e
37
+ begin
38
+ JSON.parse body
39
+ rescue JSON::ParserError
39
40
  self.response = body
40
41
  end
41
42
  self.success = true
@@ -44,10 +45,10 @@ module AlPapi
44
45
  when 401
45
46
  self.errors << RequestError.new('Invalid Auth Token Provided', code, path, params)
46
47
  when 403
47
- if body.match /Account Suspended/i
48
+ if body.match(/Account Suspended/i)
48
49
  self.suspended = true
49
50
  self.errors << RequestError.new('Account Suspended', code, path, params)
50
- elsif body.match /Request Limit Exceeded/i
51
+ elsif body.match(/Request Limit Exceeded/i)
51
52
  self.over_limit = true
52
53
  self.errors << RequestError.new('Request Limit Exceeded', code, path, params)
53
54
  end
@@ -2,6 +2,8 @@ module AlPapi
2
2
 
3
3
  class WebInsight
4
4
 
5
+ ENDPOINT = '/web/insight'
6
+
5
7
  ##
6
8
  #
7
9
  # URL for the page you want insight into and the callback url you have implemented to know
@@ -13,7 +15,7 @@ module AlPapi
13
15
 
14
16
  def self.post(params = {})
15
17
  check_params Hashie::Mash.new(params), *%w[url callback]
16
- AlPapi.http.post '/web/insight', params
18
+ request 'post', params
17
19
  end
18
20
 
19
21
  ##
@@ -27,9 +29,11 @@ module AlPapi
27
29
 
28
30
  def self.get(params = {})
29
31
  check_params Hashie::Mash.new(params), *%w[date_created time_created]
30
- AlPapi.http.get '/web/insight', params
32
+ request 'get', params
31
33
  end
32
34
 
35
+ private
36
+
33
37
  ##
34
38
  #
35
39
  # Check if required params exist
@@ -41,6 +45,10 @@ module AlPapi
41
45
  end
42
46
  end
43
47
 
48
+ def self.request(method, params = {})
49
+ AlPapi.http.send method, ENDPOINT, params
50
+ end
51
+
44
52
  end
45
53
 
46
54
  end
metadata CHANGED
@@ -1,112 +1,235 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: al_papi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chavez
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-02 00:00:00.000000000 Z
11
+ date: 2014-04-28 00:00:00.000000000 Z
13
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hashie
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.1.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 2.1.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.1.0
14
33
  - !ruby/object:Gem::Dependency
15
34
  name: rest-client
16
35
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
36
  requirements:
19
- - - ! '>='
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 1.6.7
40
+ - - ">="
20
41
  - !ruby/object:Gem::Version
21
42
  version: 1.6.7
22
43
  type: :runtime
23
44
  prerelease: false
24
45
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
46
  requirements:
27
- - - ! '>='
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 1.6.7
50
+ - - ">="
28
51
  - !ruby/object:Gem::Version
29
52
  version: 1.6.7
30
53
  - !ruby/object:Gem::Dependency
31
- name: hashie
54
+ name: gemcutter
32
55
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
56
  requirements:
35
- - - ! '>='
57
+ - - "~>"
36
58
  - !ruby/object:Gem::Version
37
- version: 1.2.0
38
- type: :runtime
59
+ version: 0.7.1
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 0.7.1
63
+ type: :development
39
64
  prerelease: false
40
65
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
66
  requirements:
43
- - - ! '>='
67
+ - - "~>"
44
68
  - !ruby/object:Gem::Version
45
- version: 1.2.0
69
+ version: 0.7.1
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 0.7.1
73
+ - !ruby/object:Gem::Dependency
74
+ name: pry
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: 0.9.12
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.9.12.6
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.9.12
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 0.9.12.6
93
+ - !ruby/object:Gem::Dependency
94
+ name: rake
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: 10.1.0
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 10.1.0
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 10.1.0
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 10.1.0
113
+ - !ruby/object:Gem::Dependency
114
+ name: redcarpet
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: 3.1.0
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 3.1.0
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: 3.1.0
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 3.1.0
46
133
  - !ruby/object:Gem::Dependency
47
134
  name: rspec
48
135
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
136
  requirements:
51
- - - ! '>='
137
+ - - "~>"
52
138
  - !ruby/object:Gem::Version
53
- version: '2.0'
139
+ version: 2.14.1
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: 2.14.1
54
143
  type: :development
55
144
  prerelease: false
56
145
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
146
  requirements:
59
- - - ! '>='
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: 2.14.1
150
+ - - ">="
60
151
  - !ruby/object:Gem::Version
61
- version: '2.0'
152
+ version: 2.14.1
62
153
  - !ruby/object:Gem::Dependency
63
154
  name: simplecov
64
155
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
156
  requirements:
67
- - - ! '>='
157
+ - - "~>"
68
158
  - !ruby/object:Gem::Version
69
- version: 0.7.1
159
+ version: 0.8.2
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 0.8.2
70
163
  type: :development
71
164
  prerelease: false
72
165
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
166
  requirements:
75
- - - ! '>='
167
+ - - "~>"
76
168
  - !ruby/object:Gem::Version
77
- version: 0.7.1
169
+ version: 0.8.2
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 0.8.2
78
173
  - !ruby/object:Gem::Dependency
79
174
  name: vcr
80
175
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
176
  requirements:
83
- - - ! '>='
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: 2.2.5
180
+ - - ">="
84
181
  - !ruby/object:Gem::Version
85
182
  version: 2.2.5
86
183
  type: :development
87
184
  prerelease: false
88
185
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
186
  requirements:
91
- - - ! '>='
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: 2.2.5
190
+ - - ">="
92
191
  - !ruby/object:Gem::Version
93
192
  version: 2.2.5
94
193
  - !ruby/object:Gem::Dependency
95
194
  name: webmock
96
195
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
196
  requirements:
99
- - - ! '>='
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: 1.8.11
200
+ - - ">="
100
201
  - !ruby/object:Gem::Version
101
202
  version: 1.8.11
102
203
  type: :development
103
204
  prerelease: false
104
205
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
206
  requirements:
107
- - - ! '>='
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: 1.8.11
210
+ - - ">="
108
211
  - !ruby/object:Gem::Version
109
212
  version: 1.8.11
213
+ - !ruby/object:Gem::Dependency
214
+ name: yard
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: 0.8.7
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 0.8.7.4
223
+ type: :development
224
+ prerelease: false
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: 0.8.7
230
+ - - ">="
231
+ - !ruby/object:Gem::Version
232
+ version: 0.8.7.4
110
233
  description: Wraps AuthorityLabs Partner API calls in a gem.
111
234
  email: ''
112
235
  executables: []
@@ -114,6 +237,8 @@ extensions: []
114
237
  extra_rdoc_files:
115
238
  - README.md
116
239
  files:
240
+ - README.md
241
+ - lib/al_papi.rb
117
242
  - lib/al_papi/account.rb
118
243
  - lib/al_papi/config.rb
119
244
  - lib/al_papi/engines.rb
@@ -123,32 +248,29 @@ files:
123
248
  - lib/al_papi/request_error.rb
124
249
  - lib/al_papi/response.rb
125
250
  - lib/al_papi/web_insight.rb
126
- - lib/al_papi.rb
127
- - README.md
128
251
  homepage: http://github.com/mtchavez/al_papi
129
252
  licenses: []
253
+ metadata: {}
130
254
  post_install_message:
131
255
  rdoc_options:
132
- - --charset=UTF-8 --main=README.md
256
+ - "--charset=UTF-8 --main=README.md"
133
257
  require_paths:
134
258
  - lib
135
259
  required_ruby_version: !ruby/object:Gem::Requirement
136
- none: false
137
260
  requirements:
138
- - - ! '>='
261
+ - - ">="
139
262
  - !ruby/object:Gem::Version
140
263
  version: '0'
141
264
  required_rubygems_version: !ruby/object:Gem::Requirement
142
- none: false
143
265
  requirements:
144
- - - ! '>='
266
+ - - ">="
145
267
  - !ruby/object:Gem::Version
146
268
  version: '0'
147
269
  requirements: []
148
270
  rubyforge_project:
149
- rubygems_version: 1.8.24
271
+ rubygems_version: 2.2.2
150
272
  signing_key:
151
- specification_version: 3
273
+ specification_version: 4
152
274
  summary: AuthorityLabs Partner API Wrapper
153
275
  test_files: []
154
276
  has_rdoc: