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 +4 -4
- data/.travis.yml +12 -0
- data/Gemfile.lock +12 -6
- data/README.md +1 -0
- data/filmaffinity.gemspec +3 -3
- data/lib/constants/constants.rb +1 -1
- data/lib/filmaffinity/top.rb +1 -1
- data/spec/filmaffinity/search_spec.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24a72033aa7510e4dcb4086e40ee151235d4bd07
|
4
|
+
data.tar.gz: 150d2a63953935329d16056d252966c58a17acdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67980c5336fc0fb8511b20d533e3d6f359dbcb30fb51ada227732d4fc026ca1a9b38a2f4e03151ab2d25c007248ea6fac7513bb2761b8150e295035b0a1ea86e
|
7
|
+
data.tar.gz: b17f0b708c1cf23afa574f2b3068c73b05129835be5db6dfd7e67d5611def019f4a4af8c5c32ba78dce633bd7747521a1d8209013960997b9bbc7541ada3a837
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
filmaffinity (
|
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
|
-
|
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.
|
16
|
-
|
17
|
-
|
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.
|
56
|
+
1.13.6
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# FilmAffinity Scraper Gem
|
2
|
+
[](https://travis-ci.org/davidsantosmerino/filmaffinity-gem)
|
2
3
|
[](http://badge.fury.io/rb/filmaffinity)
|
3
4
|
|
4
5
|
## Description
|
data/filmaffinity.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'filmaffinity'
|
3
|
-
s.version = '1.1.
|
4
|
-
s.date = '
|
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 = '
|
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) }
|
data/lib/constants/constants.rb
CHANGED
data/lib/filmaffinity/top.rb
CHANGED
@@ -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-
|
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
|
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.
|
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:
|
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:
|
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.
|
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:
|