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

Gemfile.local

 Gemfile.local

Gemfile.local is useful in ruby development.

3140de70ab04d8f9fc979447b0b4fb16?s=128

pinzolo

July 26, 2014
Tweet

Transcript

  1. Gemfile.local

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

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

  4. ڞ௨఺͸ʁ 4 pry 4 pry-byebug 4 better_errors 4 rails-flog →

    σόοά࣌ʹ࢖༻͢Δ gem
  5. ڞ௨఺͸ʁ 4 pry 4 pry-byebug 4 better_errors 4 rails-flog →

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

  7. ໰୊఺ 4 CI ࣌ʹ࢖༻͠ͳ͍ gem Λμ΢ϯϩʔυ͠ɺಡΈࠐΜͰ͠ ·͏ 4 ͏͔ͬΓ binding.pry

    Λ࢒ͨ͠·· push ͢Δͱςετ͕ ࢭ·ͬͯ͠·͏
  8. ໰୊఺ 4 CI ࣌ʹ࢖༻͠ͳ͍ gem Λμ΢ϯϩʔυ͠ɺಡΈࠐΜͰ͠ ·͏ 4 ͏͔ͬΓ binding.pry

    Λ࢒ͨ͠·· push ͢Δͱςετ͕ ࢭ·ͬͯ͠·͏ 4 ։ൃऀશһʹࣗ෼ͷσόοάπʔϧΛԡ͠෇͚ͯ͠·͏
  9. ͦ͜Ͱ Gemfile.local

  10. 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)
  11. 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
  12. Make me happy! 4 CI ࣌ʹ͸७ਮʹ࢖༻͢Δ gem ͚͕ͩμ΢ϯϩʔυ͞ΕΔ 4 binding.pry

    Λ࢒͍ͯͯ͠΋Τϥʔు͍ͯଈऴྃ 4 ֤ࣗ޷͖ͳσόοάπʔϧΛ࢖͑Δ
  13. ຊ୊ ΋ͬͱεϚʔτͳ΍Γํ͕͋ΔΜ͡Όͳ͍͔ʁ Bundler ͷػೳͱ͔ϓϥάΠϯͰ͢Ͱʹ͋ΔΜ͡Όͳ͍͔ʁ ΈΜͳ͸Ͳ͏͍ͯ͠Δ͔ੋඇڭ͑ͯԼ͍͞

  14. Thank you!