vkontakte_client 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8d3a230ed8bef6aae1088c24a549aab7091b23607df29d03e14b457d7d99a93
4
- data.tar.gz: ee3454be0e42025d186bab93212ef46400f5a57b542b976c827da7d5070b0404
3
+ metadata.gz: 51a42f91a5a1b16fa8cb3d0daebe72190b8e32d28a29cfe926d9e75f31e14f32
4
+ data.tar.gz: 88756d99e4956f31a4197282d53c8dc2349cc18949d43549fd136c17b9ff73e0
5
5
  SHA512:
6
- metadata.gz: ecf08ee6ef1ad27d6d1e81e85bf206a5a45b50ad0776ab2b0424eae17dc0e9cc0aee7a7c3e728993ee06533c5a99148ab2eca98b4f8b4af309aaabe359305ff1
7
- data.tar.gz: b47c5720540656bb912047afeb71e094eb70648a81b44a88596e6ca0efa174d764065df319244cc2b035a8c9a332e02bd6654d97328ca01462b608e6bf2c0694
6
+ metadata.gz: b26490d3a6cb60fad0bfaf3a67815b7150052a42a4703ecfb46cec84ebe88c105a5d27578205c93fcccf14a8ca36765f17230741135842cc0a66830f90520100
7
+ data.tar.gz: '09c149b308a08dc54e351716e105c36fa3a6d57771ca4d4206cf3c596b07ea1bdb7a9f5a9502954b89f1c8a76ae32423b4adf5f8745c3500b7ae7e526858b1fa'
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2021 Anton Maminov
3
+ Copyright (c) 2010-2022 Anton Maminov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -97,6 +97,6 @@ api.friends_get(fields: 'online', order: 'name', name_case: 'dat')
97
97
 
98
98
  ## License
99
99
 
100
- Copyright: 2010-2021 Anton Maminov (anton.maminov@gmail.com)
100
+ Copyright: 2010-2022 Anton Maminov (anton.maminov@gmail.com)
101
101
 
102
102
  This library is distributed under the MIT license. Please see the LICENSE file.
@@ -12,13 +12,15 @@ module Vkontakte
12
12
  client_id = nil,
13
13
  api_version: Vkontakte::API_VERSION,
14
14
  proxy: nil,
15
- timeout: 60
15
+ timeout: 60,
16
+ log: false
16
17
  )
17
18
  @client_id = client_id
18
19
  @api_version = api_version
19
20
  @proxy = proxy
20
21
  @timeout = timeout
21
22
  @authorize = false
23
+ @log = log
22
24
 
23
25
  @api = Vkontakte::API.new
24
26
  end
@@ -43,6 +45,7 @@ module Vkontakte
43
45
  agent = Mechanize.new do |a|
44
46
  a.user_agent_alias = 'Linux Firefox'
45
47
  a.follow_meta_refresh
48
+ a.log = Logger.new($stdout) if @log
46
49
 
47
50
  a.agent.set_socks(@proxy.addr, @proxy.port) if @proxy&.socks?
48
51
  a.agent.set_proxy(@proxy.addr, @proxy.port) if @proxy&.http?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vkontakte
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vkontakte_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Maminov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -128,7 +128,7 @@ homepage: https://github.com/mamantoha/vkontakte_client
128
128
  licenses:
129
129
  - MIT
130
130
  metadata: {}
131
- post_install_message:
131
+ post_install_message:
132
132
  rdoc_options: []
133
133
  require_paths:
134
134
  - lib
@@ -143,8 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.2.22
147
- signing_key:
146
+ rubygems_version: 3.3.3
147
+ signing_key:
148
148
  specification_version: 4
149
149
  summary: Unofficial VKontakte API Client for Ruby
150
150
  test_files: []