jobs_chaser 0.2.2 → 0.2.4
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: cff7bbcf59d7ed73eb3991f27d67eec640f4c7212758e44e133aa3e00d251e1f
|
4
|
+
data.tar.gz: 1fcca1ab51fcd6691d3ece14bf0a0e5e0a1fc8b155e820db30e0bfc335f53db9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a088ae5d2a939827807892fdf232c3845534482545e1c0b61f09c20fa2f3d10fed587c5111a747bd343c0a7efdf76f04db2df398367a18ad854436c50258d472
|
7
|
+
data.tar.gz: 58e5ca77939f4c753c4fb9b355961932a5a54dfc78507a1c16de94fad364245a1f990aa71d93d54f7764a1392094e3dab632f4907fe24158eff66638f65a56df
|
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.expand_path('config/sites.yml', __dir__)
|
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
|
|