Sha256: 09f77f184586e0d48131fddade543a71d7a32eb7af036d8e09aa867fd5f0786e

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

Dir.glob("**/*") do |v|
  lines = []
  changed = false
  next if File.directory? v
  IO.foreach(v) {|line|
    if line =~ /mutoh(at|@)highway.ne.jp/
      lines << line.gsub(/mutoh( at |@)highway.ne.jp/, "mutomasa at gmail.com")
      changed = true
    else
      lines << line
    end
  }
  if changed
    out = open(v, "w")
    lines.each {|l|
      out.write l
    }
    out.close
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
gettext_rails-2.0.0 replace.rb
gettext_activerecord-2.0.0 replace.rb
locale-2.0.0 replace.rb
locale-2.0.3 replace.rb
locale_rails-2.0.0 replace.rb