imdb_celebrity 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ === 0.0.3 2010-10-20
2
+ * updating README doc for the gem
3
+
4
+ === 0.0.2 2010-10-18
5
+ * Test coverage for the imdb celebrity gem
6
+
1
7
  === 0.0.1 2010-09-29
2
8
 
3
9
  * 1 major enhancement:
@@ -4,9 +4,10 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- * Imdb_celebrity is a ruby-gem which is used for scrapping celebrity pages from imdb.com . You can install imdb_celebrity as
7
+ * Imdb_celebrity is a ruby-gem which is used for scrapping celebrity pages from www.imdb.com . You can install imdb_celebrity as
8
8
  gem install imdb_celebrity
9
- With current initial release we can search a celebrity with name or we can fetch content for a celebrity with given IMDB id or/and name
9
+ With current initial release we can search a celebrity with name or we can fetch content for a celebrity with given IMDB id or/and name, by specifying which parser we want to use.
10
+ Right now we support Hpricot and Nokogiri as parser classes.
10
11
 
11
12
  Usages:
12
13
  require 'imdb_celebrity'
@@ -15,19 +16,28 @@
15
16
  imdb_celebs = ImdbCelebrity::Search.new("Brad Pitt")
16
17
  imdb_celebs.celebrities
17
18
  # this will return array of celebrity objects.
18
-
19
-
20
- == SYNOPSIS:
21
-
22
- FIX (code sample of usage)
19
+ Also you can define the ParserClass which u wanna use [ right now you have choice of using either Nokogiri or Hpricot], as
20
+ imdb_celebs = ImdbCelebrity::Search.new("Brad Pitt", "NokogiriParser") #by default it will be HpricotParser
21
+ imdb_celebs.celebrities
22
+
23
+ ** Fetching data for celebrity
24
+ celeb = ImdbCelebrity::Celebrity.new("0000093", "brad pitt") # give 7 digit imdbid number
25
+ celeb.parser
26
+ => it will give you the type of parser class it using
27
+ celeb.public_methods(false)
28
+ => will give you the public methods of ImdbCelebrity::Celebrity class only
29
+ celeb.to_s
30
+ => will return an array of celebrity data items containing name, real_name, biography, nationality, height, url.
23
31
 
24
32
  == REQUIREMENTS:
25
33
 
26
- * FIX (list of requirements)
34
+ * Hpricot gem should be installed.
35
+ * Nokogiri gem should be installed.
36
+
27
37
 
28
38
  == INSTALL:
29
-
30
- * FIX (sudo gem install, anything else)
39
+ gem install imdb_celebrity
40
+ you may need sudo permissions to install gem.
31
41
 
32
42
  == LICENSE:
33
43
 
Binary file
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{imdb_celebrity}
3
- s.version = "0.0.2"
4
- s.date = %q{2010-10-04}
3
+ s.version = "0.0.3"
4
+ s.date = %q{2010-10-20}
5
5
  s.authors = ["Sandeep Kumar"]
6
6
  s.email = %q{sandeep@sapnasolutions.com}
7
7
  s.summary = %q{Imdb_celebrity is a ruby-gem which is used to scrape celebrity pages from imdb.com}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imdb_celebrity
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sandeep Kumar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-04 00:00:00 +05:30
18
+ date: 2010-10-20 00:00:00 +05:30
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -57,6 +57,7 @@ extra_rdoc_files: []
57
57
  files:
58
58
  - bin/imdb_celebrity
59
59
  - History.txt
60
+ - imdb_celebrity-0.0.2.gem
60
61
  - imdb_celebrity.gemspec
61
62
  - lib/imdb_celebrity/celebrity.rb
62
63
  - lib/imdb_celebrity/cli.rb