Module: Dpl::Github
- Extended by:
- Github
- Includes:
- Transliterate
- Included in:
- Github, Providers::Releases
- Defined in:
- lib/dpl/helper/github.rb
Constant Summary
Constants included from Transliterate
Instance Method Summary collapse
Methods included from Transliterate
Instance Method Details
#normalize_filename(str) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/dpl/helper/github.rb', line 13 def normalize_filename(str) str = File.basename(str) str = str.split(' ').first str = transliterate(str) str.gsub(/[^\w@+\-_]/, '.') end |