GithubHelp home page GithubHelp logo

my_awesome_ruby_project's Introduction

Set up Ruby Project

2014년 12월 23일 RORLab Digging Deeper 세션 발표 자료.

구조

$ tree
.
├── Gemfile
├── Gemfile.lock
├── Guardfile
├── README.md
├── lib
│   ├── my_awesome_ruby_project
│   │   └── awesome_cat.rb
│   └── my_awesome_ruby_project.rb
├── spec
├── my_awesome_ruby_project
│   └── awesome_cat_spec.rb
└── spec_helper.rb

4 directories, 8 files

Using

Set up

$ ruby -v
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]

$ bundle -v
Bundler version 1.7.3
# 번들이 없으면 gem install bundle로 설치

$ git clone https://github.com/nacyot/my_awesome_ruby_project.git
$ cd my_awesome_ruby_project
$ bundle install
...

Test

Rspec을 사용한 테스트 환경 구축.

$ bundle exec rspec
MyAwesomeRubyProject::AwesomeCat
  My first awesome test
  My second awesome test

Finished in 0.00228 seconds (files took 0.16071 seconds to load)
2 examples, 0 failures

Guard(watch)

프로젝트 내의 파일이 변경되면, Guardfile에 정의된 규칙에 따라 테스트 실행.

$ bundle exec guard
11:06:48 - INFO - Guard is using Tmux to send notifications.
11:06:48 - INFO - Guard is using TerminalTitle to send notifications.
11:06:49 - INFO - Guard::RSpec is running
11:06:49 - INFO - Guard is now watching at '/Users/toto/Dropbox/programmings/github/nacyot/my_awesome_ruby_project'
[1] guard(main)>

my_awesome_ruby_project's People

Watchers

 avatar  avatar

Forkers

blackun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.