rotten-party 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rotten-party/client.rb +8 -0
- data/rotten-party.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/rotten-party/client.rb
CHANGED
@@ -30,6 +30,14 @@ module RottenParty
|
|
30
30
|
Hashie::Mash.new(response)
|
31
31
|
end
|
32
32
|
|
33
|
+
# Find a film by it's title
|
34
|
+
def find_film_by_title(title, options={})
|
35
|
+
options.merge!(@global_options)
|
36
|
+
options.merge!({:query => {:q => u(title)}})
|
37
|
+
response = self.class.get("/movies.json", options).parsed_response
|
38
|
+
Hashie::Mash.new(response["movies"].first)
|
39
|
+
end
|
40
|
+
|
33
41
|
# list
|
34
42
|
# => 'box_office'
|
35
43
|
# => 'in_theaters'
|
data/rotten-party.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rotten-party}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nick Pellant"]
|
12
|
-
s.date = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-18}
|
13
13
|
s.description = %q{RottenTomatoe client using their open API}
|
14
14
|
s.email = %q{nick@abigimportant.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rotten-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nick Pellant
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-18 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
hash:
|
119
|
+
hash: 1354565757689011251
|
120
120
|
segments:
|
121
121
|
- 0
|
122
122
|
version: "0"
|