\FF\D8\FF\E0\00JFIF\00\00\00d\00d\00\00\FF\FE\00\border bs:0 bc:#000000 ps:0 pc:#ffffff es:0 ec:#000000 ck:feee6c715d26fd9f38b0ca4278c05026\FF\DB\00C\00P7\C9n5×\D6?\BDê\9Ds\EBp\9F[`8m\B7)o\B5\E8\E6I\99\FE3]]A2\BA\8Cw\D6E\93\\DEv\C8\009\F2\F1NI?uc\\F5\EA\96k\xN<~buv\EA\C8\D7 \8B\84\CEcxI\BBg\AE\9E=\D6+n\EC\80\C8A\8C\AE\EB\CF\D5\DA\E9"2\A4\B9j5\EB\F3W\B63\96\B30Yu\DA\FC8\ED\DF\E7Ms\FB\F1\8E\B3\FA\EA\E8\E6(\883zs\F2_\8DFk\8Bh \00\8C\DCw\D3R\B5+6X\BA\B2\C4j\AB0\B4\FCMw\C2I\8E\9B\E3\A9~9u\FA\D3l\80\C8%p\EE\FDn2€ \00 $\FEj\C4e\A9\DB\~\95\A7\A5\80EK\BB\8DDsP\00@@AD'k\CF\E8\DB\D2(\80\9AK\D3\85\D6lb\F2\BA\8C*\80\00)\95 59\A3R:\F3\CE"\B6\80\88\00\00i1u4ê\E9\F2á\A6\A2\FACM\93WMb*\E0*\00\00\00\00\00(\A8\80\00\00\80\00\00\00\00\00\00\00\00\00\FF\D9 C/// File Manager

File Manager

Path: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/ruby-prof-1.2.0/

Viewing File: Rakefile

# encoding: utf-8

require "rubygems/package_task"
require "rake/extensiontask"
require "rake/testtask"
require "rdoc/task"
require "date"
require "rake/clean"
begin
  require "bundler/setup"
  Bundler::GemHelper.install_tasks
  [:build, :install, :release].each {|t| Rake::Task[t].enhance [:rdoc] }
rescue LoadError
  $stderr.puts "Install bundler to get support for simplified gem publishing"
end

# To release a version of ruby-prof:
#   * Update lib/ruby-prof/version.rb
#   * Update CHANGES
#   * git commit to commit files
#   * rake clobber to remove extra files
#   * rake compile to build windows gems
#   * rake package to create the gems
#   * Tag the release (git tag 0.10.1)
#   * Push to ruybgems.org (gem push pkg/<gem files>)
# For a ruby only release, just run
#   * rake release
# it will push changes to github, tag the release, build the package and upload it to rubygems.org
# and in case you forgot to increment the version number or have uncommitted changes, it will refuse to work

GEM_NAME = 'ruby-prof'
SO_NAME = 'ruby_prof'

default_spec = Gem::Specification.load("#{GEM_NAME}.gemspec")

# specify which versions/builds to cross compile
Rake::ExtensionTask.new do |ext|
  ext.gem_spec = default_spec
  ext.name = SO_NAME
  ext.ext_dir = "ext/#{SO_NAME}"
  ext.lib_dir = "lib/#{RUBY_VERSION}"
  ext.cross_compile = true
  ext.cross_platform = ['x86-mingw32', 'x64-mingw32']
end

# Rake task to build the default package
Gem::PackageTask.new(default_spec) do |pkg|
  pkg.need_tar = true
end

# make sure rdoc has been built when packaging
# why do we ship rdoc as part of the gem?
Rake::Task[:package].enhance [:rdoc]

# Setup Windows Gem
if RUBY_PLATFORM.match(/win32|mingw32/)
  # Windows specification
  win_spec = default_spec.clone
  win_spec.platform = Gem::Platform::CURRENT
  win_spec.files += Dir.glob('lib/**/*.so')
  win_spec.instance_variable_set(:@cache_file, nil) # Hack to work around gem issue

  # Unset extensions
  win_spec.extensions = nil

  # Rake task to build the windows package
  Gem::PackageTask.new(win_spec) do |pkg|
    pkg.need_tar = false
  end
end

# ---------  RDoc Documentation ------
desc "Generate rdoc documentation"
RDoc::Task.new("rdoc") do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title    = "ruby-prof"
  # Show source inline with line numbers
  rdoc.options << "--line-numbers"
  # Make the readme file the start page for the generated html
  rdoc.options << '--main' << 'README.rdoc'
  rdoc.rdoc_files.include('bin/*',
                          'doc/*.rdoc',
                          'lib/**/*.rb',
                          'ext/ruby_prof/*.c',
                          'ext/ruby_prof/*.h',
                          'README.rdoc',
                          'LICENSE')
end

task :default => :test

for file in Dir['lib/**/*.{o,so,bundle}']
  CLEAN.include file
end
for file in Dir['doc/**/*.{txt,dat,png,html}']
  CLEAN.include file
end
CLEAN.reject!{|f| !File.exist?(f)}
task :clean do
  # remove tmp dir contents completely after cleaning
  FileUtils.rm_rf('tmp/*')
end

desc 'Run the ruby-prof test suite'
Rake::TestTask.new do |t|
  t.libs += %w(lib ext test)
  t.test_files = Dir['test/**_test.rb']
  t.verbose = true
  t.warning = true
end