Sha256: 9b0f3ad84007c828830d3d8011195a67f52ca3fb059311604e3662a79d6d3b53
Contents?: true
Size: 472 Bytes
Versions: 366
Compression:
Stored size: 472 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require_relative "helpers" roles = [] puts "=> Loading roles.txt" roles += normalize_list(File.read("#{__dir__}/../data/manual/roles.txt").lines) puts "=> Normalize roles (count: #{roles.size})" roles = roles .uniq .map {|role| role.gsub(/[-@.]/m, "").downcase.strip } .reject(&:empty?) .uniq puts "=> Saving roles (count: #{roles.size})" save_file("roles.txt", normalize_list(roles))
Version data entries
366 entries across 366 versions & 1 rubygems