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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac098173921e46acef1d4230d92024d5f041fda3
4
- data.tar.gz: d3d89d4113482e7ef1b343ae553867d586041cfd
3
+ metadata.gz: b39e141d40b1a6647bf706635e2bc87aca7e5049
4
+ data.tar.gz: a5635ba2a8075bbcf424542f1d842270a9e83c75
5
5
  SHA512:
6
- metadata.gz: e70d34723b3728f55a0bf7d20a2e55cdf81ec8d13521e05135363e595eb4ba5ef539f3505ca0edded750088ff4d0c98996b04aaee52657c3023588cd7fe66ae3
7
- data.tar.gz: e830b4089498c1f2c32aab158ca41259ade4ecab0fa8baabdc03a40cdf1d656ff054ea79ea9d3334b20079edab0d0b2ee6dc6023fd2e3ff9d4f5294eaaff49ec
6
+ metadata.gz: f2861d2833565b793f7ee059a3d49557aff949269bcbfe4e7100222ec0c13186235ecbfc79871b6df8cb10af930c388d0173693441e764bb8ae4c31c79a77842
7
+ data.tar.gz: fbf86669444bebbcc1fba9d56a2a1cdf821b4b70f6974c4434cd7dd5eff58f5e330dec6dc8910b7fdf344bf36e1391f03ff34bd7f2db067c96def8460ed253c8
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'kinopoisk_parser'
3
- gem.version = '2.0.0'
3
+ gem.version = '2.0.1'
4
4
  gem.authors = ['RavWar']
5
5
  gem.email = ['rav_war@mail.ru']
6
6
  gem.homepage = 'https://github.com/RavWar/kinopoisk_parser'
@@ -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:last').text.gsub(/[ ()]/, '').to_i
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:last').text[/\d.\d\d/].to_f
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.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-09 00:00:00.000000000 Z
11
+ date: 2014-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri