summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Rakefile b/Rakefile
index ae19344..e70a915 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,11 +1,11 @@
-$: << File.expand_path(File.join(File.dirname( __FILE__ ), "lib"))
+$LOAD_PATH << File.expand_path(File.join(File.dirname( __FILE__ ), "lib"))
require 'rspec/core/rake_task'
require 'rubygems/package_task'
require 'rake/extensiontask'
require 'ffi_yajl/version'
-Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path|
+Dir[File.expand_path("../*gemspec", __FILE__)].reverse_each do |gemspec_path|
gemspec = eval(IO.read(gemspec_path))
Gem::PackageTask.new(gemspec).define
end
@@ -14,7 +14,7 @@ desc "Build it and ship it"
task :ship => [:clean, :gem] do
sh("git tag #{FFI_Yajl::VERSION}")
sh("git push --tags")
- Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem|
+ Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse_each do |built_gem|
sh("gem push #{built_gem}")
end
end
@@ -123,7 +123,7 @@ if RUBY_VERSION.to_f >= 1.9
puts "rubocop gem is not installed"
end
else
- Rubocop::RakeTask.new(:rubocop) do |t|
+ RuboCop::RakeTask.new(:rubocop) do |t|
t.fail_on_error = false
end
end
@@ -138,7 +138,7 @@ if RUBY_VERSION.to_f >= 1.9
else
Reek::Rake::Task.new(:reek) do |t|
t.fail_on_error = false
-# t.config_files = '.reek.yml'
+ # t.config_files = '.reek.yml'
end
end
end
@@ -161,12 +161,11 @@ else
end
end
-
desc 'Run all style checks'
task :style => ['style:rubocop', 'style:reek']
desc 'Run style + spec tests by default on travis'
-task :travis => ['style', 'spec']
+task :travis => %w{style spec}
desc 'Run style, spec and test kichen on travis'
task :travis_all => ['style', 'spec', 'integration:cloud']