tvdb_party 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -9,9 +9,15 @@ module TvdbParty
9
9
  @name = options["EpisodeName"]
10
10
  @overview = options["Overview"]
11
11
  @thumb = "http://thetvdb.com/banners/" + options["filename"] if options["filename"].to_s != ""
12
- @guest_stars = options["GuestStars"][1..-1].split("|") if options["GuestStars"]
13
12
  @director = options["Director"]
14
13
  @writer = options["Writer"]
14
+
15
+ if options["GuestStars"]
16
+ @guest_stars = options["GuestStars"][1..-1].split("|")
17
+ else
18
+ @guest_stars = []
19
+ end
20
+
15
21
  begin
16
22
  @air_date = Date.parse(options["FirstAired"])
17
23
  rescue
@@ -13,8 +13,17 @@ module TvdbParty
13
13
  @network = options["Network"]
14
14
  @runtime = options["Runtime"]
15
15
 
16
- @genres = options["Genre"][1..-1].split("|") if options["Genre"]
17
- @actors = options["Actors"][1..-1].split("|")if options["Actors"]
16
+ if options["Genre"]
17
+ @genres = options["Genre"][1..-1].split("|")
18
+ else
19
+ @genres = []
20
+ end
21
+
22
+ if options["Actors"]
23
+ @actors = options["Actors"][1..-1].split("|")
24
+ else
25
+ @actors = []
26
+ end
18
27
 
19
28
  if options["Rating"] && options["Rating"].size > 0
20
29
  @rating = options["Rating"].to_f
data/tvdb_party.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tvdb_party}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jon Maddox"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvdb_party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Maddox