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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26da07098b43509aec00e5ce7e280ff83b055cae435c2f13b7e7528200356191
4
- data.tar.gz: 9982a63021be02cd1caf07d6ee44d4fc5f8be64c10b6bfbadae153ed4201db59
3
+ metadata.gz: a618c19aef053b39b70616b4c2965e367b7c7a9607091501626ca0e8c1112d49
4
+ data.tar.gz: 0f19c3999ef2b3129c654baa30517c0863fe8b719e14f922d8106a529395e2e5
5
5
  SHA512:
6
- metadata.gz: bf976826d6f95ed2da12a61c42fd1f18c73b8f8065dc4471723ae85c11a89b764cf0a2bd0f422c634a1206ac24e8d9c1fdb68b25a5eeb93fd0957ee1094bd470
7
- data.tar.gz: 9ac701bc529f369b2051d70afeedcbc05305740199fd03dd572749ff28d9df8d73c7e583e26fafc7c757b74d631c4bca3d3f73970e2571dc52c7fa925d4a1a3c
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.1. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
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
- contents: File.read('/users/me/results.pdf'), # the string contents of the file
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Slack
3
- VERSION = '2.5.1'
3
+ VERSION = '2.5.2'
4
4
  end
@@ -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[:channel] = conversations_id(
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.1
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 00:00:00.000000000 Z
11
+ date: 2025-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday