Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uninitialized constant error when using Redis cache #375

Merged
merged 2 commits into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/gemstash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module Gemstash
autoload :LruReduxClient, "gemstash/cache"
autoload :NotAuthorizedError, "gemstash/authorization"
autoload :RackEnvRewriter, "gemstash/rack_env_rewriter"
autoload :RedisClient, "gemstash/cache"
autoload :Resource, "gemstash/storage"
autoload :SpecsBuilder, "gemstash/specs_builder"
autoload :Storage, "gemstash/storage"
Expand Down
4 changes: 2 additions & 2 deletions lib/gemstash/cli/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def ask_memcached_details

def ask_redis_details
say_current_config(:redis_servers, "Current Redis servers")
servers = @cli.ask "What is the comma-separated list of Redis servers? [localhost:6379]"
servers = "localhost:6379" if servers.empty?
servers = @cli.ask "What is the comma-separated list of Redis servers? [redis://localhost:6379]"
servers = "redis://localhost:6379" if servers.empty?
@config[:redis_servers] = servers
end

Expand Down