Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Aug 31, 2015
2 parents 8019586 + f83e8ba commit 4bc628c
Show file tree
Hide file tree
Showing 208 changed files with 5,751 additions and 2,891 deletions.
13 changes: 4 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
Gemfile.lock
*.dvi
*.html
*.log
*.pdf
*.tex
*.key
*.epub
*.mobi
/book.pdf
/book.xml
/index.html
vendor/bundle
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AllCops:
Include:
- 'tasks/*.rake'
- Guardfile
- Rakefile
Exclude:
- 'vendor/**/*'
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: ruby

script:
- 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"

after_success:
- bundle exec rake deploy

rvm:
- 2.0.0

env:
global:
- secure: "fzg1kaZRs8/Cw7mqWMPbji/h5wQQLdHkyl6jAiJVxB1VctcBa0YixonSUBE2kTbx8oaVOg7cQ1+5O4/5+LrU7h3eHNdzxuaqyPb8swDLPKv3J6vqP3U5fpyYvBN0OXQp42rB6m8X7+VOUGTqTGoNZNLMs85r+CAu5rsVIYIpaQ0="
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Changelog

## 0.1.0 (8/31/2015)
* Hello Trema 章のドラフト rev.1 を追加.
12 changes: 12 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source 'https://rubygems.org'

gem 'rake'

group :development, :test do
gem 'asciidoctor', require: false
gem 'coderay', require: false
gem 'guard', require: false
gem 'guard-rake', require: false
gem 'guard-rubocop', require: false
gem 'rubocop', require: false
end
71 changes: 71 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
GEM
remote: https://rubygems.org/
specs:
asciidoctor (1.5.2)
ast (2.1.0)
astrolabe (1.3.1)
parser (~> 2.2)
coderay (1.1.0)
ffi (1.9.10)
formatador (0.2.5)
guard (2.13.0)
formatador (>= 0.2.4)
listen (>= 2.7, <= 4.0)
lumberjack (~> 1.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-rake (1.0.0)
guard
rake
guard-rubocop (1.2.0)
guard (~> 2.0)
rubocop (~> 0.20)
listen (3.0.3)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.9)
method_source (0.8.2)
nenv (0.2.0)
notiffany (0.0.7)
nenv (~> 0.1)
shellany (~> 0.0)
parser (2.2.2.6)
ast (>= 1.1, < 3.0)
powerpack (0.1.1)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rainbow (2.0.0)
rake (10.4.2)
rb-fsevent (0.9.5)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
rubocop (0.33.0)
astrolabe (~> 1.3)
parser (>= 2.2.2.5, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.4)
ruby-progressbar (1.7.5)
shellany (0.0.1)
slop (3.6.0)
thor (0.19.1)

PLATFORMS
ruby

DEPENDENCIES
asciidoctor
coderay
guard
guard-rake
guard-rubocop
rake
rubocop

BUNDLED WITH
1.10.6
8 changes: 8 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
guard 'rake', task: :render do
watch(/.+\.adoc$/)
end

guard :rubocop do
watch(/.+\.rb$/)
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
# 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を使ったOpenFlowプログラミングを解説するTrema本のリポジトリです.

* 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://raw.github.com/yasuhito/trema-book/master/cover.png "本のカバー")

### ご購入はこちらから
Amazon (http://www.amazon.co.jp/dp/4774154652/) などから購入できます.


## Installation

[![Dependency Status](http://img.shields.io/gemnasium/yasuhito/trema-book.svg?style=flat)][gemnasium]

* Amazon: http://www.amazon.co.jp/dp/4774154652/
* サポートサイト: http://yasuhito.github.com/trema-book/
[gemnasium]: https://gemnasium.com/yasuhito/trema-book


### License
## License

This book is released under the GNU General Public License version 3.0:

Expand Down
84 changes: 4 additions & 80 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,82 +1,6 @@
# -*- coding: utf-8 -*-
task default: [:rubocop, :render]
task travis: [:rubocop, :render]

task :default => "ja:pdf"
task :pdf => "ja:pdf"
task :epub => "ja:epub"
task :mobi => "ja:mobi"
task :clean => "ja:clean"
task render: [:html, :pdf]


def add_pdf_task lang, description
desc description
task :pdf => "clean:pdf" do
cd lang do
sh "review-pdfmaker trema.yaml"
end
end

namespace :clean do
task :pdf do
sh "rm -f ./#{ lang }/trema.pdf"
end
end
task :clean => "#{ lang }:clean:pdf"
end


def add_epub_task lang, description
desc description
task :epub => "clean:epub" do
cd lang do
sh "review-epubmaker trema.yaml"
end
end

namespace :clean do
task :epub do
sh "rm -f ./#{ lang }/trema.epub"
end
end
task :clean => "#{ lang }:clean:epub"
end


def add_mobi_task lang, description
desc description
task :mobi => [ :epub, "clean:mobi" ] do
if `which kindleGen`.empty?
raise "kindleGen is not installed!"
end
cd lang do
sh "KindleGen trema.epub" rescue nil
end
end

namespace :clean do
task :mobi do
sh "rm -f ./#{ lang }/trema.mobi"
end
end
task :clean => "#{ lang }:clean:mobi"
end


namespace :ja do
add_pdf_task "ja", "PDF を生成"
add_epub_task "ja", "epub を生成"
add_mobi_task "ja", "mobi を生成"
end


namespace :en do
add_pdf_task "en", "Generates PDF"
add_epub_task "en", "Generates epub"
add_mobi_task "en", "Generates mobi"
end


### Local variables:
### mode: Ruby
### coding: utf-8
### indent-tabs-mode: nil
### End:
Dir.glob('tasks/*.rake').each { |each| import each }
13 changes: 13 additions & 0 deletions book.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= TremaでOpenFlowプログラミング
高宮 安仁 <yasuhito@gmail.com>; 鈴木 一哉; 松井 暢之; 村木 暢哉; 山崎 泰宏

== OpenFlow って何?
// 仮置き

include::hello_trema.adoc[leveloffset=+1]

[appendix]
== Copyright and License
This book is released under the GNU General Public License version 3.0:

- http://www.gnu.org/licenses/gpl-3.0.html
23 changes: 0 additions & 23 deletions en/CHAPS

This file was deleted.

4 changes: 0 additions & 4 deletions en/PART

This file was deleted.

Binary file not shown.
Binary file removed en/images/switch_monitoring_tool/switch_ready.png
Binary file not shown.
Loading

0 comments on commit 4bc628c

Please sign in to comment.