teamtailor 0.2.4 → 0.2.5

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: 65d5517a7804ca23cfab37e186ce9a3a8e6fd834d19142f1639bd43a713f0cad
4
- data.tar.gz: 1ce95b3c0f5734a5a75d7e735a2938396e66b1c6a66ecb636f11951e99cb16b4
3
+ metadata.gz: d95d0a6e7de8bb4c59685b5eb62f3c17a3d12a85b5f26dc9604da58c71ba4943
4
+ data.tar.gz: c98e3cdef79a200769756818ba0e6513a7f260c8c8f91677773cd05951b1b995
5
5
  SHA512:
6
- metadata.gz: befca1d520b6e38edde324a89a5ed7e2e45df37a08037c2ea466703e558d3a88c4401878c33e3021b38408ea5567616c5d67cc5ebeaac60eeaff289b29b6954c
7
- data.tar.gz: c03ff827ea515229c96f4380a3aea14e5989060ffa1bf9c8146149135475040591179aad9444aee343bb81903a0f119dba9b5302589dde5dded132865c981654
6
+ metadata.gz: 71caa179004d33e18cd4cbae5a0877e1bb8fe37b8f6b4e45f23c69692d7037188b29c42346deb0cc654d54f27aac4a97cd49d6d83af8d8af3a75b4d75e9ffd96
7
+ data.tar.gz: ff55550860c52977f6a039a771eb0df325366f15cb0cd847f73a03ed448dee184dffccbd56d1f123eea390d33949a637a543c0ca4b8f3fad930107606c3ccbf1
@@ -1,5 +1,9 @@
1
1
  ## Unreleased
2
2
 
3
+ ## v0.2.5 - 2020-05-15
4
+
5
+ - Add `filters:` as an argument to `Client#jobs`
6
+
3
7
  ## v0.2.4 - 2020-04-07
4
8
 
5
9
  - Add `Teamtailor::Location` and `Client#locations`
@@ -15,7 +19,7 @@
15
19
 
16
20
  - Move serialization logic in the `Teamtailor::Record` base class (`9ec63a0`)
17
21
  - Fix serializing/deserializing loaded relationships for
18
- `Teamtailor::JobApplication` (`428e2d`)
22
+ `Teamtailor::JobApplication` (`428e2d`)
19
23
 
20
24
  ## v0.2.1 - 2020-03-31
21
25
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teamtailor (0.2.4)
4
+ teamtailor (0.2.5)
5
5
  typhoeus (~> 1.3.1)
6
6
 
7
7
  GEM
@@ -73,4 +73,4 @@ DEPENDENCIES
73
73
  webmock (~> 3.4, >= 3.4.2)
74
74
 
75
75
  BUNDLED WITH
76
- 2.1.2
76
+ 2.1.4
@@ -36,7 +36,11 @@ module Teamtailor
36
36
  ).call
37
37
  end
38
38
 
39
- def jobs(page: 1, include: [])
39
+ def jobs(page: 1, include: [], filters: {})
40
+ filter_params = filters.keys.map do |key|
41
+ { "filter[#{key}]" => filters[key] }
42
+ end
43
+
40
44
  Teamtailor::Request.new(
41
45
  base_url: base_url,
42
46
  api_token: api_token,
@@ -45,8 +49,8 @@ module Teamtailor
45
49
  params: {
46
50
  'page[number]' => page,
47
51
  'page[size]' => 30,
48
- 'include' => include.join(',')
49
- }
52
+ 'include' => include.join(','),
53
+ }.merge(*filter_params)
50
54
  ).call
51
55
  end
52
56
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Teamtailor
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamtailor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Ligné
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-07 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.1.2
100
+ rubygems_version: 3.0.3
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Library for interacting with the Teamtailor API