vk_music 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -12
- data/lib/vk_music/client.rb +3 -1
- data/lib/vk_music/version.rb +1 -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: aec492ae7fcb04bbc070c56a30110424661fdfda1766a70687bc14f476cd7d65
|
4
|
+
data.tar.gz: dba67eac6a1fe2563995e27d82f01f63f747fa15d06dd39704f6b3e1dffa54b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be3afe5a234742fac06fe01a57439ba2f5ca8f8d4ff1a81ea8d74c611f03876adfa41e967dec9598fa62d84bb73f9426d81e7e054f96d7d64c24efe4bfff8427
|
7
|
+
data.tar.gz: '09502160a7456174ba2f74841ed749ae34ecf5003e545b3381d43494f372fb064c9363d2e3df9167f6de9ba6ecb7a58a4abafde8ba99888d736e28cdbacd483c'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vk_music (3.1.
|
4
|
+
vk_music (3.1.5)
|
5
5
|
execjs (~> 2.7)
|
6
6
|
json (~> 2.0)
|
7
7
|
logger (~> 1.4)
|
@@ -11,14 +11,14 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
coderay (1.1.
|
14
|
+
coderay (1.1.3)
|
15
15
|
domain_name (0.5.20190701)
|
16
16
|
unf (>= 0.0.5, < 1.0.0)
|
17
17
|
execjs (2.7.0)
|
18
18
|
http-cookie (1.0.3)
|
19
19
|
domain_name (~> 0.5)
|
20
|
-
json (2.3.
|
21
|
-
logger (1.4.
|
20
|
+
json (2.3.1)
|
21
|
+
logger (1.4.2)
|
22
22
|
mechanize (2.7.6)
|
23
23
|
domain_name (~> 0.5, >= 0.5.1)
|
24
24
|
http-cookie (~> 1.0)
|
@@ -29,16 +29,16 @@ GEM
|
|
29
29
|
ntlm-http (~> 0.1, >= 0.1.1)
|
30
30
|
webrobots (>= 0.0.9, < 0.2)
|
31
31
|
method_source (0.9.2)
|
32
|
-
mime-types (3.3)
|
32
|
+
mime-types (3.3.1)
|
33
33
|
mime-types-data (~> 3.2015)
|
34
|
-
mime-types-data (3.
|
34
|
+
mime-types-data (3.2020.0512)
|
35
35
|
mini_portile2 (2.4.0)
|
36
|
-
minitest (5.
|
36
|
+
minitest (5.14.1)
|
37
37
|
net-http-digest_auth (1.4.1)
|
38
38
|
net-http-persistent (2.9.4)
|
39
|
-
nokogiri (1.10.
|
39
|
+
nokogiri (1.10.10)
|
40
40
|
mini_portile2 (~> 2.4.0)
|
41
|
-
nokogiri (1.10.
|
41
|
+
nokogiri (1.10.10-x64-mingw32)
|
42
42
|
mini_portile2 (~> 2.4.0)
|
43
43
|
ntlm-http (0.1.1)
|
44
44
|
pry (0.12.2)
|
@@ -47,9 +47,10 @@ GEM
|
|
47
47
|
rake (13.0.1)
|
48
48
|
unf (0.1.4)
|
49
49
|
unf_ext
|
50
|
-
unf_ext (0.0.7.
|
50
|
+
unf_ext (0.0.7.7)
|
51
|
+
unf_ext (0.0.7.7-x64-mingw32)
|
51
52
|
webrobots (0.1.2)
|
52
|
-
yard (0.9.
|
53
|
+
yard (0.9.25)
|
53
54
|
|
54
55
|
PLATFORMS
|
55
56
|
ruby
|
@@ -66,4 +67,4 @@ DEPENDENCIES
|
|
66
67
|
yard (~> 0.9)
|
67
68
|
|
68
69
|
BUNDLED WITH
|
69
|
-
2.
|
70
|
+
2.1.4
|
data/lib/vk_music/client.rb
CHANGED
@@ -545,7 +545,9 @@ module VkMusic
|
|
545
545
|
|
546
546
|
footer_node = first_page.at_css(".audioPlaylist__footer")
|
547
547
|
if footer_node
|
548
|
-
|
548
|
+
footer_text = footer_node.text.strip
|
549
|
+
footer_text.gsub!(/\s/, "") # Removing all whitespace to get rid of delimiters ('1 042 audios')
|
550
|
+
footer_match = footer_text.match(/^\d+/)
|
549
551
|
real_size = footer_match ? footer_match[0].to_i : 0
|
550
552
|
else
|
551
553
|
real_size = 0
|
data/lib/vk_music/version.rb
CHANGED
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: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fizvlad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|