Rakefile in freno-client-0.7.0 vs Rakefile in freno-client-0.8.0

- old
+ new

@@ -1,31 +1,13 @@ -$LOAD_PATH.push File.expand_path("../lib", __FILE__) +require "bundler/gem_tasks" require "rake/testtask" -require "freno/client/version" +require "rubocop/rake_task" -# gem install pkg/*.gem -# gem uninstall freno-client freno-throttler -desc "Build gem into the pkg directory" -task :build do - FileUtils.rm_rf("pkg") - Dir["*.gemspec"].each do |gemspec| - system "gem build #{gemspec}" - end - FileUtils.mkdir_p("pkg") - FileUtils.mv(Dir["*.gem"], "pkg") -end - -desc "Tags version, pushes to remote, and pushes gem" -task release: :build do - sh "git", "tag", "v#{Freno::Client::VERSION}" - sh "git push origin master" - sh "git push origin v#{Freno::Client::VERSION}" - sh "ls pkg/*.gem | xargs -n 1 gem push" -end - Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] end -task default: :test +RuboCop::RakeTask.new(:rubocop) + +task default: [:test, :rubocop]