Sha256: a6b454206af66fd1203ea1ff008f01cd85d02afcc0e76f6a3cbfb26a9440831d
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
# frozen_string_literal: true module JekyllPush # # module Utils # # 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll_push-0.1.0 | lib/jekyll_push/utils.rb |