Skip to content

Commit

Permalink
Revert to removing last_comment and deprecate it
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Mar 11, 2016
1 parent 2494225 commit 3948349
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/rake/task_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ module TaskManager
# Track the last comment made in the Rakefile.
attr_accessor :last_description

# Remove Rake 12
def last_comment # :nodoc:
warn "[DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead."
@last_description
end

# Remove Rake 12
def last_comment=(comment) # :nodoc:
warn "[DEPRECATION] `last_comment=` is deprecated. Please use `last_description=` instead."
@last_description = comment
@last_description # ignore warning
end

def initialize # :nodoc:
super
@tasks = Hash.new
Expand Down

0 comments on commit 3948349

Please sign in to comment.