Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disable Jamie Rake tasks when gem is not present.

  • Loading branch information...
commit a307813d18631105cb47f592378ee07ae791a868 1 parent 787bfaa
@fnichol fnichol authored
Showing with 7 additions and 2 deletions.
  1. +1 −0  .gitignore
  2. +6 −2 Rakefile
View
1  .gitignore
@@ -1,4 +1,5 @@
Gemfile.lock
Berksfile.lock
.vagrant
+.bundle/
tmp/
View
8 Rakefile
@@ -1,12 +1,16 @@
#!/usr/bin/env rake
require 'foodcritic'
-require 'jamie/rake_task'
FoodCritic::Rake::LintTask.new do |t|
t.options = { :fail_tags => ['any'] }
end
-Jamie::Rake::Tasks.new
+begin
+ require 'jamie/rake_task'
+ Jamie::Rake::Tasks.new
+rescue LoadError
+ puts ">>>>> Jamie gem not loaded, omitting tasks" unless ENV['CI']
+end
task :default => [:foodcritic]
Please sign in to comment.
Something went wrong with that request. Please try again.