peoplegroup-connectors 1.0.1 → 1.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cbce487521843c0d8667e08955b8f0e8529d4afc595951555759bbd9b8b0d21
|
4
|
+
data.tar.gz: 9dca7dd6c47b4714391fb56709a358a569f7791678771e6fb2c7d9bf4544bb05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9488ff375e4d6f3fce51b79bd7113a812035337c21c27deb7bbc9828a20d21e3e0c4eb2a40fa1b3c5c8c204473697088c39dc6b4d9b64b0f90118fc42e5e1ed7
|
7
|
+
data.tar.gz: da726d6539b78cd9e2dcc0cccc0c2710c39f979afeb838a1b0a9d707e11855b3c582abb133bcaa9dcc68960598f38897e4757099a81631a4594918d91e2b0a25
|
@@ -6,8 +6,12 @@ module PeopleGroup
|
|
6
6
|
module Connectors
|
7
7
|
class Slack
|
8
8
|
def initialize
|
9
|
-
::Slack.configure do |config|
|
9
|
+
::Slack::Web::Client.configure do |config|
|
10
10
|
config.token = ENV['SLACK_API_TOKEN']
|
11
|
+
|
12
|
+
# configure certificate file
|
13
|
+
# fixed in slack-ruby-client 2.x
|
14
|
+
config.ca_file = ENV.fetch('SSL_CERT_FILE', '/usr/lib/ssl/certs/ca-certificates.crt')
|
11
15
|
end
|
12
16
|
@client = ::Slack::Web::Client.new
|
13
17
|
end
|
@@ -78,10 +78,10 @@ module PeopleGroup
|
|
78
78
|
|
79
79
|
# Combine the url and extra input parameters in an encoded format.
|
80
80
|
# @param [Hash] prompts The report prompts/parameters.
|
81
|
-
# @return [String] The @url (report url) combined with report
|
81
|
+
# @return [String] The @url (report url) combined with report format `?format='json'` and any extra parameters.
|
82
82
|
def report_url(prompts = {})
|
83
83
|
uri = @uri.clone # copy the URI object
|
84
|
-
params = prompts.merge!({
|
84
|
+
params = prompts.merge!({ format: :json }) # ensure report format is always JSON
|
85
85
|
uri.query = URI.encode_www_form(params)
|
86
86
|
uri.to_s
|
87
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peoplegroup-connectors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lien van den steen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bamboozled-gitlab
|