lib/picky/extensions/object.rb in picky-4.9.0 vs lib/picky/extensions/object.rb in picky-4.10.0
- old
+ new
@@ -5,20 +5,20 @@
#
def timed_exclaim text
exclaim "#{Time.now.strftime("%H:%M:%S")}: #{text}"
end
- # Just puts the given text.
+ # Just outputs the given text to the logger.
#
def exclaim text
Picky.logger.info text
Picky.logger.flush
end
# Puts a text that informs the user of a missing gem.
#
def warn_gem_missing gem_name, message
- warn "#{gem_name} gem missing!\nTo use #{message}, you need to:\n 1. Add the following line to Gemfile:\n gem '#{gem_name}'\n or\n require '#{gem_name}'\n for example at the top of your app.rb file.\n 2. Then, run:\n bundle update\n"
+ Picky.logger.warn "#{gem_name} gem missing!\nTo use #{message}, you need to:\n 1. Add the following line to Gemfile:\n gem '#{gem_name}'\n or\n require '#{gem_name}'\n for example at the top of your app.rb file.\n 2. Then, run:\n bundle update\n"
end
# Indents each line by <tt>amount=2</tt> spaces.
#
def indented_to_s amount = 2
\ No newline at end of file