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-1737851402.0.0 bin/sync-roles
email_data-1737246571.0.0 bin/sync-roles
email_data-1736641810.0.0 bin/sync-roles
email_data-1736036984.0.0 bin/sync-roles
email_data-1735432182.0.0 bin/sync-roles
email_data-1734827368.0.0 bin/sync-roles
email_data-1734222646.0.0 bin/sync-roles
email_data-1733617827.0.0 bin/sync-roles
email_data-1733013134.0.0 bin/sync-roles
email_data-1732408289.0.0 bin/sync-roles
email_data-1731803456.0.0 bin/sync-roles
email_data-1731198561.0.0 bin/sync-roles
email_data-1730593788.0.0 bin/sync-roles
email_data-1729988998.0.0 bin/sync-roles
email_data-1729384188.0.0 bin/sync-roles
email_data-1728779363.0.0 bin/sync-roles
email_data-1727569771.0.0 bin/sync-roles
email_data-1726964969.0.0 bin/sync-roles
email_data-1726360142.0.0 bin/sync-roles
email_data-1725755331.0.0 bin/sync-roles