tvdb_party 0.2.0 → 0.2.1
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.
- data/VERSION +1 -1
- data/lib/tvdb_party/episode.rb +5 -1
- data/lib/tvdb_party/series.rb +7 -1
- data/tvdb_party.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/tvdb_party/episode.rb
CHANGED
@@ -8,11 +8,15 @@ module TvdbParty
|
|
8
8
|
@number = options["EpisodeNumber"]
|
9
9
|
@name = options["EpisodeName"]
|
10
10
|
@overview = options["Overview"]
|
11
|
-
@air_date = Date.parse(options["FirstAired"]) if options["FirstAired"]
|
12
11
|
@thumb = "http://thetvdb.com/banners/" + options["filename"] if options["filename"].to_s != ""
|
13
12
|
@guest_stars = options["GuestStars"][1..-1].split("|") if options["GuestStars"]
|
14
13
|
@director = options["Director"]
|
15
14
|
@writer = options["Writer"]
|
15
|
+
begin
|
16
|
+
@air_date = Date.parse(options["FirstAired"])
|
17
|
+
rescue
|
18
|
+
puts 'invalid date'
|
19
|
+
end
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
data/lib/tvdb_party/series.rb
CHANGED
@@ -12,7 +12,6 @@ module TvdbParty
|
|
12
12
|
@overview = options["Overview"]
|
13
13
|
@network = options["Network"]
|
14
14
|
@runtime = options["Runtime"]
|
15
|
-
@first_aired = Date.parse(options["FirstAired"]) if options["FirstAired"]
|
16
15
|
|
17
16
|
@genres = options["Genre"][1..-1].split("|") if options["Genre"]
|
18
17
|
@actors = options["Actors"][1..-1].split("|")if options["Actors"]
|
@@ -22,6 +21,13 @@ module TvdbParty
|
|
22
21
|
else
|
23
22
|
@rating = 0
|
24
23
|
end
|
24
|
+
|
25
|
+
begin
|
26
|
+
@first_aired = Date.parse(options["FirstAired"])
|
27
|
+
rescue
|
28
|
+
puts 'invalid date'
|
29
|
+
end
|
30
|
+
|
25
31
|
end
|
26
32
|
|
27
33
|
def get_episode(season_number, episode_number)
|
data/tvdb_party.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{tvdb_party}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
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"]
|
12
|
-
s.date = %q{2009-10-
|
12
|
+
s.date = %q{2009-10-21}
|
13
13
|
s.description = %q{Simple Ruby library to talk to thetvdb.com's api}
|
14
14
|
s.email = %q{jon@mustacheinc.com}
|
15
15
|
s.extra_rdoc_files = [
|
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.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Maddox
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-21 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|