ruby_desk 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/ruby_desk/job.rb +4 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.2
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
- [json['jobs']['job']].flatten.each do |job|
264
- jobs << self.new(job)
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: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 2
10
- version: 0.8.2
9
+ - 3
10
+ version: 0.8.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ahmed ElDawy