diff --git a/Gemfile.lock b/Gemfile.lock index 80f6961..96f1128 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,11 +2,11 @@ PATH remote: . specs: gold_miner (0.1.0) - async + async (~> 2.6) dotenv (~> 2.8.0) - dry-monads (~> 1.3.0) + dry-monads (~> 1.6) ruby-openai (~> 3.0.0) - slack-ruby-client (~> 1.1.0) + slack-ruby-client (~> 2.x) zeitwerk (~> 2.6.6) GEM @@ -29,14 +29,13 @@ GEM diff-lcs (1.5.0) docile (1.4.0) dotenv (2.8.1) - dry-core (0.9.1) + dry-core (1.0.0) concurrent-ruby (~> 1.0) zeitwerk (~> 2.6) - dry-equalizer (0.3.0) - dry-monads (1.3.5) + dry-monads (1.6.0) concurrent-ruby (~> 1.0) - dry-core (~> 0.4, >= 0.4.4) - dry-equalizer + dry-core (~> 1.0, < 2) + zeitwerk (~> 2.6) faraday (2.7.2) faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) @@ -109,13 +108,12 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - slack-ruby-client (1.1.0) + slack-ruby-client (2.1.0) faraday (>= 2.0) faraday-mashify faraday-multipart gli hashie - websocket-driver standard (1.30.1) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) @@ -135,9 +133,6 @@ GEM addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) zeitwerk (2.6.8) PLATFORMS diff --git a/gold_miner.gemspec b/gold_miner.gemspec index b7a08bf..02bf900 100644 --- a/gold_miner.gemspec +++ b/gold_miner.gemspec @@ -31,11 +31,11 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "async" + spec.add_dependency "async", "~> 2.6" spec.add_dependency "dotenv", "~> 2.8.0" - spec.add_dependency "dry-monads", "~> 1.3.0" + spec.add_dependency "dry-monads", "~> 1.6" spec.add_dependency "ruby-openai", "~> 3.0.0" - spec.add_dependency "slack-ruby-client", "~> 1.1.0" + spec.add_dependency "slack-ruby-client", "~> 2.x" spec.add_dependency "zeitwerk", "~> 2.6.6" # For more information and examples about making a new gem, check out our diff --git a/spec/gold_miner/slack/client_spec.rb b/spec/gold_miner/slack/client_spec.rb index 7942d44..2e6f2ef 100644 --- a/spec/gold_miner/slack/client_spec.rb +++ b/spec/gold_miner/slack/client_spec.rb @@ -184,8 +184,7 @@ def stub_slack_auth_test_request(token:, status: 200, body: {"ok" => true}) headers = { "Accept" => "application/json; charset=utf-8", "Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3", - "Content-Length" => "0", - "User-Agent" => "Slack Ruby Client/1.1.0" + "Content-Length" => "0" } headers["Authorization"] = "Bearer #{token}" if token @@ -201,8 +200,7 @@ def stub_slack_message_search_request(query:, body:) headers: { "Accept" => "application/json; charset=utf-8", "Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3", - "Content-Type" => "application/x-www-form-urlencoded", - "User-Agent" => "Slack Ruby Client/1.1.0" + "Content-Type" => "application/x-www-form-urlencoded" } ) .to_return(status: 200, body: body.to_json, headers: {}) @@ -216,8 +214,7 @@ def stub_slack_users_info_request(token:, user_id:, body:) "Accept" => "application/json; charset=utf-8", "Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3", "Authorization" => "Bearer #{token}", - "Content-Type" => "application/x-www-form-urlencoded", - "User-Agent" => "Slack Ruby Client/1.1.0" + "Content-Type" => "application/x-www-form-urlencoded" } ) .to_return(status: 200, body: body.to_json, headers: {})