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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee27d54dc3280a0524f21ee7104ab5951979e8f7aa6ac1f41d7d29fa943241e0
4
- data.tar.gz: 6ce20114187af5808ecf10a2134cf5afb5291bca4aaeb53a2d403c69b97dc94c
3
+ metadata.gz: 68fcbb6ace3480e30312333e6403fae3adc19dfd074f358d6d74fefc32097e85
4
+ data.tar.gz: 3c9a0a02f50d7b19f7303f3dcd4b1a4e5158e1b1113b0c0abbf7fc99ecce1e74
5
5
  SHA512:
6
- metadata.gz: 65d653cf4922cfd0a0fa3cb97449ded66648927555de816e3187e2a304516901f9fd61d5971b4b45800e660d6192d4c222883e75805abe9b0a4589b50c86a59c
7
- data.tar.gz: 35a49de100dd127d026c506da95adfc4541c8d5f7472d98a71f64e14606af6651c858dd87e337e2a6a5d025c1418bd11d4476b4f842615f1d6cace4864648a9e
6
+ metadata.gz: 9eab043ce71efbc1cf592cd0d12c6c63d26de0e6bf41d2eefa865f75e44ffe17ba6e916a397d2034b20b07b39940a94a6c5dd97e3e6058fbe8d7004d6cc871b2
7
+ data.tar.gz: 2b39c8c0349d5df27b054a0ddde1b59f3173f51992b7b739ca783c27c0655f2dbc9965a5e9545c1f968454f0f5c34c02dc8ca338b452ad5ca7bc50c3daa03c2d
@@ -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}/v1/"
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)
@@ -1,3 +1,3 @@
1
1
  module Bamboozled
2
- VERSION = "0.2.11".freeze
2
+ VERSION = "0.2.12".freeze
3
3
  end
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.11
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-03 00:00:00.000000000 Z
12
+ date: 2021-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler