tvdb_party 0.6.2 → 0.7.0

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/Rakefile CHANGED
@@ -42,17 +42,3 @@ end
42
42
  task :test => :check_dependencies
43
43
 
44
44
  task :default => :test
45
-
46
- require 'rake/rdoctask'
47
- Rake::RDocTask.new do |rdoc|
48
- if File.exist?('VERSION')
49
- version = File.read('VERSION')
50
- else
51
- version = ""
52
- end
53
-
54
- rdoc.rdoc_dir = 'rdoc'
55
- rdoc.title = "tvdb_party #{version}"
56
- rdoc.rdoc_files.include('README*')
57
- rdoc.rdoc_files.include('lib/**/*.rb')
58
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.7.0
@@ -3,13 +3,17 @@ module TvdbParty
3
3
  include HTTParty
4
4
  include HTTParty::Icebox
5
5
  attr_accessor :language
6
- cache :store => 'file', :timeout => 120, :location => Dir.tmpdir
7
6
 
8
7
  base_uri 'www.thetvdb.com/api'
9
8
 
10
- def initialize(the_api_key, language = 'en')
9
+ def initialize(the_api_key, language = 'en', cache_options = {})
11
10
  @api_key = the_api_key
12
11
  @language = language
12
+
13
+ if cache_options.keys.size > 0
14
+ self.class.cache cache_options
15
+ end
16
+
13
17
  end
14
18
 
15
19
  def search(series_name)
@@ -90,4 +94,4 @@ module TvdbParty
90
94
  end
91
95
 
92
96
  end
93
- end
97
+ end
@@ -2,7 +2,7 @@ module TvdbParty
2
2
  class Series
3
3
  attr_reader :client
4
4
  attr_accessor :id, :name, :overview, :seasons, :first_aired, :genres, :network, :rating, :runtime,
5
- :actors, :banners, :air_time
5
+ :actors, :banners, :air_time, :imdb_id
6
6
 
7
7
  def initialize(client, options={})
8
8
  @client = client
@@ -12,6 +12,7 @@ module TvdbParty
12
12
  @network = options["Network"]
13
13
  @runtime = options["Runtime"]
14
14
  @air_time = options['Airs_Time'] if options['Airs_Time']
15
+ @imdb_id = options["IMDB_ID"]
15
16
 
16
17
  if options["Genre"]
17
18
  @genres = options["Genre"][1..-1].split("|")
@@ -59,6 +59,10 @@ class TvdbPartyTest < Test::Unit::TestCase
59
59
  should "have a first episode" do
60
60
  assert_equal "110413", @series.get_episode(1, 1).id
61
61
  end
62
+
63
+ should "have imdb id if available" do
64
+ assert_equal 'tt0386676', @series.imdb_id
65
+ end
62
66
  end
63
67
 
64
68
  end
data/tvdb_party.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{tvdb_party}
8
- s.version = "0.6.2"
7
+ s.name = "tvdb_party"
8
+ s.version = "0.7.0"
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{2011-10-11}
13
- s.description = %q{Simple Ruby library to talk to thetvdb.com's api}
14
- s.email = %q{jon@mustacheinc.com}
12
+ s.date = "2013-04-26"
13
+ s.description = "Simple Ruby library to talk to thetvdb.com's api"
14
+ s.email = "jon@mustacheinc.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.textile"
@@ -33,13 +33,12 @@ Gem::Specification.new do |s|
33
33
  "test/tvdb_party_test.rb",
34
34
  "tvdb_party.gemspec"
35
35
  ]
36
- s.homepage = %q{http://github.com/maddox/tvdb_party}
36
+ s.homepage = "http://github.com/maddox/tvdb_party"
37
37
  s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.3.7}
39
- s.summary = %q{Simple Ruby library to talk to thetvdb.com's api}
38
+ s.rubygems_version = "1.8.23"
39
+ s.summary = "Simple Ruby library to talk to thetvdb.com's api"
40
40
 
41
41
  if s.respond_to? :specification_version then
42
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
42
  s.specification_version = 3
44
43
 
45
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,63 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tvdb_party
3
- version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 6
9
- - 2
10
- version: 0.6.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jon Maddox
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-11 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-04-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: thoughtbot-shoulda
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: httparty
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: httparty
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 5
44
- segments:
45
- - 0
46
- - 6
47
- - 1
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
48
37
  version: 0.6.1
49
38
  type: :runtime
50
- version_requirements: *id002
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.6.1
51
46
  description: Simple Ruby library to talk to thetvdb.com's api
52
47
  email: jon@mustacheinc.com
53
48
  executables: []
54
-
55
49
  extensions: []
56
-
57
- extra_rdoc_files:
50
+ extra_rdoc_files:
58
51
  - LICENSE
59
52
  - README.textile
60
- files:
53
+ files:
61
54
  - .document
62
55
  - LICENSE
63
56
  - README.textile
@@ -73,39 +66,28 @@ files:
73
66
  - test/test_helper.rb
74
67
  - test/tvdb_party_test.rb
75
68
  - tvdb_party.gemspec
76
- has_rdoc: true
77
69
  homepage: http://github.com/maddox/tvdb_party
78
70
  licenses: []
79
-
80
71
  post_install_message:
81
72
  rdoc_options: []
82
-
83
- require_paths:
73
+ require_paths:
84
74
  - lib
85
- required_ruby_version: !ruby/object:Gem::Requirement
75
+ required_ruby_version: !ruby/object:Gem::Requirement
86
76
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- hash: 3
91
- segments:
92
- - 0
93
- version: "0"
94
- required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
82
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
103
87
  requirements: []
104
-
105
88
  rubyforge_project:
106
- rubygems_version: 1.3.7
89
+ rubygems_version: 1.8.23
107
90
  signing_key:
108
91
  specification_version: 3
109
92
  summary: Simple Ruby library to talk to thetvdb.com's api
110
93
  test_files: []
111
-