ruby_desk 0.8.2 → 0.8.3
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/VERSION +1 -1
- data/lib/ruby_desk/job.rb +4 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.8.
|
|
1
|
+
0.8.3
|
data/lib/ruby_desk/job.rb
CHANGED
|
@@ -260,8 +260,10 @@ class RubyDesk::Job < RubyDesk::OdeskEntity
|
|
|
260
260
|
'profiles/v1/search/jobs', :method=>:get,
|
|
261
261
|
:auth=>false, :sign=>false, :params=>query_options)
|
|
262
262
|
jobs = []
|
|
263
|
-
|
|
264
|
-
jobs
|
|
263
|
+
if json['jobs']['job']
|
|
264
|
+
[json['jobs']['job']].flatten.each do |job|
|
|
265
|
+
jobs << self.new(job)
|
|
266
|
+
end
|
|
265
267
|
end
|
|
266
268
|
return jobs
|
|
267
269
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby_desk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 57
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 8
|
|
9
|
-
-
|
|
10
|
-
version: 0.8.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.8.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ahmed ElDawy
|