lib/semmy/tasks.rb in semmy-1.0.2 vs lib/semmy/tasks.rb in semmy-1.1.0

- old
+ new

@@ -40,13 +40,13 @@ 'semmy:commit:prepare' ] desc 'Prepare release' task 'release:prepare' => 'semmy:lint' do - if Scm.on_master? + if Scm.on_master? || Scm.on_major_version_stable?(config.stable_branch_name) Rake.application['release:prepare:master'].invoke - elsif Scm.on_stable?(config.stable_branch_name) + elsif Scm.on_minor_version_stable?(config.stable_branch_name) Rake.application['release:prepare:stable'].invoke end end task 'release:after:master' => [ @@ -56,10 +56,10 @@ 'semmy:commit:bump' ] desc 'Prepare repository for development of next verion' task 'release:after' do - if Scm.on_master? + if Scm.on_master? || Scm.on_major_version_stable?(config.stable_branch_name) Rake.application['release:after:master'].invoke end end task 'release' do