worth_watching 0.1.0 → 0.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/README.md +3 -1
- data/lib/worth_watching/movie.rb +1 -1
- data/lib/worth_watching/version.rb +1 -1
- data/logo.png +0 -0
- data/logo.sketch/Data +0 -0
- data/logo.sketch/QuickLook/Preview.png +0 -0
- data/logo.sketch/QuickLook/Thumbnail.png +0 -0
- data/logo.sketch/metadata +21 -0
- data/logo.sketch/version +1 -0
- data/spec/unit/movie_spec.rb +2 -2
- data/worth_watching.gemspec +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a87ee09112a2b90e326547cfbbe63c913ef234a3
|
4
|
+
data.tar.gz: a1440687f118a3ebd48991fe91cbdb734ffbd7b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef7d45e8977ebb175dd3bebdfbb7dfafda52eb76d380f4056216c3380d5e1ddac293dfeea7412afc26617e7ff55dbd20a3cb92463dbad5626487068a2a18c378
|
7
|
+
data.tar.gz: 24c045e6bf13d1cf7348d8915e64ecaf997cad856d43036d3454784270504de2bafba824a3292cd6bfb40a4233aa26d9019b9784adca21b18c794226a09abb7e
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+

|
2
|
+
|
1
3
|
## WorthWatching
|
2
4
|
|
3
5
|
WorthWatching is a gem that aggregates movie review data from a
|
@@ -37,7 +39,7 @@ The search results include the Rotten Tomatoes ID, which you can then use aggreg
|
|
37
39
|
usual with the `aggregate_movie` method.
|
38
40
|
|
39
41
|
If you would like to know why this is the case, or are just interested in how aggregation happens,
|
40
|
-
[read here]() for some extra information.
|
42
|
+
[read here](https://github.com/alessndro/worth_watching/wiki/F.A.Q) for some extra information.
|
41
43
|
|
42
44
|
## Installation
|
43
45
|
|
data/lib/worth_watching/movie.rb
CHANGED
@@ -29,7 +29,7 @@ module WorthWatching
|
|
29
29
|
# @return [String] the summary
|
30
30
|
def summary
|
31
31
|
divider = "-" * 60
|
32
|
-
"#{@title}\n#{divider}\nReleased: #{@release_date.strftime("%d %b %Y")}\n#{divider}\n#{plot}\n#{divider}\nCast: #{@cast}\n#{divider}\n#{rating_summary}"
|
32
|
+
"#{divider}\n#{@title}\n#{divider}\nReleased: #{@release_date.strftime("%d %b %Y")}\n#{divider}\n#{plot}\n#{divider}\nCast: #{@cast}\n#{divider}\n#{rating_summary}\n"
|
33
33
|
end
|
34
34
|
|
35
35
|
def rating_summary
|
data/logo.png
ADDED
Binary file
|
data/logo.sketch/Data
ADDED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>app</key>
|
6
|
+
<string>com.bohemiancoding.sketch.beta</string>
|
7
|
+
<key>build</key>
|
8
|
+
<integer>5347</integer>
|
9
|
+
<key>commit</key>
|
10
|
+
<string>9c36051e8fd492279e960780830d475c5696520c</string>
|
11
|
+
<key>fonts</key>
|
12
|
+
<array>
|
13
|
+
<string>Futura-Medium</string>
|
14
|
+
<string>Futura-Medium</string>
|
15
|
+
</array>
|
16
|
+
<key>length</key>
|
17
|
+
<integer>23240</integer>
|
18
|
+
<key>version</key>
|
19
|
+
<integer>18</integer>
|
20
|
+
</dict>
|
21
|
+
</plist>
|
data/logo.sketch/version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
18
|
data/spec/unit/movie_spec.rb
CHANGED
@@ -44,8 +44,8 @@ describe "WorthWatching::Movie" do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
it "has a general summary" do
|
47
|
-
summary = "
|
48
|
-
|
47
|
+
summary = "------------------------------------------------------------\nToy Story 3\n------------------------------------------------------------\nReleased: 18 Jun 2010\n------------------------------------------------------------\nPixar returns to their first success with Toy Story 3. The movie begins with Andy leaving for college and donating his beloved toys -- including Woody (Tom Hanks) and Buzz (Tim Allen) -- to a daycare. While the crew meets new friends, including Ken (Michael Keaton), they soon grow to hate their new surroundings and plan an escape. The film was directed by Lee Unkrich from a script co-authored by Little Miss Sunshine scribe Michael Arndt. ~ Perry Seibert, Rovi\n------------------------------------------------------------\nCast: Tom Hanks, Tim Allen, Joan Cusack, Ned Beatty\n------------------------------------------------------------\nRotten Tomatoes rating: 99\nIMDB rating: Not retrieved\nMetacritic rating: Not retrieved\n\n"
|
48
|
+
puts movie.summary
|
49
49
|
expect(movie.summary).to eq(summary)
|
50
50
|
end
|
51
51
|
|
data/worth_watching.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: worth_watching
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- http://github.com/alessndro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: typhoeus
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.6.7
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.6.7
|
111
111
|
description: |-
|
112
112
|
Retrieve the ratings of a movie from IMDB, Rotten
|
113
113
|
Tomatoes and Metacritic
|
@@ -128,6 +128,12 @@ files:
|
|
128
128
|
- lib/worth_watching/movie.rb
|
129
129
|
- lib/worth_watching/version.rb
|
130
130
|
- lib/worth_watching/written_review.rb
|
131
|
+
- logo.png
|
132
|
+
- logo.sketch/Data
|
133
|
+
- logo.sketch/QuickLook/Preview.png
|
134
|
+
- logo.sketch/QuickLook/Thumbnail.png
|
135
|
+
- logo.sketch/metadata
|
136
|
+
- logo.sketch/version
|
131
137
|
- spec/support/html_responses/toy_story_mc.html
|
132
138
|
- spec/support/json_responses/0_movie_search_result.json
|
133
139
|
- spec/support/json_responses/1_movie_search_result.json
|