my_help 0.8.6 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/'../test'/.my_help/.my_help_conf.yml +2 -0
  3. data/'../test'/.my_help/emacs.org +50 -0
  4. data/{lib/templates → '../test'/.my_help}/org.org +0 -0
  5. data/{lib/templates → '../test'/.my_help}/todo.org +0 -0
  6. data/.gitignore +7 -0
  7. data/.my_help/example2.org +9 -0
  8. data/.rspec +1 -2
  9. data/.rspec_status +13 -0
  10. data/.yardoc/checksums +3 -3
  11. data/.yardoc/object_types +0 -0
  12. data/.yardoc/objects/root.dat +0 -0
  13. data/Gemfile +10 -5
  14. data/Gemfile.lock +61 -88
  15. data/README.org +35 -47
  16. data/Rakefile +25 -14
  17. data/doc/MyHelp/Control.html +443 -221
  18. data/doc/MyHelp.html +7 -7
  19. data/doc/OrgToYaml.html +12 -10
  20. data/doc/_index.html +7 -7
  21. data/doc/class_list.html +2 -2
  22. data/doc/css/style.css +3 -2
  23. data/doc/file.README.html +29 -29
  24. data/doc/file_list.html +2 -2
  25. data/doc/frames.html +2 -2
  26. data/doc/index.html +29 -29
  27. data/doc/js/app.js +14 -3
  28. data/doc/method_list.html +24 -8
  29. data/doc/top-level-namespace.html +6 -6
  30. data/docs/README.html +218 -0
  31. data/docs/README.org +202 -0
  32. data/docs/old_docs/16b_nasu.pdf +0 -0
  33. data/docs/old_docs/17b_oyagi.pdf +0 -0
  34. data/docs/old_docs/19b_okabata.pdf +0 -0
  35. data/docs/old_docs/19b_yamaguchi.pdf +0 -0
  36. data/docs/old_docs/features/delete.feature +7 -0
  37. data/docs/old_docs/features/edit.feature +7 -0
  38. data/docs/old_docs/features/list.feature +6 -0
  39. data/docs/old_docs/features/new.feature +7 -0
  40. data/docs/old_docs/features/step_definitions/delete_spec.rb +12 -0
  41. data/docs/old_docs/features/step_definitions/edit_spec.rb +14 -0
  42. data/docs/old_docs/features/step_definitions/list_spec.rb +10 -0
  43. data/docs/old_docs/features/step_definitions/new_spec.rb +12 -0
  44. data/docs/old_docs/features/support/env.rb +3 -0
  45. data/docs/old_docs/fukumori_symp/18_human_interface_fukumori_workshop.pdf +0 -0
  46. data/docs/old_docs/fukumori_symp/memo_perp_magician.pdf +0 -0
  47. 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
  48. data/exe/my_help +1 -142
  49. data/lib/my_help/cli.rb +106 -0
  50. data/lib/my_help/config.rb +70 -0
  51. data/lib/my_help/git_cli.rb +40 -0
  52. data/lib/my_help/init.rb +28 -0
  53. data/lib/my_help/list.rb +76 -0
  54. data/lib/my_help/md2hash.rb +54 -0
  55. data/lib/my_help/modify.rb +33 -0
  56. data/lib/my_help/org2hash.rb +45 -0
  57. data/lib/my_help/org2yml.rb +14 -14
  58. data/lib/my_help/version.rb +3 -1
  59. data/lib/my_help.rb +23 -7
  60. data/lib/templates/emacs.org +13 -14
  61. data/lib/templates/example.md +17 -0
  62. data/lib/templates/example.org +9 -0
  63. data/my_help.gemspec +26 -22
  64. data/tmp.txt +14 -0
  65. metadata +51 -25
  66. data/README.html +0 -443
  67. data/README.rdoc +0 -6
  68. data/bin/my_help_thor +0 -66
  69. data/exe/my_help_gli +0 -82
  70. data/lib/my_help/my_help_controll.rb +0 -222
  71. data/lib/my_help/tomo_help_controll.rb +0 -0
  72. data/lib/templates/help_template.org +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 871927da25328b86ac258c721aa91c4001caefcb8a0e07a170af5ac241561d07
