Sha256: 072be3cc483a15dafe4a701b797995767ff95f817a62c54afa8af0aaa740be20

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "chuyeow-memcached"
    gem.summary = %Q{Fork of the interface to the libmemcached C client - adds experimental support for items bigger than the 1MB memcached limit.}
    gem.description = %Q{Fork of the interface to the libmemcached C client - adds experimental support for items bigger than the 1MB memcached limit.}
    gem.email = "chuyeow@gmail.com"
    gem.homepage = "http://github.com/chuyeow/memcached"
    gem.authors = ["Cheah Chu Yeow"]
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

task :exceptions do
  $LOAD_PATH << "lib"
  require 'memcached'
  Memcached.constants.sort.each do |const_name|
    const = Memcached.send(:const_get, const_name)
    next if const == Memcached::Success or const == Memcached::Stored
    if const.is_a? Class and const < Memcached::Error
      puts "* Memcached::#{const_name}"
    end
  end
end

task :valgrind do
  exec("valgrind  --tool=memcheck --leak-check=yes --show-reachable=no --num-callers=15 --track-fds=yes ruby #{File.dirname(__FILE__)}/test/profile/valgrind.rb")
end

task :profile do
 exec("ruby #{File.dirname(__FILE__)}/test/profile/profile.rb")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chuyeow-memcached-0.17.7 Rakefile
chuyeow-memcached-0.17.4 Rakefile