royw-imdb 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README +7 -2
  2. data/lib/imdb/imdb_movie.rb +9 -1
  3. metadata +1 -1
data/README CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ ImdbMovie Jet Pilot
3
+ - should query IMDB url
4
+ - should convert to xml
5
+ - should convert to yaml
6
+
2
7
  ImdbMovie Indiana Jones and the Last Crusade
3
8
  - should query IMDB url
4
9
  - should get the title
@@ -84,6 +89,6 @@ String unescape_html
84
89
  String strip_tags
85
90
  - should strip HTML tags
86
91
 
87
- Finished in 3.464305 seconds
92
+ Finished in 3.710128 seconds
88
93
 
89
- 61 examples, 0 failures
94
+ 64 examples, 0 failures
@@ -176,7 +176,15 @@ class ImdbMovie
176
176
  [:title, :directors, :poster_url, :tiny_poster_url, :poster, :rating, :cast_members,
177
177
  :writers, :year, :genres, :plot, :tagline, :aspect_ratio, :length, :release_date,
178
178
  :countries, :languages, :color, :company, :photos, :raw_title, :release_year,
179
- :also_known_as, :mpaa, :certifications].each {|sym| hash[sym.to_s] = send(sym.to_s)}
179
+ :also_known_as, :mpaa, :certifications
180
+ ].each do |sym|
181
+ begin
182
+ value = send(sym.to_s)
183
+ hash[sym.to_s] = value unless value.nil?
184
+ rescue Exception => e
185
+ puts "Error getting data for hash for #{sym} - #{e.to_s}"
186
+ end
187
+ end
180
188
  hash
181
189
  end
182
190
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: royw-imdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Gil