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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 048abc5a75b5f585a50481cab76c699ec622a4a6
4
- data.tar.gz: 7ed6a1134722d026b11ee25d54db2338a7c19e1a
3
+ metadata.gz: a87ee09112a2b90e326547cfbbe63c913ef234a3
4
+ data.tar.gz: a1440687f118a3ebd48991fe91cbdb734ffbd7b4
5
5
  SHA512:
6
- metadata.gz: 5903062650b35280dd7373b4ea9c8079936809ca8f554f92282599eac15dd8db00d20108021123c634fd8f14cd0b99432de91e42d0455b9f364fb7ffcba8ef09
7
- data.tar.gz: 983f743ff6b0dd3e0ad3b640ea09c7874fca898305d3356b18249419e06f6d9eb2509566a4db123239e28725300d3fa9a5560ecdb95c4cdf4784100c6c73e679
6
+ metadata.gz: ef7d45e8977ebb175dd3bebdfbb7dfafda52eb76d380f4056216c3380d5e1ddac293dfeea7412afc26617e7ff55dbd20a3cb92463dbad5626487068a2a18c378
7
+ data.tar.gz: 24c045e6bf13d1cf7348d8915e64ecaf997cad856d43036d3454784270504de2bafba824a3292cd6bfb40a4233aa26d9019b9784adca21b18c794226a09abb7e
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![WorthWatching logo](logo.png)
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module WorthWatching
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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>
@@ -0,0 +1 @@
1
+ 18
@@ -44,8 +44,8 @@ describe "WorthWatching::Movie" do
44
44
  end
45
45
 
46
46
  it "has a general summary" do
47
- summary = "Toy 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"
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
 
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency "json"
29
29
  spec.add_dependency "nokogiri"
30
- spec.add_dependency "typhoeus"
30
+ spec.add_dependency "typhoeus", '~>0.6.7'
31
31
  end
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.0
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-01 00:00:00.000000000 Z
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: '0'
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: '0'
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