movies 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/movies.rb +8 -1
- data/movies.gemspec +1 -1
- data/spec/fixtures/vcr_cassettes/bug1.yml +1 -1
- data/spec/fixtures/vcr_cassettes/n-a-tt1570337.yml +1 -1
- data/spec/fixtures/vcr_cassettes/not_found.yml +1 -1
- data/spec/fixtures/vcr_cassettes/true-grit-1969.yml +1 -1
- data/spec/fixtures/vcr_cassettes/true-grit-2010.yml +1 -1
- data/spec/fixtures/vcr_cassettes/tt0066026.yml +1 -1
- data/spec/fixtures/vcr_cassettes/tt0337978.yml +2 -2
- data/spec/fixtures/vcr_cassettes/tt1285016.yml +1 -1
- metadata +1 -1
data/lib/movies.rb
CHANGED
@@ -10,7 +10,14 @@ class Movies
|
|
10
10
|
if params.keys.include?(:callback)
|
11
11
|
raise ArgumentError.new("Passing the callback option makes not sense.")
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
|
+
@params = params
|
15
|
+
|
16
|
+
if params.empty?
|
17
|
+
@url = url
|
18
|
+
else
|
19
|
+
@url = "#{url}&#{(@params).map{|key, value| "#{key}=#{value}"}.join("&")}"
|
20
|
+
end
|
14
21
|
end
|
15
22
|
|
16
23
|
def self.find_by_id(id, params = {})
|
data/movies.gemspec
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
x-powered-by:
|
36
36
|
- ASP.NET
|
37
37
|
date:
|
38
|
-
- Sat, 30 Apr 2011
|
38
|
+
- Sat, 30 Apr 2011 15:55:22 GMT
|
39
39
|
content-length:
|
40
40
|
- "643"
|
41
41
|
body: !binary |
|
@@ -92,7 +92,7 @@
|
|
92
92
|
x-powered-by:
|
93
93
|
- ASP.NET
|
94
94
|
date:
|
95
|
-
- Sat, 30 Apr 2011
|
95
|
+
- Sat, 30 Apr 2011 15:55:23 GMT
|
96
96
|
content-length:
|
97
97
|
- "583"
|
98
98
|
body: !binary |
|