diff --git a/Gemfile b/Gemfile index 1c12bb2cc..b566d522f 100644 --- a/Gemfile +++ b/Gemfile @@ -25,7 +25,6 @@ gem 'twitter' gem 'aws-sdk', '~> 2' gem 'responders' gem 'dtext_rb', git: "https://github.com/evazion/dtext_rb.git", require: "dtext" -gem 'cityhash' gem 'memoist' gem 'daemons' gem 'oauth2' diff --git a/Gemfile.lock b/Gemfile.lock index 20c83f69b..6199dee5b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -122,7 +122,6 @@ GEM xpath (~> 3.2) childprocess (3.0.0) chronic (0.10.2) - cityhash (0.9.0) coderay (1.1.2) concurrent-ruby (1.1.5) connection_pool (2.2.2) @@ -426,7 +425,6 @@ DEPENDENCIES capistrano-rbenv capistrano3-unicorn capybara - cityhash daemons delayed_job delayed_job_active_record diff --git a/app/logical/cache.rb b/app/logical/cache.rb index 8641c6c8a..c447ccd88 100644 --- a/app/logical/cache.rb +++ b/app/logical/cache.rb @@ -37,6 +37,6 @@ class Cache end def self.hash(string) - CityHash.hash64(string).to_s(36) + Digest::SHA256.base64digest(string) end end