Sha256: 3c7e7810a48a54a0353df74c80e51e0ba42f870d1857fa54ace04f178814f3fd

Contents?: true

Size: 1.76 KB

Versions: 64

Compression:

Stored size: 1.76 KB

Contents

require 'bundler/gem_tasks'
require 'bundler/setup'

begin
  require 'rdoc/task'
rescue LoadError
  require 'rdoc/rdoc'
  require 'rake/rdoctask'
  RDoc::Task = Rake::RDocTask
end

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Metasploit::Credential'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)

begin
 load 'rails/tasks/engine.rake'
rescue LoadError
  puts "railties not in bundle, so can't load engine tasks."
  print_without = true
end

Bundler::GemHelper.install_tasks

#
# load rake files like a normal rails app
# @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
#

pathname = Pathname.new(__FILE__)
root = pathname.parent
rakefile_glob = root.join('lib', 'tasks', '**', '*.rake').to_path

Dir.glob(rakefile_glob) do |rakefile|
  load rakefile
end

begin
  require 'rspec/core'
rescue LoadError
  puts "rspec not in bundle, so can't set up spec tasks.  " \
       "To run specs ensure to install the development and test groups."
  print_without = true
else
  require 'rspec/core/rake_task'

  # Depend on app:db:test:prepare so that test database is recreated just like in a full rails app
  # @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
  RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')

  task :default => :spec
end

if print_without
  puts "Bundle currently installed '--without #{Bundler.settings.without.join(' ')}'."
  puts "To clear the without option do `bundle install --without ''` (the --without flag with an empty string) or " \
       "`rm -rf .bundle` to remove the .bundle/config manually and then `bundle install`"
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 Rakefile
metasploit-credential-6.0.10 Rakefile
metasploit-credential-6.0.9 Rakefile
metasploit-credential-6.0.8 Rakefile
metasploit-credential-6.0.7 Rakefile
metasploit-credential-6.0.6 Rakefile
metasploit-credential-6.0.5 Rakefile
metasploit-credential-6.0.4 Rakefile
metasploit-credential-6.0.3 Rakefile
metasploit-credential-6.0.2 Rakefile
metasploit-credential-6.0.1 Rakefile
metasploit-credential-6.0.0 Rakefile
metasploit-credential-5.0.9 Rakefile
metasploit-credential-5.0.8 Rakefile
metasploit-credential-5.0.7 Rakefile
metasploit-credential-5.0.6 Rakefile
metasploit-credential-5.0.5 Rakefile
metasploit-credential-5.0.4 Rakefile
metasploit-credential-5.0.3 Rakefile
metasploit-credential-5.0.2 Rakefile