This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'logger' | |
require 'forwardable' | |
module Ping | |
class MultiIO | |
def initialize(*targets) | |
@targets = targets | |
end | |
def write(*args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test for Rails 4.1.9 | |
# file: app/models/forum_markdown.rb | |
class ForumMarkdown | |
class DummyController | |
def logger | |
RAILS_DEFAULT_LOGGER | |
end | |
def headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i '' 's/青狮营/一块输出/g' `grep 青狮营 -rl .` |