bamboozled-gitlab 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bamboozled/api/base.rb +3 -3
- data/lib/bamboozled/api/employee.rb +1 -1
- data/lib/bamboozled/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68fcbb6ace3480e30312333e6403fae3adc19dfd074f358d6d74fefc32097e85
|
4
|
+
data.tar.gz: 3c9a0a02f50d7b19f7303f3dcd4b1a4e5158e1b1113b0c0abbf7fc99ecce1e74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eab043ce71efbc1cf592cd0d12c6c63d26de0e6bf41d2eefa865f75e44ffe17ba6e916a397d2034b20b07b39940a94a6c5dd97e3e6058fbe8d7004d6cc871b2
|
7
|
+
data.tar.gz: 2b39c8c0349d5df27b054a0ddde1b59f3173f51992b7b739ca783c27c0655f2dbc9965a5e9545c1f968454f0f5c34c02dc8ca338b452ad5ca7bc50c3daa03c2d
|
data/lib/bamboozled/api/base.rb
CHANGED
@@ -42,7 +42,7 @@ module Bamboozled
|
|
42
42
|
}.update(options[:headers] || {})
|
43
43
|
})
|
44
44
|
|
45
|
-
response = HTTParty.send(method, "#{path_prefix}#{path}", httparty_options)
|
45
|
+
response = HTTParty.send(method, "#{path_prefix(options[:api_version])}#{path}", httparty_options)
|
46
46
|
params[:response] = response.inspect.to_s
|
47
47
|
parse_response(response, params)
|
48
48
|
end
|
@@ -53,8 +53,8 @@ module Bamboozled
|
|
53
53
|
{ username: api_key, password: "x" }
|
54
54
|
end
|
55
55
|
|
56
|
-
def path_prefix
|
57
|
-
"https://api.bamboohr.com/api/gateway.php/#{subdomain}
|
56
|
+
def path_prefix(version = 'v1')
|
57
|
+
"https://api.bamboohr.com/api/gateway.php/#{subdomain}/#{version || 'v1'}/"
|
58
58
|
end
|
59
59
|
|
60
60
|
def parse_response(response, params)
|
@@ -72,7 +72,7 @@ module Bamboozled
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def time_off_policies(employee_id)
|
75
|
-
request(:get, "employees/#{employee_id}/time_off/policies")
|
75
|
+
request(:get, "employees/#{employee_id}/time_off/policies", { api_version: 'v1_1' })
|
76
76
|
end
|
77
77
|
|
78
78
|
def add_time_off_policies(employee_id, policies)
|
data/lib/bamboozled/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bamboozled-gitlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rickert
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-06-
|
12
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|