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

Version Path
email_data-1711240075.0.0 bin/sync-roles
email_data-1710635221.0.0 bin/sync-roles
email_data-1710030441.0.0 bin/sync-roles
email_data-1709425613.0.0 bin/sync-roles
email_data-1708820814.0.0 bin/sync-roles
email_data-1708216007.0.0 bin/sync-roles
email_data-1707611231.0.0 bin/sync-roles
email_data-1707006417.0.0 bin/sync-roles
email_data-1706401639.0.0 bin/sync-roles
email_data-1705796851.0.0 bin/sync-roles
email_data-1705192048.0.0 bin/sync-roles
email_data-1704587245.0.0 bin/sync-roles
email_data-1703982427.0.0 bin/sync-roles
email_data-1703377628.0.0 bin/sync-roles
email_data-1702772829.0.0 bin/sync-roles
email_data-1702168032.0.0 bin/sync-roles
email_data-1700958398.0.0 bin/sync-roles
email_data-1700353605.0.0 bin/sync-roles
email_data-1699748906.0.0 bin/sync-roles
email_data-1699144068.0.0 bin/sync-roles