Sha256: 76db17538275fc31ddcc898d53214ab852f8f217375aa2c1fcabf78101236887
Contents?: true
Size: 1.42 KB
Versions: 13
Compression:
Stored size: 1.42 KB
Contents
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' Bundler::GemHelper.install_tasks git_tagger = Gem::Specification.find_by_name "git_tagger" load "#{git_tagger.gem_dir}/lib/tasks/deploy.rake" require "rspec/core" require "rspec/core/rake_task" desc "Run all specs in spec directory (excluding plugin specs)" RSpec::Core::RakeTask.new(:spec) desc "Run all JS specs" task :js_spec do Rake::Task["app:spec:javascript"].invoke end require "jshintrb/jshinttask" Jshintrb::JshintTask.new :jshint do |t| t.pattern = %w( spec/dummy/spec/javascripts/**/*.js app/assets/javascripts/think_feel_do_engine/**/draw_graphs.js app/assets/javascripts/think_feel_do_engine/feel/create_emotional_ratings.js ) t.options = :defaults t.globals = ["$".to_sym, :spyOn, :afterEach, :beforeEach, :describe, :expect, :it, :jasmine, :sc, :Graph, :appendDateRange, :columnChart, :d3, :moment] end require "rubocop/rake_task" RuboCop::RakeTask.new desc "Run Brakeman" task :brakeman do dir = File.dirname(__FILE__) puts `#{ File.join(dir, "bin", "brakeman") } #{ File.join(dir, ".") }` end task :default do Rake::Task["brakeman"].invoke Rake::Task["jshint"].invoke Rake::Task["rubocop"].invoke Rake::Task["js_spec"].invoke Rake::Task["spec"].invoke end
Version data entries
13 entries across 13 versions & 1 rubygems