jobs_chaser 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jobs_chaser.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3971478f2205d14fb033ab493fb32868b2a389991765470106f4809c3a953716
|
4
|
+
data.tar.gz: 54b015e1c91f44edb2a0f72cc96f92ed3d27139ee8588b220f8a468208f640dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ddcd65df8b0cf1748ae60f1038aad2a9d9b86903e3e539219ede740e7cb1508eb169a725e66ae20f1e7d8d29ae83a502c045fa50d39acf61322b645203df73
|
7
|
+
data.tar.gz: c20c8e8db0499b4518787ebe4f8e447050f5f927e5bb72159b3df90e8f8a78f7a2b31596a344be352b0a7d1e85df3fb7c93c4329ec94e88846d438da73b4271f
|
data/lib/jobs_chaser.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
require 'httparty'
|
2
2
|
require 'json'
|
3
|
+
require 'yaml'
|
3
4
|
require_relative 'api_clients/getonbrd_client'
|
4
5
|
require_relative 'api_clients/remotive_client'
|
5
6
|
require_relative 'filtering/job_filter'
|
6
7
|
|
7
8
|
class JobsChaser
|
8
9
|
def initialize(title_keywords_file, description_keywords_file)
|
9
|
-
|
10
|
+
config_path = File.join(File.dirname(__FILE__), '..', 'config', 'sites.yml')
|
11
|
+
@sites = YAML.load_file(config_path)
|
10
12
|
@title_keywords_file = title_keywords_file
|
11
13
|
@description_keywords_file = description_keywords_file
|
12
14
|
end
|
@@ -23,7 +25,7 @@ class JobsChaser
|
|
23
25
|
|
24
26
|
job_list = JobFilter.discard(job_list, @title_keywords_file)
|
25
27
|
valid_jobs = JobFilter.filter_jobs(job_list, @description_keywords_file)
|
26
|
-
|
28
|
+
|
27
29
|
export(csv_filename, valid_jobs)
|
28
30
|
end
|
29
31
|
|