vk_music 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/vk_music/version.rb +1 -1
- data/lib/vk_music/web_parser/profile.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c96600db101ef3b36aae086473d7954009ee3cd2df78e3c0fb00e17274c9375f
|
4
|
+
data.tar.gz: 957c1b36785ffdd1f45d772d4a1fa963bf4c9f874947f5f241445801101241a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07add466eea5a3c516d5b0e9ed968ced90ad5b09077aec19bc4c69f29eeb9894cad9ce174910f323b139daf47bda7b7185664a8e683933210717b75ab0da90c0
|
7
|
+
data.tar.gz: ba17cb06417c52cbcd45c7204ae36d6a83b76ab6173a2215c0062a7873ccd997eae145a96e397d305258568bbfece837c9186afa7f0789e18b5e0f5543cb10df
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vk_music (4.1.
|
4
|
+
vk_music (4.1.2)
|
5
5
|
execjs (~> 2.7)
|
6
6
|
json (~> 2.3)
|
7
7
|
logger (~> 1.4)
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
domain_name (~> 0.5)
|
30
30
|
json (2.5.1)
|
31
31
|
logger (1.4.3)
|
32
|
-
mechanize (2.7.
|
32
|
+
mechanize (2.7.7)
|
33
33
|
domain_name (~> 0.5, >= 0.5.1)
|
34
34
|
http-cookie (~> 1.0)
|
35
35
|
mime-types (>= 1.17.2)
|
@@ -37,16 +37,15 @@ GEM
|
|
37
37
|
net-http-persistent (>= 2.5.2)
|
38
38
|
nokogiri (~> 1.6)
|
39
39
|
ntlm-http (~> 0.1, >= 0.1.1)
|
40
|
+
webrick (~> 1.7)
|
40
41
|
webrobots (>= 0.0.9, < 0.2)
|
41
42
|
method_source (1.0.0)
|
42
43
|
mime-types (3.3.1)
|
43
44
|
mime-types-data (~> 3.2015)
|
44
45
|
mime-types-data (3.2020.1104)
|
45
|
-
mini_portile2 (2.5.0)
|
46
46
|
net-http-digest_auth (1.4.1)
|
47
47
|
net-http-persistent (2.9.4)
|
48
|
-
nokogiri (1.11.1)
|
49
|
-
mini_portile2 (~> 2.5.0)
|
48
|
+
nokogiri (1.11.1-x86_64-linux)
|
50
49
|
racc (~> 1.4)
|
51
50
|
ntlm-http (0.1.1)
|
52
51
|
parallel (1.20.1)
|
@@ -101,6 +100,7 @@ GEM
|
|
101
100
|
addressable (>= 2.3.6)
|
102
101
|
crack (>= 0.3.2)
|
103
102
|
hashdiff (>= 0.4.0, < 2.0.0)
|
103
|
+
webrick (1.7.0)
|
104
104
|
webrobots (0.1.2)
|
105
105
|
yard (0.9.26)
|
106
106
|
|
data/lib/vk_music/version.rb
CHANGED
@@ -12,9 +12,13 @@ module VkMusic
|
|
12
12
|
POST_ANCHOR_NAME_REGEX = /post(-?\d+)_(\d+)/.freeze
|
13
13
|
private_constant :POST_ANCHOR_NAME_REGEX
|
14
14
|
|
15
|
+
# CSS selector for link in basis
|
16
|
+
BASIS_LINK_SELECTOR = '.basisProfile a,.basisGroup a,.BasisProfile a,.BasisGroup a'
|
17
|
+
private_constant :BASIS_LINK_SELECTOR
|
18
|
+
|
15
19
|
# Profile id
|
16
20
|
def id
|
17
|
-
link = node.link_with(href: ID_CONTAINING_HREF, css:
|
21
|
+
link = node.link_with(href: ID_CONTAINING_HREF, css: BASIS_LINK_SELECTOR)
|
18
22
|
return unless link
|
19
23
|
|
20
24
|
Integer(link.href.match(ID_CONTAINING_HREF).captures.first, 10)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vk_music
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fizvlad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|