Permalink
Browse files

Updates files to new version of the gem

  • Loading branch information...
1 parent 2af1ab1 commit 5511a0ae78f46cecda191be4789f4cbb7de4fa6b Irio Irineu Musskopf Junior committed Jun 19, 2012
View
@@ -1,3 +1,4 @@
+Copyright (c) 2012 Irio Irineu Musskopf Junior (http://irio.posterous.com/)
Copyright (c) 2010 Aaron Gough (http://thingsaaronmade.com/)
Permission is hereby granted, free of charge, to any person obtaining
View
@@ -1,11 +1,11 @@
-= ruby-tmdb
+= ruby-tmdb3
-ruby-tmdb is an ActiveRecord-style API wrapper for {TheMovieDB.org (TMDb)}[http://www.themoviedb.org/]. ruby-tmdb is designed to streamline common tasks associated with finding information about movies and cast members.
+ruby-tmdb3 is an ActiveRecord-style API wrapper for {TheMovieDB.org (TMDb)}[http://www.themoviedb.org/]. ruby-tmdb3 uses tmdb's API v3 and is designed to streamline common tasks associated with finding information about movies and cast members.
=== Examples
require 'rubygems'
- require 'ruby-tmdb'
+ require 'ruby-tmdb3'
# setup your API key
Tmdb.api_key = "t478f8de5776c799de5a"
@@ -21,9 +21,9 @@ ruby-tmdb is an ActiveRecord-style API wrapper for {TheMovieDB.org (TMDb)}[http:
=== Installation
-For ease of use ruby-tmdb is packaged as a Rubygem. Installing it is as simple as:
+For ease of use ruby-tmdb3 is packaged as a Rubygem. Installing it is as simple as:
- gem install ruby-tmdb
+ gem install ruby-tmdb3
=== Usage
@@ -41,7 +41,7 @@ Parameters:
[:title] Specifies a query string to look for in the movie titles
[:imdb] Specifies an individual movie via it's IMDB id
[:limit] Specifies the maximum number of results to be returned
-[:expand_results] The TMDb API by default returns only partial info for any API method that can return multiple results. When :expand_results is set to true ruby-tmdb automatically makes extra API calls to fetch the full information for each item. This can result in *very* slow requests though. If you only need basic information for a search listing then set this to false. Defaults to 'true'.
+[:expand_results] The TMDb API by default returns only partial info for any API method that can return multiple results. When :expand_results is set to true ruby-tmdb3 automatically makes extra API calls to fetch the full information for each item. This can result in *very* slow requests though. If you only need basic information for a search listing then set this to false. Defaults to 'true'.
[:language] Allows you to override the default API language on a per-query basis.
You must supply at least one of :id, :title, or :imdb. All other parameters are optional.
@@ -94,11 +94,12 @@ Get the info for a movie in French:
=== Item information
-To find out more about the information each object offers on retrieved items have a look at the {TMDb API Docs}[http://help.themoviedb.org/kb/api/about-3]. For the most accurate information about the information available have a look at the data directly through ruby-tmdb by calling @item.raw_data.inspect
+To find out more about the information each object offers on retrieved items have a look at the {TMDb API Docs}[http://help.themoviedb.org/kb/api/about-3]. For the most accurate information about the information available have a look at the data directly through ruby-tmdb3 by calling @item.raw_data.inspect
=== Author & Credits
-Author:: {Aaron Gough}[mailto:aaron@aarongough.com]
+Author:: {Irio Irineu Musskopf Junior}[mailto:iirineu@gmail.com], {Aaron Gough}[mailto:aaron@aarongough.com]
Contributors:: {Alex Hayes}[https://github.com/alexhayes], {Alvaro Pereyra Rabanal}[https://github.com/xenda], {Linus Oleander}[https://github.com/oleander], {aristides}[https://github.com/aristides], {Robin Boutros}[https://github.com/niuage]
+Copyright (c) 2012 {Irio Irineu Musskopf Junior}[http://irio.posterous.com/] ({irio.posterous.com}[http://irio.posterous.com/])
Copyright (c) 2010 {Aaron Gough}[http://thingsaaronmade.com/] ({thingsaaronmade.com}[http://thingsaaronmade.com/]), released under the MIT license
View
@@ -8,12 +8,12 @@ task :default => :test
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
- gemspec.name = "ruby-tmdb"
+ gemspec.name = "ruby-tmdb3"
gemspec.summary = "An ActiveRecord-style API wrapper for TheMovieDB.org"
gemspec.description = "An ActiveRecord-style API wrapper for TheMovieDB.org"
- gemspec.email = "aaron@aarongough.com"
- gemspec.homepage = "https://github.com/aarongough/ruby-tmdb"
- gemspec.authors = ["Aaron Gough"]
+ gemspec.email = "iirineu@gmail.com"
+ gemspec.homepage = "https://github.com/Irio/ruby-tmdb"
+ gemspec.authors = ["Irio Irineu Musskopf Junior", "Aaron Gough"]
gemspec.rdoc_options << '--line-numbers' << '--inline-source'
gemspec.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']
gemspec.add_dependency( "deepopenstruct", ">= 0.1.2")
@@ -26,7 +26,7 @@ rescue LoadError
end
-desc 'Test ruby-tmdb.'
+desc 'Test ruby-tmdb3.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib/*.rb'
t.libs << 'test'
@@ -35,10 +35,10 @@ Rake::TestTask.new(:test) do |t|
end
-desc 'Generate documentation for ruby-tmdb.'
+desc 'Generate documentation for ruby-tmdb3.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'ruby-tmdb'
+ rdoc.title = 'ruby-tmdb3'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
@@ -1,7 +1,7 @@
require "rubygems"
require_files = []
-require_files.concat Dir[File.join(File.dirname(__FILE__), 'ruby-tmdb', '*.rb')]
+require_files.concat Dir[File.join(File.dirname(__FILE__), 'ruby-tmdb3', '*.rb')]
require_files.each do |file|
require File.expand_path(file)
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1 +0,0 @@
-tmdb_api_key.txt
View
@@ -10,7 +10,7 @@
end
require_files = []
-require_files << File.join(File.dirname(__FILE__), '..', 'lib', 'ruby-tmdb.rb')
+require_files << File.join(File.dirname(__FILE__), '..', 'lib', 'ruby-tmdb3.rb')
require_files.concat Dir[File.join(File.dirname(__FILE__), 'setup', '*.rb')]
require_files.each do |file|
@@ -1,7 +1,7 @@
require "test/unit"
require_files = []
-require_files << File.join(File.dirname(__FILE__), "..", "..", "lib", "ruby-tmdb.rb")
+require_files << File.join(File.dirname(__FILE__), "..", "..", "lib", "ruby-tmdb3.rb")
require_files.concat Dir[File.join(File.dirname(__FILE__), '..', 'setup', '*.rb')]
require_files.each do |file|

0 comments on commit 5511a0a

Please sign in to comment.