breacan 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/breacan/client/channels.rb +1 -2
- data/lib/breacan/configurable.rb +11 -4
- data/lib/breacan/response/custom.rb +1 -1
- data/lib/breacan/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: 7d121b57628f0c1cd2f48a250ed9daf61446f6e9
|
4
|
+
data.tar.gz: ed247bb1c8a878fd5377b474dcf8d1c0aa077265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20a454072636076b66d1db147f617731c104f65891d9a33b463be608de558e44e73d57ecd7836c268bbc31bb9111b957847d49e8cb398bf083d9d9497a43221e
|
7
|
+
data.tar.gz: b39ab20c049dae816f8bc1d1f2878cd25e87f89febd87d1e2038c3593b1969d0ae89289ab66511969ae27ea8abdec07d7ed0106b7a3d7a0111aae4726d728339
|
data/README.md
CHANGED
data/lib/breacan/configurable.rb
CHANGED
@@ -35,6 +35,12 @@ module Breacan
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def reset!
|
38
|
+
builder = if defined? Faraday::RackBuilder
|
39
|
+
Faraday::RackBuilder
|
40
|
+
else
|
41
|
+
Faraday::Builder
|
42
|
+
end
|
43
|
+
|
38
44
|
@access_token = ENV['BREACAN_ACCESS_TOKEN']
|
39
45
|
@team = ENV['BREACAN_TEAM']
|
40
46
|
@api_endpoint = ENV['BREACAN_API_ENDPOINT'] || 'https://slack.com/api/'
|
@@ -43,10 +49,11 @@ module Breacan
|
|
43
49
|
@media_type = 'application/json'
|
44
50
|
@connection_options = { headers: { accept: media_type, user_agent: user_agent } }
|
45
51
|
@proxy = ENV['BREACAN_PROXY']
|
46
|
-
@middleware =
|
47
|
-
|
48
|
-
|
49
|
-
|
52
|
+
@middleware = builder.new { |c|
|
53
|
+
c.adapter Faraday.default_adapter
|
54
|
+
c.response :breacan_custom
|
55
|
+
}
|
56
|
+
|
50
57
|
self
|
51
58
|
end
|
52
59
|
alias setup reset!
|
data/lib/breacan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breacan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- linyows
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|