tmdb_party 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gem.email = "duff.john@gmail.com"
10
10
  gem.homepage = "http://github.com/jduff/tmdb_party"
11
11
  gem.authors = ["John Duff", "Jon Maddox"]
12
- gem.add_dependency('httparty', '>= 0.4.3')
12
+ gem.add_dependency('httparty', '>= 0.6.1')
13
13
 
14
14
  gem.add_development_dependency('fakeweb')
15
15
  gem.add_development_dependency('rspec')
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 5
3
- :patch: 0
4
2
  :major: 0
3
+ :minor: 6
4
+ :patch: 0
@@ -1,4 +1,3 @@
1
- # gem 'httparty'
2
1
  require 'httparty'
3
2
 
4
3
  %w[core_extensions httparty_icebox attributes video genre person image country studio cast_member movie].each do |class_name|
@@ -20,7 +19,7 @@ module TMDBParty
20
19
  end
21
20
 
22
21
  def search(query)
23
- data = self.class.get(method_url('Movie.search', query))
22
+ data = self.class.get(method_url('Movie.search', query)).parsed_response
24
23
  if data.class != Array || data.first == "Nothing found."
25
24
  []
26
25
  else
@@ -29,7 +28,7 @@ module TMDBParty
29
28
  end
30
29
 
31
30
  def search_person(query)
32
- data = self.class.get(method_url('Person.search', query))
31
+ data = self.class.get(method_url('Person.search', query)).parsed_response
33
32
  if data.class != Array || data.first == "Nothing found."
34
33
  []
35
34
  else
@@ -38,7 +37,7 @@ module TMDBParty
38
37
  end
39
38
 
40
39
  def imdb_lookup(imdb_id)
41
- data = self.class.get(method_url('Movie.imdbLookup', imdb_id))
40
+ data = self.class.get(method_url('Movie.imdbLookup', imdb_id)).parsed_response
42
41
  if data.class != Array || data.first == "Nothing found."
43
42
  nil
44
43
  else
@@ -47,12 +46,12 @@ module TMDBParty
47
46
  end
48
47
 
49
48
  def get_info(id)
50
- data = self.class.get(method_url('Movie.getInfo', id))
49
+ data = self.class.get(method_url('Movie.getInfo', id)).parsed_response
51
50
  Movie.new(data.first, self)
52
51
  end
53
52
 
54
53
  def get_person(id)
55
- data = self.class.get(method_url('Person.getInfo', id))
54
+ data = self.class.get(method_url('Person.getInfo', id)).parsed_response
56
55
  Person.new(data.first, self)
57
56
  end
58
57
 
@@ -65,4 +64,4 @@ module TMDBParty
65
64
  '/' + ([method] + default_path_items + [URI.escape(value.to_s)]).join('/')
66
65
  end
67
66
  end
68
- end
67
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tmdb_party}
8
- s.version = "0.5.0"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["John Duff", "Jon Maddox"]
12
- s.date = %q{2010-07-27}
12
+ s.date = %q{2010-09-22}
13
13
  s.email = %q{duff.john@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
61
61
  s.homepage = %q{http://github.com/jduff/tmdb_party}
62
62
  s.rdoc_options = ["--charset=UTF-8"]
63
63
  s.require_paths = ["lib"]
64
- s.rubygems_version = %q{1.3.5}
64
+ s.rubygems_version = %q{1.3.7}
65
65
  s.summary = %q{Simple ruby wrapper to themoviedb.org (http://api.themoviedb.org/2.0/docs/) using HTTParty}
66
66
  s.test_files = [
67
67
  "spec/lib/tmdb_party/cast_member_spec.rb",
@@ -79,17 +79,17 @@ Gem::Specification.new do |s|
79
79
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
80
80
  s.specification_version = 3
81
81
 
82
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
83
- s.add_runtime_dependency(%q<httparty>, [">= 0.4.3"])
82
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
83
+ s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"])
84
84
  s.add_development_dependency(%q<fakeweb>, [">= 0"])
85
85
  s.add_development_dependency(%q<rspec>, [">= 0"])
86
86
  else
87
- s.add_dependency(%q<httparty>, [">= 0.4.3"])
87
+ s.add_dependency(%q<httparty>, [">= 0.6.1"])
88
88
  s.add_dependency(%q<fakeweb>, [">= 0"])
89
89
  s.add_dependency(%q<rspec>, [">= 0"])
90
90
  end
91
91
  else
92
- s.add_dependency(%q<httparty>, [">= 0.4.3"])
92
+ s.add_dependency(%q<httparty>, [">= 0.6.1"])
93
93
  s.add_dependency(%q<fakeweb>, [">= 0"])
94
94
  s.add_dependency(%q<rspec>, [">= 0"])
95
95
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmdb_party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ hash: 7
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 0
10
+ version: 0.6.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - John Duff
@@ -10,39 +16,53 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2010-07-27 00:00:00 -04:00
19
+ date: 2010-09-22 00:00:00 -04:00
14
20
  default_executable:
15
21
  dependencies:
16
22
  - !ruby/object:Gem::Dependency
17
23
  name: httparty
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
21
27
  requirements:
22
28
  - - ">="
23
29
  - !ruby/object:Gem::Version
24
- version: 0.4.3
25
- version:
30
+ hash: 5
31
+ segments:
32
+ - 0
33
+ - 6
34
+ - 1
35
+ version: 0.6.1
36
+ type: :runtime
37
+ version_requirements: *id001
26
38
  - !ruby/object:Gem::Dependency
27
39
  name: fakeweb
28
- type: :development
29
- version_requirement:
30
- version_requirements: !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
31
43
  requirements:
32
44
  - - ">="
33
45
  - !ruby/object:Gem::Version
46
+ hash: 3
47
+ segments:
48
+ - 0
34
49
  version: "0"
35
- version:
50
+ type: :development
51
+ version_requirements: *id002
36
52
  - !ruby/object:Gem::Dependency
37
53
  name: rspec
38
- type: :development
39
- version_requirement:
40
- version_requirements: !ruby/object:Gem::Requirement
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
41
57
  requirements:
42
58
  - - ">="
43
59
  - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
44
63
  version: "0"
45
- version:
64
+ type: :development
65
+ version_requirements: *id003
46
66
  description:
47
67
  email: duff.john@gmail.com
48
68
  executables: []
@@ -104,21 +124,27 @@ rdoc_options:
104
124
  require_paths:
105
125
  - lib
106
126
  required_ruby_version: !ruby/object:Gem::Requirement
127
+ none: false
107
128
  requirements:
108
129
  - - ">="
109
130
  - !ruby/object:Gem::Version
131
+ hash: 3
132
+ segments:
133
+ - 0
110
134
  version: "0"
111
- version:
112
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
+ none: false
113
137
  requirements:
114
138
  - - ">="
115
139
  - !ruby/object:Gem::Version
140
+ hash: 3
141
+ segments:
142
+ - 0
116
143
  version: "0"
117
- version:
118
144
  requirements: []
119
145
 
120
146
  rubyforge_project:
121
- rubygems_version: 1.3.5
147
+ rubygems_version: 1.3.7
122
148
  signing_key:
123
149
  specification_version: 3
124
150
  summary: Simple ruby wrapper to themoviedb.org (http://api.themoviedb.org/2.0/docs/) using HTTParty