vkontakte_api 1.3.1 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/Guardfile +4 -0
- data/README.md +48 -16
- data/lib/generators/vkontakte_api/install/install_generator.rb +2 -1
- data/lib/vkontakte_api/api.rb +9 -6
- data/lib/vkontakte_api/authorization.rb +2 -2
- data/lib/vkontakte_api/client.rb +7 -0
- data/lib/vkontakte_api/configuration.rb +4 -2
- data/lib/vkontakte_api/logger.rb +4 -4
- data/lib/vkontakte_api/namespace.rb +2 -2
- data/lib/vkontakte_api/result.rb +1 -1
- data/lib/vkontakte_api/uploading.rb +1 -2
- data/lib/vkontakte_api/version.rb +1 -1
- data/spec/integration_spec.rb +0 -2
- data/spec/support/mechanized_authorization.rb +5 -4
- data/spec/vkontakte_api/api_spec.rb +16 -0
- data/spec/vkontakte_api/client_spec.rb +3 -1
- data/spec/vkontakte_api/configuration_spec.rb +1 -0
- data/vkontakte_api.gemspec +4 -3
- metadata +59 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abc394ecea0593151c184221c7584d2497e5a0b5
|
4
|
+
data.tar.gz: fa75472686aceeb47d0846004b5efdbb3314e0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e93465f3862e9731749ca37149057e361a6eb3f30e0bfbfa2ce897ff38676f121d4b7e9eb27429868b7fbf742814b5abb0d11e580b608c5aeac190a89d75d4c
|
7
|
+
data.tar.gz: 017d9ac66a4b8a9aafe2d4a0db0d5d4c407e415167aef95f5a7f76b4a4322b5df62db09b15283faf447fe0d60fe799f28f095428e67579330f1f0a85f15ca03c
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Guardfile
CHANGED
@@ -6,4 +6,8 @@ guard 'rspec', all_on_start: true, all_after_pass: true do
|
|
6
6
|
watch('spec/support/mechanized_authorization.rb') { 'spec/integration_spec.rb' }
|
7
7
|
end
|
8
8
|
|
9
|
+
guard 'yard' do
|
10
|
+
watch(%r{lib/.+\.rb})
|
11
|
+
end
|
12
|
+
|
9
13
|
notification :terminal_notifier, activate: 'com.googlecode.iTerm2'
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
``` ruby
|
8
8
|
# Gemfile
|
9
|
-
gem 'vkontakte_api', '~> 1.
|
9
|
+
gem 'vkontakte_api', '~> 1.4'
|
10
10
|
```
|
11
11
|
|
12
12
|
или просто
|
@@ -188,13 +188,19 @@ vk.friends.get(uid: 1, fields: [:first_name, :last_name, :photo])
|
|
188
188
|
# VkontakteApi::Error: VKontakte returned an error 7: 'Permission to perform this action is denied' after calling method 'friends.get' with parameters {"uid"=>"1", "fields"=>"first_name,last_name,photo"}.
|
189
189
|
```
|
190
190
|
|
191
|
-
Особый случай ошибки - 14: необходимо ввести код с captcha.
|
191
|
+
Особый случай ошибки - 14: необходимо ввести код с captcha.
|
192
|
+
В этом случае можно получить параметры капчи методами
|
193
|
+
`VkontakteApi::Error#captcha_sid` и `VkontakteApi::Error#captcha_img` - например,
|
194
|
+
[так](https://github.com/7even/vkontakte_api/issues/10#issuecomment-11666091).
|
192
195
|
|
193
196
|
### Логгирование
|
194
197
|
|
195
|
-
`vkontakte_api` логгирует служебную информацию о запросах при вызове методов.
|
198
|
+
`vkontakte_api` логгирует служебную информацию о запросах при вызове методов.
|
199
|
+
По умолчанию все пишется в `STDOUT`, но в настройке можно указать
|
200
|
+
любой другой совместимый логгер, например `Rails.logger`.
|
196
201
|
|
197
|
-
Есть возможность логгирования 3 типов информации,
|
202
|
+
Есть возможность логгирования 3 типов информации,
|
203
|
+
каждому соответствует ключ в глобальных настройках.
|
198
204
|
|
199
205
|
| | ключ настройки | по умолчанию | уровень логгирования |
|
200
206
|
| ---------------------- | --------------- | ------------ | -------------------- |
|
@@ -202,13 +208,17 @@ vk.friends.get(uid: 1, fields: [:first_name, :last_name, :photo])
|
|
202
208
|
| JSON ответа при ошибке | `log_errors` | `true` | `warn` |
|
203
209
|
| JSON удачного ответа | `log_responses` | `false` | `debug` |
|
204
210
|
|
205
|
-
Таким образом, в rails-приложении с настройками по умолчанию в production
|
211
|
+
Таким образом, в rails-приложении с настройками по умолчанию в production
|
212
|
+
записываются только ответы сервера при ошибках;
|
213
|
+
в development также логгируются URL-ы запросов.
|
206
214
|
|
207
215
|
### Пример использования
|
208
216
|
|
209
|
-
Пример использования `vkontakte_api` совместно с `eventmachine` можно посмотреть
|
217
|
+
Пример использования `vkontakte_api` совместно с `eventmachine` можно посмотреть
|
218
|
+
[здесь](https://github.com/7even/vkontakte_on_em).
|
210
219
|
|
211
|
-
Также был написан [пример использования с rails](https://github.com/7even/vkontakte_on_rails),
|
220
|
+
Также был написан [пример использования с rails](https://github.com/7even/vkontakte_on_rails),
|
221
|
+
но он больше не работает из-за отсутствия прав на вызов метода `newsfeed.get`.
|
212
222
|
|
213
223
|
## Настройка
|
214
224
|
|
@@ -245,16 +255,29 @@ VkontakteApi.configure do |config|
|
|
245
255
|
config.log_requests = true # URL-ы запросов
|
246
256
|
config.log_errors = true # ошибки
|
247
257
|
config.log_responses = false # удачные ответы
|
258
|
+
|
259
|
+
# используемая версия API
|
260
|
+
config.api_version = '5.21'
|
248
261
|
end
|
249
262
|
```
|
250
263
|
|
251
|
-
По умолчанию для HTTP-запросов используется `Net::HTTP`; можно выбрать
|
264
|
+
По умолчанию для HTTP-запросов используется `Net::HTTP`; можно выбрать
|
265
|
+
[любой другой адаптер](https://github.com/technoweenie/faraday/blob/master/lib/faraday/adapter.rb),
|
266
|
+
поддерживаемый `faraday`.
|
267
|
+
|
268
|
+
ВКонтакте [позволяет](http://vk.com/developers.php?oid=-1&p=%D0%92%D1%8B%D0%BF%D0%BE%D0%BB%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5_%D0%B7%D0%B0%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B2_%D0%BA_API)
|
269
|
+
использовать как `GET`-, так и `POST`-запросы при вызове методов API.
|
270
|
+
По умолчанию `vkontakte_api` использует `POST`, но в настройке `http_verb`
|
271
|
+
можно указать `:get`, чтобы совершать `GET`-запросы.
|
252
272
|
|
253
|
-
|
273
|
+
При необходимости можно указать параметры для faraday-соединения - например,
|
274
|
+
параметры прокси-сервера или путь к SSL-сертификатам.
|
254
275
|
|
255
|
-
|
276
|
+
Чтобы при каждом вызове API-метода передавалась определенная версия API, можно
|
277
|
+
указать ее в конфигурации в `api_version`. По умолчанию версия не указана.
|
256
278
|
|
257
|
-
Чтобы сгенерировать файл с настройками по умолчанию в rails-приложении,
|
279
|
+
Чтобы сгенерировать файл с настройками по умолчанию в rails-приложении,
|
280
|
+
можно воспользоваться генератором `vkontakte_api:install`:
|
258
281
|
|
259
282
|
``` sh
|
260
283
|
$ cd /path/to/app
|
@@ -263,17 +286,26 @@ $ rails generate vkontakte_api:install
|
|
263
286
|
|
264
287
|
## JSON-парсер
|
265
288
|
|
266
|
-
`vkontakte_api` использует парсер [Oj](https://github.com/ohler55/oj) - это
|
289
|
+
`vkontakte_api` использует парсер [Oj](https://github.com/ohler55/oj) - это
|
290
|
+
единственный парсер, который не показал [ошибок](https://github.com/7even/vkontakte_api/issues/1)
|
291
|
+
при парсинге JSON, генерируемого ВКонтакте.
|
267
292
|
|
268
|
-
Также в библиотеке `multi_json` (обертка для различных JSON-парсеров,
|
293
|
+
Также в библиотеке `multi_json` (обертка для различных JSON-парсеров,
|
294
|
+
которая выбирает самый быстрый из установленных в системе и парсит им)
|
295
|
+
`Oj` поддерживается и имеет наивысший приоритет; поэтому если он установлен
|
296
|
+
в системе, `multi_json` будет использовать именно его.
|
269
297
|
|
270
298
|
## Roadmap
|
271
299
|
|
272
300
|
* CLI-интерфейс с автоматической авторизацией
|
273
|
-
* Глобальное указание версии API
|
274
301
|
|
275
302
|
## Участие в разработке
|
276
303
|
|
277
|
-
Если вы хотите поучаствовать в разработке проекта, форкните репозиторий,
|
304
|
+
Если вы хотите поучаствовать в разработке проекта, форкните репозиторий,
|
305
|
+
положите свои изменения в отдельную ветку, покройте их спеками
|
306
|
+
и отправьте мне pull request.
|
278
307
|
|
279
|
-
`vkontakte_api` тестируется под MRI `1.9.3
|
308
|
+
`vkontakte_api` тестируется под MRI `1.9.3`, `2.0.0` и `2.1.2`.
|
309
|
+
Если в одной из этих сред что-то работает неправильно, либо вообще не работает,
|
310
|
+
то это следует считать багом, и написать об этом
|
311
|
+
в [issues на Github](https://github.com/7even/vkontakte_api/issues).
|
@@ -1,4 +1,5 @@
|
|
1
|
-
# A rails generator `
|
1
|
+
# A rails generator `vkontakte_api:install`.
|
2
|
+
# It creates a config file in `config/initializers/vkontakte_api.rb`.
|
2
3
|
class VkontakteApi::InstallGenerator < Rails::Generators::Base
|
3
4
|
source_root File.expand_path('../templates', __FILE__)
|
4
5
|
|
data/lib/vkontakte_api/api.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module VkontakteApi
|
2
2
|
# A low-level module which handles the requests to VKontakte API and returns their results as mashes.
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# It uses Faraday with middleware underneath the hood.
|
5
5
|
module API
|
6
6
|
# URL prefix for calling API methods.
|
@@ -14,6 +14,7 @@ module VkontakteApi
|
|
14
14
|
# @return [Hashie::Mash] Mashed server response.
|
15
15
|
def call(method_name, args = {}, token = nil)
|
16
16
|
flat_arguments = Utils.flatten_arguments(args)
|
17
|
+
flat_arguments[:v] ||= VkontakteApi.api_version unless VkontakteApi.api_version.nil?
|
17
18
|
connection(url: URL_PREFIX, token: token).send(VkontakteApi.http_verb, method_name, flat_arguments).body
|
18
19
|
end
|
19
20
|
|
@@ -27,14 +28,16 @@ module VkontakteApi
|
|
27
28
|
token = options.delete(:token)
|
28
29
|
|
29
30
|
Faraday.new(url, VkontakteApi.faraday_options) do |builder|
|
30
|
-
builder.request
|
31
|
-
builder.request
|
32
|
-
builder.request
|
33
|
-
builder.request
|
31
|
+
builder.request :oauth2, token unless token.nil?
|
32
|
+
builder.request :multipart
|
33
|
+
builder.request :url_encoded
|
34
|
+
builder.request :retry, VkontakteApi.max_retries
|
35
|
+
|
34
36
|
builder.response :vk_logger
|
35
37
|
builder.response :mashify
|
36
38
|
builder.response :oj, preserve_raw: true
|
37
|
-
|
39
|
+
|
40
|
+
builder.adapter VkontakteApi.adapter
|
38
41
|
end
|
39
42
|
end
|
40
43
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module VkontakteApi
|
2
2
|
# A module containing the methods for authorization.
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# @note `VkontakteApi::Authorization` extends `VkontakteApi` so these methods should be called from the latter.
|
5
5
|
module Authorization
|
6
6
|
# Authorization options.
|
@@ -39,7 +39,7 @@ module VkontakteApi
|
|
39
39
|
|
40
40
|
# Authorization (getting the access token and building a `VkontakteApi::Client` with it).
|
41
41
|
# @option options [Symbol] :type The type of authorization being used (`:site` and `:app_server` supported).
|
42
|
-
# @option options [String] :code The code to exchange for an access token (for `:site` authorization type).
|
42
|
+
# @option options [String] :code The code to exchange for an access token (for `:site` authorization type).
|
43
43
|
# @raise [ArgumentError] raises after receiving an unknown authorization type.
|
44
44
|
# @return [VkontakteApi::Client] An API client.
|
45
45
|
def authorize(options = {})
|
data/lib/vkontakte_api/client.rb
CHANGED
@@ -27,9 +27,15 @@ module VkontakteApi
|
|
27
27
|
# An access token needed by authorized requests.
|
28
28
|
# @return [String]
|
29
29
|
attr_reader :token
|
30
|
+
|
30
31
|
# Current user id.
|
31
32
|
# @return [Integer]
|
32
33
|
attr_reader :user_id
|
34
|
+
|
35
|
+
# Current user email.
|
36
|
+
# @return [String]
|
37
|
+
attr_reader :email
|
38
|
+
|
33
39
|
# Token expiration time
|
34
40
|
# @return [Time]
|
35
41
|
attr_reader :expires_at
|
@@ -44,6 +50,7 @@ module VkontakteApi
|
|
44
50
|
# token is an OAuth2::AccessToken
|
45
51
|
@token = token.token
|
46
52
|
@user_id = token.params['user_id']
|
53
|
+
@email = token.params['email']
|
47
54
|
@expires_at = Time.at(token.expires_at) unless token.expires_at.nil?
|
48
55
|
else
|
49
56
|
# token is a String or nil
|
@@ -2,7 +2,7 @@ require 'logger'
|
|
2
2
|
|
3
3
|
module VkontakteApi
|
4
4
|
# General configuration module.
|
5
|
-
#
|
5
|
+
#
|
6
6
|
# @note `VkontakteApi::Configuration` extends `VkontakteApi` so these methods should be called from the latter.
|
7
7
|
module Configuration
|
8
8
|
# Available options.
|
@@ -17,7 +17,8 @@ module VkontakteApi
|
|
17
17
|
:logger,
|
18
18
|
:log_requests,
|
19
19
|
:log_errors,
|
20
|
-
:log_responses
|
20
|
+
:log_responses,
|
21
|
+
:api_version
|
21
22
|
]
|
22
23
|
|
23
24
|
attr_accessor *OPTION_NAMES
|
@@ -63,6 +64,7 @@ module VkontakteApi
|
|
63
64
|
@log_requests = DEFAULT_LOGGER_OPTIONS[:requests]
|
64
65
|
@log_errors = DEFAULT_LOGGER_OPTIONS[:errors]
|
65
66
|
@log_responses = DEFAULT_LOGGER_OPTIONS[:responses]
|
67
|
+
@api_version = nil
|
66
68
|
end
|
67
69
|
|
68
70
|
# When this module is extended, set all configuration options to their default values.
|
data/lib/vkontakte_api/logger.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module VkontakteApi
|
2
2
|
# Faraday middleware for logging requests and responses.
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# It's behaviour depends on the logging options in the configuration.
|
5
5
|
class Logger < Faraday::Response::Middleware
|
6
6
|
# Creates a middleware instance.
|
@@ -25,12 +25,12 @@ module VkontakteApi
|
|
25
25
|
# @param [Hash] env Response data.
|
26
26
|
def on_complete(env)
|
27
27
|
if env[:body].error?
|
28
|
-
@logger.warn env[:raw_body]
|
28
|
+
@logger.warn env[:raw_body] if VkontakteApi.log_errors?
|
29
29
|
else
|
30
30
|
@logger.debug env[:raw_body] if VkontakteApi.log_responses?
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
34
|
+
|
35
|
+
Faraday::Response.register_middleware vk_logger: Logger
|
34
36
|
end
|
35
|
-
|
36
|
-
Faraday.register_middleware :response, vk_logger: VkontakteApi::Logger
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module VkontakteApi
|
2
2
|
# An API method namespace (such as `users` or `friends`).
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# It includes `Resolvable` and `Resolver` and calls API methods via `Resolver#call_method`.
|
5
5
|
# It also holds the list of all known namespaces.
|
6
6
|
class Namespace
|
@@ -14,7 +14,7 @@ module VkontakteApi
|
|
14
14
|
|
15
15
|
class << self
|
16
16
|
# An array of all method namespaces.
|
17
|
-
#
|
17
|
+
#
|
18
18
|
# Lazily loads the list from `namespaces.yml` and caches it.
|
19
19
|
# @return [Array] An array of strings
|
20
20
|
def names
|
data/lib/vkontakte_api/result.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module VkontakteApi
|
2
2
|
# A module implementing files uploading functionality.
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# @note `VkontakteApi::Uploading` extends `VkontakteApi` so these methods should be called from the latter.
|
5
5
|
module Uploading
|
6
6
|
# Files uploading. It uses the same faraday middleware stack as API method calls (by using `VkontakteApi::API.connection`).
|
@@ -22,7 +22,6 @@ module VkontakteApi
|
|
22
22
|
# [io_object, 'image/png', '/path/to/file2.png']
|
23
23
|
# ]
|
24
24
|
# )
|
25
|
-
|
26
25
|
def upload(params = {})
|
27
26
|
url = params.delete(:url)
|
28
27
|
raise ArgumentError, 'You should pass :url parameter' unless url
|
data/spec/integration_spec.rb
CHANGED
@@ -33,7 +33,6 @@ describe "Integration" do
|
|
33
33
|
let(:vk) { MechanizedAuthorization.client }
|
34
34
|
|
35
35
|
it "get groups" do
|
36
|
-
pending 'MechanizedAuthorization not working'
|
37
36
|
expect(vk.groups.get).to include(1)
|
38
37
|
end
|
39
38
|
end
|
@@ -42,7 +41,6 @@ describe "Integration" do
|
|
42
41
|
let(:vk) { MechanizedAuthorization.client }
|
43
42
|
|
44
43
|
it "convert method names to vk.com format" do
|
45
|
-
pending 'MechanizedAuthorization not working'
|
46
44
|
expect(vk.is_app_user?).to be_true
|
47
45
|
end
|
48
46
|
end
|
@@ -14,13 +14,14 @@ module MechanizedAuthorization
|
|
14
14
|
form.pass = settings.password
|
15
15
|
end.submit
|
16
16
|
|
17
|
+
# extra form in some cases
|
18
|
+
agent.page.form.submit if agent.page.uri.fragment.nil?
|
19
|
+
|
17
20
|
# uri.fragment: access_token=ee6b952fa432c70&expires_in=86400&user_id=123456
|
18
|
-
|
21
|
+
token = agent.page.uri.fragment.split('&').each_with_object(Hash.new) do |pair, hash|
|
19
22
|
key, value = pair.split('=')
|
20
23
|
hash[key] = value
|
21
|
-
|
22
|
-
end
|
23
|
-
token = params['access_token']
|
24
|
+
end.fetch('access_token')
|
24
25
|
|
25
26
|
VkontakteApi::Client.new(token)
|
26
27
|
end
|
@@ -41,6 +41,22 @@ describe VkontakteApi::API do
|
|
41
41
|
subject.call('apiMethod')
|
42
42
|
end
|
43
43
|
|
44
|
+
context "when the api_version is set" do
|
45
|
+
let(:api_version) { double("API version") }
|
46
|
+
let(:response) { double("API response", body: @result) }
|
47
|
+
|
48
|
+
before(:each) do
|
49
|
+
VkontakteApi.configure do |config|
|
50
|
+
config.api_version = api_version
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
it "adds it to request params" do
|
55
|
+
expect(@connection).to receive(:post).with('apiMethod', v: api_version).and_return(response)
|
56
|
+
subject.call('apiMethod')
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
44
60
|
after(:each) do
|
45
61
|
VkontakteApi.reset
|
46
62
|
end
|
@@ -3,12 +3,13 @@ require 'spec_helper'
|
|
3
3
|
describe VkontakteApi::Client do
|
4
4
|
before(:each) do
|
5
5
|
@user_id = double("User id")
|
6
|
+
@email = double("User email")
|
6
7
|
end
|
7
8
|
|
8
9
|
def oauth2_token(expires_at = Time.now)
|
9
10
|
token = double("Access token as an OAuth2::AccessToken").tap do |token|
|
10
11
|
token.stub(:token).and_return(string_token)
|
11
|
-
token.stub(:params).and_return('user_id' => @user_id)
|
12
|
+
token.stub(:params).and_return('user_id' => @user_id, 'email' => @email)
|
12
13
|
token.stub(:expires_at).and_return(expires_at)
|
13
14
|
end
|
14
15
|
end
|
@@ -41,6 +42,7 @@ describe VkontakteApi::Client do
|
|
41
42
|
it "extracts the string token and uses it" do
|
42
43
|
expect(client.token).to eq(string_token)
|
43
44
|
expect(client.user_id).to eq(@user_id)
|
45
|
+
expect(client.email).to eq(@email)
|
44
46
|
|
45
47
|
expect(client.expires_at).to be_a(Time)
|
46
48
|
expect(client.expires_at).to be < Time.now
|
data/vkontakte_api.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.required_ruby_version = '>= 1.9.2'
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'faraday', '~> 0.
|
23
|
-
s.add_runtime_dependency 'faraday_middleware', '~> 0.
|
24
|
-
s.add_runtime_dependency 'faraday_middleware-parse_oj', '~> 0.
|
22
|
+
s.add_runtime_dependency 'faraday', '~> 0.9.0'
|
23
|
+
s.add_runtime_dependency 'faraday_middleware', '~> 0.9.1'
|
24
|
+
s.add_runtime_dependency 'faraday_middleware-parse_oj', '~> 0.3'
|
25
25
|
s.add_runtime_dependency 'oauth2', '~> 0.8'
|
26
26
|
s.add_runtime_dependency 'hashie', '~> 2.0'
|
27
27
|
|
@@ -37,4 +37,5 @@ Gem::Specification.new do |s|
|
|
37
37
|
|
38
38
|
s.add_development_dependency 'yard'
|
39
39
|
s.add_development_dependency 'redcarpet'
|
40
|
+
s.add_development_dependency 'guard-yard'
|
40
41
|
end
|
metadata
CHANGED
@@ -1,223 +1,237 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vkontakte_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vsevolod Romashov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.9.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.9.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday_middleware-parse_oj
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.3'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: oauth2
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.8'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.8'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: hashie
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '2.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '2.14'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '2.14'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: mechanize
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: guard-rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rb-fsevent
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 0.9.1
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 0.9.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: terminal-notifier-guard
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: pry
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: awesome_print
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: yard
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: redcarpet
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- -
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: guard-yard
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
214
228
|
- !ruby/object:Gem::Version
|
215
229
|
version: '0'
|
216
230
|
type: :development
|
217
231
|
prerelease: false
|
218
232
|
version_requirements: !ruby/object:Gem::Requirement
|
219
233
|
requirements:
|
220
|
-
- -
|
234
|
+
- - ">="
|
221
235
|
- !ruby/object:Gem::Version
|
222
236
|
version: '0'
|
223
237
|
description: A transparent wrapper for VKontakte API. Supports ruby-way naming of
|
@@ -229,10 +243,10 @@ executables: []
|
|
229
243
|
extensions: []
|
230
244
|
extra_rdoc_files: []
|
231
245
|
files:
|
232
|
-
- .gitignore
|
233
|
-
- .rspec
|
234
|
-
- .travis.yml
|
235
|
-
- .yardopts
|
246
|
+
- ".gitignore"
|
247
|
+
- ".rspec"
|
248
|
+
- ".travis.yml"
|
249
|
+
- ".yardopts"
|
236
250
|
- CHANGELOG.md
|
237
251
|
- Gemfile
|
238
252
|
- Guardfile
|
@@ -286,17 +300,17 @@ require_paths:
|
|
286
300
|
- lib
|
287
301
|
required_ruby_version: !ruby/object:Gem::Requirement
|
288
302
|
requirements:
|
289
|
-
- -
|
303
|
+
- - ">="
|
290
304
|
- !ruby/object:Gem::Version
|
291
305
|
version: 1.9.2
|
292
306
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
307
|
requirements:
|
294
|
-
- -
|
308
|
+
- - ">="
|
295
309
|
- !ruby/object:Gem::Version
|
296
310
|
version: '0'
|
297
311
|
requirements: []
|
298
312
|
rubyforge_project:
|
299
|
-
rubygems_version: 2.
|
313
|
+
rubygems_version: 2.2.2
|
300
314
|
signing_key:
|
301
315
|
specification_version: 4
|
302
316
|
summary: Ruby wrapper for VKontakte API
|