slack_line 1.0 → 1.1
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 +4 -4
- data/.github/workflows/linters.yml +5 -4
- data/CHANGELOG.md +11 -0
- data/README.md +7 -5
- data/lib/slack_line/cli/slack_line_thread.rb +1 -1
- data/lib/slack_line/version.rb +1 -1
- data/slack_line.gemspec +5 -5
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63f2270ed13b9bf4d14585497109923c70b8e7ec8a34af3ebb46306afdfaf703
|
|
4
|
+
data.tar.gz: 677793b2b72ef6f1d58673b9c658151b3b22504e85cb34678d6e0973d23f00a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 939add34dd7ecd05b44828f53bfd20d62b4c0df9a4deb2b2b2097f736b6a3666173f098e81451416865c0ff66765320b2bff16c8558230eb445a54a3673e9be1
|
|
7
|
+
data.tar.gz: 9dc08564bfb998fe4abe612f546a4f9327924ea70e01a153d5daaa751baae3698296b14cb13bc7c50ff612e31f9f1f54dcf6086a74bd5579a17257307027f2d6
|
|
@@ -15,10 +15,11 @@ jobs:
|
|
|
15
15
|
|
|
16
16
|
- name: Cache gems
|
|
17
17
|
uses: actions/cache@v3
|
|
18
|
-
with:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
with:
|
|
19
|
+
path: vendor/bundle
|
|
20
|
+
key: ${{ runner.os }}-linters-${{ hashFiles('Gemfile.lock') }}
|
|
21
|
+
restore-keys:
|
|
22
|
+
${{ runner.os }}-linters-
|
|
22
23
|
|
|
23
24
|
- name: Install gems
|
|
24
25
|
run: bundle install --jobs 4 --retry 3
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Version 1.0
|
|
4
|
+
|
|
5
|
+
Initially published gem. Can send messages and threads, update messages, extend
|
|
6
|
+
threads, persist those things to disk and reload them. Convenience scripts that
|
|
7
|
+
can do each of those things directly (for simpler messages).
|
|
8
|
+
|
|
9
|
+
## Version 1.1
|
|
10
|
+
|
|
11
|
+
Fixed incorrect description/summary on gemspec.
|
data/README.md
CHANGED
|
@@ -124,11 +124,13 @@ BAR_SLACK.message("Message 3", to: "#bar-team-3").post
|
|
|
124
124
|
|
|
125
125
|
## Slack App Permissions
|
|
126
126
|
|
|
127
|
-
In order to post/update messages, the app behind your `SLACK_LINE_TOKEN` can use
|
|
127
|
+
In order to post/update messages, the app behind your `SLACK_LINE_TOKEN` can use
|
|
128
|
+
these permissions:
|
|
128
129
|
|
|
129
130
|
* `chat:write` - send messages at all.
|
|
130
|
-
* `chat:write.public` - send messages to public channels your app _isn't a member
|
|
131
|
-
need to invite them to the relevant channels to make them work).
|
|
131
|
+
* `chat:write.public` - send messages to public channels your app _isn't a member
|
|
132
|
+
of_ (so you don't need to invite them to the relevant channels to make them work).
|
|
132
133
|
* `im:write` - start direct messages with individuals.
|
|
133
|
-
* `users:read` and `usergroups:read` - look up users/groups for (a) messaging them
|
|
134
|
-
(b) supporting the `look_up_users` config option (for those more
|
|
134
|
+
* `users:read` and `usergroups:read` - look up users/groups for (a) messaging them
|
|
135
|
+
directly or (b) supporting the `look_up_users` config option (for those more
|
|
136
|
+
restrictive workspaces)
|
|
@@ -40,7 +40,7 @@ module SlackLine
|
|
|
40
40
|
|
|
41
41
|
attr_reader :stdout, :stderr
|
|
42
42
|
|
|
43
|
-
def option_parser(opts)
|
|
43
|
+
def option_parser(opts) # rubocop:disable Metrics/AbcSize
|
|
44
44
|
OptionParser.new do |parser|
|
|
45
45
|
parser.on("-t", "--slack-token TOKEN") { |t| opts[:slack_token] = t }
|
|
46
46
|
parser.on("-u", "--look-up-users") { opts[:look_up_users] = true }
|
data/lib/slack_line/version.rb
CHANGED
data/slack_line.gemspec
CHANGED
|
@@ -6,12 +6,12 @@ Gem::Specification.new do |spec|
|
|
|
6
6
|
spec.authors = ["Eric Mueller"]
|
|
7
7
|
spec.email = ["nevinera@gmail.com"]
|
|
8
8
|
|
|
9
|
-
spec.summary = "
|
|
9
|
+
spec.summary = "A gem to send and extend Slack threads and messages"
|
|
10
10
|
spec.description = <<~DESC
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
and
|
|
11
|
+
Sending messages with the Slack API is not that difficult, but I've had
|
|
12
|
+
to solve the same problems a lot of times at different companies. This
|
|
13
|
+
gem attempts to make those solutions irrelevant by providing a simple
|
|
14
|
+
interface and scripts to send and update messages, and build/extend threads.
|
|
15
15
|
DESC
|
|
16
16
|
spec.homepage = "https://github.com/nevinera/slack_line"
|
|
17
17
|
spec.license = "MIT"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slack_line
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.1'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Mueller
|
|
@@ -165,10 +165,10 @@ dependencies:
|
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
166
|
version: 3.1.0
|
|
167
167
|
description: |
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
and
|
|
168
|
+
Sending messages with the Slack API is not that difficult, but I've had
|
|
169
|
+
to solve the same problems a lot of times at different companies. This
|
|
170
|
+
gem attempts to make those solutions irrelevant by providing a simple
|
|
171
|
+
interface and scripts to send and update messages, and build/extend threads.
|
|
172
172
|
email:
|
|
173
173
|
- nevinera@gmail.com
|
|
174
174
|
executables:
|
|
@@ -186,6 +186,7 @@ files:
|
|
|
186
186
|
- ".rspec"
|
|
187
187
|
- ".rubocop.yml"
|
|
188
188
|
- ".standard.yml"
|
|
189
|
+
- CHANGELOG.md
|
|
189
190
|
- Gemfile
|
|
190
191
|
- README.md
|
|
191
192
|
- bin/slack_line_message
|
|
@@ -234,5 +235,5 @@ requirements: []
|
|
|
234
235
|
rubygems_version: 3.5.22
|
|
235
236
|
signing_key:
|
|
236
237
|
specification_version: 4
|
|
237
|
-
summary:
|
|
238
|
+
summary: A gem to send and extend Slack threads and messages
|
|
238
239
|
test_files: []
|