Bundler Quiz!

작성자

카테고리:

← 피드로
DEV Community · gemmaro · 2026-07-26 개발(SW)

gemmaro

(Translated from the Japanese article.)

This is a quiz about Ruby’s Bundler!

Add 8 characters to the following Gemfile so that bundle install fails (with non-zero exit code) for the second time or later.

source "https://rubygems.org"
gemspec

Notes:

  • Bundler is a fairly recent version (approximately version 3 or later).
  • The first invocation succeeds.

If you find the answer (on your own), please send me a direct message on ruby.social or email, etc.!

Wrong Answers

  • An invalid URL like https://rubygems.org12345678: It doesn’t fail since Bundler doesn’t refer to the URL.
  • An invalid URL and gems: It fails on the first run. It must fail only on the second or later runs.
  • Something like this: It exeeds 8 characters.
  source "https://rubygems.org"
  gemspec
  File.file?("Gemfile.lock") and raise

Enter fullscreen mode Exit fullscreen mode

License

Copyright (C) 2026 gemmaro

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.

원문에서 계속 ↗

추출 본문 · 출처: dev.to · https://dev.to/gemmaro/bundler-quiz-3fkh

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다