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 +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +2 -2
- data/lib/teamtailor/client.rb +7 -3
- data/lib/teamtailor/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d95d0a6e7de8bb4c59685b5eb62f3c17a3d12a85b5f26dc9604da58c71ba4943
|
4
|
+
data.tar.gz: c98e3cdef79a200769756818ba0e6513a7f260c8c8f91677773cd05951b1b995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71caa179004d33e18cd4cbae5a0877e1bb8fe37b8f6b4e45f23c69692d7037188b29c42346deb0cc654d54f27aac4a97cd49d6d83af8d8af3a75b4d75e9ffd96
|
7
|
+
data.tar.gz: ff55550860c52977f6a039a771eb0df325366f15cb0cd847f73a03ed448dee184dffccbd56d1f123eea390d33949a637a543c0ca4b8f3fad930107606c3ccbf1
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/Gemfile.lock
CHANGED
data/lib/teamtailor/client.rb
CHANGED
@@ -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
|
|
data/lib/teamtailor/version.rb
CHANGED
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
|
+
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-
|
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.
|
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
|