Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
yalcin committed May 30, 2010
1 parent 8612b69 commit a142b12
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 37 deletions.
74 changes: 40 additions & 34 deletions README.md
@@ -1,54 +1,60 @@
== Welcome to Ruby IMDB Welcome to Ruby IMDB
--------------------


ruby-imdb is IMDB parsing library for Ruby. ruby-imdb is IMDB parsing library for Ruby.


== Features Features
--------


* Dynamic Caching with MongoDB backend - Dynamic Caching with MongoDB backend
* Object Oriented design - Object Oriented design
* Fast access to data - Fast access to data


== Download Download
--------


* [sudo] gem i ruby-imdb - [sudo] gem i ruby-imdb
* http://github.com/yalcin/ruby-imdb - http://github.com/yalcin/ruby-imdb
* git clone git://github.com/yalcin/ruby-imdb.git - git clone git://github.com/yalcin/ruby-imdb.git




== Enable caching Enable caching
--------------


require 'rubygems' require 'rubygems'
require 'imdb' require 'imdb'


IMDB::Configuration.caching = true IMDB::Configuration.caching = true
IMDB::Configuration.db(:hostname => "localhost", :database => "imdb") IMDB::Configuration.db(:hostname => "localhost", :database => "imdb")


== Usage Usage
-----
require 'rubygems'
require 'imdb'


require 'rubygems' s = IMDB::Search.new
require 'imdb' s.movie("fear and loathing in las vegas").each do
|result|
movie = IMDB::Movie.new(result.id)
p movie.title
movie.cast.each do
|cast|
p "#{cast.name} as #{cast.char}"
end
p movie.poster
end


s = IMDB::Search.new movie = IMDB::Movie.new('0120669')
s.movie("fear and loathing in las vegas").each do p movie.poster
|result|
movie = IMDB::Movie.new(result.id)
p movie.title
movie.cast.each do
|cast|
p "#{cast.name} as #{cast.char}"
end
p movie.poster
end


movie = IMDB::Movie.new('0120669') Examples
p movie.poster --------

== Examples


Are Under features directory Are Under features directory


== Authors Authors
* Yalcin ACIKYILDIZ (mailto:yalcin@webliyacelebi.com) -------
- Yalcin ACIKYILDIZ (mailto:yalcin@webliyacelebi.com)




This library is released under the terms of the GNU/GPL. This library is released under the terms of the GNU/GPL.
Expand Down
6 changes: 3 additions & 3 deletions ruby-imdb.gemspec
Expand Up @@ -5,7 +5,7 @@


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{ruby-imdb} s.name = %q{ruby-imdb}
s.version = "0.7.2" s.version = "0.7.3"


s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Yalcin Acikyildiz"] s.authors = ["Yalcin Acikyildiz"]
Expand All @@ -14,12 +14,12 @@ Gem::Specification.new do |s|
s.email = %q{yalcin@webliyacelebi.com} s.email = %q{yalcin@webliyacelebi.com}
s.extra_rdoc_files = [ s.extra_rdoc_files = [
"LICENSE", "LICENSE",
"README" "README.md"
] ]
s.files = [ s.files = [
".gitignore", ".gitignore",
"LICENSE", "LICENSE",
"README", "README.md",
"Rakefile", "Rakefile",
"VERSION", "VERSION",
"features/movie.feature", "features/movie.feature",
Expand Down

0 comments on commit a142b12

Please sign in to comment.