rubyscraper 0.2.0 → 0.3.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -1
- data/lib/rubyscraper/version.rb +1 -1
- data/lib/rubyscraper.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52f18807f9710b9ae0f38e5b95e19a647ab9435a
|
4
|
+
data.tar.gz: 339219074a3332916f1ba86bf3f7ff8bcbc1a357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 625604ca6bde5493de83fc564fc82ae52fdf3777c9b59fb0a2460b8e29b0dcc32f37e75d5c401300e441cfe6085645ba105fc45e50449160c5b190587dbf70b4
|
7
|
+
data.tar.gz: e8bdbf5adc50d263e7015aa3b574ceff9f669d0e6aaa766b52f515107010b76e6bbdaecfa190ac52634e852ac9df553412d1336a3bc190dc952773f5174068ed
|
data/Gemfile.lock
CHANGED
data/lib/rubyscraper/version.rb
CHANGED
data/lib/rubyscraper.rb
CHANGED
@@ -126,11 +126,14 @@ class RubyScraper
|
|
126
126
|
def send_to_server
|
127
127
|
@scraped_jobs += jobs.length
|
128
128
|
jobs.each do |job|
|
129
|
+
tags = job["tags"] || ""
|
129
130
|
new_job = {
|
130
131
|
position: job["position"],
|
131
132
|
location: job["location"],
|
132
133
|
description: job["description"],
|
133
|
-
source: job["url"]
|
134
|
+
source: job["url"],
|
135
|
+
company: job["company"],
|
136
|
+
tags: tags.split(", ")
|
134
137
|
}
|
135
138
|
|
136
139
|
RestClient.post(endpoint, job: new_job){ |response, request, result, &block|
|