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: 75a4910da9b8d9744846d797af59b88dc9be12a946b9280de8bc3f41fe029d92
4
- data.tar.gz: ff003453bd1f2c3ef3c56f4f39cbd9961433f8a88cdc566012bdc159bcdc2522
3
+ metadata.gz: 7cbce487521843c0d8667e08955b8f0e8529d4afc595951555759bbd9b8b0d21
4
+ data.tar.gz: 9dca7dd6c47b4714391fb56709a358a569f7791678771e6fb2c7d9bf4544bb05
5
5
  SHA512:
6
- metadata.gz: b30e1205b9cfb517ae681cc18e0d56fa1da94ca0cbbf3de62fd1ba0ae80d9af0703f3267489c88231d99ee022c380a9eaaad240b36550135547f09926f91fff2
7
- data.tar.gz: 18358e233698b4268b1685707ca3e28220c444b7654d48e5f267ee7fe67bbfbaa8a683d5e6e10c5fa25a28aef40546567c3975eb6fa937045d9b44e3937f8015
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PeopleGroup
4
4
  module Connectors
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.3'
6
6
  end
7
7
  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 type `?type='json'` and any extra parameters.
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!({ type: :json }) # ensure report format is always JSON
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.1
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: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bamboozled-gitlab