-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/install_on_centos
- Loading branch information
Showing
17 changed files
with
641 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
sudo: false | ||
language: ruby | ||
|
||
script: | ||
- bundle exec rake travis | ||
|
||
- bundle exec rake travis | ||
before_install: | ||
# Prevent "Please tell me who you are" errors | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
|
||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
after_success: | ||
- bundle exec rake deploy | ||
|
||
- bundle exec rake deploy | ||
rvm: | ||
- 2.0.0 | ||
|
||
- 2.0.0 | ||
branches: | ||
except: | ||
- preview-html | ||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/ca471d52154a050db6d6 | ||
on_success: change | ||
on_failure: always | ||
on_start: never | ||
env: | ||
global: | ||
- secure: "fzg1kaZRs8/Cw7mqWMPbji/h5wQQLdHkyl6jAiJVxB1VctcBa0YixonSUBE2kTbx8oaVOg7cQ1+5O4/5+LrU7h3eHNdzxuaqyPb8swDLPKv3J6vqP3U5fpyYvBN0OXQp42rB6m8X7+VOUGTqTGoNZNLMs85r+CAu5rsVIYIpaQ0=" | ||
- secure: fzg1kaZRs8/Cw7mqWMPbji/h5wQQLdHkyl6jAiJVxB1VctcBa0YixonSUBE2kTbx8oaVOg7cQ1+5O4/5+LrU7h3eHNdzxuaqyPb8swDLPKv3J6vqP3U5fpyYvBN0OXQp42rB6m8X7+VOUGTqTGoNZNLMs85r+CAu5rsVIYIpaQ0= | ||
- secure: lI6gfUIEPqHqhxjvmLBDjhYsshvchh008LvgtudfJ1bXNAxIsz1pVKDZJZRpjaol0zN8751/z4kcvigM3seIRWbk9C1XYwnPnH5kSC2V2GczH4g6Lsh5pQeJRjS8OFp0UKx4nA4LS3TfKTZC8T3T6ImQFhgCBrqz7akHmM5FR94= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
guard 'rake', task: :html do | ||
guard 'rake', task: 'index.html' do | ||
watch(/.+\.adoc$/) | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,71 @@ | ||
# Trema本 [![Build Status](http://img.shields.io/travis/yasuhito/trema-book/develop.svg?style=flat)][travis] [![Gitter](https://badges.gitter.im/Join%20Chat.svg)][gitter] | ||
# Trema本 [![Gitter](https://badges.gitter.im/Join%20Chat.svg)][gitter] | ||
|
||
Tremaを使ったOpenFlowプログラミングを解説するTrema本のリポジトリです. | ||
[Trema][trema]を使ったOpenFlowプログラミングを解説するフリー書籍です. 対応スイッチの多いOpenFlowバージョン1.3.xを対象にしています. プログラミング言語はRubyバージョン2.0です. | ||
|
||
* Twitter: ハッシュタグは [#Trema本](https://twitter.com/hashtag/Trema%E6%9C%AC) です | ||
|
||
[travis]: http://travis-ci.org/yasuhito/trema-book | ||
[gitter]: https://gitter.im/yasuhito/trema-book | ||
* ブラウザで読む: https://github.com/yasuhito/trema-book | ||
* PDFで読む: (準備中) | ||
* Gitterチャットに参加する: https://gitter.im/yasuhito/trema-book | ||
* Twitterのハッシュタグ: [#Trema本](https://twitter.com/hashtag/Trema%E6%9C%AC) | ||
|
||
|
||
## 書籍版 | ||
|
||
![カバー](https://raw.github.com/yasuhito/trema-book/master/cover.png "本のカバー") | ||
OpenFlow1.0に対応した前バージョンのTrema本は、書籍として各種書店で入手可能です. | ||
|
||
![カバー](https://raw.github.com/yasuhito/trema-book/develop/images/cover.png "本のカバー") | ||
|
||
印刷版: | ||
|
||
Amazon (http://www.amazon.co.jp/dp/4774154652/) などから購入できます. | ||
- [Amazonで購入](http://www.amazon.co.jp/dp/4774154652/) | ||
- [ヨドバシ.comで購入](http://www.yodobashi.com/ec/product/100000009001711327/index.html) | ||
- [7netショッピングで購入](http://www.7netshopping.jp/books/detail/-/isbn/9784774154657) | ||
- [hontoで購入](http://honto.jp/netstore/pd-book_25440213.html) | ||
- [紀伊國屋書店で購入](https://www.kinokuniya.co.jp/f/dsg-01-9784774154657) | ||
- [楽天ブックスで購入](http://books.rakuten.co.jp/rb/12122925/) | ||
|
||
電子版: | ||
|
||
## Installation | ||
- [Amazonで購入](http://www.amazon.co.jp/o/ASIN/B00CP2SFNA) | ||
- [Google Booksで購入](https://books.google.co.jp/books/about/%E3%82%AF%E3%83%A9%E3%82%A6%E3%83%89%E6%99%82%E4%BB%A3%E3%81%AE%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF.html?id=Dw0-tiAvGTsC&redir_esc=y) | ||
- [Gihyo Digital Publishingで購入](https://gihyo.jp/dp/ebook/2013/978-4-7741-5516-6) | ||
- [楽天ブックスで購入](http://books.rakuten.co.jp/rk/63308d148b9737949f026c0e5bb1f694/) | ||
|
||
|
||
## ソースから本をビルドする | ||
[![Build Status](http://img.shields.io/travis/yasuhito/trema-book/develop.svg?style=flat)][travis] | ||
[![Dependency Status](http://img.shields.io/gemnasium/yasuhito/trema-book.svg?style=flat)][gemnasium] | ||
|
||
[gemnasium]: https://gemnasium.com/yasuhito/trema-book | ||
``` | ||
git clone [email protected]:yasuhito/trema-book.git | ||
cd trema-book | ||
bundle install | ||
bundle exec rake | ||
``` | ||
|
||
|
||
## 執筆に参加する | ||
|
||
誰でもいろいろな形でTrema本の執筆に参加できます. | ||
|
||
もし誤字脱字を見つけたら, [チャット][gitter]で指摘してください. GitHubに慣れている場合はイシューを切ってもらうか, ソースコードを直接修正してPull Requestを出してもらえると助かります. | ||
|
||
## License | ||
もちろん, 内容についてのコメントや追加内容も歓迎します. | ||
|
||
原稿の書式は[Asciidoc](http://asciidoc.org/)です. 詳しい書き方についてはAsciidocのコンパイラである[Asciidoctorのユーザマニュアル](http://asciidoctor.org/docs/user-manual/)を参照してください. | ||
|
||
貢献していただいた方は書籍版の「謝辞」にもれなくお名前が載ります. | ||
|
||
![謝辞](https://raw.github.com/yasuhito/trema-book/develop/images/acknowledgements.jpg "謝辞") | ||
|
||
|
||
## ライセンス | ||
|
||
This book is released under the GNU General Public License version 3.0: | ||
|
||
* http://www.gnu.org/licenses/gpl-3.0.html | ||
|
||
|
||
[trema]: https://github.com/trema/trema | ||
[travis]: http://travis-ci.org/yasuhito/trema-book | ||
[gitter]: https://gitter.im/yasuhito/trema-book | ||
[gemnasium]: https://gemnasium.com/yasuhito/trema-book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
task default: [:rubocop, :render] | ||
task travis: [:rubocop, :render] | ||
task render: ['index.html', 'book.pdf'] | ||
|
||
task render: [:html, :pdf] | ||
ADOC = Dir.glob('*.adoc') | ||
|
||
Dir.glob('tasks/*.rake').each { |each| import each } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
[appendix] | ||
= RVM を使ったTremaのインストール | ||
= RVM でTremaをインストール | ||
|
||
パッケージ版のRubyを使う以外の方法として、RVMfootnote:[https://rvm.io/]というRubyインストーラを使う方法があります。RVMを使うと一つのマシンにさまざまなバージョンのRubyをインストールできます。 | ||
|
||
次のコマンドを実行すると、安定版のRubyを自動的にインストールします。 | ||
|
||
---- | ||
$ curl -sSL https://get.rvm.io | bash -s stable --ruby | ||
---- | ||
|
||
[WARNING] | ||
==== | ||
この章は書きかけです. | ||
==== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.