movieman 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +33 -0
- data/LICENSE.txt +22 -0
- data/README.md +65 -0
- data/Rakefile +1 -0
- data/lib/movieman.rb +17 -0
- data/lib/movieman/nytimes_review.rb +27 -0
- data/lib/movieman/omdbapi.rb +32 -0
- data/lib/movieman/rotten_tomatoes.rb +37 -0
- data/lib/movieman/search.rb +14 -0
- data/lib/movieman/themoviedb.rb +32 -0
- data/lib/movieman/version.rb +3 -0
- data/movieman.gemspec +33 -0
- data/spec/lib/nytimes_review_spec.rb +11 -0
- data/spec/lib/omdbapi_spec.rb +14 -0
- data/spec/lib/rotten_tomatoes_spec.rb +19 -0
- data/spec/lib/search_spec.rb +13 -0
- data/spec/lib/themoviedb_spec.rb +19 -0
- data/spec/spec_helper.rb +45 -0
- metadata +313 -0
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
guard 'rspec' do
|
5
|
+
watch(%r{^spec/.+_spec\.rb$})
|
6
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
7
|
+
watch('spec/spec_helper.rb') { "spec" }
|
8
|
+
|
9
|
+
# # Rails example
|
10
|
+
# watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
11
|
+
# watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
12
|
+
# watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
13
|
+
# watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
14
|
+
# watch('config/routes.rb') { "spec/routing" }
|
15
|
+
# watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
16
|
+
|
17
|
+
# # Capybara features specs
|
18
|
+
# watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
19
|
+
|
20
|
+
# # Turnip features and steps
|
21
|
+
# watch(%r{^spec/acceptance/(.+)\.feature$})
|
22
|
+
# watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
|
30
|
+
watch('Gemfile')
|
31
|
+
watch('Gemfile.lock')
|
32
|
+
watch('spec/spec_helper.rb') { :rspec }
|
33
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Oto Brglez
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# Movieman
|
2
|
+
|
3
|
+
Movieman is wrapper for sites/APIs that provide information about movies.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'movieman'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install movieman
|
18
|
+
|
19
|
+
## Services
|
20
|
+
|
21
|
+
### RottenTomatoes
|
22
|
+
|
23
|
+
[API Docs for Rotten Tomatoes](http://developer.rottentomatoes.com/iodocs)
|
24
|
+
|
25
|
+
Movieman::RottenTomatoes.config do |c|
|
26
|
+
c.api_key = "<key here>"
|
27
|
+
end
|
28
|
+
|
29
|
+
movie = Movieman::RottenTomatoes.movie "770672122"
|
30
|
+
movies = Movieman::RottenTomatoes.search "Matrix"
|
31
|
+
|
32
|
+
### The Movie Database
|
33
|
+
|
34
|
+
[API Docs for The Movie Database.](http://docs.themoviedb.apiary.io/#movies)
|
35
|
+
|
36
|
+
Movieman::Themoviedb.config do |c|
|
37
|
+
c.api_key = "<key here>"
|
38
|
+
end
|
39
|
+
|
40
|
+
movie = Movieman::Themoviedb.movie "605"
|
41
|
+
movies = Movieman::Themoviedb.search "Matrix"
|
42
|
+
|
43
|
+
### New York Times Movie Reviews
|
44
|
+
|
45
|
+
[Docs for NY Times API](http://developer.nytimes.com)
|
46
|
+
|
47
|
+
Movieman::NYTimes_review.config do |c|
|
48
|
+
c.api_key = "<key here>"
|
49
|
+
end
|
50
|
+
|
51
|
+
movies = Movieman::NYTimes_review.search "matrix"
|
52
|
+
|
53
|
+
### The Open Movie Database API
|
54
|
+
|
55
|
+
[The Open Movie Database API](http://www.omdbapi.com/)
|
56
|
+
|
57
|
+
movies = Movieman::OMDBAPI.search "matrix"
|
58
|
+
|
59
|
+
## Contributing
|
60
|
+
|
61
|
+
1. Fork it
|
62
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
63
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
64
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
65
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/movieman.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "movieman/version"
|
2
|
+
module Movieman; end
|
3
|
+
|
4
|
+
module Movieman
|
5
|
+
CLASS_MAP={
|
6
|
+
rotten_tomatoes: "RottenTomatoes",
|
7
|
+
themoviedb: "Themoviedb",
|
8
|
+
nytimes_review: "NYTimes_review",
|
9
|
+
omdbapi: "OMDBAPI"
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
Movieman::CLASS_MAP.keys.each do |cp|
|
14
|
+
require "movieman/#{cp}"
|
15
|
+
end
|
16
|
+
|
17
|
+
require "movieman/search"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require "faraday"
|
2
|
+
# require 'typhoeus'
|
3
|
+
require 'faraday_middleware'
|
4
|
+
|
5
|
+
module Movieman::NYTimes_review
|
6
|
+
extend self
|
7
|
+
|
8
|
+
attr_accessor :api_key, :f
|
9
|
+
|
10
|
+
def self.config(&block) instance_eval(&block); end
|
11
|
+
|
12
|
+
self.f = Faraday.new(url: 'http://api.nytimes.com') do |builder|
|
13
|
+
builder.adapter Faraday.default_adapter
|
14
|
+
builder.use FaradayMiddleware::ParseXml, :content_type => /\bxml$/
|
15
|
+
|
16
|
+
# builder.adapter :typhoeus
|
17
|
+
# builder.response :logger
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.search q
|
21
|
+
f.get do |r|
|
22
|
+
r.url "/svc/movies/v2/reviews/search.xml"
|
23
|
+
r.params['query'] = q
|
24
|
+
r.params['api-key'] = api_key
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require "faraday"
|
2
|
+
# require 'typhoeus'
|
3
|
+
require 'faraday_middleware/parse_oj'
|
4
|
+
|
5
|
+
module Movieman::OMDBAPI
|
6
|
+
# http://www.omdbapi.com/
|
7
|
+
|
8
|
+
extend self
|
9
|
+
|
10
|
+
attr_accessor :f
|
11
|
+
|
12
|
+
self.f = Faraday.new(url: 'http://www.omdbapi.com') do |builder|
|
13
|
+
builder.response :oj
|
14
|
+
builder.adapter Faraday.default_adapter
|
15
|
+
|
16
|
+
# builder.response :logger
|
17
|
+
# builder.adapter :typhoeus
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.movie t
|
21
|
+
f.get "/" do |r|
|
22
|
+
r.params["t"] = t
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.search q
|
27
|
+
f.get do |r|
|
28
|
+
r.url "/"
|
29
|
+
r.params['s'] = q
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require "faraday"
|
2
|
+
# require 'typhoeus'
|
3
|
+
require 'faraday_middleware/parse_oj'
|
4
|
+
|
5
|
+
module Movieman::RottenTomatoes
|
6
|
+
extend self
|
7
|
+
|
8
|
+
attr_accessor :api_key, :f
|
9
|
+
|
10
|
+
def self.config(&block) instance_eval(&block); end
|
11
|
+
|
12
|
+
self.f = Faraday.new(url: 'http://api.rottentomatoes.com') do |builder|
|
13
|
+
builder.response :oj
|
14
|
+
builder.adapter Faraday.default_adapter
|
15
|
+
|
16
|
+
# builder.response :logger
|
17
|
+
# builder.adapter :typhoeus
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.movie id
|
21
|
+
f.get "/api/public/v1.0/movies/#{id}.json?apikey=#{api_key}"
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.cast id
|
25
|
+
f.get "/api/public/v1.0/movies/#{id}/cast.json?apikey=#{api_key}"
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.search q, page_limit=0, page=0
|
29
|
+
f.get do |r|
|
30
|
+
r.url "/api/public/v1.0/movies.json"
|
31
|
+
r.params['q'] = q
|
32
|
+
r.params['api_key'] = api_key
|
33
|
+
r.params['page_limit'] = page_limit unless page_limit == 0
|
34
|
+
r.params['page'] = page unless page == 0
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require "faraday"
|
2
|
+
# require 'typhoeus'
|
3
|
+
require 'faraday_middleware/parse_oj'
|
4
|
+
|
5
|
+
module Movieman::Themoviedb
|
6
|
+
extend self
|
7
|
+
|
8
|
+
attr_accessor :api_key, :f
|
9
|
+
|
10
|
+
def self.config(&block) instance_eval(&block); end
|
11
|
+
|
12
|
+
self.f = Faraday.new(url: 'http://api.themoviedb.org') do |builder|
|
13
|
+
builder.response :oj
|
14
|
+
builder.adapter Faraday.default_adapter
|
15
|
+
|
16
|
+
# builder.adapter :typhoeus
|
17
|
+
# builder.response :logger
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.movie id
|
21
|
+
f.get "/3/movie/#{id}?api_key=#{api_key}"
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.search q, page=0
|
25
|
+
f.get do |r|
|
26
|
+
r.url "/3/search/movie"
|
27
|
+
r.params['query'] = q
|
28
|
+
r.params['api_key'] = api_key
|
29
|
+
r.params['page'] = page unless page == 0
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/movieman.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'movieman/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "movieman"
|
8
|
+
gem.version = Movieman::VERSION
|
9
|
+
gem.authors = ["Oto Brglez"]
|
10
|
+
gem.email = ["otobrglez@gmail.com"]
|
11
|
+
gem.description = %q{Wrapper for sites/APIs that provide information about movies.}
|
12
|
+
gem.summary = %q{This gem provides access to some popular public sites that provide information about movies.}
|
13
|
+
gem.homepage = "https://github.com/otobrglez/movieman"
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.add_dependency "multi_json"
|
21
|
+
gem.add_dependency "multi_xml"
|
22
|
+
gem.add_dependency "faraday"
|
23
|
+
gem.add_dependency "typhoeus"
|
24
|
+
gem.add_dependency "oj"
|
25
|
+
gem.add_dependency "faraday_middleware"
|
26
|
+
gem.add_dependency "faraday_middleware-parse_oj"
|
27
|
+
|
28
|
+
gem.add_development_dependency "webmock", "<= 1.9"
|
29
|
+
%w{rb-fsevent rspec vcr guard guard-rspec guard-spork spork}.each do |g|
|
30
|
+
gem.add_development_dependency g
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Movieman::NYTimes_review do
|
4
|
+
|
5
|
+
before { Movieman::NYTimes_review.config do |c| c.api_key = "e9118adb6861ac521a60491fd7cebfa0:11:67419470"; end }
|
6
|
+
|
7
|
+
context "get search" do
|
8
|
+
subject { Movieman::NYTimes_review.search "matrix" }
|
9
|
+
its(:body){ should_not be_nil }
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Movieman::OMDBAPI do
|
4
|
+
context "get movie" do
|
5
|
+
subject { Movieman::OMDBAPI.movie "matrix" }
|
6
|
+
its(:body){ should_not be_nil }
|
7
|
+
end
|
8
|
+
|
9
|
+
context "get search" do
|
10
|
+
subject { Movieman::OMDBAPI.search "matrix" }
|
11
|
+
its(:body){ should_not be_nil }
|
12
|
+
# it { puts subject.body }
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Movieman::RottenTomatoes do
|
4
|
+
# http://developer.rottentomatoes.com/iodocs
|
5
|
+
|
6
|
+
before { Movieman::RottenTomatoes.config do |c| c.api_key = "s4echk6yas3x8enhwjdp4k9r"; end }
|
7
|
+
it { Movieman::RottenTomatoes.api_key.should match /s4/ }
|
8
|
+
|
9
|
+
context "get movie" do
|
10
|
+
subject { Movieman::RottenTomatoes.movie "770672122" }
|
11
|
+
its(:body){ should_not be_nil }
|
12
|
+
it { subject.body['title'].should match /toy story/i }
|
13
|
+
end
|
14
|
+
|
15
|
+
context "get search" do
|
16
|
+
subject { Movieman::RottenTomatoes.search "matrix" }
|
17
|
+
its(:body){ should_not be_nil }
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Movieman::Themoviedb do
|
4
|
+
# Read: http://docs.themoviedb.apiary.io/#movies
|
5
|
+
|
6
|
+
before { Movieman::Themoviedb.config do |c| c.api_key = "a79bb85972d2594f4d8a1c37c7be5a3f"; end }
|
7
|
+
|
8
|
+
context "get movie" do
|
9
|
+
subject { Movieman::Themoviedb.movie "605" }
|
10
|
+
its(:body){ should_not be_nil }
|
11
|
+
it { subject.body['title'].should match /matrix/i }
|
12
|
+
end
|
13
|
+
|
14
|
+
context "get search" do
|
15
|
+
subject { Movieman::Themoviedb.search "matrix" }
|
16
|
+
its(:body){ should_not be_nil }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spork'
|
2
|
+
require 'rspec'
|
3
|
+
require 'vcr'
|
4
|
+
|
5
|
+
Spork.prefork do
|
6
|
+
ENV["RAILS_ENV"] ||= 'test'
|
7
|
+
require 'rspec/autorun'
|
8
|
+
|
9
|
+
#Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
10
|
+
|
11
|
+
VCR.configure do |c|
|
12
|
+
c.cassette_library_dir = "./rspec/cassettes"
|
13
|
+
# c.hook_into :webmock
|
14
|
+
c.hook_into :typhoeus
|
15
|
+
c.configure_rspec_metadata!
|
16
|
+
end
|
17
|
+
|
18
|
+
RSpec.configure do |config|
|
19
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
20
|
+
|
21
|
+
config.before(:suite) do
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
config.before(:each) do
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
config.after(:each) do
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
# config.around(:each) do |example|
|
34
|
+
# name = example.metadata[:full_description].split(/\s+/, 2).join("/").downcase.gsub(/\s+/,"_").gsub(/[^\w\/]+/, "_")
|
35
|
+
# options = example.metadata.slice(:record, :match_requests_on).except(:example_group)
|
36
|
+
# VCR.use_cassette(name, options) { example.call }
|
37
|
+
# end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
Spork.each_run do
|
43
|
+
require "movieman"
|
44
|
+
end
|
45
|
+
|
metadata
ADDED
@@ -0,0 +1,313 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: movieman
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Oto Brglez
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: multi_json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: multi_xml
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: faraday
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: typhoeus
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: oj
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: faraday_middleware
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: faraday_middleware-parse_oj
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: webmock
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - <=
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '1.9'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - <=
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '1.9'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: rb-fsevent
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: rspec
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: vcr
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: guard
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: guard-rspec
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
- !ruby/object:Gem::Dependency
|
223
|
+
name: guard-spork
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ! '>='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
- !ruby/object:Gem::Dependency
|
239
|
+
name: spork
|
240
|
+
requirement: !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
242
|
+
requirements:
|
243
|
+
- - ! '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
246
|
+
type: :development
|
247
|
+
prerelease: false
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ! '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
description: Wrapper for sites/APIs that provide information about movies.
|
255
|
+
email:
|
256
|
+
- otobrglez@gmail.com
|
257
|
+
executables: []
|
258
|
+
extensions: []
|
259
|
+
extra_rdoc_files: []
|
260
|
+
files:
|
261
|
+
- .gitignore
|
262
|
+
- .rspec
|
263
|
+
- Gemfile
|
264
|
+
- Guardfile
|
265
|
+
- LICENSE.txt
|
266
|
+
- README.md
|
267
|
+
- Rakefile
|
268
|
+
- lib/movieman.rb
|
269
|
+
- lib/movieman/nytimes_review.rb
|
270
|
+
- lib/movieman/omdbapi.rb
|
271
|
+
- lib/movieman/rotten_tomatoes.rb
|
272
|
+
- lib/movieman/search.rb
|
273
|
+
- lib/movieman/themoviedb.rb
|
274
|
+
- lib/movieman/version.rb
|
275
|
+
- movieman.gemspec
|
276
|
+
- spec/lib/nytimes_review_spec.rb
|
277
|
+
- spec/lib/omdbapi_spec.rb
|
278
|
+
- spec/lib/rotten_tomatoes_spec.rb
|
279
|
+
- spec/lib/search_spec.rb
|
280
|
+
- spec/lib/themoviedb_spec.rb
|
281
|
+
- spec/spec_helper.rb
|
282
|
+
homepage: https://github.com/otobrglez/movieman
|
283
|
+
licenses: []
|
284
|
+
post_install_message:
|
285
|
+
rdoc_options: []
|
286
|
+
require_paths:
|
287
|
+
- lib
|
288
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
290
|
+
requirements:
|
291
|
+
- - ! '>='
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
version: '0'
|
294
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
295
|
+
none: false
|
296
|
+
requirements:
|
297
|
+
- - ! '>='
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
requirements: []
|
301
|
+
rubyforge_project:
|
302
|
+
rubygems_version: 1.8.24
|
303
|
+
signing_key:
|
304
|
+
specification_version: 3
|
305
|
+
summary: This gem provides access to some popular public sites that provide information
|
306
|
+
about movies.
|
307
|
+
test_files:
|
308
|
+
- spec/lib/nytimes_review_spec.rb
|
309
|
+
- spec/lib/omdbapi_spec.rb
|
310
|
+
- spec/lib/rotten_tomatoes_spec.rb
|
311
|
+
- spec/lib/search_spec.rb
|
312
|
+
- spec/lib/themoviedb_spec.rb
|
313
|
+
- spec/spec_helper.rb
|