kinopoisk_parser 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kinopoisk_parser.gemspec +1 -1
- data/lib/kinopoisk/movie.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b39e141d40b1a6647bf706635e2bc87aca7e5049
|
4
|
+
data.tar.gz: a5635ba2a8075bbcf424542f1d842270a9e83c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2861d2833565b793f7ee059a3d49557aff949269bcbfe4e7100222ec0c13186235ecbfc79871b6df8cb10af930c388d0173693441e764bb8ae4c31c79a77842
|
7
|
+
data.tar.gz: fbf86669444bebbcc1fba9d56a2a1cdf821b4b70f6974c4434cd7dd5eff58f5e330dec6dc8910b7fdf344bf36e1391f03ff34bd7f2db067c96def8460ed253c8
|
data/kinopoisk_parser.gemspec
CHANGED
data/lib/kinopoisk/movie.rb
CHANGED
@@ -32,12 +32,12 @@ module Kinopoisk
|
|
32
32
|
|
33
33
|
# Returns an integer imdb rating vote count
|
34
34
|
def imdb_rating_count
|
35
|
-
doc.search('div.block_2 div:
|
35
|
+
doc.search('div.block_2 div:eq(2)').text.gsub(/.*\(/, '').gsub(/[ ()]/, '').to_i
|
36
36
|
end
|
37
37
|
|
38
38
|
# Returns a float imdb rating
|
39
39
|
def imdb_rating
|
40
|
-
doc.search('div.block_2 div:
|
40
|
+
doc.search('div.block_2 div:eq(2)').text[/\d.\d\d/].to_f
|
41
41
|
end
|
42
42
|
|
43
43
|
# Returns an integer release year
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kinopoisk_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RavWar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|