Sha256: 30ace2c0f0e93acefe70a20d60d9995f37eaa0cf4121c0db3ca7caee38eefd8f

Contents?: true

Size: 394 Bytes

Versions: 21

Compression:

Stored size: 394 Bytes

Contents

#! /usr/bin/env ruby

if ARGV.size != 3
  puts "Usage: anonymizer.rb message_file phone_number email_address"
  exit(1)
end

message_file = ARGV[0]
phone_number = ARGV[1]
email_address = ARGV[2]

message = File.read(message_file)
message.gsub!(phone_number, '2068675309')
message.gsub!(email_address, 'tommy.tutone@example.com')

out = File.open(message_file, "w")
out.puts message
out.close


Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
brendanlim-mms2r-2.2.0.1 dev_tools/anonymizer.rb
brendanlim-mms2r-2.2.0 dev_tools/anonymizer.rb
mms2r-3.3.1 dev_tools/anonymizer.rb
mms2r-3.3.0 dev_tools/anonymizer.rb
mms2r-3.2.0 dev_tools/anonymizer.rb
mms2r-3.1.0 dev_tools/anonymizer.rb
mms2r-3.0.1 dev_tools/anonymizer.rb
mms2r-3.0.0 dev_tools/anonymizer.rb
mms2r-2.4.1 dev_tools/anonymizer.rb
mms2r-2.4.0 dev_tools/anonymizer.rb
mms2r-2.3.0 dev_tools/anonymizer.rb
mms2r-2.0.1 dev_tools/anonymizer.rb
mms2r-2.0.2 dev_tools/anonymizer.rb
mms2r-2.0.5 dev_tools/anonymizer.rb
mms2r-2.0.4 dev_tools/anonymizer.rb
mms2r-2.1.0 dev_tools/anonymizer.rb
mms2r-2.0.3 dev_tools/anonymizer.rb
mms2r-2.1.1 dev_tools/anonymizer.rb
mms2r-2.1.3 dev_tools/anonymizer.rb
mms2r-2.2.0 dev_tools/anonymizer.rb