-
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.
- Loading branch information
Showing
208 changed files
with
5,751 additions
and
2,891 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,9 +1,4 @@ | ||
Gemfile.lock | ||
*.dvi | ||
*.html | ||
*.log | ||
*.tex | ||
*.key | ||
*.epub | ||
*.mobi | ||
/book.pdf | ||
/book.xml | ||
/index.html | ||
vendor/bundle |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
AllCops: | ||
Include: | ||
- 'tasks/*.rake' | ||
- Guardfile | ||
- Rakefile | ||
Exclude: | ||
- 'vendor/**/*' |
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 |
---|---|---|
@@ -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=" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Changelog | ||
|
||
## 0.1.0 (8/31/2015) | ||
* Hello Trema 章のドラフト rev.1 を追加. |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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,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 } |
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 |
---|---|---|
@@ -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 |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.