Sha256: df8a221b8682b912252c3f14441dc3262f0d05f04acaf0f1f32b7d79bd115b5c

Contents?: true

Size: 454 Bytes

Versions: 10

Compression:

Stored size: 454 Bytes

Contents

require 'dpl/helper/transliterate'

# I18n.load_path << File.expand_path('config/transliterate.yml')
# I18n.eager_load!
# I18n.config.available_locales_set << :en # seems really wrong, but ¯\_(ツ)_/¯

module Dpl
  module Github
    include Transliterate

    def normalize_filename(str)
      str = File.basename(str)
      str = str.split(' ').first
      str = transliterate(str)
      str.gsub(/[^\w@+\-_]/, '.')
    end

    extend self
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dpl-2.0.3.beta.4 lib/dpl/helper/github.rb
dpl-2.0.3.beta.3 lib/dpl/helper/github.rb
dpl-2.0.3.beta.2 lib/dpl/helper/github.rb
dpl-2.0.3.beta.1 lib/dpl/helper/github.rb
dpl-2.0.2.beta.1 lib/dpl/helper/github.rb
dpl-2.0.0.beta.3 lib/dpl/helper/github.rb
dpl-2.0.0.beta.2 lib/dpl/helper/github.rb
dpl-2.0.0.alpha.14 lib/dpl/helper/github.rb
dpl-2.0.0.alpha.13 lib/dpl/helper/github.rb
dpl-2.0.0.alpha.12 lib/dpl/helper/github.rb