RubyのGemはJewelerでパッケージをしていましたが Bundlerの方がシンプルで使いやすいので移行しました。 RubyのGemはNode.jsのnpmと違って個々のパッケージが競合するので プログラムでパッケージのバージョンを参照する場合があります。 (Bundlerはバージョン... 続きを読む
I get the following output from the sudo bundle install command: Fetching source index for `http://rubygems.org/` Could not reach rubygems repository `http://rubygems.org/` Could not find gem 'rspec-rails (>= 2.0.0.beta.22, runtime)' in any o... 続きを読む
rubyBundlerは、rubygemsのラッパーです。Rails3のgem管理に採用されています。Bundlerを使うことで、 このgem、手元にはインストールされているのに、本番環境にインストールされてない! 開発環境にgemを入れまくったら、プロジェクトにどのgemが必要なのか分... 続きを読む
bundler の github 記法bundler で Gemfile を書くときに gem 'rails', git: 'git://github.com/rails/rails.git' というのは 1.1 以降なら gem 'rails', github: 'rails/rails' と書けるらしい。便利。 ツッコミを入れる 続きを読む
My question has already been asked here, but I am trying to understand the reasons behind it as opposed to how to work around it. The error I got was; You have already activated rspec-core 2.7.1, but your Gemfile requires rspec-core 2.6.4. Us... 続きを読む
class Rails::Boot def run load_initializer Rails::Initializer.class_eval do def load_gems @bundler_loaded ||= Bundler.require :default, Rails.env end end Rails::Initializer.run(:set_load_path) end end begin require "rubygems" require "bundler... 続きを読む
Bundler manages an application's dependencies through its entire life across many machines systematically and repeatably. 続きを読む