https://github.com/kayhide/imadoko
https://github.com/kayhide/imadoko
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kayhide/imadoko
- Owner: kayhide
- Created: 2013-12-18T08:14:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-05T08:58:50.000Z (over 12 years ago)
- Last Synced: 2025-01-23T17:58:05.736Z (over 1 year ago)
- Language: Ruby
- Size: 262 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# いまどこ #
ランナーなどを応援するサポートアプリ
#### システム概要 ####
- **Ruby**: 2.0.0
- **DB**: SQLite
- **Production Server**: sakura VPS
## データベース ##
マイグレーションする。
% bundle exec rake db:migrate
## テスト ##
`rspec` + `guard` + `spring` + `simplecov` を使う。
`guard` の起動。
% bundle exec guard start
11:53:31 - INFO - Guard is using Emacs to send notifications.
11:53:31 - INFO - Guard is using Tmux to send notifications.
11:53:31 - INFO - Guard is using TerminalTitle to send notifications.
11:53:31 - INFO - Bundle already up-to-date
11:53:31 - INFO - Guard::RSpec is running
11:53:31 - INFO - Guard is now watching at '/Users/mikagami/prj/rails/bybine'
[1] guard(main)>
テストが実行されるとカバレッジのレポートが `coverage` に出力される。
% open coverage/index.html
コントローラーのカバレッジを**100%**にするとよい。
## ビュー ##
`bootstrap` + `slim` を使ってみる。
## モデル ##
### クローラー ###
`app/models/crawler` に作る。
新しいクローラーを作るには、`Crawler::Base` を継承し、`#crawl` を実装する。
```ruby
module Crawler
class Tokyo << Base
def crawl
# do something
end
end
end
```