gems: remove cityhash gem.
This gem uses a native extension that requires a C++ compiler to build. Removing this gem removes the need to have a C++ toolchain to install Danbooru.
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -25,7 +25,6 @@ gem 'twitter'
|
|||||||
gem 'aws-sdk', '~> 2'
|
gem 'aws-sdk', '~> 2'
|
||||||
gem 'responders'
|
gem 'responders'
|
||||||
gem 'dtext_rb', git: "https://github.com/evazion/dtext_rb.git", require: "dtext"
|
gem 'dtext_rb', git: "https://github.com/evazion/dtext_rb.git", require: "dtext"
|
||||||
gem 'cityhash'
|
|
||||||
gem 'memoist'
|
gem 'memoist'
|
||||||
gem 'daemons'
|
gem 'daemons'
|
||||||
gem 'oauth2'
|
gem 'oauth2'
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ GEM
|
|||||||
xpath (~> 3.2)
|
xpath (~> 3.2)
|
||||||
childprocess (3.0.0)
|
childprocess (3.0.0)
|
||||||
chronic (0.10.2)
|
chronic (0.10.2)
|
||||||
cityhash (0.9.0)
|
|
||||||
coderay (1.1.2)
|
coderay (1.1.2)
|
||||||
concurrent-ruby (1.1.5)
|
concurrent-ruby (1.1.5)
|
||||||
connection_pool (2.2.2)
|
connection_pool (2.2.2)
|
||||||
@@ -426,7 +425,6 @@ DEPENDENCIES
|
|||||||
capistrano-rbenv
|
capistrano-rbenv
|
||||||
capistrano3-unicorn
|
capistrano3-unicorn
|
||||||
capybara
|
capybara
|
||||||
cityhash
|
|
||||||
daemons
|
daemons
|
||||||
delayed_job
|
delayed_job
|
||||||
delayed_job_active_record
|
delayed_job_active_record
|
||||||
|
|||||||
@@ -37,6 +37,6 @@ class Cache
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.hash(string)
|
def self.hash(string)
|
||||||
CityHash.hash64(string).to_s(36)
|
Digest::SHA256.base64digest(string)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user