lib/jekyll_push/utils.rb in jekyll_push-0.1.0 vs lib/jekyll_push/utils.rb in jekyll_push-0.1.1
- old
+ new
@@ -3,10 +3,10 @@
module JekyllPush
#
#
module Utils
#
- #
+ # @return [String]
def self.slugify(str)
safe = str.to_s.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
warn Rainbow("Warning: '#{str}' is not an acceptable branch name. Using '#{safe}' instead.").orange unless safe.eql?(str)
safe
end