my_help 0.8.6 → 1.1
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/'../test'/.my_help/.my_help_conf.yml +2 -0
- data/'../test'/.my_help/emacs.org +50 -0
- data/{lib/templates → '../test'/.my_help}/org.org +0 -0
- data/{lib/templates → '../test'/.my_help}/todo.org +0 -0
- data/.gitignore +7 -0
- data/.my_help/example2.org +9 -0
- data/.rspec +1 -2
- data/.rspec_status +13 -0
- data/.yardoc/checksums +3 -3
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile +10 -5
- data/Gemfile.lock +61 -88
- data/README.org +35 -47
- data/Rakefile +25 -14
- data/doc/MyHelp/Control.html +443 -221
- data/doc/MyHelp.html +7 -7
- data/doc/OrgToYaml.html +12 -10
- data/doc/_index.html +7 -7
- data/doc/class_list.html +2 -2
- data/doc/css/style.css +3 -2
- data/doc/file.README.html +29 -29
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +29 -29
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +24 -8
- data/doc/top-level-namespace.html +6 -6
- data/docs/README.html +218 -0
- data/docs/README.org +202 -0
- data/docs/old_docs/16b_nasu.pdf +0 -0
- data/docs/old_docs/17b_oyagi.pdf +0 -0
- data/docs/old_docs/19b_okabata.pdf +0 -0
- data/docs/old_docs/19b_yamaguchi.pdf +0 -0
- data/docs/old_docs/features/delete.feature +7 -0
- data/docs/old_docs/features/edit.feature +7 -0
- data/docs/old_docs/features/list.feature +6 -0
- data/docs/old_docs/features/new.feature +7 -0
- data/docs/old_docs/features/step_definitions/delete_spec.rb +12 -0
- data/docs/old_docs/features/step_definitions/edit_spec.rb +14 -0
- data/docs/old_docs/features/step_definitions/list_spec.rb +10 -0
- data/docs/old_docs/features/step_definitions/new_spec.rb +12 -0
- data/docs/old_docs/features/support/env.rb +3 -0
- data/docs/old_docs/fukumori_symp/18_human_interface_fukumori_workshop.pdf +0 -0
- data/docs/old_docs/fukumori_symp/memo_perp_magician.pdf +0 -0
- data/docs/old_docs/fukumori_symp//347/237/245/350/255/230/343/201/256/347/233/264/344/272/244/350/243/234/347/251/272/351/226/223.png +0 -0
- data/exe/my_help +1 -142
- data/lib/my_help/cli.rb +106 -0
- data/lib/my_help/config.rb +70 -0
- data/lib/my_help/git_cli.rb +40 -0
- data/lib/my_help/init.rb +28 -0
- data/lib/my_help/list.rb +76 -0
- data/lib/my_help/md2hash.rb +54 -0
- data/lib/my_help/modify.rb +33 -0
- data/lib/my_help/org2hash.rb +45 -0
- data/lib/my_help/org2yml.rb +14 -14
- data/lib/my_help/version.rb +3 -1
- data/lib/my_help.rb +23 -7
- data/lib/templates/emacs.org +13 -14
- data/lib/templates/example.md +17 -0
- data/lib/templates/example.org +9 -0
- data/my_help.gemspec +26 -22
- data/tmp.txt +14 -0
- metadata +51 -25
- data/README.html +0 -443
- data/README.rdoc +0 -6
- data/bin/my_help_thor +0 -66
- data/exe/my_help_gli +0 -82
- data/lib/my_help/my_help_controll.rb +0 -222
- data/lib/my_help/tomo_help_controll.rb +0 -0
- data/lib/templates/help_template.org +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 564753efc9cef4daea1c31839b464b39f24c74cb79e3ca1eac262dbbfe059018
|
4
|
+
data.tar.gz: 73336ae571ed079bc34ac6b6bdf229ccca5e875e41ac668ff65998776f9ee2ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f43172b79ddc338021d83f8791088a45fd573a7c8b090d12b7e2f85708c1b9863c6866809fc49969995af6233bd4b2869b388c9cb7e4b7597466ba1007b8a65e
|
7
|
+
data.tar.gz: 6886f5fd8276df5d4325e87c524c31fd236a6d0b45150571072b596c7b13abd7b6b4670d69d99deade5128348e30345c696e6c761074b9195ab0be1a0bea3006
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#+STARTUP: indent nolineimages
|
2
|
+
* head
|
3
|
+
- Emacs key bind
|
4
|
+
-
|
5
|
+
special key command
|
6
|
+
- c-f, While pressing the control key, press 'f'
|
7
|
+
- M-f, After pressing Esc key, press 'f'
|
8
|
+
- c-g, Operation interruption
|
9
|
+
- c-x u, Undo operation(Undo)
|
10
|
+
* license
|
11
|
+
- cc by Natsuko Kawabata, 2017
|
12
|
+
|
13
|
+
* move cursor
|
14
|
+
- c-f, move Forward, Move to forward or right
|
15
|
+
- c-b, move Backward, Move to back or left
|
16
|
+
- c-a, go Ahead of line, Move to the beginning of the line
|
17
|
+
- c-e, go End of line, Move to the end of the line
|
18
|
+
- c-n, move Next line, Move to next line
|
19
|
+
- c-p, move Previous line, Move to previous line
|
20
|
+
* move page
|
21
|
+
- c-v, move Vertical, Move to next page
|
22
|
+
- M-v, move reversive Vertical,Move to previous page
|
23
|
+
- c-l, centerise Line, Move to center on current line
|
24
|
+
- M-<, move Top of file, Move to the top of the file
|
25
|
+
- M->, move Bottom of file, Move to the end of the file
|
26
|
+
* file operation file
|
27
|
+
- c-x c-f, Find file, Find file
|
28
|
+
- c-x c-s, Save file, Save file
|
29
|
+
- c-x c-w, Write file NAME, Write a file with another name
|
30
|
+
* edit operation
|
31
|
+
- c-d, Delete char, Delete a letter
|
32
|
+
- c-k, Kill line, Delete a line,cut
|
33
|
+
- c-y, Yank, Paste
|
34
|
+
- c-w, Kill region, Delete an area ,cut
|
35
|
+
- 領域選択は,先頭 or 最後尾で c-space した後,最後尾 or 先頭へカーソル移動
|
36
|
+
- c-s, forward incremental Search WORD, 前へ WORD を検索
|
37
|
+
- c-r, Reverse incremental search WORD, 後へ WORD を検索
|
38
|
+
- M-x query-replace WORD1 <ret> WORD2:対話的置換(y or n で可否選択)
|
39
|
+
* window operation
|
40
|
+
- c-x 2, 2 windows, Split into two windows 二つに分割
|
41
|
+
- c-x 1, 1 windows, Integrate in a window
|
42
|
+
- c-x 3, 3rd window sep, Split vertically
|
43
|
+
- c-x o, Other windows, Move to the next window
|
44
|
+
* buffer operation
|
45
|
+
- すでに open して Emacs にバッファーされた file
|
46
|
+
- c-x b, show Buffer, Buffer list
|
47
|
+
- c-x c-b, next Buffer, Move to next buffer
|
48
|
+
* quit operation
|
49
|
+
- c-x c-c, Quit Emacs, Save file and quit
|
50
|
+
- c-z, suspend Emacs, Pause,restart with fg
|
File without changes
|
File without changes
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
data/.rspec_status
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
--------------------------- | ------ | --------------- |
|
3
|
+
./spec/cli_spec.rb[1:1:1] | passed | 0.31228 seconds |
|
4
|
+
./spec/cli_spec.rb[1:2:1] | passed | 0.31058 seconds |
|
5
|
+
./spec/cli_spec.rb[1:3:1] | passed | 0.31153 seconds |
|
6
|
+
./spec/cli_spec.rb[1:4:1] | passed | 0.2152 seconds |
|
7
|
+
./spec/cli_spec.rb[1:4:2] | passed | 0.21003 seconds |
|
8
|
+
./spec/cli_spec.rb[1:5:1] | passed | 0.31109 seconds |
|
9
|
+
./spec/cli_spec.rb[1:6:1] | passed | 0.31433 seconds |
|
10
|
+
./spec/cli_spec.rb[1:7:1] | passed | 0.21002 seconds |
|
11
|
+
./spec/cli_spec.rb[1:7:2] | passed | 0.21031 seconds |
|
12
|
+
./spec/cli_spec.rb[1:7:3] | passed | 0.21089 seconds |
|
13
|
+
./spec/my_help_spec.rb[1:1] | passed | 0.00078 seconds |
|
data/.yardoc/checksums
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
lib/my_help.rb ced6dd68eb7342dc65e8c8506359cb9a18f37fde
|
2
|
-
lib/my_help/org2yml.rb
|
3
|
-
lib/my_help/version.rb
|
4
|
-
lib/my_help/my_help_controll.rb
|
2
|
+
lib/my_help/org2yml.rb 0246f80ac2e821e5778aff8395dabbd6fbedc1d6
|
3
|
+
lib/my_help/version.rb 8107e9718a720a9369e085771ab7c04ecb5bb8dc
|
4
|
+
lib/my_help/my_help_controll.rb ccf627da5074e19887d379130df76b0b3db845a2
|
5
5
|
lib/my_help/tomo_help_controll.rb da39a3ee5e6b4b0d3255bfef95601890afd80709
|
data/.yardoc/object_types
CHANGED
Binary file
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/Gemfile
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in my_help.gemspec
|
2
6
|
gemspec
|
3
|
-
|
4
|
-
gem
|
5
|
-
|
6
|
-
gem
|
7
|
+
|
8
|
+
gem "rake", "~> 13.0"
|
9
|
+
|
10
|
+
gem "rspec", "~> 3.0"
|
11
|
+
gem 'aruba', '~> 2.1.0'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
my_help (
|
4
|
+
my_help (1.0c)
|
5
5
|
colorize
|
6
6
|
command_line
|
7
7
|
thor
|
@@ -9,102 +9,75 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
childprocess (>= 0.6.3, < 4.0.0)
|
20
|
-
contracts (~> 0.9)
|
21
|
-
cucumber (>= 1.3.19)
|
22
|
-
ffi (~> 1.9)
|
23
|
-
rspec-expectations (>= 2.99)
|
24
|
-
thor (>= 0.19, < 2.0)
|
12
|
+
aruba (2.1.0)
|
13
|
+
bundler (>= 1.17, < 3.0)
|
14
|
+
childprocess (>= 2.0, < 5.0)
|
15
|
+
contracts (>= 0.16.0, < 0.18.0)
|
16
|
+
cucumber (>= 4.0, < 9.0)
|
17
|
+
rspec-expectations (~> 3.4)
|
18
|
+
thor (~> 1.0)
|
25
19
|
builder (3.2.4)
|
26
|
-
childprocess (
|
27
|
-
color_echo (3.1.1)
|
20
|
+
childprocess (4.1.0)
|
28
21
|
colorize (0.8.1)
|
29
|
-
command_line (
|
30
|
-
|
31
|
-
|
32
|
-
cucumber (5.1.2)
|
22
|
+
command_line (2.0.1)
|
23
|
+
contracts (0.16.1)
|
24
|
+
cucumber (8.0.0)
|
33
25
|
builder (~> 3.2, >= 3.2.4)
|
34
|
-
cucumber-
|
35
|
-
cucumber-
|
36
|
-
cucumber-cucumber-expressions (~>
|
37
|
-
cucumber-gherkin (~>
|
38
|
-
cucumber-html-formatter (~>
|
39
|
-
cucumber-messages (~>
|
40
|
-
|
41
|
-
|
42
|
-
multi_test (~>
|
43
|
-
sys-uname (~> 1.2, >= 1.2.
|
44
|
-
cucumber-
|
45
|
-
|
46
|
-
cucumber-
|
47
|
-
cucumber-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
cucumber-
|
53
|
-
cucumber-messages (~>
|
54
|
-
cucumber-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
protobuf-cucumber (3.10.8)
|
71
|
-
activesupport (>= 3.2)
|
72
|
-
middleware
|
73
|
-
thor
|
74
|
-
thread_safe
|
75
|
-
rake (13.0.1)
|
76
|
-
rspec (3.9.0)
|
77
|
-
rspec-core (~> 3.9.0)
|
78
|
-
rspec-expectations (~> 3.9.0)
|
79
|
-
rspec-mocks (~> 3.9.0)
|
80
|
-
rspec-core (3.9.2)
|
81
|
-
rspec-support (~> 3.9.3)
|
82
|
-
rspec-expectations (3.9.2)
|
26
|
+
cucumber-ci-environment (~> 9.0, >= 9.0.4)
|
27
|
+
cucumber-core (~> 11.0, >= 11.0.0)
|
28
|
+
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
|
29
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
30
|
+
cucumber-html-formatter (~> 19.1, >= 19.1.0)
|
31
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
32
|
+
diff-lcs (~> 1.5, >= 1.5.0)
|
33
|
+
mime-types (~> 3.4, >= 3.4.1)
|
34
|
+
multi_test (~> 1.1, >= 1.1.0)
|
35
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
36
|
+
cucumber-ci-environment (9.1.0)
|
37
|
+
cucumber-core (11.0.0)
|
38
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
39
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
40
|
+
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
|
41
|
+
cucumber-cucumber-expressions (15.2.0)
|
42
|
+
cucumber-gherkin (23.0.1)
|
43
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
44
|
+
cucumber-html-formatter (19.2.0)
|
45
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
46
|
+
cucumber-messages (18.0.0)
|
47
|
+
cucumber-tag-expressions (4.1.0)
|
48
|
+
diff-lcs (1.5.0)
|
49
|
+
ffi (1.15.5)
|
50
|
+
mime-types (3.4.1)
|
51
|
+
mime-types-data (~> 3.2015)
|
52
|
+
mime-types-data (3.2022.0105)
|
53
|
+
multi_test (1.1.0)
|
54
|
+
rake (13.0.6)
|
55
|
+
rspec (3.12.0)
|
56
|
+
rspec-core (~> 3.12.0)
|
57
|
+
rspec-expectations (~> 3.12.0)
|
58
|
+
rspec-mocks (~> 3.12.0)
|
59
|
+
rspec-core (3.12.0)
|
60
|
+
rspec-support (~> 3.12.0)
|
61
|
+
rspec-expectations (3.12.1)
|
83
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
-
rspec-support (~> 3.
|
85
|
-
rspec-mocks (3.
|
63
|
+
rspec-support (~> 3.12.0)
|
64
|
+
rspec-mocks (3.12.1)
|
86
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
-
rspec-support (~> 3.
|
88
|
-
rspec-support (3.
|
89
|
-
sys-uname (1.2.
|
90
|
-
ffi (
|
91
|
-
thor (1.
|
92
|
-
thread_safe (0.3.6)
|
93
|
-
tzinfo (1.2.7)
|
94
|
-
thread_safe (~> 0.1)
|
95
|
-
zeitwerk (2.4.0)
|
66
|
+
rspec-support (~> 3.12.0)
|
67
|
+
rspec-support (3.12.0)
|
68
|
+
sys-uname (1.2.2)
|
69
|
+
ffi (~> 1.1)
|
70
|
+
thor (1.2.1)
|
96
71
|
|
97
72
|
PLATFORMS
|
98
|
-
|
73
|
+
arm64-darwin-20
|
74
|
+
x86_64-linux
|
99
75
|
|
100
76
|
DEPENDENCIES
|
101
|
-
aruba (~>
|
102
|
-
color_echo
|
103
|
-
command_line (~> 1.1.0)
|
104
|
-
ffi (~> 1.9)
|
77
|
+
aruba (~> 2.1.0)
|
105
78
|
my_help!
|
106
|
-
rake
|
107
|
-
rspec
|
79
|
+
rake (~> 13.0)
|
80
|
+
rspec (~> 3.0)
|
108
81
|
|
109
82
|
BUNDLED WITH
|
110
|
-
2.
|
83
|
+
2.3.23
|
data/README.org
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# my_help
|
2
2
|
#+AUTHOR: Shigeto R. Nishitani
|
3
3
|
#+EMAIL: (concat "nishitani@kwansei.ac.jp")
|
4
4
|
#+LANGUAGE: jp
|
@@ -21,8 +21,10 @@ CUI(CLA)ヘルプのUsage出力を真似て,user独自のhelpを作成・提
|
|
21
21
|
:END:
|
22
22
|
|
23
23
|
CUIやshell, 何かのプログラミング言語などを習得しようとする初心者は,
|
24
|
-
command
|
25
|
-
|
24
|
+
commandや文法を覚えるのに苦労します.
|
25
|
+
少しのkey(とっかかり)があると思い出すんですが,
|
26
|
+
うろ覚えでは間違えて路頭に迷います.
|
27
|
+
問題点は,
|
26
28
|
+ manは基本的に英語
|
27
29
|
+ manualでは重たい
|
28
30
|
+ いつもおなじことをwebで検索して
|
@@ -35,7 +37,7 @@ commandや文法を覚えるのに苦労します.少しのkey(とっかかり
|
|
35
37
|
:CUSTOM_ID: 特徴
|
36
38
|
:END:
|
37
39
|
|
38
|
-
これらをCLA
|
40
|
+
これらをCLAとして提供しようというのが,このgemの目的です.
|
39
41
|
仕様としては,
|
40
42
|
- userが自分にあったmanを作成
|
41
43
|
- 雛形を提供
|
@@ -48,6 +50,7 @@ key(記憶のとっかかり)を提供することが目的です.
|
|
48
50
|
RPGでレベル上げとかアイテムを貯めるようにして,
|
49
51
|
プログラミングでスキルを発展させてください.
|
50
52
|
|
53
|
+
VSCodeやGithub Copilotではcodeの候補を挙げてくれますが,
|
51
54
|
物覚えの悪い作者は,人の名前をitem分けして,こそっと使っています.
|
52
55
|
|
53
56
|
* 使用法
|
@@ -56,7 +59,7 @@ RPGでレベル上げとかアイテムを貯めるようにして,
|
|
56
59
|
:END:
|
57
60
|
** インストール
|
58
61
|
|
59
|
-
:
|
62
|
+
: > gem install my_help
|
60
63
|
です.
|
61
64
|
|
62
65
|
** 簡単な使用法
|
@@ -65,8 +68,8 @@ RPGでレベル上げとかアイテムを貯めるようにして,
|
|
65
68
|
:END:
|
66
69
|
|
67
70
|
まずは,
|
68
|
-
#+
|
69
|
-
my_help
|
71
|
+
#+begin_src bash
|
72
|
+
> my_help
|
70
73
|
Commands:
|
71
74
|
my_help delete HELP # delete HELP
|
72
75
|
my_help edit HELP # edit HELP
|
@@ -76,17 +79,18 @@ Commands:
|
|
76
79
|
my_help set_editor EDITOR_NAME # set editor to EDITOR_NAME
|
77
80
|
my_help setup # set up the test database
|
78
81
|
my_help version # show version
|
79
|
-
#+
|
82
|
+
#+end_src
|
80
83
|
としてください.このlistにNAMEやITEMを加えて行くとわかると思います.
|
81
84
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
85
|
+
#+begin_src bash
|
86
|
+
> my_help list
|
87
|
+
> my_help list emacs
|
88
|
+
> my_help list emacs -f
|
89
|
+
> my_help list emacs file
|
90
|
+
#+end_src
|
86
91
|
として動かしてみてください.
|
87
92
|
|
88
|
-
|
89
|
-
#+BEGIN_EXAMPLE
|
93
|
+
#+begin_src bash
|
90
94
|
- emacsのキーバインド
|
91
95
|
-
|
92
96
|
特殊キー操作
|
@@ -107,49 +111,33 @@ Commands:
|
|
107
111
|
, query_replace : query_replace
|
108
112
|
-r, ruby-mode : ruby-mode
|
109
113
|
-d, dired : ファイラとして使う
|
110
|
-
#+
|
114
|
+
#+end_src
|
115
|
+
|
116
|
+
** my_helpがやっていること
|
117
|
+
my_helpの個々のヘルプファイルは'~/.my_help'に置かれています.
|
118
|
+
ヘルプファイルのフォーマットはEmacsのorg-modeです.
|
119
|
+
これをEditorで叩いて編集したり,
|
120
|
+
そこから情報を取り出したりしています.
|
121
|
+
単にファイル操作を集約しているだけなのですが,
|
122
|
+
これが面倒で...
|
123
|
+
|
111
124
|
|
112
125
|
** 独自のhelpを作る方法
|
113
126
|
独自のhelpを作る方法です.まずは,
|
114
127
|
|
115
|
-
: my_help new new_help
|
128
|
+
: $ my_help new new_help
|
116
129
|
|
117
130
|
で,new_helpというtemplateが用意されます.
|
118
|
-
: my_help edit new_help
|
119
|
-
で編集してください.
|
131
|
+
: $ my_help edit new_help
|
132
|
+
で編集してください. Emacs org形式で,格納されています.
|
120
133
|
|
121
|
-
: my_help delete new_help
|
134
|
+
: $ my_help delete new_help
|
122
135
|
|
123
136
|
すると消されます.
|
124
137
|
** editorの変更
|
125
|
-
: my_help set_editor vim
|
138
|
+
: $ my_help set_editor vim
|
126
139
|
でeditorを変更できます.codeとかは確認していますが,
|
127
140
|
それ以外で動いたり,動かなかったりを報告してください.
|
128
141
|
|
129
|
-
|
130
|
-
|
131
|
-
以下は,開発者メモです.
|
132
|
-
testは[[/Users/bob/github/ruby_docs/testing_frameworks/test_unit/README.org]]
|
133
|
-
にあるのに従って書いています.
|
134
|
-
|
135
|
-
「Rubyベストプラクティス」にあるmustを使ったextension
|
136
|
-
を組み込んで,DSLにしている.
|
137
|
-
[[https://github.com/practicingruby/rbp/blob/master/testing/test_unit_extensions.rb]]
|
138
|
-
|
139
|
-
* rspec <2020-09-30 水>
|
140
|
-
shuheiがrspecを組み込んでくれていたはずだが,うまく動いていないみたい.
|
141
|
-
: gem install ffi -v "1.12.1"
|
142
|
-
でerrorが出る.
|
143
|
-
|
144
|
-
#+begin_example
|
145
|
-
brew reinstall libffi
|
146
|
-
set -gx PKG_CONFIG_PATH "/usr/local/opt/libffi/lib/pkgconfig"
|
147
|
-
set -gx CPPFLAGS "-I/usr/local/opt/libffi/include"
|
148
|
-
set -gx LDFLAGS "-L/usr/local/opt/libffi/lib"
|
149
|
-
gem install ffi
|
150
|
-
#+end_example
|
151
|
-
で解消.
|
152
|
-
: bundle update
|
153
|
-
: bundle exec rspec
|
154
|
-
で試したが,相対パスでなく絶対パス的な設定がされているようでダメ.
|
155
|
-
|
142
|
+
OS Xで'emacs'とした時にGUI版が立ち上がって嫌だという場合は,
|
143
|
+
'emacs -nw'として下さい.
|
data/Rakefile
CHANGED
@@ -1,21 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require '
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rake/testtask'
|
4
5
|
|
5
6
|
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.
|
7
|
-
t.libs <<
|
8
|
-
t.
|
7
|
+
t.options = '-v'
|
8
|
+
t.libs << 'test'
|
9
|
+
t.libs << 'lib'
|
10
|
+
t.test_files = FileList['test/**/*_test.rb']
|
9
11
|
end
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
desc "make documents by yard"
|
13
|
+
desc 'make documents by yard'
|
14
14
|
task :yard do
|
15
|
-
|
16
|
-
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
15
|
+
# api_output_dir = 'doc'
|
16
|
+
YARD::Rake::YardocTask.new do |t|
|
17
|
+
# t.options << '-o#{api_output_dir}' # output dir = doc_api
|
18
|
+
# t.files=['**/*.md']
|
19
|
+
t.options += ['--title', 'my_help']
|
20
|
+
# t.options=['--exclude','lib.rb','--files','**/*.org']
|
21
|
+
# see [[https://github.com/lsegal/yard/issues/66]] for the other options
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
require 'rubocop/rake_task'
|
26
|
+
|
27
|
+
RuboCop::RakeTask.new
|
20
28
|
|
29
|
+
#task default: %i[test rubocop]
|
30
|
+
task :default do
|
31
|
+
system "rake -T"
|
21
32
|
end
|