Rakefile in frontman-ssg-0.0.4 vs Rakefile in frontman-ssg-0.1.0
- old
+ new
@@ -2,10 +2,11 @@
require 'bundler/gem_tasks'
require 'frontman/version'
require 'rake'
require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
@@ -13,12 +14,14 @@
exit e.status_code
end
RSpec::Core::RakeTask.new(:spec)
-task default: :spec
+RuboCop::RakeTask.new(:rubocop)
+task default: [:spec, :rubocop]
+
namespace :frontman do
GEM_VERSION_FILE = File.join(Dir.pwd, 'lib/frontman/version.rb')
GIT_TAG_URL = 'https://github.com/algolia/frontman/releases/tag/'
def last_commit_date
@@ -89,6 +92,6 @@
class GemHelper
def version_tag
version.to_s
end
end
-end
\ No newline at end of file
+end