4
- data.tar.gz: 1a7639867760309d36cd71a0696dd2bde8ab2d9d78b912984abc88dd72458dc5
3
+ metadata.gz: 564753efc9cef4daea1c31839b464b39f24c74cb79e3ca1eac262dbbfe059018
4
+ data.tar.gz: 73336ae571ed079bc34ac6b6bdf229ccca5e875e41ac668ff65998776f9ee2ac
5
5
  SHA512:
6
- metadata.gz: 7a598090a7eaa81d6c355168a6a2e41d5ac816119a2c50813047dd37c169418af1198fac09fb1c739cb7d69066980eb5a7bd0766cd4a64d6982b5cb42712b68d
7
- data.tar.gz: 972696bf11ff387fb23f5e954d0b24cf6c1d66b8776f92a0a222dc18103835f2b3108021f73715526ae5f1e468e595b221e6e0126ceea4498824e9a5ffa8cd3b
6
+ metadata.gz: f43172b79ddc338021d83f8791088a45fd573a7c8b090d12b7e2f85708c1b9863c6866809fc49969995af6233bd4b2869b388c9cb7e4b7597466ba1007b8a65e
7
+ data.tar.gz: 6886f5fd8276df5d4325e87c524c31fd236a6d0b45150571072b596c7b13abd7b6b4670d69d99deade5128348e30345c696e6c761074b9195ab0be1a0bea3006
@@ -0,0 +1,2 @@
1
+ ---
2
+ :editor: emacs
@@ -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
@@ -1,10 +1,17 @@
1
1
  /tmp
2
2
  .DS_Store
3
3
  /.bundle/
4
+ /.yardoc
4
5
  /_yardoc/
5
6
  /coverage/
7
+ /doc/
6
8
  /pkg/
9
+ /spec/reports/
10
+ /vendor/
11
+ /tmp/
12
+ /.tags
7
13
  *~
8
14
  \#*
15
+ .\#*
9
16
 
10
17
  .ruby-version
@@ -0,0 +1,9 @@
1
+ #+STARTUP: indent nolineimages overview
2
+ * head
3
+ - help_title example
4
+ * license
5
+ - cc by Shigeto R. Nishitani, 2016-22
6
+ * a_item : item_short_description
7
+ - content_a
8
+ * b_item
9
+ - content_b
data/.rspec CHANGED
@@ -1,4 +1,3 @@
1
- --require spec_helper
2
1
  --format documentation
3
2
  --color
4
-
3
+ --require spec_helper
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 4be5461e87290a6c8fa4ef802df8b64e8c63ca9a
3
- lib/my_help/version.rb 0c71ad78597c647364908e595140b5fb9af9e6a3
4
- lib/my_help/my_help_controll.rb fba5c56e7e7c716d4d34b6851a808e959ecdb773
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
Binary file
data/Gemfile CHANGED
@@ -1,6 +1,11 @@
1
- source 'https://rubygems.org'
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
- gem 'ffi', '~> 1.9'
4
- gem 'aruba', '~> 0.14.12'
5
- gem 'command_line', '~> 1.1.0'
6
- gem 'color_echo'
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 (0.8.5)
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
- activesupport (6.0.3.3)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- zeitwerk (~> 2.2, >= 2.2.2)
18
- aruba (0.14.14)
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 (3.0.0)
27
- color_echo (3.1.1)
20
+ childprocess (4.1.0)
28
21
  colorize (0.8.1)
