filmaffinity 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe39db8512795fe40df71ff758022127e183eda4
4
- data.tar.gz: 8264d6eea932ecab2155620c3bc21c7dff543ad0
3
+ metadata.gz: 24a72033aa7510e4dcb4086e40ee151235d4bd07
4
+ data.tar.gz: 150d2a63953935329d16056d252966c58a17acdb
5
5
  SHA512:
6
- metadata.gz: 5d77e9bda0368a3f4fe47d128e81b63bd791cd1cc92ee844286dc9d62e3bffb1b64f4e9727b398d11f68ec65b318b05b7e6fdc77b0686ee6073603f2b756c94d
7
- data.tar.gz: f9660fd95223e1d0e00a28d4dda50df867bbde1d39d9fff8da1dc39114590933864e6fe720d55132c47e5b5c2b7cf4c7dcde24d1c215c5048d256c94cdcfdbcd
6
+ metadata.gz: 67980c5336fc0fb8511b20d533e3d6f359dbcb30fb51ada227732d4fc026ca1a9b38a2f4e03151ab2d25c007248ea6fac7513bb2761b8150e295035b0a1ea86e
7
+ data.tar.gz: b17f0b708c1cf23afa574f2b3068c73b05129835be5db6dfd7e67d5611def019f4a4af8c5c32ba78dce633bd7747521a1d8209013960997b9bbc7541ada3a837
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+
3
+ notifications:
4
+ email: false
5
+
6
+ rvm:
7
+ - 2.0
8
+ - 2.1
9
+ - ruby-head
10
+
11
+ script:
12
+ - "bundle exec rake spec"
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- filmaffinity (0.2.4)
4
+ filmaffinity (1.1.1)
5
+ imgur-api (~> 0)
5
6
  json (~> 1.8)
6
7
  nokogiri (~> 1.6)
7
8
 
@@ -10,11 +11,16 @@ GEM
10
11
  specs:
11
12
  coderay (1.1.1)
12
13
  diff-lcs (1.2.5)
13
- json (1.8.3)
14
+ httparty (0.14.0)
15
+ multi_xml (>= 0.5.2)
16
+ imgur-api (0.0.4)
17
+ httparty
18
+ json (1.8.6)
14
19
  method_source (0.8.2)
15
- mini_portile2 (2.0.0)
16
- nokogiri (1.6.7.2)
17
- mini_portile2 (~> 2.0.0.rc2)
20
+ mini_portile2 (2.1.0)
21
+ multi_xml (0.6.0)
22
+ nokogiri (1.7.1)
23
+ mini_portile2 (~> 2.1.0)
18
24
  pry (0.10.3)
19
25
  coderay (~> 1.1.0)
20
26
  method_source (~> 0.8.1)
@@ -47,4 +53,4 @@ DEPENDENCIES
47
53
  rspec (~> 3.3)
48
54
 
49
55
  BUNDLED WITH
50
- 1.11.2
56
+ 1.13.6
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # FilmAffinity Scraper Gem
2
+ [![Build Status](https://travis-ci.org/davidsantosmerino/filmaffinity-gem.png?branch=master)](https://travis-ci.org/davidsantosmerino/filmaffinity-gem)
2
3
  [![Gem Version](https://badge.fury.io/rb/filmaffinity.svg)](http://badge.fury.io/rb/filmaffinity)
3
4
 
4
5
  ## Description
@@ -1,11 +1,11 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'filmaffinity'
3
- s.version = '1.1.0'
4
- s.date = '2016-04-26'
3
+ s.version = '1.1.1'
4
+ s.date = '2017-04-11'
5
5
  s.summary = 'filmaffinity'
6
6
  s.description = 'Easily use Ruby or the command line to find information on Filmaffinity.com'
7
7
  s.authors = ['David Santos', 'Oriol Bellido']
8
- s.email = 'dsantosmerino92@gmail.com'
8
+ s.email = 'dsantosmerino@gmail.com'
9
9
  s.files = `git ls-files`.split("\n")
10
10
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
11
11
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
@@ -50,7 +50,7 @@ module Constants
50
50
  },
51
51
 
52
52
  script: { EN: 'dt:contains("Screenwriter")',
53
- ES: 'dt:contains("Guión")'
53
+ ES: 'dt:contains("Guion")'
54
54
  },
55
55
 
56
56
  photography: { EN: 'dt:contains("Cinematography")',
@@ -47,7 +47,7 @@ module FilmAffinity
47
47
 
48
48
  def parse_movies(document_html)
49
49
  movies = []
50
- document_html.search('.movie-card.movie-card-1').each_with_index do |movie_card, _index|
50
+ document_html.search('.movie-card.movie-card-0').each_with_index do |movie_card, _index|
51
51
  id = movie_card['data-movie-id'].to_i
52
52
  title = movie_card.search('.mc-title a').first.content.strip
53
53
  movie = FilmAffinity::Movie.new id, title
@@ -39,7 +39,7 @@ describe 'FilmAffinity::Search' do
39
39
  end
40
40
 
41
41
  it 'should parse title' do
42
- title = 'El show de Truman (Una vida en directo) (1998)'
42
+ title = 'El show de Truman (Una vida en directo) (1998)'
43
43
  expect(title).to eq(search.movies.first.title)
44
44
  end
45
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filmaffinity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Santos
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-26 00:00:00.000000000 Z
12
+ date: 2017-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -82,7 +82,7 @@ dependencies:
82
82
  - !ruby/object:Gem::Version
83
83
  version: '3.3'
84
84
  description: Easily use Ruby or the command line to find information on Filmaffinity.com
85
- email: dsantosmerino92@gmail.com
85
+ email: dsantosmerino@gmail.com
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
@@ -90,6 +90,7 @@ files:
90
90
  - ".gitignore"
91
91
  - ".rubocop.yml"
92
92
  - ".rubocop_todo.yml"
93
+ - ".travis.yml"
93
94
  - Gemfile
94
95
  - Gemfile.lock
95
96
  - README.md
@@ -131,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  version: '0'
132
133
  requirements: []
133
134
  rubyforge_project:
134
- rubygems_version: 2.4.6
135
+ rubygems_version: 2.6.8
135
136
  signing_key:
136
137
  specification_version: 4
137
138
  summary: filmaffinity
@@ -143,4 +144,3 @@ test_files:
143
144
  - spec/filmaffinity/search_spec.rb
144
145
  - spec/filmaffinity/top_spec.rb
145
146
  - spec/spec_helper.rb
146
- has_rdoc: