lib/semmy/tasks.rb in semmy-0.2.1 vs lib/semmy/tasks.rb in semmy-0.3.0
- old
+ new
@@ -3,10 +3,11 @@
require 'semmy/tasks/base'
require 'semmy/tasks/branches'
require 'semmy/tasks/changelog_sections'
require 'semmy/tasks/commit'
require 'semmy/tasks/docs'
+require 'semmy/tasks/lint'
require 'semmy/tasks/versioning'
module Semmy
module Tasks
include Rake::DSL
@@ -15,10 +16,11 @@
def install
config = Configuration.new
yield config if block_given?
namespace 'semmy' do
+ Lint.new(config)
Versioning.new(config)
Docs.new(config)
ChangelogSections.new(config)
Commit.new(config)
Branches.new(config)
@@ -37,10 +39,10 @@
'semmy:changelog:close_section',
'semmy:commit:prepare'
]
desc 'Prepare release'
- task 'release:prepare' do
+ task 'release:prepare' => 'semmy:lint' do
if Scm.on_master?
Rake.application['release:prepare:master'].invoke
elsif Scm.on_stable?(config.stable_branch_name)
Rake.application['release:prepare:stable'].invoke
end