Skip to content

Commit

Permalink
chore: remove esse-redis_storage dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Aug 22, 2024
1 parent 886efca commit 9fa5210
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ PATH
esse-async_indexing (0.1.0.rc1)
background_job
esse (>= 0.3.4)
esse-redis_storage (>= 0.1.0)
multi_json

GEM
Expand Down Expand Up @@ -54,10 +53,6 @@ GEM
esse-active_record (0.3.5)
activerecord (>= 4.2, < 8)
esse (>= 0.3.0)
esse-redis_storage (0.1.2)
esse (>= 0.3.2)
multi_json (>= 1.0.0)
redis (>= 4.0.0)
esse-rspec (0.0.6)
esse (>= 0.2.4)
rspec (>= 3)
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,13 @@ $ bundle install

```ruby
Esse.configure do |config|
config.redis = ConnectionPool.new(size: 10, timeout: 5) do
Redis.new(url: ENV.fetch('REDIS_URL', 'redis://0.0.0.0:6379'))
end

# Setup Sidekiq
require 'sidekiq'
config.async_indexing.sidekiq do |sidekiq|
sidekiq.namespace = "sidekiq"
sidekiq.redis = ConnectionPool.new(size: 10, timeout: 5) do
Redis.new(url: ENV.fetch('REDIS_URL', 'redis://0.0.0.0:6379'))
end
# sidekiq.namespace = "sidekiq" # Sidekiq recommends using redis db number instead of namespace, but you can use it if you want
end

# Faktory
Expand Down
1 change: 0 additions & 1 deletion esse-async_indexing.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Gem::Specification.new do |spec|

spec.add_dependency "esse", ">= 0.3.4"
spec.add_dependency "multi_json", ">= 0.0.0"
spec.add_dependency "esse-redis_storage", ">= 0.1.0"
spec.add_dependency "background_job", ">= 0.0.0"
spec.add_development_dependency "pry"
spec.add_development_dependency "rspec"
Expand Down
1 change: 0 additions & 1 deletion lib/esse/async_indexing.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "esse"
require "esse-redis_storage"
require "forwardable"
require "securerandom"
require "time"
Expand Down

0 comments on commit 9fa5210

Please sign in to comment.