Yet another parallel test runner, built using a centralized queue to ensure optimal distribution of tests between workers. Specifically optimized for CI environments: build statistics from each run are stored locally and used to sort the queu... 続きを読む
Server applications (like Rails app) cause performance problems, deadlock or memory swapping from time to time. But it's painful to reproduce such kind of problems. If we can get information from a running process without restarting it, and i... 続きを読む
Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files. 続きを読む
19:37 | Automator ってなんか超高機能なマクロみたいなイメージがありますが、とても便利なのでご紹介。もともとは、会社の上司が Windows から Mac に移行したのだけれど、"秀丸みたいに選択範囲を ruby で evalできないの" とおっしゃっており、しかも Emacs... 続きを読む
Ship Quality Code. Faster. Your Secret Weapon against Technical Debt. 続きを読む
Building a new gem ( ruby library ) with bundler is easy task. I found a lot of tutorial on this topic in the web but none of them was covering more then just generating scaffold and packing up the gem. I will try to uncover a bit more. So at... 続きを読む
Nokogiri is unrelated, other than the fact that it gives you the link anchor to begin with. Use Ruby's URI library to manage paths: absolute_uri = URI.join( page_url, href ).to_s Seen in action: require 'uri' # The URL of the page with the li... 続きを読む
(c) Joe Damato @joedamato http://timetobleed.com Memprof is a Ruby level memory profiler that can help you find reference leaks in your application. Memprof can also do very lightweight function call tracing to figure out which system and lib... 続きを読む
現在、Ruby on Railsから使用するジョブキュー処理についてのGemは、ResqueとDelayed Jobがメジャーかと思います。 defunkt/resque collectiveidea/delayed_job Ruby ToolboxのBackground JobsのカテゴリではResqueの方が上位ランクになっていますが、それぞれ... 続きを読む
README.md je - Instant jemalloc injection into Ruby apps jemalloc sometimes dramatically supresses the memory fragmentation on server programs. je gem contains jemalloc itself within a gem, and enables you to inject jemalloc into your applica... 続きを読む
Macで漫然とRubyをインストールすると、rails consoleやirbで日本語を使えないことがある。(どうなるかというと、日本語の変換を確定した途端に「\U+FFE3\U+FFAB」みたいにUnicodeのエスケープっぽいものが表示される。)そうなった時の直し方を説明する。 な... 続きを読む
MiniProfiler : A simple but effective mini-profiler for .NET and Ruby.Fork Me on GitHub Fork This Site MiniProfiler A simple but effective mini-profiler for .NET and Ruby. Download this project as a .zip file Download this project as a tar.gz... 続きを読む
YAML config loader with checking conflict from the example. Features You can load a config .yml file and get the hash from YAML. Notify the conflict between .yml and .yml.(example|sample) Usage # config.yml(not committed) name: "taro" # confi... 続きを読む
README.mdSidekiq Simple, efficient message processing for Ruby. Sidekiq aims to be compatible with Resque. It uses the exact same message format as Resque so it can integrate into an existing Resque processing farm. You can have Sidekiq and R... 続きを読む
RubyUnagi.gcでアプリケーション設定ファイルあるあるを話していた。 「こういうの作ってますね」「じゃあgemで」 ということで公開してみた。 詳しくはREADMEで。 authorNari/configict ? GitHub アプリケーションの設定ファイルをYAMLで管理するときには 「co... 続きを読む
HTTP Git Read-Only This URL has Read+Write access 続きを読む
encode_www_form(enum) -> String enum から URL-encoded form data を生成します。 HTML5 で定義されている application/x-www-form-urlencoded 形式の 文字列を生成します。 enum には通常 [key, value] という形の配列の配列を渡します。 以下の例を見てくだ... 続きを読む
README.mdSheet Easily create and access snippets of text from your terminal. sheet is your own personal wiki. gem install sheet Examples: sheet # with no arguments it will just list all your sheets sheet git # opens git sheet sheet new git # ... 続きを読む
はじめに ソフトウェアを作るときには同時にテストも作ります。 テストを動かすことで、ソフトウェアが設計の通り動作しているかを確認できます。もし設計の通りに動作しない場合はテストが失敗し、ソフトウェアに期待する動作と現在の間違った動作が明確になり... 続きを読む
git clone git://github.com/injekt/slop.git cd slop gem build slop.gemspec gem install slop-<version>.gem Usage s = Slop.parse(ARGV) do option(:v, :verbose, "Enable verbose mode", :default => false) option(:n, :name, "Your name", true) # compu... 続きを読む