vkontakte_client 2.0.1 → 2.0.2
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 +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/vkontakte/client.rb +4 -1
- data/lib/vkontakte/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 51a42f91a5a1b16fa8cb3d0daebe72190b8e32d28a29cfe926d9e75f31e14f32
|
|
4
|
+
data.tar.gz: 88756d99e4956f31a4197282d53c8dc2349cc18949d43549fd136c17b9ff73e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b26490d3a6cb60fad0bfaf3a67815b7150052a42a4703ecfb46cec84ebe88c105a5d27578205c93fcccf14a8ca36765f17230741135842cc0a66830f90520100
|
|
7
|
+
data.tar.gz: '09c149b308a08dc54e351716e105c36fa3a6d57771ca4d4206cf3c596b07ea1bdb7a9f5a9502954b89f1c8a76ae32423b4adf5f8745c3500b7ae7e526858b1fa'
|
data/LICENSE
CHANGED
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-
|
|
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.
|
data/lib/vkontakte/client.rb
CHANGED
|
@@ -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?
|
data/lib/vkontakte/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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: []
|