タグ

Merbに関するfantatchiのブックマーク (3)

  • merblog

    ↓こんな感じでやる。 a = [] a.should_receive(:size).ordered.and_return(1) a.should_receive(:size).ordered.and_return(2) a.should_receive(:size).ordered.and_return(3) 5.times do p a.size end ↓結果。設定した回数以上に呼び出すと、最初の物が繰り返されるらしい。 1 2 2 1 1 ordered で、メソッドの呼び出された順を確認可能というのは知っていたけど、これは知らなかった。 当たり前といえば、当たり前の動きではあるのだけど。 訳あって、Server program を Thread に頼らず、fork を使って作ってみることにした。 #!/usr/bin/env ruby require "socket" requir

    merblog
  • Merb | Looking for a hacker's framework?

    Faster, Lighter, More Agile. Merb is an MVC framework that is ORM-agnostic, JavaScript library agnostic, and template language agnostic, preferring plugins that add in support for a particular feature rather than trying to produce a monolithic library with everything in the core. In fact, this is a guiding principle of the project, which has led to third-party support for the ActiveRecord, DataMap

  • LIFE ON THE EDGE WITH MERB, DATAMAPPER & RSPEC

    This book is work in progress, your help is requested @ github このはまだ執筆中です。協力いただけるなら github まで。 Life On The Edge With Merb, DataMapper & RSpec Foreword (前書き) (TODO) the foreword Preface (序文) This is a collaborative effort to document the features of Merb and DataMapper, while also providing example Merb applications. これは、Merb と DataMapper の機能をドキュメント化しようという、協力的な取り組みです。 また Merb アプリケーションのサンプルも提供します

  • 1