wolf_core 0.2.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24fd309efeace52826fbae718d212e6c75d5be974d799e79095947d71940a95a
4
- data.tar.gz: 9576b8cea48ba857997335976e1b418ecbfb9c28c73301d462cebc10a866662c
3
+ metadata.gz: d93315b5bf36dac8a13d61db31d6d1faf173be220468760e0f4365e01481b4c1
4
+ data.tar.gz: f783133a7c30083979448d5e246417a41038cba54cdc37b7d62247f641ebde7d
5
5
  SHA512:
6
- metadata.gz: e6205f56cb98a160d87433ae6c96038b7a084edcc0836c6b498b363a618bc2baff296d24730e91a924f93b468a7b39d2bf56c798d30343a66ca55b4ad1b644fb
7
- data.tar.gz: 1feafad333d4eacb956cdaf55606b9b4aa9a6a72113f3bb81239f56e8407400a5a0cfbc47d5b58b2ca9dbd4506869b55aee695fdbe2cc7f134b63f0c31baea33
6
+ metadata.gz: 300c4bb4ebea15cd2d3fa2980e265b9625e884192a5e1bfb4e9b8b501c0598ddae83274be01aec6a953943a6f7a6ac55c19a20c02505102d6e33bac3702fda2c
7
+ data.tar.gz: 517d12bd2d0066e63f4144d7b8456aac64c786afd3ee6b05554f226cf1596266fc44bbaabef2782c253d34cbfc98febc6895b9be50fcec3e1280cdc3b3d0a440
@@ -16,10 +16,12 @@ module WolfCore
16
16
  }
17
17
 
18
18
  def map_job_type(value)
19
+ value = value.to_s
19
20
  JOB_TYPE_MAPPING[value] || value
20
21
  end
21
22
 
22
23
  def revert_map_job_type(value)
24
+ value = value.to_s
23
25
  JOB_TYPE_MAPPING.invert[value] || value
24
26
  end
25
27
  end
@@ -43,6 +43,25 @@ module WolfCore
43
43
  body: jobseeker
44
44
  )
45
45
  end
46
+
47
+ def update_jobseeker!(wolf_token:, jobseeker:, tenant:, wolf_platform_url:, error_message:, jobseeker_id:)
48
+ safe_http_put(
49
+ headers: { 'Authorization' => "Bearer #{wolf_token}" },
50
+ query: { tenant: tenant },
51
+ url: "#{wolf_platform_url}/api/v2/jobseekers/#{jobseeker_id}",
52
+ body: jobseeker,
53
+ error_message: error_message,
54
+ )
55
+ end
56
+
57
+ def update_jobseeker(wolf_token:, jobseeker:, tenant:, wolf_platform_url:, jobseeker_id:)
58
+ http_put(
59
+ headers: { 'Authorization' => "Bearer #{wolf_token}" },
60
+ query: { tenant: tenant },
61
+ url: "#{wolf_platform_url}/api/v2/jobseekers/#{jobseeker_id}",
62
+ body: jobseeker
63
+ )
64
+ end
46
65
  end
47
66
  end
48
67
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.2.9"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-11 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty