slack-api 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack/configuration.rb +9 -1
- data/lib/slack/connection.rb +1 -0
- data/lib/slack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ab8f375e0cdb00b0c0780a8b9596651b1aa6c35
|
4
|
+
data.tar.gz: 5c3f9059587cb8e50c546950bb91b5e6de93bdf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb854eacfe009d2a01ca08a2e51d72cbddd1a0ebee24d7931bb5da2b8b2323c3dfb91c96c50eabaaf194e4520c436c4086dbd171f77c19dd4f1d26b3f3582699
|
7
|
+
data.tar.gz: e5b2963399ed3496e1f3cf6d33479de7a55da94f84769a621eb32bb7f4e1969d2c27ab1f8431ff1fd0866aefef8ae61b5d0efad8f3ec946076af4c47a12a3399
|
data/lib/slack/configuration.rb
CHANGED
@@ -10,7 +10,9 @@ module Slack
|
|
10
10
|
:token,
|
11
11
|
:endpoint,
|
12
12
|
:user_agent,
|
13
|
-
:proxy
|
13
|
+
:proxy,
|
14
|
+
:ca_path,
|
15
|
+
:ca_file
|
14
16
|
].freeze
|
15
17
|
|
16
18
|
# The adapter that will be used to connect if none is set
|
@@ -32,6 +34,10 @@ module Slack
|
|
32
34
|
# The user agent that will be sent to the API endpoint if none is set
|
33
35
|
DEFAULT_USER_AGENT = "Slack Ruby Gem #{Slack::VERSION}".freeze
|
34
36
|
|
37
|
+
# Default openssl CA_PATH and CA_FILE path
|
38
|
+
DEFAULT_CA_PATH = %x[ openssl version -a | grep OPENSSLDIR | awk '{print $2}'|sed -e 's/\"//g' ]
|
39
|
+
DEFAULT_CA_FILE = "#{DEFAULT_CA_PATH}/ca-certificates.crt"
|
40
|
+
|
35
41
|
# @private
|
36
42
|
attr_accessor *VALID_OPTIONS_KEYS
|
37
43
|
|
@@ -59,6 +65,8 @@ module Slack
|
|
59
65
|
self.endpoint = DEFAULT_ENDPOINT
|
60
66
|
self.user_agent = DEFAULT_USER_AGENT
|
61
67
|
self.proxy = DEFAULT_PROXY
|
68
|
+
self.ca_path = DEFAULT_CA_PATH
|
69
|
+
self.ca_file = DEFAULT_CA_FILE
|
62
70
|
end
|
63
71
|
end
|
64
72
|
end
|
data/lib/slack/connection.rb
CHANGED
@@ -11,6 +11,7 @@ module Slack
|
|
11
11
|
:headers => {'Accept' => "application/json; charset=utf-8", 'User-Agent' => user_agent},
|
12
12
|
:proxy => proxy,
|
13
13
|
:url => endpoint,
|
14
|
+
:ssl => { :ca_path => ca_path, :ca_file => ca_file },
|
14
15
|
}
|
15
16
|
|
16
17
|
Faraday::Connection.new(options) do |connection|
|
data/lib/slack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aki017
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|