mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Unforce memcache from AS
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
31e1445a81
commit
57144388f0
3
Gemfile
3
Gemfile
@@ -21,6 +21,9 @@ elsif RUBY_ENGINE == "jruby"
|
|||||||
gem "jruby-openssl"
|
gem "jruby-openssl"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# AS
|
||||||
|
gem "memcache-client", ">= 1.7.5"
|
||||||
|
|
||||||
# AR
|
# AR
|
||||||
if mri || RUBY_ENGINE == "rbx"
|
if mri || RUBY_ENGINE == "rbx"
|
||||||
gem "sqlite3-ruby", "= 1.3.0.beta.2", :require => 'sqlite3'
|
gem "sqlite3-ruby", "= 1.3.0.beta.2", :require => 'sqlite3'
|
||||||
|
|||||||
@@ -18,6 +18,4 @@ Gem::Specification.new do |s|
|
|||||||
s.require_path = 'lib'
|
s.require_path = 'lib'
|
||||||
|
|
||||||
s.has_rdoc = true
|
s.has_rdoc = true
|
||||||
|
|
||||||
s.add_dependency('memcache-client', '>= 1.7.5')
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
require 'memcache'
|
begin
|
||||||
|
require 'memcache'
|
||||||
|
rescue LoadError => e
|
||||||
|
$stderr.puts "You don't have memcache installed in your application. Please add it to your Gemfile and run bundle install"
|
||||||
|
raise e
|
||||||
|
end
|
||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
|
|
||||||
module ActiveSupport
|
module ActiveSupport
|
||||||
|
|||||||
Reference in New Issue
Block a user