spotlite 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -19,6 +19,7 @@ IMDB_SAMPLES = {
19
19
  "http://www.imdb.com/title/tt0133093/criticreviews" => "tt0133093/criticreviews",
20
20
  "http://www.imdb.com/title/tt0317248/" => "tt0317248/index",
21
21
  "http://www.imdb.com/title/tt0169547/" => "tt0169547/index",
22
+ "http://www.imdb.com/title/tt0112873/" => "tt0112873/index",
22
23
  "http://www.imdb.com/title/tt0047396/releaseinfo" => "tt0047396/releaseinfo",
23
24
  "http://www.imdb.com/title/tt0002186/" => "tt0002186/index",
24
25
  "http://www.imdb.com/title/tt1134629/fullcredits" => "tt1134629/fullcredits",
@@ -42,11 +42,13 @@ describe "Spotlite::Movie" do
42
42
  end
43
43
 
44
44
  it "should return description" do
45
- @movie.description.should match(/A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers./)
45
+ # A Story about Love (1995)
46
+ @movie = Spotlite::Movie.new("0112873")
47
+ @movie.description.should eql("Two young people stand on a street corner in a run-down part of New York, kissing. Despite the lawlessness of the district they are left unmolested. A short distance away walk Maria and ...")
46
48
  end
47
49
 
48
50
  it "should return storyline" do
49
- @movie.storyline.should match(/Thomas A. Anderson is a man living two lives. By day he is an average computer programmer and by night a hacker known as Neo. Neo has always questioned his reality, but the truth is far beyond his imagination. Neo finds himself targeted by the police when he is contacted by Morpheus, a legendary computer hacker branded a terrorist by the government. Morpheus awakens Neo to the real world, a ravaged wasteland where most of humanity have been captured by a race of machines that live off of the humans' body heat and electrochemical energy and who imprison their minds within an artificial reality known as the Matrix. As a rebel against the machines, Neo must return to the Matrix and confront the agents: super-powerful computer programs devoted to snuffing out Neo and the entire human rebellion./)
51
+ @movie.storyline.should eql("Thomas A. Anderson is a man living two lives. By day he is an average computer programmer and by night a hacker known as Neo. Neo has always questioned his reality, but the truth is far beyond his imagination. Neo finds himself targeted by the police when he is contacted by Morpheus, a legendary computer hacker branded a terrorist by the government. Morpheus awakens Neo to the real world, a ravaged wasteland where most of humanity have been captured by a race of machines that live off of the humans' body heat and electrochemical energy and who imprison their minds within an artificial reality known as the Matrix. As a rebel against the machines, Neo must return to the Matrix and confront the agents: super-powerful computer programs devoted to snuffing out Neo and the entire human rebellion.")
50
52
  end
51
53
 
52
54
  describe "content rating" do
data/spotlite.gemspec CHANGED
@@ -6,6 +6,7 @@ require 'spotlite/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "spotlite"
8
8
  gem.version = Spotlite::VERSION
9
+ gem.license = "MIT"
9
10
  gem.authors = ["Artem Pakk"]
10
11
  gem.email = ["apakk@me.com"]
11
12
  gem.description = %q{Spotlite gem helps you fetch all kinds of publicly available information about movies and people from IMDb movie website, including title, year, genres, directors, writers, actors, runtime, countries, poster, keywords, etc.}
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotlite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Artem Pakk
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-24 00:00:00.000000000 Z
12
+ date: 2013-07-25 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: nokogiri
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rspec
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: fakeweb
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ! '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
@@ -89,6 +96,7 @@ files:
89
96
  - spec/fixtures/top
90
97
  - spec/fixtures/tt0002186/index
91
98
  - spec/fixtures/tt0047396/releaseinfo
99
+ - spec/fixtures/tt0112873/index
92
100
  - spec/fixtures/tt0133093/criticreviews
93
101
  - spec/fixtures/tt0133093/fullcredits
94
102
  - spec/fixtures/tt0133093/index
@@ -109,27 +117,29 @@ files:
109
117
  - spotlite.gemspec
110
118
  - tasks/fixtures.rake
111
119
  homepage: http://github.com/defeed/spotlite
112
- licenses: []
113
- metadata: {}
120
+ licenses:
121
+ - MIT
114
122
  post_install_message:
115
123
  rdoc_options: []
116
124
  require_paths:
117
125
  - lib
118
126
  required_ruby_version: !ruby/object:Gem::Requirement
127
+ none: false
119
128
  requirements:
120
129
  - - ! '>='
121
130
  - !ruby/object:Gem::Version
122
131
  version: '0'
123
132
  required_rubygems_version: !ruby/object:Gem::Requirement
133
+ none: false
124
134
  requirements:
125
135
  - - ! '>='
126
136
  - !ruby/object:Gem::Version
127
137
  version: '0'
128
138
  requirements: []
129
139
  rubyforge_project:
130
- rubygems_version: 2.0.3
140
+ rubygems_version: 1.8.25
131
141
  signing_key:
132
- specification_version: 4
142
+ specification_version: 3
133
143
  summary: Ruby gem to fetch publicly available information about movies from IMDb
134
144
  test_files:
135
145
  - spec/fixtures/movies_coming_soon
@@ -142,6 +152,7 @@ test_files:
142
152
  - spec/fixtures/top
143
153
  - spec/fixtures/tt0002186/index
144
154
  - spec/fixtures/tt0047396/releaseinfo
155
+ - spec/fixtures/tt0112873/index
145
156
  - spec/fixtures/tt0133093/criticreviews
146
157
  - spec/fixtures/tt0133093/fullcredits
147
158
  - spec/fixtures/tt0133093/index
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZWNiYTNjYWM1OTI1OWNkYzA1MjUzZWEyOTJkOGY5ZjllYjNhYmNjMQ==
5
- data.tar.gz: !binary |-
6
- NDY4MTM0MDcwMWNiZmI2ZmYzNWExY2I2MTUzNTdiOTEyNGNkMDFkNg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZjdmMDA4ZjliYWRhNWUwNjcxYWY4NzBhNTIxNzg3YzJjMDk3MGU3OTk0NmQz
10
- YTUzOGExNmE0ZGM5NDQyZTRlNWFmNjQ2YWI1ZTBhOGI3Mjg0N2I4NWE0OWM1
11
- YjZjNWVlZDVkMDRhMjljNjlhMDkyOGJkZGYyNTc4NzM4YjAyMjQ=
12
- data.tar.gz: !binary |-
13
- MzAzZjAzYTZiZWY3ZDhlMDcyNTEwNjNjMDNkNDY0ODdhMGM2MzBjYTU1YzUz
14
- MmQ4NzVmYjc2YjdjM2JhZjM5ZDllODA5YjhhMmU1MjljY2I5ZTA5MmFlZDNk
15
- YTZmY2ZiNGUwMmNjYmQwMDJlNDc3MjVjMTVkYWU1ODI5ZTIyMzA=