slack-ruby-client 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/helpers/files.rb +1 -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: a618c19aef053b39b70616b4c2965e367b7c7a9607091501626ca0e8c1112d49
|
4
|
+
data.tar.gz: 0f19c3999ef2b3129c654baa30517c0863fe8b719e14f922d8106a529395e2e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfb4b2f108f3c66a7f8738cccb2a3831f6b8443fec90f14163caa9875febb581eac5771d4dfdde784f3cfc4ae7d8857de873b6b9603136074bf1eb1a5837dbc8
|
7
|
+
data.tar.gz: 3bf0ad65a3fbe56ac30fc304671b17ef982e1b874457ce4721f81c1767c8698e53373a9e38d3a9cdb11a9b600287109dc15f420607bdd38e194b507f416b9845
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 2.5.2 (2025/02/19)
|
2
|
+
|
3
|
+
* [#548](https://github.com/slack-ruby/slack-ruby-client/pull/548): Fix: `files_upload_v2` with `#channel` - [@dblock](https://github.com/dblock).
|
4
|
+
|
1
5
|
### 2.5.1 (2025/02/11)
|
2
6
|
|
3
7
|
* [#542](https://github.com/slack-ruby/slack-ruby-client/pull/542): Add support for ruby 3.4 - [@dblock](https://github.com/dblock).
|
data/README.md
CHANGED
@@ -81,7 +81,7 @@ A Ruby client for the Slack [Web](https://api.slack.com/web), [RealTime Messagin
|
|
81
81
|
|
82
82
|
## Stable Release
|
83
83
|
|
84
|
-
You're reading the documentation for the **stable** release of slack-ruby-client, v2.5.
|
84
|
+
You're reading the documentation for the **stable** release of slack-ruby-client, v2.5.2. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
|
85
85
|
|
86
86
|
## Installation
|
87
87
|
|
@@ -177,7 +177,7 @@ This library provides a helper method `files_upload_v2` that wraps the three sep
|
|
177
177
|
client.files_upload_v2(
|
178
178
|
# required options
|
179
179
|
filename: 'results.pdf', # this is used for the file title, unless a :title option is provided
|
180
|
-
|
180
|
+
content: File.read('/users/me/results.pdf'), # the string contents of the file
|
181
181
|
|
182
182
|
# optional options
|
183
183
|
channels: ['C000000', 'C000001'], # channel IDs to share the file in (:channel_id, :channel, or :channels are all supported)
|
data/lib/slack/version.rb
CHANGED
@@ -46,7 +46,7 @@ module Slack
|
|
46
46
|
conversations_id(channel: channel)['channel']['id']
|
47
47
|
end.uniq.join(',')
|
48
48
|
elsif params[:channel]
|
49
|
-
complete_upload_request_params[:
|
49
|
+
complete_upload_request_params[:channel_id] = conversations_id(
|
50
50
|
channel: params[:channel]
|
51
51
|
)['channel']['id']
|
52
52
|
elsif params[:channel_id]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Doubrovkine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|