review-retrovert 0.9.11 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/Rakefile +15 -0
- data/lib/review/retrovert/cli.rb +6 -0
- data/lib/review/retrovert/converter.rb +38 -0
- data/lib/review/retrovert/version.rb +1 -1
- data/lib/review/retrovert/yamlconfig.rb +38 -1
- metadata +49 -146
- data/.dockerignore +0 -9
- data/.editorconfig +0 -16
- data/.gitattributes +0 -5
- data/.github/FUNDING.yml +0 -4
- data/.github/workflows/docker-build.yml +0 -26
- data/.github/workflows/release.yml +0 -26
- data/.github/workflows/retrovert.yml +0 -91
- data/.gitignore +0 -15
- data/.rspec +0 -3
- data/.ruby-version +0 -1
- data/.vscode/launch.json +0 -48
- data/Dockerfile +0 -5
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -118
- data/Makefile +0 -31
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/docker/review.Dockerfile +0 -10
- data/hooks/post_push +0 -8
- data/package-lock.json +0 -6
- data/package.json +0 -1
- data/review-retrovert.code-workspace +0 -8
- data/review-retrovert.gemspec +0 -37
- data/testdata/mybook/.gitignore +0 -13
- data/testdata/mybook/.textlintrc +0 -11
- data/testdata/mybook/README.md +0 -43
- data/testdata/mybook/Rakefile +0 -24
- data/testdata/mybook/catalog.yml +0 -60
- data/testdata/mybook/config-noretrovert.yml +0 -404
- data/testdata/mybook/config-retrovert.yml +0 -16
- data/testdata/mybook/config-starter.yml +0 -264
- data/testdata/mybook/config.yml +0 -404
- data/testdata/mybook/contents/00-preface.re +0 -129
- data/testdata/mybook/contents/01-install.re +0 -305
- data/testdata/mybook/contents/02-tutorial.re +0 -1228
- data/testdata/mybook/contents/03-syntax.re +0 -4610
- data/testdata/mybook/contents/04-customize.re +0 -1064
- data/testdata/mybook/contents/05-faq.re +0 -606
- data/testdata/mybook/contents/06-bestpractice.re +0 -1343
- data/testdata/mybook/contents/91-compare.re +0 -418
- data/testdata/mybook/contents/92-filelist.re +0 -125
- data/testdata/mybook/contents/93-background.re +0 -267
- data/testdata/mybook/contents/99-postface.re +0 -39
- data/testdata/mybook/contents/r0-inner.re +0 -2
- data/testdata/mybook/contents/r0-root.re +0 -49
- data/testdata/mybook/contents/table.csv +0 -4
- data/testdata/mybook/contents/test.txt +0 -1
- data/testdata/mybook/contents/ut.re +0 -5
- data/testdata/mybook/css/normalize.css +0 -349
- data/testdata/mybook/css/webstyle.css +0 -692
- data/testdata/mybook/data/terms.txt +0 -3
- data/testdata/mybook/data/words.txt +0 -15
- data/testdata/mybook/images/03-syntax/favicon-16x16.png +0 -0
- data/testdata/mybook/images/03-syntax/figure_heretop.png +0 -0
- data/testdata/mybook/images/03-syntax/index-page.png +0 -0
- data/testdata/mybook/images/03-syntax/order-detail.png +0 -0
- data/testdata/mybook/images/03-syntax/tw-icon1.jpg +0 -0
- data/testdata/mybook/images/03-syntax/tw-icon2.jpg +0 -0
- data/testdata/mybook/images/03-syntax/tw-icon3.jpg +0 -0
- data/testdata/mybook/images/03-syntax/tw-icon4.jpg +0 -0
- data/testdata/mybook/images/04-customize/caption_pagebreak.png +0 -0
- data/testdata/mybook/images/04-customize/chaptitlepage_sample.png +0 -0
- data/testdata/mybook/images/04-customize/section_decoration_samples.png +0 -0
- data/testdata/mybook/images/05-faq/codeblock_rpadding1.png +0 -0
- data/testdata/mybook/images/05-faq/codeblock_rpadding2.png +0 -0
- data/testdata/mybook/images/05-faq/dummy-image.png +0 -0
- data/testdata/mybook/images/06-bestpractice/figure_heretop.png +0 -0
- data/testdata/mybook/images/06-bestpractice/font_beramono.png +0 -0
- data/testdata/mybook/images/06-bestpractice/heading_design1.png +0 -0
- data/testdata/mybook/images/06-bestpractice/heading_design2.png +0 -0
- data/testdata/mybook/images/06-bestpractice/margin_book.png +0 -0
- data/testdata/mybook/images/06-bestpractice/multiline-title.png +0 -0
- data/testdata/mybook/images/06-bestpractice/preface_numbered.png +0 -0
- data/testdata/mybook/images/06-bestpractice/program_border.png +0 -0
- data/testdata/mybook/images/06-bestpractice/sechead_design_4.png +0 -0
- data/testdata/mybook/images/06-bestpractice/section_title_wlines.png +0 -0
- data/testdata/mybook/images/06-bestpractice/titlepage-samples.png +0 -0
- data/testdata/mybook/images/93-background/bug913.png +0 -0
- data/testdata/mybook/images/93-background/slide2.png +0 -0
- data/testdata/mybook/images/avatar-b.png +0 -0
- data/testdata/mybook/images/avatar-g.png +0 -0
- data/testdata/mybook/images/avatar-r.png +0 -0
- data/testdata/mybook/images/caution-icon.png +0 -0
- data/testdata/mybook/images/cover_a5.pdf +0 -0
- data/testdata/mybook/images/cover_b5.pdf +0 -0
- data/testdata/mybook/images/info-icon.png +0 -0
- data/testdata/mybook/images/tw-icon.jpg +0 -0
- data/testdata/mybook/images/warning-icon.png +0 -0
- data/testdata/mybook/layouts/layout.epub.erb +0 -29
- data/testdata/mybook/layouts/layout.html5.erb +0 -108
- data/testdata/mybook/layouts/layout.tex.erb +0 -432
- data/testdata/mybook/layouts/layout.tex.erb.orig +0 -386
- data/testdata/mybook/lib/hooks/beforetexcompile.rb +0 -55
- data/testdata/mybook/lib/ruby/review-book.rb +0 -64
- data/testdata/mybook/lib/ruby/review-builder.rb +0 -1342
- data/testdata/mybook/lib/ruby/review-cli.rb +0 -58
- data/testdata/mybook/lib/ruby/review-compiler.rb +0 -1176
- data/testdata/mybook/lib/ruby/review-epubbuilder.rb +0 -33
- data/testdata/mybook/lib/ruby/review-epubmaker.rb +0 -609
- data/testdata/mybook/lib/ruby/review-htmlbuilder.rb +0 -949
- data/testdata/mybook/lib/ruby/review-latexbuilder.rb +0 -1065
- data/testdata/mybook/lib/ruby/review-maker.rb +0 -346
- data/testdata/mybook/lib/ruby/review-markdownbuilder.rb +0 -945
- data/testdata/mybook/lib/ruby/review-markdownmaker.rb +0 -91
- data/testdata/mybook/lib/ruby/review-monkeypatch.rb +0 -93
- data/testdata/mybook/lib/ruby/review-pdfmaker.rb +0 -546
- data/testdata/mybook/lib/ruby/review-textbuilder.rb +0 -36
- data/testdata/mybook/lib/ruby/review-tocparser.rb +0 -285
- data/testdata/mybook/lib/ruby/review-webmaker.rb +0 -448
- data/testdata/mybook/lib/tasks/mytasks.rake +0 -31
- data/testdata/mybook/lib/tasks/review.rake +0 -156
- data/testdata/mybook/lib/tasks/review.rake.orig +0 -72
- data/testdata/mybook/lib/tasks/starter.rake +0 -470
- data/testdata/mybook/locale.yml +0 -6
- data/testdata/mybook/review-ext.rb +0 -206
- data/testdata/mybook/sty/indexstyle.ist +0 -25
- data/testdata/mybook/sty/jumoline.sty +0 -310
- data/testdata/mybook/sty/mycolophon.sty +0 -81
- data/testdata/mybook/sty/mystyle.sty +0 -8
- data/testdata/mybook/sty/mytextsize.sty +0 -94
- data/testdata/mybook/sty/mytitlepage.sty +0 -126
- data/testdata/mybook/sty/review-base.sty +0 -276
- data/testdata/mybook/sty/reviewmacro.sty +0 -60
- data/testdata/mybook/sty/starter-codeblock.sty +0 -463
- data/testdata/mybook/sty/starter-color.sty +0 -134
- data/testdata/mybook/sty/starter-font.sty +0 -112
- data/testdata/mybook/sty/starter-heading.sty +0 -561
- data/testdata/mybook/sty/starter-misc.sty +0 -894
- data/testdata/mybook/sty/starter-note.sty +0 -180
- data/testdata/mybook/sty/starter-section.sty +0 -262
- data/testdata/mybook/sty/starter-talklist.sty +0 -105
- data/testdata/mybook/sty/starter-toc.sty +0 -72
- data/testdata/mybook/sty/starter-util.sty +0 -39
- data/testdata/mybook/sty/starter.sty +0 -36
- data/testdata/mybook/sty/ut.sty +0 -26
- data/testdata/mybook/style.css +0 -597
- data/testdata/mybook/ut-catalog.yml +0 -61
- data/testdata/mybook/ut-config-starter.yml +0 -3
- data/testdata/mybook/ut-config.yml +0 -404
data/.vscode/launch.json
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Debug review-retrovert",
|
|
9
|
-
"type": "Ruby",
|
|
10
|
-
"request": "launch",
|
|
11
|
-
"env": {
|
|
12
|
-
"RUBYLIB":"lib"
|
|
13
|
-
},
|
|
14
|
-
"cwd": "${workspaceRoot}",
|
|
15
|
-
"program": "${workspaceRoot}/exe/review-retrovert",
|
|
16
|
-
"args": [
|
|
17
|
-
"convert",
|
|
18
|
-
"--preproc",
|
|
19
|
-
"--tabwidth", "4",
|
|
20
|
-
"--ird",
|
|
21
|
-
"testdata/mybook/config.yml",
|
|
22
|
-
"-f",
|
|
23
|
-
"tmp/debug"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "RSpec - active spec file only",
|
|
28
|
-
"type": "Ruby",
|
|
29
|
-
"request": "launch",
|
|
30
|
-
"program": "${workspaceRoot}/bin/rspec",
|
|
31
|
-
"args": [
|
|
32
|
-
"-I",
|
|
33
|
-
"${workspaceRoot}",
|
|
34
|
-
"${file}"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "RSpec - all",
|
|
39
|
-
"type": "Ruby",
|
|
40
|
-
"request": "launch",
|
|
41
|
-
"program": "${workspaceRoot}/bin/rspec",
|
|
42
|
-
"args": [
|
|
43
|
-
"-I",
|
|
44
|
-
"${workspaceRoot}"
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
]
|
|
48
|
-
}
|
data/Dockerfile
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
review-retrovert (0.9.11)
|
|
5
|
-
review (>= 3.0.0)
|
|
6
|
-
thor
|
|
7
|
-
|
|
8
|
-
GEM
|
|
9
|
-
remote: https://rubygems.org/
|
|
10
|
-
specs:
|
|
11
|
-
activesupport (6.1.1)
|
|
12
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
-
i18n (>= 1.6, < 2)
|
|
14
|
-
minitest (>= 5.1)
|
|
15
|
-
tzinfo (~> 2.0)
|
|
16
|
-
zeitwerk (~> 2.3)
|
|
17
|
-
aruba (1.0.4)
|
|
18
|
-
childprocess (>= 2.0, < 5.0)
|
|
19
|
-
contracts (~> 0.16.0)
|
|
20
|
-
cucumber (>= 2.4, < 6.0)
|
|
21
|
-
rspec-expectations (~> 3.4)
|
|
22
|
-
thor (~> 1.0)
|
|
23
|
-
builder (3.2.4)
|
|
24
|
-
childprocess (4.0.0)
|
|
25
|
-
concurrent-ruby (1.1.7)
|
|
26
|
-
contracts (0.16.0)
|
|
27
|
-
cucumber (5.2.0)
|
|
28
|
-
builder (~> 3.2, >= 3.2.4)
|
|
29
|
-
cucumber-core (~> 8.0, >= 8.0.1)
|
|
30
|
-
cucumber-create-meta (~> 2.0, >= 2.0.2)
|
|
31
|
-
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
|
|
32
|
-
cucumber-gherkin (~> 15.0, >= 15.0.2)
|
|
33
|
-
cucumber-html-formatter (~> 9.0, >= 9.0.0)
|
|
34
|
-
cucumber-messages (~> 13.1, >= 13.1.0)
|
|
35
|
-
cucumber-wire (~> 4.0, >= 4.0.1)
|
|
36
|
-
diff-lcs (~> 1.4, >= 1.4.4)
|
|
37
|
-
multi_test (~> 0.1, >= 0.1.2)
|
|
38
|
-
sys-uname (~> 1.2, >= 1.2.1)
|
|
39
|
-
cucumber-core (8.0.1)
|
|
40
|
-
cucumber-gherkin (~> 15.0, >= 15.0.2)
|
|
41
|
-
cucumber-messages (~> 13.0, >= 13.0.1)
|
|
42
|
-
cucumber-tag-expressions (~> 2.0, >= 2.0.4)
|
|
43
|
-
cucumber-create-meta (2.0.4)
|
|
44
|
-
cucumber-messages (~> 13.1, >= 13.1.0)
|
|
45
|
-
sys-uname (~> 1.2, >= 1.2.1)
|
|
46
|
-
cucumber-cucumber-expressions (10.3.0)
|
|
47
|
-
cucumber-gherkin (15.0.2)
|
|
48
|
-
cucumber-messages (~> 13.0, >= 13.0.1)
|
|
49
|
-
cucumber-html-formatter (9.0.0)
|
|
50
|
-
cucumber-messages (~> 13.0, >= 13.0.1)
|
|
51
|
-
cucumber-messages (13.2.1)
|
|
52
|
-
protobuf-cucumber (~> 3.10, >= 3.10.8)
|
|
53
|
-
cucumber-tag-expressions (2.0.4)
|
|
54
|
-
cucumber-wire (4.0.1)
|
|
55
|
-
cucumber-core (~> 8.0, >= 8.0.1)
|
|
56
|
-
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
|
|
57
|
-
cucumber-messages (~> 13.0, >= 13.0.1)
|
|
58
|
-
diff-lcs (1.4.4)
|
|
59
|
-
ffi (1.14.2)
|
|
60
|
-
i18n (1.8.7)
|
|
61
|
-
concurrent-ruby (~> 1.0)
|
|
62
|
-
image_size (2.1.2)
|
|
63
|
-
middleware (0.1.0)
|
|
64
|
-
minitest (5.14.3)
|
|
65
|
-
multi_test (0.1.2)
|
|
66
|
-
pastel (0.8.0)
|
|
67
|
-
tty-color (~> 0.5)
|
|
68
|
-
protobuf-cucumber (3.10.8)
|
|
69
|
-
activesupport (>= 3.2)
|
|
70
|
-
middleware
|
|
71
|
-
thor
|
|
72
|
-
thread_safe
|
|
73
|
-
rake (12.3.3)
|
|
74
|
-
review (5.2.0)
|
|
75
|
-
image_size
|
|
76
|
-
rouge
|
|
77
|
-
rubyzip
|
|
78
|
-
tty-logger
|
|
79
|
-
rouge (3.26.0)
|
|
80
|
-
rspec (3.10.0)
|
|
81
|
-
rspec-core (~> 3.10.0)
|
|
82
|
-
rspec-expectations (~> 3.10.0)
|
|
83
|
-
rspec-mocks (~> 3.10.0)
|
|
84
|
-
rspec-core (3.10.1)
|
|
85
|
-
rspec-support (~> 3.10.0)
|
|
86
|
-
rspec-expectations (3.10.1)
|
|
87
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
88
|
-
rspec-support (~> 3.10.0)
|
|
89
|
-
rspec-mocks (3.10.1)
|
|
90
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
91
|
-
rspec-support (~> 3.10.0)
|
|
92
|
-
rspec-support (3.10.1)
|
|
93
|
-
ruby-debug-ide (0.7.2)
|
|
94
|
-
rake (>= 0.8.1)
|
|
95
|
-
rubyzip (2.3.2)
|
|
96
|
-
sys-uname (1.2.2)
|
|
97
|
-
ffi (~> 1.1)
|
|
98
|
-
thor (1.0.1)
|
|
99
|
-
thread_safe (0.3.6)
|
|
100
|
-
tty-color (0.6.0)
|
|
101
|
-
tty-logger (0.6.0)
|
|
102
|
-
pastel (~> 0.8)
|
|
103
|
-
tzinfo (2.0.4)
|
|
104
|
-
concurrent-ruby (~> 1.0)
|
|
105
|
-
zeitwerk (2.4.2)
|
|
106
|
-
|
|
107
|
-
PLATFORMS
|
|
108
|
-
ruby
|
|
109
|
-
|
|
110
|
-
DEPENDENCIES
|
|
111
|
-
aruba (~> 1.0.2)
|
|
112
|
-
rake (~> 12.0)
|
|
113
|
-
review-retrovert!
|
|
114
|
-
rspec (~> 3.0)
|
|
115
|
-
ruby-debug-ide
|
|
116
|
-
|
|
117
|
-
BUNDLED WITH
|
|
118
|
-
2.1.4
|
data/Makefile
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
help: ## show help
|
|
2
|
-
@grep -E '^[a-zA-Z][a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed -e 's/^GNUmakefile://' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
|
3
|
-
|
|
4
|
-
init:
|
|
5
|
-
bundle install --binstubs
|
|
6
|
-
|
|
7
|
-
review3:
|
|
8
|
-
docker build . -t review-3-retrovert -f docker/review.Dockerfile --build-arg REVIEW_VERSION=3.2
|
|
9
|
-
docker run -it --rm -w /work review-3-retrovert bash
|
|
10
|
-
|
|
11
|
-
test:
|
|
12
|
-
RUBYLIB=lib ./exe/review-retrovert convert --preproc --tabwidth 4 testdata/mybook/config.yml -f tmp/debug
|
|
13
|
-
|
|
14
|
-
test-ird:
|
|
15
|
-
RUBYLIB=lib ./exe/review-retrovert convert --preproc --tabwidth 4 --ird testdata/mybook/config.yml -f tmp/debug
|
|
16
|
-
|
|
17
|
-
test-ut:
|
|
18
|
-
RUBYLIB=lib ./exe/review-retrovert convert --preproc --tabwidth 4 testdata/mybook/ut-config.yml -f tmp/debug
|
|
19
|
-
|
|
20
|
-
REVIEW_VERSION:=latest
|
|
21
|
-
|
|
22
|
-
debug-build:
|
|
23
|
-
docker run --rm -v "${PWD}/tmp/debug":/work -w /work vvakame/review:${REVIEW_VERSION} rake preproc pdf
|
|
24
|
-
# docker run --rm -v "${PWD}":/work -w /work vvakame/review rake preproc pdf
|
|
25
|
-
|
|
26
|
-
testdata-pdf:
|
|
27
|
-
docker run --rm -v ${PWD}/testdata/mybook:/work -w /work kauplan/review2.5 rake pdf
|
|
28
|
-
|
|
29
|
-
testdata-ut-pdf:
|
|
30
|
-
# rm -rf ./testdata/mybook/mybook-ut-pdf
|
|
31
|
-
docker run --rm -v ${PWD}/testdata/mybook:/work -w /work -e config=ut-config.yml kauplan/review2.5 rake pdf
|
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "review/retrovert"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/docker/review.Dockerfile
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
ARG REVIEW_VERSION=lastest
|
|
2
|
-
FROM vvakame/review:$REVIEW_VERSION
|
|
3
|
-
ARG REVIEW_VERSION
|
|
4
|
-
|
|
5
|
-
WORKDIR /work
|
|
6
|
-
COPY . .
|
|
7
|
-
ENV BUNDLE_GEMFILE=Gemfile-$REVIEW_VERSION
|
|
8
|
-
RUN cp Gemfile Gemfile-$REVIEW_VERSION && \
|
|
9
|
-
echo "gem \"review\", \"$REVIEW_VERSION\"" >> Gemfile-$REVIEW_VERSION && \
|
|
10
|
-
bundle install
|
data/hooks/post_push
DELETED
data/package-lock.json
DELETED
data/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
data/review-retrovert.gemspec
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
require_relative 'lib/review/retrovert/version'
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name = "review-retrovert"
|
|
5
|
-
spec.version = ReVIEW::Retrovert::VERSION
|
|
6
|
-
spec.authors = ["srz_zumix"]
|
|
7
|
-
spec.email = ["zumix.cpp@gmail.com"]
|
|
8
|
-
|
|
9
|
-
spec.summary = %q{Re:VIEW Starter to Re:VIEW}
|
|
10
|
-
spec.description = %q{Re:VIEW Starter to Re:VIEW}
|
|
11
|
-
spec.homepage = "https://github.com/srz-zumix/review-retrovert"
|
|
12
|
-
spec.license = "MIT"
|
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
|
14
|
-
|
|
15
|
-
# spec.metadata["allowed_push_host"] = "http://mygemserver.com"
|
|
16
|
-
|
|
17
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/srz-zumix/review-retrovert"
|
|
19
|
-
spec.metadata["changelog_uri"] = "https://github.com/srz-zumix/review-retrovert"
|
|
20
|
-
|
|
21
|
-
# Specify which files should be added to the gem when it is released.
|
|
22
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
23
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
24
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
25
|
-
end
|
|
26
|
-
spec.bindir = "exe"
|
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
28
|
-
spec.require_paths = ["lib"]
|
|
29
|
-
|
|
30
|
-
spec.add_dependency "thor"
|
|
31
|
-
spec.add_development_dependency "rspec", ['~> 3.0']
|
|
32
|
-
spec.add_development_dependency "rake", ['~> 12.0']
|
|
33
|
-
spec.add_development_dependency 'aruba', ['~> 1.0.2']
|
|
34
|
-
spec.add_development_dependency "ruby-debug-ide"
|
|
35
|
-
# spec.add_development_dependency "debase"
|
|
36
|
-
spec.add_runtime_dependency "review", ['>= 3.0.0']
|
|
37
|
-
end
|
data/testdata/mybook/.gitignore
DELETED
data/testdata/mybook/.textlintrc
DELETED
data/testdata/mybook/README.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# README
|
|
2
|
-
|
|
3
|
-
これは Re:VIEW Starter で生成された、Re:VIEW 用プロジェクトです。
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## ユーザーズガイド
|
|
7
|
-
|
|
8
|
-
以下のサイトで「ユーザーズガイド」のPDFファイルをダウンロードできます。
|
|
9
|
-
|
|
10
|
-
- https://kauplan.org/reviewstarter/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## コンパイル方法
|
|
14
|
-
|
|
15
|
-
Docker を使う場合:
|
|
16
|
-
|
|
17
|
-
```terminal
|
|
18
|
-
$ docker pull kauplan/review2.5 # 3GB 以上ダウンロードするので注意
|
|
19
|
-
$ unzip mybook.zip
|
|
20
|
-
$ cd mybook/
|
|
21
|
-
$ docker run --rm -v $PWD:/work -w /work kauplan/review2.5 rake pdf
|
|
22
|
-
$ ## または rake docker:pdf でもOK
|
|
23
|
-
$ ls mybook.pdf
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Docker を使わない場合 (Ruby と Re:VIEW と LaTeX が必要):
|
|
27
|
-
|
|
28
|
-
```terminal
|
|
29
|
-
$ gem install review --version 2.5 # 最初に1回だけ行う(2回目からは不要)
|
|
30
|
-
$ review version # Re:VIEWのバージョンを確認
|
|
31
|
-
2.5.0 # (3系は未サポートなので注意!!)
|
|
32
|
-
$ unzip mybook.zip
|
|
33
|
-
$ cd mybook/
|
|
34
|
-
$ rake pdf
|
|
35
|
-
$ ls mybook.pdf
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
これで「mybook.pdf」が生成されます。
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## 問い合わせ
|
|
42
|
-
|
|
43
|
-
Twitter でハッシュタグ「#reviewstarter」つきでツイートしてください。
|
data/testdata/mybook/Rakefile
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
##
|
|
2
|
-
## Don't change this file!!
|
|
3
|
-
## Instead, edit 'lib/tasks/mytasks.rake' file.
|
|
4
|
-
##
|
|
5
|
-
|
|
6
|
-
## `gem install foobar` will raise error in macOS.
|
|
7
|
-
## the following is a hack to avoid that error.
|
|
8
|
-
rubygems_dir = File.join(Dir.pwd, 'rubygems')
|
|
9
|
-
if ENV['GEM_HOME'].to_s.empty? && File.directory?(rubygems_dir)
|
|
10
|
-
#ENV['GEM_HOME'] = rubygems_dir
|
|
11
|
-
Gem.paths = {'GEM_HOME' => rubygems_dir}
|
|
12
|
-
end
|
|
13
|
-
Dir.glob('lib/tasks/*.rake').each do |file|
|
|
14
|
-
load(file)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
##
|
|
18
|
-
desc "+ list tasks"
|
|
19
|
-
task :help do
|
|
20
|
-
sh "rake -T"
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
task(:default).clear
|
|
24
|
-
task :default => (ENV['RAKE_DEFAULT'] || :help)
|
data/testdata/mybook/catalog.yml
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
## 注:タブ文字を使わないこと(使うとエラーになる)
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
## まえがき
|
|
8
|
-
PREDEF:
|
|
9
|
-
- 00-preface.re
|
|
10
|
-
|
|
11
|
-
## 本文
|
|
12
|
-
CHAPS:
|
|
13
|
-
- 01-install.re
|
|
14
|
-
- 02-tutorial.re
|
|
15
|
-
- 03-syntax.re
|
|
16
|
-
- 04-customize.re
|
|
17
|
-
- 05-faq.re
|
|
18
|
-
- 06-bestpractice.re
|
|
19
|
-
- r0-root.re
|
|
20
|
-
|
|
21
|
-
## 付録
|
|
22
|
-
APPENDIX:
|
|
23
|
-
- 91-compare.re
|
|
24
|
-
- 92-filelist.re
|
|
25
|
-
- 93-background.re
|
|
26
|
-
|
|
27
|
-
## あとがき
|
|
28
|
-
POSTDEF:
|
|
29
|
-
- 99-postface.re
|
|
30
|
-
|
|
31
|
-
##
|
|
32
|
-
## 【Tips】
|
|
33
|
-
##
|
|
34
|
-
## ・付録やまえがきやあとがきがなければ、空にする。
|
|
35
|
-
## 例:
|
|
36
|
-
##
|
|
37
|
-
## PREDEF:
|
|
38
|
-
##
|
|
39
|
-
## CHAPS:
|
|
40
|
-
## - 01-install.re
|
|
41
|
-
##
|
|
42
|
-
## APPENDIX:
|
|
43
|
-
##
|
|
44
|
-
## POSTDEF:
|
|
45
|
-
##
|
|
46
|
-
##
|
|
47
|
-
## ・第I部、第II部、…のように「部」を使うには、次のようにする。
|
|
48
|
-
## (部タイトルの最後に半角の「:」をつけることに注意)
|
|
49
|
-
##
|
|
50
|
-
## CHAPS:
|
|
51
|
-
## - 初級編:
|
|
52
|
-
## - 01-install.re
|
|
53
|
-
## - 02-tutorial.re
|
|
54
|
-
## - 中級編:
|
|
55
|
-
## - 03-syntax.re
|
|
56
|
-
## - 04-customize.re
|
|
57
|
-
## - 上級編:
|
|
58
|
-
## - 05-faq.re
|
|
59
|
-
## - 06-bestpractice.re
|
|
60
|
-
##
|