jobparser 0.7.0 → 0.7.1
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/lib/jobparser/cache/mongostore.rb +5 -1
- data/lib/jobparser/version.rb +1 -1
- metadata +1 -1
@@ -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|
|
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
|
data/lib/jobparser/version.rb
CHANGED