jobparser 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,11 @@ module JobParser
21
21
  def get(url)
22
22
  job = Job.where(:url => url).first
23
23
  new_obj = {}
24
- job.attributes.each { |k, v| new_obj[k.to_sym] = v unless k == "_id" }
24
+ job.attributes.each { |k, v|
25
+ unless %w{created_at _id updated_at}.include?(k)
26
+ new_obj[k.to_sym] = v
27
+ end
28
+ }
25
29
  new_obj[:from_cache] = true
26
30
  new_obj
27
31
  end
@@ -1,3 +1,3 @@
1
1
  module JobParser
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: