Skip to content

Commit

Permalink
infra: add gem net-http to silence warnings on rails test
Browse files Browse the repository at this point in the history
  • Loading branch information
ponelat committed Apr 27, 2023
1 parent 74a1356 commit 6df0684
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ end
gem "ruby-openai", "~> 3.7"
gem "dotenv-rails", "~> 2.8"
gem "stopwords", "~> 0.2"

# This silences warnings, I was getting running rails.
# See: starting https://github.com/ruby/net-imap/issues/16#issuecomment-803086765
# TODO: Update to Ruby 3.x as an alternative.
gem "net-http", "~> 0.3.2"
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ GEM
minitest (5.18.0)
msgpack (1.7.0)
multi_xml (0.6.0)
net-http (0.3.2)
uri
net-imap (0.3.4)
date
net-protocol
Expand Down Expand Up @@ -162,6 +164,7 @@ GEM
timeout (0.3.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (0.12.1)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand All @@ -174,6 +177,7 @@ DEPENDENCIES
bootsnap
debug
dotenv-rails (~> 2.8)
net-http (~> 0.3.2)
puma (~> 5.0)
rails (~> 7.0.4, >= 7.0.4.3)
ruby-openai (~> 3.7)
Expand Down
21 changes: 21 additions & 0 deletions nix/gemset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,17 @@
};
version = "0.6.0";
};
net-http = {
dependencies = ["uri"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0y55ib1v2b8prqfi9ij7hca60b1j94s2bzr6vskwi3i5735472wq";
type = "gem";
};
version = "0.3.2";
};
net-imap = {
dependencies = ["date" "net-protocol"];
groups = ["default"];
Expand Down Expand Up @@ -626,6 +637,16 @@
};
version = "2.0.6";
};
uri = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1vigw7nfszfqgikr6n574k9bfh0rvs74z8xq46rz2zsm8249l8cc";
type = "gem";
};
version = "0.12.1";
};
websocket-driver = {
dependencies = ["websocket-extensions"];
groups = ["default"];
Expand Down

0 comments on commit 6df0684

Please sign in to comment.