如何設定環境來開發 Bundler

  1. Fork Bundler

    造訪 Bundler 的 GitHub 主頁 https://github.com/bundler/bundler

    按下 fork 按鈕。

    Fork Bundler ,才能將妳的修改發 Pull Requests 回去。


  1. 下載一份妳 fork 的 Bundler

    $ git clone https://github.com/your_user_name/bundler.git

  2. 切換至 Bundler 資料夾

    $ cd bundler

  3. 設定一下 Bundler 專案的網址

    $ git remote add upstream https://github.com/bundler/bundler.git

    這將妳本機的 repository 與上游 repository 連結起來。

  4. 安裝 Bundler 開發所依賴的軟體

    $ rake spec:deps

    rake 是什麼? https://github.com/ruby/rake

  5. 執行 Bundler 的測試套裝

    $ rake spec

    大約要 15 分鐘。