www.ruby-lang.org

(★ 941)

Source of the https://www.ruby-lang.org website.

파일 탐색기

파일 수가 많아 일부만 표시됩니다. 전체 파일은 위 다운로드 버튼으로 확인해 주세요.

  • .gitignore
  • 404.md
  • _config.yml
  • _headers
  • CLAUDE.md
  • favicon.ico
  • Gemfile
  • Gemfile.lock
  • index.html
  • Rakefile
  • README.md

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

파일 목록이 많아 일부만 표시됩니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

bundle

설명 보기 ▼

Ruby 프로그래밍 언어의 종속성 관리자.
더 많은 정보: <https://bundler.io/man/bundle.1.html>.

bundle install

작업 디렉토리에 있는 `Gemfile`에 정의된 모든 gem을 설치:

bundle exec {{command}} {{arguments}}

현재 번들의 컨텍스트에서 명령을 실행:

bundle update

`Gemfile` 에 정의된 규칙에 따라 모든 gem을 업데이트 하고 `Gemfile.lock`을 재생성:

🔍

gem

설명 보기 ▼

Ruby 프로그래밍 언어용 패키지 관리자.
더 많은 정보: <https://guides.rubygems.org/command-reference/>.

gem search {{regex}} {{[-a|--all]}}

원격 gem을 검색하고 사용 가능한 모든 버전을 표시:

gem install {{gem_name}}

최신 버전의 gem을 설치:

gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}

특정 버전의 gem을 설치:

🔍

git checkout

설명 보기 ▼

Checkout a branch or paths to the working tree.

git checkout -b {{branch_name}}

Create and switch to a new branch:

git checkout -b {{branch_name}} {{reference}}

Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

git checkout {{branch_name}}

Switch to an existing local branch:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git push

설명 보기 ▼

Push commits to a remote repository.

git push

Send local changes in the current branch to its default remote counterpart:

git push {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart:

git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:

🔍

heroku

설명 보기 ▼

Heroku 애플리케이션 생성 및 관리.
더 많은 정보: <https://devcenter.heroku.com/articles/heroku-cli#get-started-with-the-heroku-cli>.

heroku login

Heroku 계정에 로그인:

heroku create

Heroku 애플리케이션 생성:

heroku logs --app {{app_name}}

애플리케이션 로그 표시:

🔍

npm install

설명 보기 ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

rake

설명 보기 ▼

Ruby용 Make와 유사한 프로그램.
`rake`의 작업은 Rakefile에 지정됩니다.
더 많은 정보: <https://ruby.github.io/rake/>.

rake

`default` Rakefile 작업 실행:

rake {{task}}

특정 작업 실행:

rake --jobs {{n}}

동시에 `n`개의 작업 병렬 실행 (기본값은 CPU 코어 수 + 4):

// repository documentation