my_help 0.2.2 → 0.2.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/README.md +165 -59
- data/README_en.md +102 -0
- data/Rakefile +14 -0
- data/exe/#emacs_help# +5 -0
- data/exe/e_h +2 -1
- data/exe/emacs_help +2 -1
- data/exe/my_help +1 -1
- data/exe/t_h +2 -1
- data/exe/test_help +2 -1
- data/hikis/README_ja.hiki +5 -1
- data/lib/my_help/version.rb +1 -1
- data/lib/my_help.rb +15 -23
- data/my_help.wiki/Home.md +5 -1
- data/my_help.wiki/README_ja.md +5 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e2f60b5bfeb690fb60b2182ed234acb124b8444
|
4
|
+
data.tar.gz: a02e2a5b817c8eee662b35344f761d55c898c447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4efe59537649255313f6c4a9e470915c9c2b89ac464a52ca6fe13f8440ddc08f035f7f89ea3ae6ddd27ba8fe38769f399679bf67b34098b1ce1077534f32a6d6
|
7
|
+
data.tar.gz: d0b5cfc652c07cf6edd490ea25be41c98547916eacf4b3abd4002cefc7ed57c1c92fc706f6a99d0a108adcb2143d08f85e6e41bbed0b2394a4184c7bec08618d
|
data/README.md
CHANGED
@@ -1,53 +1,49 @@
|
|
1
|
-
#
|
1
|
+
# 名前
|
2
2
|
|
3
3
|
my_help
|
4
4
|
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
# Usage
|
39
|
-
## Install
|
40
|
-
|
41
|
-
Different from the gem standard, fork and clone from Github.
|
5
|
+
# 概要
|
6
|
+
|
7
|
+
CUI(CLI)ヘルプのUsage出力を真似て,user独自のhelpを作成・提供するgem.
|
8
|
+
|
9
|
+
# 問題点
|
10
|
+
CUIやshell, 何かのプログラミング言語などを習得しようとする初心者は,
|
11
|
+
commandや文法を覚えるのに苦労します.少しのkey(とっかかり)があると
|
12
|
+
思い出すんですが,うろ覚えでは間違えて路頭に迷います.問題点は,
|
13
|
+
- manは基本的に英語
|
14
|
+
- manualでは重たい
|
15
|
+
- いつもおなじことをwebで検索して
|
16
|
+
- 同じとこ見ている
|
17
|
+
- memoしても,どこへ置いたか忘れる
|
18
|
+
|
19
|
+
などです.
|
20
|
+
|
21
|
+
# 特徴
|
22
|
+
これらをgem環境として提供しようというのが,このgemの目的です.
|
23
|
+
仕様としては,
|
24
|
+
- userが自分にあったmanを作成
|
25
|
+
- 雛形を提供
|
26
|
+
- おなじformat, looks, 操作, 階層構造
|
27
|
+
- すぐに手が届く
|
28
|
+
- それらを追加・修正・削除できる
|
29
|
+
|
30
|
+
hikiでやろうとしていることの半分くらいはこのあたりのことなの
|
31
|
+
かもしれません.memoソフトでは,検索が必要となりますが,my_helpは
|
32
|
+
key(記憶のとっかかり)を提供することが目的です.
|
33
|
+
|
34
|
+
# 使用法
|
35
|
+
## インストール
|
36
|
+
インストールですが,gemの標準とは違ったやり方になります.GithubからForkしてcloneします.
|
42
37
|
```
|
43
|
-
github.com:daddygongon/my_help.git
|
38
|
+
git clone git@github.com:daddygongon/my_help.git
|
44
39
|
```
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
40
|
+
あとの作業はbundleを使って行います.
|
41
|
+
|
42
|
+
これは,最後のrake install:localをコマンドから実行する方法がわからんかったからですが...
|
43
|
+
- helpファイルのpush共有とかも考えるとこれがいいのかも.
|
44
|
+
- home以下に置く方法と比較分析してください.
|
49
45
|
|
50
|
-
|
46
|
+
用意されているコマンドは,
|
51
47
|
|
52
48
|
```
|
53
49
|
bob% bundle exec exe/my_help
|
@@ -57,9 +53,9 @@ Usage: my_help [options]
|
|
57
53
|
-e, --edit NAME NAME(例:test_help)をEdit編集.
|
58
54
|
-i, --init NAME NAME(例:test_help)のtemplateを作成.
|
59
55
|
-m, --make make and install:local all helps.
|
56
|
+
-c, --clean clean up exe dir.
|
60
57
|
```
|
61
|
-
|
62
|
-
At first, see the list of supplied helps by the option of -l.
|
58
|
+
です.まず,-lでdefaultで入っているリストを見てください.
|
63
59
|
|
64
60
|
```
|
65
61
|
bob% bundle exec exe/my_help -l
|
@@ -69,12 +65,10 @@ Specific help file:
|
|
69
65
|
emacs_help
|
70
66
|
test_help
|
71
67
|
```
|
72
|
-
emacs_help, e_h, test_help, t_h
|
73
|
-
Play them by a command such as 'bundle exec exe/e_h'.
|
68
|
+
これで,CUIでemacs_help, e_h, test_help, t_hが用意されています.少し振る舞いに慣れてください.
|
74
69
|
|
75
|
-
##
|
76
|
-
|
77
|
-
For this, -i NAME supplies new NAME help.
|
70
|
+
## 独自のhelpを作る方法
|
71
|
+
さて,独自のhelpを作る方法です.まずは,
|
78
72
|
|
79
73
|
```
|
80
74
|
bob% bundle exec exe/my_help -i new_help
|
@@ -85,18 +79,130 @@ bob% bundle exec exe/my_help -i new_help
|
|
85
79
|
cp /usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/my_help/template_help
|
86
80
|
/usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/daddygongon/new_help
|
87
81
|
```
|
88
|
-
|
89
|
-
Edit it by -e new_help.
|
90
|
-
Then -m make new_help and n_h in exe directory.
|
91
|
-
|
92
|
-
## Activate own help
|
93
|
-
For the last step, at the my_help directory, put the commands in as follows:
|
82
|
+
で,new_helpというtemplateが用意されます.-e new_helpで編集してください.そのあと,-mすると自動でnew_helpがexeディレクトリーに追加されます.
|
94
83
|
|
84
|
+
## 独自helpを使えるように
|
85
|
+
最後,my_helpのdirectoryで
|
95
86
|
```
|
96
87
|
git add -A
|
97
88
|
git commit -m 'add new help'
|
98
89
|
rake install:local
|
99
90
|
```
|
91
|
+
してください.
|
92
|
+
|
93
|
+
これで終わり.new_helpや短縮形のn_hでhelpが使えます.
|
94
|
+
もし使えないときは,bin pathが通ってないので,terminalをnewしてください.
|
100
95
|
|
101
|
-
|
102
|
-
|
96
|
+
# userの独自helpの達成方法
|
97
|
+
(rake my_helpでやっていたが,今は,my_help -mに移行)
|
98
|
+
|
99
|
+
exe中のファイルをrakeで自動生成.
|
100
|
+
./lib/daddygongon/にそれらのdataを保存.以下ではその名前から
|
101
|
+
exe中に実行ファイルを自動生成させている.
|
102
|
+
```
|
103
|
+
lib/daddygongon/
|
104
|
+
└── emacs_help
|
105
|
+
|
106
|
+
exe
|
107
|
+
├── e_h
|
108
|
+
└── emacs_help
|
109
|
+
```
|
110
|
+
ということ.これは,
|
111
|
+
```
|
112
|
+
rake my_help
|
113
|
+
```
|
114
|
+
で実行される.これを
|
115
|
+
```
|
116
|
+
rake install:local
|
117
|
+
```
|
118
|
+
すれば必要とするhelpがlocalな環境で表示される.
|
119
|
+
|
120
|
+
たくさんの実行ファイルを/usr/loca/binに置くことになるので,
|
121
|
+
```
|
122
|
+
gem uninstall my_help
|
123
|
+
gem uninstall emacs_help
|
124
|
+
```
|
125
|
+
でそこをcleanにしておくことが望ましい.
|
126
|
+
|
127
|
+
Rakefileの中身は以下の通り.
|
128
|
+
```
|
129
|
+
in Rakefile
|
130
|
+
```
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
desc "make own help from lib/daddygongon/files"
|
134
|
+
task :my_help do
|
135
|
+
exe_cont="#!/usr/bin/env ruby\n"
|
136
|
+
user_name = 'daddygongon'
|
137
|
+
p entries=Dir.entries(File.join('.','lib',user_name))[2..-1]
|
138
|
+
entries.each{|file|
|
139
|
+
p file
|
140
|
+
p file_name=file.split('_')
|
141
|
+
target_files = [file, file_name[0][0]+"_"+file_name[1][0]]
|
142
|
+
p cont_name = File.join('lib',user_name,file)
|
143
|
+
exe_cont << "require 'my_help'\n"
|
144
|
+
exe_cont << "help_file = File.expand_path(\"../../#{cont_name}\", __FILE__)\n"
|
145
|
+
exe_cont << "MyHelp::Command.run(help_file, ARGV)\n"
|
146
|
+
target_files.each{|name|
|
147
|
+
p ''
|
148
|
+
p target=File.join('exe',name)
|
149
|
+
File.open(target,'w'){|file|
|
150
|
+
print exe_cont
|
151
|
+
file.print exe_cont
|
152
|
+
}
|
153
|
+
FileUtils.chmod('a+x', target, :verbose => true)
|
154
|
+
}
|
155
|
+
}
|
156
|
+
end
|
157
|
+
```
|
158
|
+
|
159
|
+
実装方法は,emacs_helpに
|
160
|
+
|
161
|
+
1. yaml形式でdataを入れ,command.runの入力ファイルとする
|
162
|
+
1. hush形式でdataをいれ,それをrequireして使う
|
163
|
+
|
164
|
+
かのどちらかで実装.speedとかdebugを比較・検証する必要あり.
|
165
|
+
今の所,No.1の方を実装.No.2のためのhushデータは,
|
166
|
+
|
167
|
+
```ruby
|
168
|
+
require 'yaml'
|
169
|
+
require 'pp'
|
170
|
+
|
171
|
+
pp YAML.load(File.read(ARGV[0]))
|
172
|
+
```
|
173
|
+
|
174
|
+
```
|
175
|
+
ruby test.rb lib/daddygongon/emacs_help
|
176
|
+
```
|
177
|
+
|
178
|
+
で構築できる.実装してみて.
|
179
|
+
|
180
|
+
|
181
|
+
# どちらがいいか
|
182
|
+
Rubyで日本語が使えるから,optionsを日本語にしてみた.
|
183
|
+
```
|
184
|
+
Usage: eh [options]
|
185
|
+
-v, --version show program Version.
|
186
|
+
-c, --カーソル Cursor移動
|
187
|
+
-p, --ページ Page移動
|
188
|
+
-f, --ファイル File操作
|
189
|
+
-e, --編集 Edit操作
|
190
|
+
-w, --ウィンドウ Window操作
|
191
|
+
-b, --バッファ Buffer操作
|
192
|
+
-q, --終了 終了操作
|
193
|
+
```
|
194
|
+
半角,全角がoptparseでは適切に判断できない様で,表示があまり揃っていない.
|
195
|
+
しかし,初心者の振る舞いを見ているとわざわざ日本語に切り替えて打ち込むことは稀であり,
|
196
|
+
key wordをhelpで参照してshort optionで入力している.そこで,
|
197
|
+
```
|
198
|
+
Usage: eh [options]
|
199
|
+
-v, --version show program Version.
|
200
|
+
-c, --cursor カーソル移動
|
201
|
+
-p, --page ページ移動
|
202
|
+
-f, --file ファイル操作
|
203
|
+
-e, --edit 編集操作
|
204
|
+
-w, --window ウィンドウ操作
|
205
|
+
-b, --buffer バッファ操作
|
206
|
+
-q, --quit 終了操作
|
207
|
+
```
|
208
|
+
としたほうがいいと提案する.アンケートを実施してみてほしい.
|
data/README_en.md
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
# Name
|
2
|
+
|
3
|
+
my_help
|
4
|
+
|
5
|
+
# Summary
|
6
|
+
|
7
|
+
This gem makes and supplies user specific helps, emulating CUI(CLI) help usage.
|
8
|
+
|
9
|
+
# Target
|
10
|
+
A very novice of learning some specific operation, such as CUI, shell, or emacs,
|
11
|
+
has difficulty in remembering commands and grammers.
|
12
|
+
If he has a key, he can easily remember all, but no key brings nothing.
|
13
|
+
Especially a non-English-native has strong difficulty on the key rememebering.
|
14
|
+
The problems are,
|
15
|
+
|
16
|
+
- man(ual) is English
|
17
|
+
- man is heavily documented
|
18
|
+
- On web, search the same key word,
|
19
|
+
- and read the same URI repeatedly
|
20
|
+
- memo goes away somewhere...
|
21
|
+
|
22
|
+
# Specs
|
23
|
+
|
24
|
+
This gem aims to supply own help by gem environment.
|
25
|
+
Specs are,
|
26
|
+
- user makes his own help
|
27
|
+
- supplies a template
|
28
|
+
- same format, looks, operation, and hierarchy
|
29
|
+
- easily see, read
|
30
|
+
- supplies editing and install commands.
|
31
|
+
|
32
|
+
Wiki targets the whole engineer, my_help target the specific person.
|
33
|
+
Half of the wiki aim should be covered by my_help.
|
34
|
+
Making own manual is one of the best practices for remembering operations.
|
35
|
+
Memo applications are good, if you remember the key word.
|
36
|
+
my_help supplies the key for remembering the word.
|
37
|
+
|
38
|
+
# Usage
|
39
|
+
## Install
|
40
|
+
|
41
|
+
Different from the gem standard, fork and clone from Github.
|
42
|
+
```
|
43
|
+
github.com:daddygongon/my_help.git
|
44
|
+
```
|
45
|
+
The following operations are performed under 'bundle'.
|
46
|
+
The main reason of this disturbance is due the developer not to know the last command of 'rake install:local' from gem environment.
|
47
|
+
But the second reason is the on-going project to collect and supply the good helps for novices.
|
48
|
+
We are planning to achieve it by using 'pull request' of Github.
|
49
|
+
|
50
|
+
Supplied commands are
|
51
|
+
|
52
|
+
```
|
53
|
+
bob% bundle exec exe/my_help
|
54
|
+
Usage: my_help [options]
|
55
|
+
-v, --version show program Version.
|
56
|
+
-l, --list 個別(specific)ヘルプのList表示.
|
57
|
+
-e, --edit NAME NAME(例:test_help)をEdit編集.
|
58
|
+
-i, --init NAME NAME(例:test_help)のtemplateを作成.
|
59
|
+
-m, --make make and install:local all helps.
|
60
|
+
```
|
61
|
+
|
62
|
+
At first, see the list of supplied helps by the option of -l.
|
63
|
+
|
64
|
+
```
|
65
|
+
bob% bundle exec exe/my_help -l
|
66
|
+
"/usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/daddygongon"
|
67
|
+
["-l"]
|
68
|
+
Specific help file:
|
69
|
+
emacs_help
|
70
|
+
test_help
|
71
|
+
```
|
72
|
+
emacs_help, e_h, test_help, t_h are ready to use.
|
73
|
+
Play them by a command such as 'bundle exec exe/e_h'.
|
74
|
+
|
75
|
+
## Make own help
|
76
|
+
The next step is making own help.
|
77
|
+
For this, -i NAME supplies new NAME help.
|
78
|
+
|
79
|
+
```
|
80
|
+
bob% bundle exec exe/my_help -i new_help
|
81
|
+
"/usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/daddygongon"
|
82
|
+
["-i", "new_help"]
|
83
|
+
"/usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/daddygongon/new_help"
|
84
|
+
"/usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/my_help/template_help"
|
85
|
+
cp /usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/my_help/template_help
|
86
|
+
/usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/daddygongon/new_help
|
87
|
+
```
|
88
|
+
it makes get ready the template of new_help in daddygongon dir.
|
89
|
+
Edit it by -e new_help.
|
90
|
+
Then -m make new_help and n_h in exe directory.
|
91
|
+
|
92
|
+
## Activate own help
|
93
|
+
For the last step, at the my_help directory, put the commands in as follows:
|
94
|
+
|
95
|
+
```
|
96
|
+
git add -A
|
97
|
+
git commit -m 'add new help'
|
98
|
+
rake install:local
|
99
|
+
```
|
100
|
+
|
101
|
+
That's it. You can use the new_help or short command of n_h on CUI.
|
102
|
+
If not, restart the terminal to load the bin path.
|
data/Rakefile
CHANGED
@@ -72,3 +72,17 @@ task :my_help do
|
|
72
72
|
}
|
73
73
|
}
|
74
74
|
end
|
75
|
+
|
76
|
+
desc "make hiki documents"
|
77
|
+
task :mk_hiki do
|
78
|
+
p entries=Dir.entries(File.join('.','hikis'))[2..-1]
|
79
|
+
hiki_dir='/Users/bob/Sites/nishitani0/Internal/data/text'
|
80
|
+
entries.each{|file|
|
81
|
+
next if file[0]=='#' or file[-1]=='~'
|
82
|
+
p src=File.join('.','hikis',file)
|
83
|
+
p file_name='MyHelp_'+File.basename(file,'.hiki')
|
84
|
+
p des=File.join(hiki_dir,file_name)
|
85
|
+
FileUtils::Verbose.cp(src,des)
|
86
|
+
FileUtils::Verbose.chmod('a+w',des)
|
87
|
+
}
|
88
|
+
end
|
data/exe/#emacs_help#
ADDED
data/exe/e_h
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'specific_help'
|
3
|
-
|
3
|
+
target_dir = File.expand_path("../../lib/daddygongon", __FILE__)
|
4
|
+
help_file = File.join(target_dir,'emacs_help')
|
4
5
|
SpecificHelp::Command.run(help_file, ARGV)
|
data/exe/emacs_help
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'specific_help'
|
3
|
-
|
3
|
+
target_dir = File.expand_path("../../lib/daddygongon", __FILE__)
|
4
|
+
help_file = File.join(target_dir,'emacs_help')
|
4
5
|
SpecificHelp::Command.run(help_file, ARGV)
|
data/exe/my_help
CHANGED
data/exe/t_h
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'specific_help'
|
3
|
-
|
3
|
+
target_dir = File.expand_path("../../lib/daddygongon", __FILE__)
|
4
|
+
help_file = File.join(target_dir,'test_help')
|
4
5
|
SpecificHelp::Command.run(help_file, ARGV)
|
data/exe/test_help
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'specific_help'
|
3
|
-
|
3
|
+
target_dir = File.expand_path("../../lib/daddygongon", __FILE__)
|
4
|
+
help_file = File.join(target_dir,'test_help')
|
4
5
|
SpecificHelp::Command.run(help_file, ARGV)
|
data/hikis/README_ja.hiki
CHANGED
@@ -35,7 +35,11 @@ key(記憶のとっかかり)を提供することが目的です.
|
|
35
35
|
!!インストール
|
36
36
|
インストールですが,gemの標準とは違ったやり方になります.GithubからForkしてcloneします.
|
37
37
|
git clone git@github.com:daddygongon/my_help.git
|
38
|
-
あとの作業はbundle
|
38
|
+
あとの作業はbundleを使って行います.
|
39
|
+
|
40
|
+
これは,最後のrake install:localをコマンドから実行する方法がわからんかったからですが...
|
41
|
+
* helpファイルのpush共有とかも考えるとこれがいいのかも.
|
42
|
+
* home以下に置く方法と比較分析してください.
|
39
43
|
|
40
44
|
用意されているコマンドは,
|
41
45
|
|
data/lib/my_help/version.rb
CHANGED
data/lib/my_help.rb
CHANGED
@@ -15,8 +15,7 @@ module MyHelp
|
|
15
15
|
|
16
16
|
def initialize(argv=[])
|
17
17
|
@argv = argv
|
18
|
-
|
19
|
-
p @argv
|
18
|
+
@target_dir = File.expand_path("../../lib/daddygongon", __FILE__)
|
20
19
|
end
|
21
20
|
|
22
21
|
def execute
|
@@ -40,39 +39,32 @@ module MyHelp
|
|
40
39
|
exit
|
41
40
|
end
|
42
41
|
|
42
|
+
def short_name(file)
|
43
|
+
file_name=file.split('_')
|
44
|
+
return file_name[0][0]+"_"+file_name[1][0]
|
45
|
+
end
|
46
|
+
|
43
47
|
def make_help
|
44
|
-
|
45
|
-
entries.each{|file|
|
46
|
-
p file
|
48
|
+
Dir.entries(@target_dir)[2..-1].each{|file|
|
47
49
|
next if file[0]=='#' or file[-1]=='~'
|
48
50
|
exe_cont="#!/usr/bin/env ruby\nrequire 'specific_help'\n"
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
exe_cont << "help_file = '#{
|
51
|
+
# exe_cont << "help_file = '#{File.join(@target_dir,file)}'\n"
|
52
|
+
# exe_cont << @target_dir
|
53
|
+
exe_cont << 'target_dir = File.expand_path("../../lib/daddygongon", __FILE__)'+"\n"
|
54
|
+
exe_cont << "help_file = File.join(target_dir,'#{file}')\n"
|
53
55
|
exe_cont << "SpecificHelp::Command.run(help_file, ARGV)\n"
|
54
|
-
|
55
|
-
print "\n"
|
56
|
+
[file, short_name(file)].each{|name|
|
56
57
|
p target=File.join('exe',name)
|
57
|
-
File.open(target,'w'){|file|
|
58
|
-
print exe_cont
|
59
|
-
file.print exe_cont
|
60
|
-
}
|
58
|
+
File.open(target,'w'){|file| file.print exe_cont}
|
61
59
|
FileUtils.chmod('a+x', target, :verbose => true)
|
62
60
|
}
|
63
61
|
}
|
64
62
|
end
|
65
63
|
|
66
64
|
def clean_exe
|
67
|
-
|
68
|
-
entries.each{|file|
|
69
|
-
p file
|
65
|
+
Dir.entries(@target_dir)[2..-1].each{|file|
|
70
66
|
next if file[0]=='#' or file[-1]=='~'
|
71
|
-
|
72
|
-
target_files = [file, file_name[0][0]+"_"+file_name[1][0]]
|
73
|
-
target = File.join(@target_dir,file)
|
74
|
-
target_files.each{|name|
|
75
|
-
print "\n"
|
67
|
+
[file, short_name(file)].each{|name|
|
76
68
|
p target=File.join('exe',name)
|
77
69
|
FileUtils::Verbose.rm(target)
|
78
70
|
}
|
data/my_help.wiki/Home.md
CHANGED
@@ -37,7 +37,11 @@ key(記憶のとっかかり)を提供することが目的です.
|
|
37
37
|
```
|
38
38
|
git clone git@github.com:daddygongon/my_help.git
|
39
39
|
```
|
40
|
-
あとの作業はbundle
|
40
|
+
あとの作業はbundleを使って行います.
|
41
|
+
|
42
|
+
これは,最後のrake install:localをコマンドから実行する方法がわからんかったからですが...
|
43
|
+
- helpファイルのpush共有とかも考えるとこれがいいのかも.
|
44
|
+
- home以下に置く方法と比較分析してください.
|
41
45
|
|
42
46
|
用意されているコマンドは,
|
43
47
|
|
data/my_help.wiki/README_ja.md
CHANGED
@@ -37,7 +37,11 @@ key(記憶のとっかかり)を提供することが目的です.
|
|
37
37
|
```
|
38
38
|
git clone git@github.com:daddygongon/my_help.git
|
39
39
|
```
|
40
|
-
あとの作業はbundle
|
40
|
+
あとの作業はbundleを使って行います.
|
41
|
+
|
42
|
+
これは,最後のrake install:localをコマンドから実行する方法がわからんかったからですが...
|
43
|
+
- helpファイルのpush共有とかも考えるとこれがいいのかも.
|
44
|
+
- home以下に置く方法と比較分析してください.
|
41
45
|
|
42
46
|
用意されているコマンドは,
|
43
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_help
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shigeto R. Nishitani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -112,6 +112,7 @@ description: Emulating CUI(CLI) help, an user makes and displays his own helps.
|
|
112
112
|
email:
|
113
113
|
- shigeto_nishitani@me.com
|
114
114
|
executables:
|
115
|
+
- "#emacs_help#"
|
115
116
|
- e_h
|
116
117
|
- emacs_help
|
117
118
|
- my_help
|
@@ -127,9 +128,11 @@ files:
|
|
127
128
|
- Gemfile
|
128
129
|
- LICENSE.txt
|
129
130
|
- README.md
|
131
|
+
- README_en.md
|
130
132
|
- Rakefile
|
131
133
|
- bin/console
|
132
134
|
- bin/setup
|
135
|
+
- exe/#emacs_help#
|
133
136
|
- exe/e_h
|
134
137
|
- exe/emacs_help
|
135
138
|
- exe/my_help
|