Sha256: 62f10924379189b1a711c2af0bc0ed18415cb2a4e4ce8dc02090542eee4b9b9c

Contents?: true

Size: 485 Bytes

Versions: 12

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

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

12 entries across 12 versions & 2 rubygems

Version Path
dpl-2.0.5.3 lib/dpl/helper/github.rb
dpl-2.0.5.3.beta.1 lib/dpl/helper/github.rb
dpl-2.0.5.2 lib/dpl/helper/github.rb
dpl-2.0.5.2.beta.1 lib/dpl/helper/github.rb
dpl-2.0.5.1 lib/dpl/helper/github.rb
dpl-2.0.5.beta.2.1 lib/dpl/helper/github.rb
dpl-2.0.5.beta.2 lib/dpl/helper/github.rb
dpl-2.0.5 lib/dpl/helper/github.rb
dpl-2.0.5.beta.1 lib/dpl/helper/github.rb
dpl-2.0.5.beta lib/dpl/helper/github.rb
travis_dpl_test-2.0.3.beta.4.ror.1 lib/dpl/helper/github.rb
travis_dpl_test-2.0.3.beta.4.ror lib/dpl/helper/github.rb