Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gemfile.local

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

 Gemfile.local

Gemfile.local is useful in ruby development.

Avatar for pinzolo

pinzolo

July 26, 2014
Tweet

More Decks by pinzolo

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ 4 ໺ా ੣ਓ 4 גࣜձࣾ ۭ 4 Engineer 4

    @pinzolo 4 https://github.com/pinzolo
  2. ڞ௨఺͸ʁ 4 pry 4 pry-byebug 4 better_errors 4 rails-flog →

    σόοά࣌ʹ࢖༻͢Δ gem → ςετʹඞཁͰ͸ͳ͍
  3. ໰୊఺ 4 CI ࣌ʹ࢖༻͠ͳ͍ gem Λμ΢ϯϩʔυ͠ɺಡΈࠐΜͰ͠ ·͏ 4 ͏͔ͬΓ binding.pry

    Λ࢒ͨ͠·· push ͢Δͱςετ͕ ࢭ·ͬͯ͠·͏ 4 ։ൃऀશһʹࣗ෼ͷσόοάπʔϧΛԡ͠෇͚ͯ͠·͏
  4. Gemfile source 'https://rubygems.org' gem 'rails' # some gems group :development,

    :test do gem 'rspec' gem 'rspec-rails' # some gems end local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local') instance_eval File.read(local_gemfile) if File.exist?(local_gemfile)
  5. Gemfile.local group :development, :test do gem 'pry' gem 'pry-rails' gem

    'pry-byebug' gem 'better_errors' gem 'rails-flog' # some gems for debug end
  6. Make me happy! 4 CI ࣌ʹ͸७ਮʹ࢖༻͢Δ gem ͚͕ͩμ΢ϯϩʔυ͞ΕΔ 4 binding.pry

    Λ࢒͍ͯͯ͠΋Τϥʔు͍ͯଈऴྃ 4 ֤ࣗ޷͖ͳσόοάπʔϧΛ࢖͑Δ