summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-07-09 08:45:46 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-07-09 08:45:46 -0700
commitc1e912caf966bc29b346c193f1b74e23e0f66781 (patch)
tree70ddb27b5d8f32766e89fe6b86375373daedf013 /Rakefile
parent8fabdd3fddbd222109976fddb0d38255a9490f1d (diff)
downloadffi-yajl-c1e912caf966bc29b346c193f1b74e23e0f66781.tar.gz
remaining autofixable cops
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 0cb0ed5..e6d8fdf 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,7 +5,7 @@ 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
@@ -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
@@ -165,7 +165,7 @@ 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']