slack-api 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2af2a98298e81b99706a7464ecfa488719ead24e
4
- data.tar.gz: 8248db8f976979888ad22903d4daae0d3978b669
3
+ metadata.gz: 8ab8f375e0cdb00b0c0780a8b9596651b1aa6c35
4
+ data.tar.gz: 5c3f9059587cb8e50c546950bb91b5e6de93bdf9
5
5
  SHA512:
6
- metadata.gz: abb0bd3aa94ab0f58514221b0712f9bae2a4d9322f9ed69326220379cc81e11cc0b90e06412287808afc17e00c419ff7b281eb93237fa85dfdf3bdd2b0d81a65
7
- data.tar.gz: e43fdbc2a81b9e8155dfee149b453438e775205e13c40966b9eda0d29a38645bbfc9fd290a2dd5f21b503bf68ffa680b54527829e6e11689255c5a77b54a5f96
6
+ metadata.gz: bb854eacfe009d2a01ca08a2e51d72cbddd1a0ebee24d7931bb5da2b8b2323c3dfb91c96c50eabaaf194e4520c436c4086dbd171f77c19dd4f1d26b3f3582699
7
+ data.tar.gz: e5b2963399ed3496e1f3cf6d33479de7a55da94f84769a621eb32bb7f4e1969d2c27ab1f8431ff1fd0866aefef8ae61b5d0efad8f3ec946076af4c47a12a3399
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Slack
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
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.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-21 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler