waylon-slack 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/Gemfile.lock +78 -61
- data/lib/waylon/slack/channel.rb +1 -1
- data/lib/waylon/slack/version.rb +1 -1
- data/lib/waylon/slack.rb +2 -2
- data/scripts/release.sh +2 -0
- data/scripts/test.sh +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a334379ea99d3b5f7946e90502a44c6edd6fcd9b2d5a7d28b3795ad0d943fee
|
4
|
+
data.tar.gz: 80c31fc47535da4645c02c55a80023071a03483dfd9979ed42742f0acd230355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203c08e506188ff3128c7db54e8b85163ec179ebb671f733b1e45af6465182f3c635dff16e89d803f2296390b413303a22f70d732b2bfb5aa8cc7c461b38c631
|
7
|
+
data.tar.gz: f9891f817649bdf9ff4539acede3ec6b972ac191854b6090a081c2a977be136d7b2aa5e38b4c293834f0a19e3efbd1be2ede5bc58c37b1bde2ecd76a9f2cfa5f
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
AllCops:
|
2
2
|
TargetRubyVersion: 3.1
|
3
3
|
NewCops: enable
|
4
|
+
SuggestExtensions: false
|
4
5
|
|
5
6
|
Style/MixinUsage:
|
6
7
|
Exclude:
|
@@ -36,3 +37,6 @@ Metrics/BlockLength:
|
|
36
37
|
Exclude:
|
37
38
|
- "**/*_spec.rb"
|
38
39
|
- "*.gemspec"
|
40
|
+
|
41
|
+
Gemspec/DevelopmentDependencies:
|
42
|
+
Enabled: false
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
waylon-slack (0.1.
|
4
|
+
waylon-slack (0.1.2)
|
5
5
|
slack-ruby-client (~> 1.0)
|
6
6
|
waylon-core (~> 0.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.8.
|
12
|
-
public_suffix (>= 2.0.2, <
|
11
|
+
addressable (2.8.6)
|
12
|
+
public_suffix (>= 2.0.2, < 6.0)
|
13
13
|
ast (2.4.2)
|
14
|
-
concurrent-ruby (1.
|
14
|
+
concurrent-ruby (1.2.2)
|
15
|
+
connection_pool (2.4.1)
|
15
16
|
diff-lcs (1.5.0)
|
16
17
|
docile (1.4.0)
|
17
|
-
faraday (1.10.
|
18
|
+
faraday (1.10.3)
|
18
19
|
faraday-em_http (~> 1.0)
|
19
20
|
faraday-em_synchrony (~> 1.0)
|
20
21
|
faraday-excon (~> 1.1)
|
@@ -30,8 +31,8 @@ GEM
|
|
30
31
|
faraday-em_synchrony (1.0.0)
|
31
32
|
faraday-excon (1.1.0)
|
32
33
|
faraday-httpclient (1.0.1)
|
33
|
-
faraday-multipart (1.0.
|
34
|
-
multipart-post (
|
34
|
+
faraday-multipart (1.0.4)
|
35
|
+
multipart-post (~> 2)
|
35
36
|
faraday-net_http (1.0.1)
|
36
37
|
faraday-net_http_persistent (1.2.0)
|
37
38
|
faraday-patron (1.0.0)
|
@@ -39,79 +40,96 @@ GEM
|
|
39
40
|
faraday-retry (1.0.3)
|
40
41
|
faraday_middleware (1.2.0)
|
41
42
|
faraday (~> 1.0)
|
42
|
-
|
43
|
+
ffi (1.16.3)
|
44
|
+
gli (2.21.1)
|
43
45
|
hashie (5.0.0)
|
44
|
-
i18n (1.
|
46
|
+
i18n (1.14.1)
|
45
47
|
concurrent-ruby (~> 1.0)
|
46
|
-
json (2.
|
47
|
-
|
48
|
-
|
48
|
+
json (2.7.1)
|
49
|
+
language_server-protocol (3.17.0.3)
|
50
|
+
moneta (1.6.0)
|
51
|
+
mono_logger (1.1.2)
|
49
52
|
multi_json (1.15.0)
|
50
|
-
multipart-post (2.
|
51
|
-
mustermann (
|
53
|
+
multipart-post (2.3.0)
|
54
|
+
mustermann (3.0.0)
|
52
55
|
ruby2_keywords (~> 0.0.1)
|
53
|
-
nio4r (2.
|
54
|
-
parallel (1.
|
55
|
-
parser (3.
|
56
|
+
nio4r (2.7.0)
|
57
|
+
parallel (1.24.0)
|
58
|
+
parser (3.2.2.4)
|
56
59
|
ast (~> 2.4.1)
|
57
|
-
|
58
|
-
|
60
|
+
racc
|
61
|
+
public_suffix (5.0.4)
|
62
|
+
puma (5.6.7)
|
59
63
|
nio4r (~> 2.0)
|
60
|
-
|
61
|
-
rack
|
62
|
-
|
64
|
+
racc (1.7.3)
|
65
|
+
rack (2.2.8)
|
66
|
+
rack-protection (3.1.0)
|
67
|
+
rack (~> 2.2, >= 2.2.4)
|
63
68
|
rainbow (3.1.1)
|
64
|
-
rake (13.0
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
69
|
+
rake (13.1.0)
|
70
|
+
rbnacl (7.1.1)
|
71
|
+
ffi
|
72
|
+
redis (5.0.8)
|
73
|
+
redis-client (>= 0.17.0)
|
74
|
+
redis-client (0.19.0)
|
75
|
+
connection_pool
|
76
|
+
redis-namespace (1.11.0)
|
77
|
+
redis (>= 4)
|
78
|
+
regexp_parser (2.8.3)
|
79
|
+
resque (2.6.0)
|
70
80
|
mono_logger (~> 1.0)
|
71
81
|
multi_json (~> 1.0)
|
72
82
|
redis-namespace (~> 1.6)
|
73
83
|
sinatra (>= 0.9.2)
|
74
|
-
rexml (3.2.
|
75
|
-
rspec (3.
|
76
|
-
rspec-core (~> 3.
|
77
|
-
rspec-expectations (~> 3.
|
78
|
-
rspec-mocks (~> 3.
|
79
|
-
rspec-core (3.
|
80
|
-
rspec-support (~> 3.
|
81
|
-
rspec-expectations (3.
|
84
|
+
rexml (3.2.6)
|
85
|
+
rspec (3.12.0)
|
86
|
+
rspec-core (~> 3.12.0)
|
87
|
+
rspec-expectations (~> 3.12.0)
|
88
|
+
rspec-mocks (~> 3.12.0)
|
89
|
+
rspec-core (3.12.2)
|
90
|
+
rspec-support (~> 3.12.0)
|
91
|
+
rspec-expectations (3.12.3)
|
82
92
|
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
-
rspec-support (~> 3.
|
84
|
-
rspec-mocks (3.
|
93
|
+
rspec-support (~> 3.12.0)
|
94
|
+
rspec-mocks (3.12.6)
|
85
95
|
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
-
rspec-support (~> 3.
|
87
|
-
rspec-support (3.
|
88
|
-
rubocop (1.
|
96
|
+
rspec-support (~> 3.12.0)
|
97
|
+
rspec-support (3.12.1)
|
98
|
+
rubocop (1.59.0)
|
99
|
+
json (~> 2.3)
|
100
|
+
language_server-protocol (>= 3.17.0)
|
89
101
|
parallel (~> 1.10)
|
90
|
-
parser (>= 3.
|
102
|
+
parser (>= 3.2.2.4)
|
91
103
|
rainbow (>= 2.2.2, < 4.0)
|
92
104
|
regexp_parser (>= 1.8, < 3.0)
|
93
105
|
rexml (>= 3.2.5, < 4.0)
|
94
|
-
rubocop-ast (>= 1.
|
106
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
95
107
|
ruby-progressbar (~> 1.7)
|
96
|
-
unicode-display_width (>=
|
97
|
-
rubocop-ast (1.
|
98
|
-
parser (>= 3.
|
108
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
109
|
+
rubocop-ast (1.30.0)
|
110
|
+
parser (>= 3.2.1.0)
|
111
|
+
rubocop-capybara (2.19.0)
|
112
|
+
rubocop (~> 1.41)
|
113
|
+
rubocop-factory_bot (2.24.0)
|
114
|
+
rubocop (~> 1.33)
|
99
115
|
rubocop-rake (0.6.0)
|
100
116
|
rubocop (~> 1.0)
|
101
|
-
rubocop-rspec (2.
|
102
|
-
rubocop (~> 1.
|
103
|
-
|
117
|
+
rubocop-rspec (2.25.0)
|
118
|
+
rubocop (~> 1.40)
|
119
|
+
rubocop-capybara (~> 2.17)
|
120
|
+
rubocop-factory_bot (~> 2.22)
|
121
|
+
ruby-progressbar (1.13.0)
|
104
122
|
ruby2_keywords (0.0.5)
|
105
|
-
simplecov (0.
|
123
|
+
simplecov (0.22.0)
|
106
124
|
docile (~> 1.1)
|
107
125
|
simplecov-html (~> 0.11)
|
108
126
|
simplecov_json_formatter (~> 0.1)
|
109
127
|
simplecov-html (0.12.3)
|
110
128
|
simplecov_json_formatter (0.1.4)
|
111
|
-
sinatra (
|
112
|
-
mustermann (~>
|
113
|
-
rack (~> 2.2)
|
114
|
-
rack-protection (=
|
129
|
+
sinatra (3.1.0)
|
130
|
+
mustermann (~> 3.0)
|
131
|
+
rack (~> 2.2, >= 2.2.4)
|
132
|
+
rack-protection (= 3.1.0)
|
115
133
|
tilt (~> 2.0)
|
116
134
|
slack-ruby-client (1.0.0)
|
117
135
|
faraday (>= 1.0)
|
@@ -119,22 +137,21 @@ GEM
|
|
119
137
|
gli
|
120
138
|
hashie
|
121
139
|
websocket-driver
|
122
|
-
tilt (2.0
|
123
|
-
unicode-display_width (2.
|
124
|
-
waylon-core (0.
|
140
|
+
tilt (2.3.0)
|
141
|
+
unicode-display_width (2.5.0)
|
142
|
+
waylon-core (0.2.6)
|
125
143
|
addressable (~> 2.8)
|
126
144
|
faraday (~> 1.8)
|
127
145
|
i18n (~> 1.8)
|
128
146
|
json (~> 2.6)
|
129
147
|
moneta (~> 1.4)
|
130
148
|
puma (~> 5.5)
|
149
|
+
rbnacl (~> 7.1)
|
131
150
|
resque (~> 2.2)
|
132
|
-
|
133
|
-
websocket-driver (0.7.5)
|
151
|
+
websocket-driver (0.7.6)
|
134
152
|
websocket-extensions (>= 0.1.0)
|
135
153
|
websocket-extensions (0.1.5)
|
136
|
-
yard (0.9.
|
137
|
-
webrick (~> 1.7.0)
|
154
|
+
yard (0.9.34)
|
138
155
|
|
139
156
|
PLATFORMS
|
140
157
|
arm64-darwin-21
|
data/lib/waylon/slack/channel.rb
CHANGED
@@ -10,7 +10,7 @@ module Waylon
|
|
10
10
|
# @raise [Slack::Web::Api::Errors::ChannelNotFound] When the channel doesn't exist
|
11
11
|
# @return [Channel]
|
12
12
|
def self.from_name(name)
|
13
|
-
name = name.start_with?("#")
|
13
|
+
name = "##{name}" unless name.start_with?("#")
|
14
14
|
raw = sense.client.conversations_info(channel: name)
|
15
15
|
new(raw["channel"]["id"], data: raw["channel"])
|
16
16
|
end
|
data/lib/waylon/slack/version.rb
CHANGED
data/lib/waylon/slack.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
require "waylon/core"
|
4
4
|
require "slack-ruby-client"
|
5
5
|
|
6
|
-
|
6
|
+
Slack.configure do |conf|
|
7
7
|
conf.token = ENV.fetch("SLACK_OAUTH_TOKEN", nil)
|
8
8
|
conf.logger = Waylon::Logger.logger
|
9
9
|
end
|
10
10
|
|
11
|
-
|
11
|
+
Slack::Web::Client.configure do |conf|
|
12
12
|
conf.user_agent = "Waylon/#{Waylon::Core::VERSION}"
|
13
13
|
conf.logger = Waylon::Logger.logger
|
14
14
|
end
|
data/scripts/release.sh
CHANGED
data/scripts/test.sh
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waylon-slack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gnagy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-ruby-client
|