29
- command_line (1.1.0)
30
- concurrent-ruby (1.1.7)
31
- contracts (0.16.0)
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-core (~> 8.0, >= 8.0.1)
35
- cucumber-create-meta (~> 2.0, >= 2.0.2)
36
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
37
- cucumber-gherkin (~> 15.0, >= 15.0.2)
38
- cucumber-html-formatter (~> 9.0, >= 9.0.0)
39
- cucumber-messages (~> 13.1, >= 13.1.0)
40
- cucumber-wire (~> 4.0, >= 4.0.1)
41
- diff-lcs (~> 1.4, >= 1.4.4)
42
- multi_test (~> 0.1, >= 0.1.2)
43
- sys-uname (~> 1.2, >= 1.2.1)
44
- cucumber-core (8.0.1)
45
- cucumber-gherkin (~> 15.0, >= 15.0.2)
46
- cucumber-messages (~> 13.0, >= 13.0.1)
47
- cucumber-tag-expressions (~> 2.0, >= 2.0.4)
48
- cucumber-create-meta (2.0.2)
49
- cucumber-messages (~> 13.0, >= 13.0.1)
50
- sys-uname (~> 1.2, >= 1.2.1)
51
- cucumber-cucumber-expressions (10.3.0)
52
- cucumber-gherkin (15.0.2)
53
- cucumber-messages (~> 13.0, >= 13.0.1)
54
- cucumber-html-formatter (9.0.0)
55
- cucumber-messages (~> 13.0, >= 13.0.1)
56
- cucumber-messages (13.1.0)
57
- protobuf-cucumber (~> 3.10, >= 3.10.8)
58
- cucumber-tag-expressions (2.0.4)
59
- cucumber-wire (4.0.1)
60
- cucumber-core (~> 8.0, >= 8.0.1)
61
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
62
- cucumber-messages (~> 13.0, >= 13.0.1)
63
- diff-lcs (1.4.4)
64
- ffi (1.13.1)
65
- i18n (1.8.5)
66
- concurrent-ruby (~> 1.0)
67
- middleware (0.1.0)
68
- minitest (5.14.2)
69
- multi_test (0.1.2)
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.9.0)
85
- rspec-mocks (3.9.1)
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.9.0)
88
- rspec-support (3.9.3)
89
- sys-uname (1.2.1)
90
- ffi (>= 1.0.0)
91
- thor (1.0.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
- ruby
73
+ arm64-darwin-20
74
+ x86_64-linux
99
75
 
100
76
  DEPENDENCIES
101
- aruba (~> 0.14.12)
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.1.4
83
+ 2.3.23
data/README.org CHANGED
@@ -1,4 +1,4 @@
1
- #+TITLE: my_help README
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や文法を覚えるのに苦労します.少しのkey(とっかかり)があると
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環境として提供しようというのが,このgemの目的です.
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
- : $ gem install my_help
62
+ : > gem install my_help
60
63
  です.
61
64
 
62
65
  ** 簡単な使用法
@@ -65,8 +68,8 @@ RPGでレベル上げとかアイテムを貯めるようにして,
65
68
  :END:
66
69
 
67
70
  まずは,
68
- #+begin_example
69
- my_help 1559ms
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
- #+end_example
82
+ #+end_src
80
83
  としてください.このlistにNAMEやITEMを加えて行くとわかると思います.
81
84
 
82
- : my_help list
83
- : my_help list emacs
84
- : my_help list emacs -f
85
- : my_help list emacs file
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
- #+END_EXAMPLE
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
- で編集してください. emacs org形式で,格納されています.
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
- * test
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
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
- require 'yard'
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.libs << "test"
7
- t.libs << "lib"
8
- t.test_files = FileList["test/**/*_test.rb"]
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
- task :default => :test
12
-
13
- desc "make documents by yard"
13
+ desc 'make documents by yard'
14
14
  task :yard do
15
- YARD::Rake::YardocTask.new {|t|
16
- # t.files=['**/*.md']
17
- # t.options=['-t','mathjax']
18
- # t.options=['--exclude','lib.rb','--files','**/*.org']
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