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 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
- @url = "#{url}&#{(@params = params).map{|key, value| "#{key}=#{value}"}.join("&")}"
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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "movies"
6
- s.version = "0.1.2"
6
+ s.version = "0.1.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Linus Oleander"]
9
9
  s.email = ["linus@oleander.nu"]
@@ -35,7 +35,7 @@
35
35
  x-powered-by:
36
36
  - ASP.NET
37
37
  date:
38
- - Sat, 30 Apr 2011 14:02:22 GMT
38
+ - Sat, 30 Apr 2011 15:55:20 GMT
39
39
  content-length:
40
40
  - "469"
41
41
  body: !binary |
@@ -35,7 +35,7 @@
35
35
  x-powered-by:
36
36
  - ASP.NET
37
37
  date:
38
- - Sat, 30 Apr 2011 14:02:26 GMT
38
+ - Sat, 30 Apr 2011 15:55:20 GMT
39
39
  content-length:
40
40
  - "462"
41
41
  body: !binary |
@@ -81,7 +81,7 @@
81
81
  x-powered-by:
82
82
  - ASP.NET
83
83
  date:
84
- - Sat, 30 Apr 2011 14:02:20 GMT
84
+ - Sat, 30 Apr 2011 15:55:19 GMT
85
85
  content-length:
86
86
  - "144"
87
87
  body: !binary |
@@ -193,7 +193,7 @@
193
193
  x-powered-by:
194
194
  - ASP.NET
195
195
  date:
196
- - Sat, 30 Apr 2011 14:02:16 GMT
196
+ - Sat, 30 Apr 2011 15:55:14 GMT
197
197
  content-length:
198
198
  - "593"
199
199
  body: !binary |
@@ -89,7 +89,7 @@
89
89
  x-powered-by:
90
90
  - ASP.NET
91
91
  date:
92
- - Sat, 30 Apr 2011 14:02:17 GMT
92
+ - Sat, 30 Apr 2011 15:55:15 GMT
93
93
  content-length:
94
94
  - "540"
95
95
  body: !binary |
@@ -136,7 +136,7 @@
136
136
  x-powered-by:
137
137
  - ASP.NET
138
138
  date:
139
- - Sat, 30 Apr 2011 14:02:19 GMT
139
+ - Sat, 30 Apr 2011 15:55:17 GMT
140
140
  content-length:
141
141
  - "571"
142
142
  body: !binary |
@@ -35,7 +35,7 @@
35
35
  x-powered-by:
36
36
  - ASP.NET
37
37
  date:
38
- - Sat, 30 Apr 2011 14:02:28 GMT
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 14:02:30 GMT
95
+ - Sat, 30 Apr 2011 15:55:23 GMT
96
96
  content-length:
97
97
  - "583"
98
98
  body: !binary |
@@ -182,7 +182,7 @@
182
182
  x-powered-by:
183
183
  - ASP.NET
184
184
  date:
185
- - Sat, 30 Apr 2011 14:02:18 GMT
185
+ - Sat, 30 Apr 2011 15:55:16 GMT
186
186
  content-length:
187
187
  - "550"
188
188
  body: !binary |
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: movies
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Linus Oleander