my_help 0.4.5 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (455) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +2 -0
  3. data/.gitignore +29 -2
  4. data/.ipynb_checkpoints/README-checkpoint.ipynb +511 -0
  5. data/.ipynb_checkpoints/Untitled-checkpoint.ipynb +6 -0
  6. data/.ruby-version +1 -0
  7. data/Dockerfile.template +13 -0
  8. data/README.md +341 -256
  9. data/README.org +480 -0
  10. data/Rakefile +9 -31
  11. data/docs/.ipynb_checkpoints/README-checkpoint.ipynb +112 -0
  12. data/docs/.ipynb_checkpoints/Untitled-checkpoint.ipynb +219 -0
  13. data/docs/README.ipynb +112 -0
  14. data/docs/bob/README_en.ipynb +219 -0
  15. data/docs/bob/diff_against_org_mode.ipynb +119 -0
  16. data/docs/bob/emacs_help.ipynb +133 -0
  17. data/docs/bob/template_help.ipynb +136 -0
  18. data/{my_help_nasu → docs/nasu}/.gitignore +0 -0
  19. data/{my_help_nasu → docs/nasu}/Rakefile +91 -20
  20. data/docs/nasu/abstract.hiki +17 -0
  21. data/{my_help_nasu → docs/nasu}/code.hiki +25 -21
  22. data/docs/nasu/discussion.hiki +38 -0
  23. data/docs/nasu/features/add.feature +12 -0
  24. data/docs/nasu/features/all_help.feature +10 -0
  25. data/docs/nasu/features/backup_list.feature +10 -0
  26. data/docs/nasu/features/edit_help.feature +9 -0
  27. data/docs/nasu/features/my_todo.feature +16 -0
  28. data/docs/nasu/features/remove.feature +10 -0
  29. data/docs/nasu/features/sample_e.feature +6 -0
  30. data/docs/nasu/features/step_definitions/add_spec.rb +18 -0
  31. data/docs/nasu/features/step_definitions/all_help_spec.rb +18 -0
  32. data/docs/nasu/features/step_definitions/backup_list_spec.rb +18 -0
  33. data/docs/nasu/features/step_definitions/edit_help_spec.rb +19 -0
  34. data/docs/nasu/features/step_definitions/my_todo_spec.rb +25 -0
  35. data/docs/nasu/features/step_definitions/remove_spec.rb +18 -0
  36. data/docs/nasu/features/step_definitions/store_spec.rb +18 -0
  37. data/docs/nasu/features/step_definitions/to_hiki_spec.rb +18 -0
  38. data/docs/nasu/features/store.feature +10 -0
  39. data/docs/nasu/features/support/env.rb +2 -0
  40. data/docs/nasu/features/test.feature +10 -0
  41. data/docs/nasu/features/to_hiki.feature +10 -0
  42. data/{my_help_nasu → docs/nasu}/features.hiki +80 -70
  43. data/docs/nasu/figs/cucumber01.001.jpg +0 -0
  44. data/docs/nasu/figs/cucumber02.001.jpg +0 -0
  45. data/docs/nasu/figs/cucumber03.001.jpg +0 -0
  46. data/docs/nasu/figs/cucumber04.001.jpg +0 -0
  47. data/docs/nasu/figs/cucumber05.001.jpg +0 -0
  48. data/docs/nasu/figs/cucumber1.jpg +0 -0
  49. data/docs/nasu/figs/cucumber2.jpg +0 -0
  50. data/docs/nasu/figs/cucumber3.jpg +0 -0
  51. data/docs/nasu/figs/cucumber4.jpg +0 -0
  52. data/docs/nasu/figs/my_help_nasu.001.jpeg +0 -0
  53. data/docs/nasu/figs/my_help_nasu.002.jpeg +0 -0
  54. data/docs/nasu/figs/my_help_nasu.003.jpeg +0 -0
  55. data/docs/nasu/figs/my_help_nasu.004.jpeg +0 -0
  56. data/docs/nasu/figs/my_help_nasu.005.jpeg +0 -0
  57. data/docs/nasu/figs/my_help_nasu.006.jpeg +0 -0
  58. data/docs/nasu/figs/my_help_nasu.007.jpeg +0 -0
  59. data/docs/nasu/figs/my_help_nasu.008.jpeg +0 -0
  60. data/docs/nasu/figs/my_help_nasu.pdf +0 -0
  61. data/docs/nasu/figs/my_help_nasu.png +0 -0
  62. data/docs/nasu/figs/my_help_nasu1.001.jpg +0 -0
  63. data/docs/nasu/figs/rspec01.001.jpg +0 -0
  64. data/docs/nasu/figs/rspec1.jpg +0 -0
  65. data/docs/nasu/figs/rspec2.jpg +0 -0
  66. data/{my_help_nasu → docs/nasu}/head2.tex +0 -0
  67. data/{my_help_nasu → docs/nasu}/hiki_help.yml +0 -0
  68. data/{my_help_nasu → docs/nasu}/introduction.hiki +15 -16
  69. data/{my_help_nasu → docs/nasu}/key_bind_mi +0 -0
  70. data/docs/nasu/keynote/cucumber01.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  71. data/docs/nasu/keynote/cucumber01.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  72. data/docs/nasu/keynote/cucumber01.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  73. data/docs/nasu/keynote/cucumber01.key/Data/mt10@2x-87.jpg +0 -0
  74. data/docs/nasu/keynote/cucumber01.key/Data/mt1@2x-78.jpg +0 -0
  75. data/docs/nasu/keynote/cucumber01.key/Data/mt2@2x-79.jpg +0 -0
  76. data/docs/nasu/keynote/cucumber01.key/Data/mt3@2x-80.jpg +0 -0
  77. data/docs/nasu/keynote/cucumber01.key/Data/mt4@2x-81.jpg +0 -0
  78. data/docs/nasu/keynote/cucumber01.key/Data/mt5@2x-82.jpg +0 -0
  79. data/docs/nasu/keynote/cucumber01.key/Data/mt6@2x-83.jpg +0 -0
  80. data/docs/nasu/keynote/cucumber01.key/Data/mt7@2x-84.jpg +0 -0
  81. data/docs/nasu/keynote/cucumber01.key/Data/mt8@2x-85.jpg +0 -0
  82. data/docs/nasu/keynote/cucumber01.key/Data/mt9@2x-86.jpg +0 -0
  83. data/docs/nasu/keynote/cucumber01.key/Data/pasted-image-89.png +0 -0
  84. data/docs/nasu/keynote/cucumber01.key/Data/pasted-image-small-90.png +0 -0
  85. data/docs/nasu/keynote/cucumber01.key/Data/st0-104.jpg +0 -0
  86. data/docs/nasu/keynote/cucumber01.key/Index.zip +0 -0
  87. data/docs/nasu/keynote/cucumber01.key/Metadata/BuildVersionHistory.plist +8 -0
  88. data/docs/nasu/keynote/cucumber01.key/Metadata/DocumentIdentifier +1 -0
  89. data/docs/nasu/keynote/cucumber01.key/Metadata/Properties.plist +0 -0
  90. data/docs/nasu/keynote/cucumber01.key/preview-micro.jpg +0 -0
  91. data/docs/nasu/keynote/cucumber01.key/preview-web.jpg +0 -0
  92. data/docs/nasu/keynote/cucumber01.key/preview.jpg +0 -0
  93. data/docs/nasu/keynote/cucumber02.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  94. data/docs/nasu/keynote/cucumber02.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  95. data/docs/nasu/keynote/cucumber02.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  96. data/docs/nasu/keynote/cucumber02.key/Data/mt10@2x-87.jpg +0 -0
  97. data/docs/nasu/keynote/cucumber02.key/Data/mt1@2x-78.jpg +0 -0
  98. data/docs/nasu/keynote/cucumber02.key/Data/mt2@2x-79.jpg +0 -0
  99. data/docs/nasu/keynote/cucumber02.key/Data/mt3@2x-80.jpg +0 -0
  100. data/docs/nasu/keynote/cucumber02.key/Data/mt4@2x-81.jpg +0 -0
  101. data/docs/nasu/keynote/cucumber02.key/Data/mt5@2x-82.jpg +0 -0
  102. data/docs/nasu/keynote/cucumber02.key/Data/mt6@2x-83.jpg +0 -0
  103. data/docs/nasu/keynote/cucumber02.key/Data/mt7@2x-84.jpg +0 -0
  104. data/docs/nasu/keynote/cucumber02.key/Data/mt8@2x-85.jpg +0 -0
  105. data/docs/nasu/keynote/cucumber02.key/Data/mt9@2x-86.jpg +0 -0
  106. data/docs/nasu/keynote/cucumber02.key/Data/pasted-image-89.png +0 -0
  107. data/docs/nasu/keynote/cucumber02.key/Data/pasted-image-small-90.png +0 -0
  108. data/docs/nasu/keynote/cucumber02.key/Data/st0-96.jpg +0 -0
  109. data/docs/nasu/keynote/cucumber02.key/Index.zip +0 -0
  110. data/docs/nasu/keynote/cucumber02.key/Metadata/BuildVersionHistory.plist +8 -0
  111. data/docs/nasu/keynote/cucumber02.key/Metadata/DocumentIdentifier +1 -0
  112. data/docs/nasu/keynote/cucumber02.key/Metadata/Properties.plist +0 -0
  113. data/docs/nasu/keynote/cucumber02.key/preview-micro.jpg +0 -0
  114. data/docs/nasu/keynote/cucumber02.key/preview-web.jpg +0 -0
  115. data/docs/nasu/keynote/cucumber02.key/preview.jpg +0 -0
  116. data/docs/nasu/keynote/cucumber03.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  117. data/docs/nasu/keynote/cucumber03.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  118. data/docs/nasu/keynote/cucumber03.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  119. data/docs/nasu/keynote/cucumber03.key/Data/mt10@2x-87.jpg +0 -0
  120. data/docs/nasu/keynote/cucumber03.key/Data/mt1@2x-78.jpg +0 -0
  121. data/docs/nasu/keynote/cucumber03.key/Data/mt2@2x-79.jpg +0 -0
  122. data/docs/nasu/keynote/cucumber03.key/Data/mt3@2x-80.jpg +0 -0
  123. data/docs/nasu/keynote/cucumber03.key/Data/mt4@2x-81.jpg +0 -0
  124. data/docs/nasu/keynote/cucumber03.key/Data/mt5@2x-82.jpg +0 -0
  125. data/docs/nasu/keynote/cucumber03.key/Data/mt6@2x-83.jpg +0 -0
  126. data/docs/nasu/keynote/cucumber03.key/Data/mt7@2x-84.jpg +0 -0
  127. data/docs/nasu/keynote/cucumber03.key/Data/mt8@2x-85.jpg +0 -0
  128. data/docs/nasu/keynote/cucumber03.key/Data/mt9@2x-86.jpg +0 -0
  129. data/docs/nasu/keynote/cucumber03.key/Data/pasted-image-89.png +0 -0
  130. data/docs/nasu/keynote/cucumber03.key/Data/pasted-image-small-90.png +0 -0
  131. data/docs/nasu/keynote/cucumber03.key/Data/st0-100.jpg +0 -0
  132. data/docs/nasu/keynote/cucumber03.key/Index.zip +0 -0
  133. data/docs/nasu/keynote/cucumber03.key/Metadata/BuildVersionHistory.plist +8 -0
  134. data/docs/nasu/keynote/cucumber03.key/Metadata/DocumentIdentifier +1 -0
  135. data/docs/nasu/keynote/cucumber03.key/Metadata/Properties.plist +0 -0
  136. data/docs/nasu/keynote/cucumber03.key/preview-micro.jpg +0 -0
  137. data/docs/nasu/keynote/cucumber03.key/preview-web.jpg +0 -0
  138. data/docs/nasu/keynote/cucumber03.key/preview.jpg +0 -0
  139. data/docs/nasu/keynote/cucumber04.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  140. data/docs/nasu/keynote/cucumber04.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  141. data/docs/nasu/keynote/cucumber04.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  142. data/docs/nasu/keynote/cucumber04.key/Data/mt10@2x-87.jpg +0 -0
  143. data/docs/nasu/keynote/cucumber04.key/Data/mt1@2x-78.jpg +0 -0
  144. data/docs/nasu/keynote/cucumber04.key/Data/mt2@2x-79.jpg +0 -0
  145. data/docs/nasu/keynote/cucumber04.key/Data/mt3@2x-80.jpg +0 -0
  146. data/docs/nasu/keynote/cucumber04.key/Data/mt4@2x-81.jpg +0 -0
  147. data/docs/nasu/keynote/cucumber04.key/Data/mt5@2x-82.jpg +0 -0
  148. data/docs/nasu/keynote/cucumber04.key/Data/mt6@2x-83.jpg +0 -0
  149. data/docs/nasu/keynote/cucumber04.key/Data/mt7@2x-84.jpg +0 -0
  150. data/docs/nasu/keynote/cucumber04.key/Data/mt8@2x-85.jpg +0 -0
  151. data/docs/nasu/keynote/cucumber04.key/Data/mt9@2x-86.jpg +0 -0
  152. data/docs/nasu/keynote/cucumber04.key/Data/pasted-image-106.png +0 -0
  153. data/docs/nasu/keynote/cucumber04.key/Data/pasted-image-small-107.png +0 -0
  154. data/docs/nasu/keynote/cucumber04.key/Data/st0-115.jpg +0 -0
  155. data/docs/nasu/keynote/cucumber04.key/Index.zip +0 -0
  156. data/docs/nasu/keynote/cucumber04.key/Metadata/BuildVersionHistory.plist +8 -0
  157. data/docs/nasu/keynote/cucumber04.key/Metadata/DocumentIdentifier +1 -0
  158. data/docs/nasu/keynote/cucumber04.key/Metadata/Properties.plist +0 -0
  159. data/docs/nasu/keynote/cucumber04.key/preview-micro.jpg +0 -0
  160. data/docs/nasu/keynote/cucumber04.key/preview-web.jpg +0 -0
  161. data/docs/nasu/keynote/cucumber04.key/preview.jpg +0 -0
  162. data/docs/nasu/keynote/cucumber05.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  163. data/docs/nasu/keynote/cucumber05.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  164. data/docs/nasu/keynote/cucumber05.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  165. data/docs/nasu/keynote/cucumber05.key/Data/mt10@2x-87.jpg +0 -0
  166. data/docs/nasu/keynote/cucumber05.key/Data/mt1@2x-78.jpg +0 -0
  167. data/docs/nasu/keynote/cucumber05.key/Data/mt2@2x-79.jpg +0 -0
  168. data/docs/nasu/keynote/cucumber05.key/Data/mt3@2x-80.jpg +0 -0
  169. data/docs/nasu/keynote/cucumber05.key/Data/mt4@2x-81.jpg +0 -0
  170. data/docs/nasu/keynote/cucumber05.key/Data/mt5@2x-82.jpg +0 -0
  171. data/docs/nasu/keynote/cucumber05.key/Data/mt6@2x-83.jpg +0 -0
  172. data/docs/nasu/keynote/cucumber05.key/Data/mt7@2x-84.jpg +0 -0
  173. data/docs/nasu/keynote/cucumber05.key/Data/mt8@2x-85.jpg +0 -0
  174. data/docs/nasu/keynote/cucumber05.key/Data/mt9@2x-86.jpg +0 -0
  175. data/docs/nasu/keynote/cucumber05.key/Data/pasted-image-89.png +0 -0
  176. data/docs/nasu/keynote/cucumber05.key/Data/pasted-image-small-90.png +0 -0
  177. data/docs/nasu/keynote/cucumber05.key/Data/st0-97.jpg +0 -0
  178. data/docs/nasu/keynote/cucumber05.key/Index.zip +0 -0
  179. data/docs/nasu/keynote/cucumber05.key/Metadata/BuildVersionHistory.plist +8 -0
  180. data/docs/nasu/keynote/cucumber05.key/Metadata/DocumentIdentifier +1 -0
  181. data/docs/nasu/keynote/cucumber05.key/Metadata/Properties.plist +0 -0
  182. data/docs/nasu/keynote/cucumber05.key/preview-micro.jpg +0 -0
  183. data/docs/nasu/keynote/cucumber05.key/preview-web.jpg +0 -0
  184. data/docs/nasu/keynote/cucumber05.key/preview.jpg +0 -0
  185. data/docs/nasu/keynote/my_help_nasu1.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  186. data/docs/nasu/keynote/my_help_nasu1.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  187. data/docs/nasu/keynote/my_help_nasu1.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  188. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt10@2x-87.jpg +0 -0
  189. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt1@2x-78.jpg +0 -0
  190. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt2@2x-79.jpg +0 -0
  191. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt3@2x-80.jpg +0 -0
  192. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt4@2x-81.jpg +0 -0
  193. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt5@2x-82.jpg +0 -0
  194. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt6@2x-83.jpg +0 -0
  195. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt7@2x-84.jpg +0 -0
  196. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt8@2x-85.jpg +0 -0
  197. data/docs/nasu/keynote/my_help_nasu1.key/Data/mt9@2x-86.jpg +0 -0
  198. data/docs/nasu/keynote/my_help_nasu1.key/Data/st0-299.jpg +0 -0
  199. data/docs/nasu/keynote/my_help_nasu1.key/Index.zip +0 -0
  200. data/docs/nasu/keynote/my_help_nasu1.key/Metadata/BuildVersionHistory.plist +8 -0
  201. data/docs/nasu/keynote/my_help_nasu1.key/Metadata/DocumentIdentifier +1 -0
  202. data/docs/nasu/keynote/my_help_nasu1.key/Metadata/Properties.plist +0 -0
  203. data/docs/nasu/keynote/my_help_nasu1.key/preview-micro.jpg +0 -0
  204. data/docs/nasu/keynote/my_help_nasu1.key/preview-web.jpg +0 -0
  205. data/docs/nasu/keynote/my_help_nasu1.key/preview.jpg +0 -0
  206. data/docs/nasu/keynote/rspec01.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  207. data/docs/nasu/keynote/rspec01.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  208. data/docs/nasu/keynote/rspec01.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  209. data/docs/nasu/keynote/rspec01.key/Data/mt10@2x-87.jpg +0 -0
  210. data/docs/nasu/keynote/rspec01.key/Data/mt1@2x-78.jpg +0 -0
  211. data/docs/nasu/keynote/rspec01.key/Data/mt2@2x-79.jpg +0 -0
  212. data/docs/nasu/keynote/rspec01.key/Data/mt3@2x-80.jpg +0 -0
  213. data/docs/nasu/keynote/rspec01.key/Data/mt4@2x-81.jpg +0 -0
  214. data/docs/nasu/keynote/rspec01.key/Data/mt5@2x-82.jpg +0 -0
  215. data/docs/nasu/keynote/rspec01.key/Data/mt6@2x-83.jpg +0 -0
  216. data/docs/nasu/keynote/rspec01.key/Data/mt7@2x-84.jpg +0 -0
  217. data/docs/nasu/keynote/rspec01.key/Data/mt8@2x-85.jpg +0 -0
  218. data/docs/nasu/keynote/rspec01.key/Data/mt9@2x-86.jpg +0 -0
  219. data/docs/nasu/keynote/rspec01.key/Data/pasted-image-89.png +0 -0
  220. data/docs/nasu/keynote/rspec01.key/Data/pasted-image-small-90.png +0 -0
  221. data/docs/nasu/keynote/rspec01.key/Data/st0-96.jpg +0 -0
  222. data/docs/nasu/keynote/rspec01.key/Index.zip +0 -0
  223. data/docs/nasu/keynote/rspec01.key/Metadata/BuildVersionHistory.plist +8 -0
  224. data/docs/nasu/keynote/rspec01.key/Metadata/DocumentIdentifier +1 -0
  225. data/docs/nasu/keynote/rspec01.key/Metadata/Properties.plist +0 -0
  226. data/docs/nasu/keynote/rspec01.key/preview-micro.jpg +0 -0
  227. data/docs/nasu/keynote/rspec01.key/preview-web.jpg +0 -0
  228. data/docs/nasu/keynote/rspec01.key/preview.jpg +0 -0
  229. data/docs/nasu/latex_dir/abstract.tex +18 -0
  230. data/{my_help_nasu → docs/nasu}/latex_dir/code.tex +9 -21
  231. data/docs/nasu/latex_dir/discussion.aux +28 -0
  232. data/docs/nasu/latex_dir/discussion.tex +19 -0
  233. data/docs/nasu/latex_dir/features.aux +30 -0
  234. data/docs/nasu/latex_dir/features.tex +186 -0
  235. data/{my_help_nasu → docs/nasu}/latex_dir/head.tex +1 -1
  236. data/{my_help_nasu → docs/nasu}/latex_dir/introduction.aux +3 -3
  237. data/{my_help_nasu → docs/nasu}/latex_dir/introduction.tex +15 -16
  238. data/{my_help_nasu → docs/nasu}/latex_dir/jlisting.sty +0 -0
  239. data/{my_help_nasu/latex_dir/consideration.aux → docs/nasu/latex_dir/method.aux} +7 -8
  240. data/docs/nasu/latex_dir/method.tex +6 -0
  241. data/{my_help_nasu → docs/nasu}/latex_dir/method_bdd.aux +10 -7
  242. data/{my_help_nasu → docs/nasu}/latex_dir/method_bdd.tex +14 -5
  243. data/{my_help_nasu → docs/nasu}/latex_dir/method_cucumber.aux +10 -9
  244. data/{my_help_nasu → docs/nasu}/latex_dir/method_cucumber.tex +15 -18
  245. data/{my_help_nasu → docs/nasu}/latex_dir/method_usage.aux +11 -11
  246. data/{my_help_nasu → docs/nasu}/latex_dir/method_usage.tex +35 -29
  247. data/{my_help_nasu → docs/nasu}/latex_dir/my_help_nasu.aux +6 -5
  248. data/docs/nasu/latex_dir/my_help_nasu.log +363 -0
  249. data/docs/nasu/latex_dir/my_help_nasu.pdf +0 -0
  250. data/docs/nasu/latex_dir/my_help_nasu.synctex.gz +0 -0
  251. data/{my_help_nasu → docs/nasu}/latex_dir/my_help_nasu.tex +12 -18
  252. data/docs/nasu/latex_dir/my_help_nasu.toc +35 -0
  253. data/docs/nasu/latex_dir/new_code.aux +44 -0
  254. data/docs/nasu/latex_dir/new_code.tex +237 -0
  255. data/{my_help_nasu → docs/nasu}/latex_dir/overview.aux +2 -2
  256. data/{my_help_nasu/latex_dir → docs/nasu}/latex_dir/pre.tex +0 -0
  257. data/docs/nasu/method.hiki +5 -0
  258. data/{my_help_nasu → docs/nasu}/method_bdd.hiki +14 -8
  259. data/{my_help_nasu → docs/nasu}/method_cucumber.hiki +14 -17
  260. data/{my_help_nasu → docs/nasu}/method_usage.hiki +25 -24
  261. data/docs/nasu/my_help_nasu/my_help_nasu.001.bb +5 -0
  262. data/{my_help_nasu → docs/nasu}/my_help_nasu/my_help_nasu.001.jpeg +0 -0
  263. data/docs/nasu/my_help_nasu/my_help_nasu.002.bb +5 -0
  264. data/docs/nasu/my_help_nasu/my_help_nasu.002.jpeg +0 -0
  265. data/docs/nasu/my_help_nasu/my_help_nasu.003.bb +5 -0
  266. data/docs/nasu/my_help_nasu/my_help_nasu.003.jpeg +0 -0
  267. data/docs/nasu/my_help_nasu/my_help_nasu.004.bb +5 -0
  268. data/docs/nasu/my_help_nasu/my_help_nasu.004.jpeg +0 -0
  269. data/docs/nasu/my_help_nasu/my_help_nasu.005.bb +5 -0
  270. data/docs/nasu/my_help_nasu/my_help_nasu.005.jpeg +0 -0
  271. data/docs/nasu/my_help_nasu/my_help_nasu.006.bb +5 -0
  272. data/docs/nasu/my_help_nasu/my_help_nasu.006.jpeg +0 -0
  273. data/docs/nasu/my_help_nasu/my_help_nasu.007.bb +5 -0
  274. data/docs/nasu/my_help_nasu/my_help_nasu.007.jpeg +0 -0
  275. data/docs/nasu/my_help_nasu/my_help_nasu.008.bb +5 -0
  276. data/docs/nasu/my_help_nasu/my_help_nasu.008.jpeg +0 -0
  277. data/docs/nasu/my_help_nasu.hiki +28 -0
  278. data/docs/nasu/my_help_nasu.key +0 -0
  279. data/docs/nasu/my_help_nasu09.key +0 -0
  280. data/docs/nasu/my_help_nasu1/my_help_nasu1.001.jpg +0 -0
  281. data/docs/nasu/nasu_abst/abst_fig.bb +5 -0
  282. data/docs/nasu/nasu_abst/abst_fig.png +0 -0
  283. data/docs/nasu/nasu_abst/my_help_nasu.001.bb +5 -0
  284. data/docs/nasu/nasu_abst/my_help_nasu.001.jpg +0 -0
  285. data/docs/nasu/nasu_abst/my_help_nasu.001.png +0 -0
  286. data/docs/nasu/nasu_abst/nasu_abst.aux +10 -0
  287. data/docs/nasu/nasu_abst/nasu_abst.log +179 -0
  288. data/docs/nasu/nasu_abst/nasu_abst.pdf +0 -0
  289. data/docs/nasu/nasu_abst/nasu_abst.synctex.gz +0 -0
  290. data/docs/nasu/nasu_abst/nasu_abst.tex +63 -0
  291. data/docs/nasu/new_code.hiki +246 -0
  292. data/docs/nasu/spec/.rspec +2 -0
  293. data/docs/nasu/spec/my_help_spec.rb +75 -0
  294. data/docs/nasu/spec/my_todo/todo_spec.rb +15 -0
  295. data/docs/nasu/spec/spec_helper.rb +11 -0
  296. data/docs/nasu/spec/support/aruba.rb +1 -0
  297. data/docs/nasu/spec/thor_spec.rb +81 -0
  298. data/docs/nasu/test/my_help_test.rb +11 -0
  299. data/docs/nasu/test/test_helper.rb +4 -0
  300. data/{hikis → docs}/tmp.org +0 -0
  301. data/docs/yagi/bachelor_thesis/final/figs/opt_thor.jpeg +0 -0
  302. data/docs/yagi/bachelor_thesis/final/handout/handout.aux +14 -0
  303. data/{my_help_nasu/latex_dir/my_help_nasu.log → docs/yagi/bachelor_thesis/final/handout/handout.log} +46 -175
  304. data/docs/yagi/bachelor_thesis/final/handout/handout.pdf +0 -0
  305. data/docs/yagi/bachelor_thesis/final/handout/handout.synctex.gz +0 -0
  306. data/docs/yagi/bachelor_thesis/final/handout/handout.tex +123 -0
  307. data/docs/yagi/bachelor_thesis/final/mk_latex/thesis/thesis.aux +46 -0
  308. data/docs/yagi/bachelor_thesis/final/mk_latex/thesis/thesis.dvi +0 -0
  309. data/{lor → docs/yagi/bachelor_thesis/final/mk_latex/thesis/thesis.lof} +0 -0
  310. data/docs/yagi/bachelor_thesis/final/mk_latex/thesis/thesis.lot +0 -0
  311. data/docs/yagi/bachelor_thesis/final/mk_latex/thesis/thesis.synctex.gz +0 -0
  312. data/docs/yagi/bachelor_thesis/final/mk_latex/thesis/thesis.toc +0 -0
  313. data/docs/yagi/bachelor_thesis/final/thesis/figs/opt_thor.png +0 -0
  314. data/docs/yagi/bachelor_thesis/final/thesis/final_thesis.ipynb +449 -0
  315. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/latex/final_thesis.tex +718 -0
  316. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter1/chapter1.tex +8 -0
  317. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter2/chapter2.log +28 -0
  318. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter2/chapter2.tex +127 -0
  319. data/{my_help_nasu/latex_dir/method_cucumber.log → docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter3/chapter3.log} +11 -11
  320. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter3/chapter3.tex +328 -0
  321. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter4/chapter4.tex +13 -0
  322. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter5/chapter5.tex +5 -0
  323. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter6/chapter6.log +38 -0
  324. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/chapter6/chapter6.tex +28 -0
  325. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/informations/informations.aux +1 -0
  326. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/informations/informations.log +55 -0
  327. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/informations/informations.tex +6 -0
  328. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/split_files/tmp/tmp.tex +1 -0
  329. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/.splits_location.tex +6 -0
  330. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.aux +114 -0
  331. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.lof +4 -0
  332. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.log +699 -0
  333. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.lot +5 -0
  334. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.out.ps +98 -0
  335. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.pdf +0 -0
  336. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.synctex.gz +0 -0
  337. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.tex +30 -0
  338. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis.toc +22 -0
  339. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis/thesis_checked_180213_1433.pdf +0 -0
  340. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis_pieces/form00_style.tex +25 -0
  341. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis_pieces/tightlist_setting.tex +2 -0
  342. data/docs/yagi/bachelor_thesis/final/thesis/mk_latex/thesis_pieces/usepackage.tex +25 -0
  343. data/docs/yagi/bachelor_thesis/translation/awesome_chapter2.ipynb +84 -0
  344. data/docs/yagi/bachelor_thesis/translation/awesome_introduction.ipynb +328 -0
  345. data/docs/yagi/comparisons/.ipynb_checkpoints/Untitled-checkpoint.ipynb +6 -0
  346. data/docs/yagi/comparisons/.ipynb_checkpoints/comp-checkpoint.ipynb +230 -0
  347. data/docs/yagi/comparisons/comp.ipynb +178 -0
  348. data/docs/yagi/comparisons/hanami.rb +25 -0
  349. data/docs/yagi/comparisons/optparse.rb +21 -0
  350. data/docs/yagi/comparisons/thor.rb +11 -0
  351. data/docs/yagi/midterm_presentation/.ipynb_checkpoints/abst-checkpoint.ipynb +87 -0
  352. data/docs/yagi/midterm_presentation/abst.aux +16 -0
  353. data/docs/yagi/midterm_presentation/abst.ipynb +87 -0
  354. data/docs/yagi/midterm_presentation/abst.log +222 -0
  355. data/docs/yagi/midterm_presentation/abst.pdf +0 -0
  356. data/docs/yagi/midterm_presentation/abst.synctex.gz +0 -0
  357. data/docs/yagi/midterm_presentation/abst.tex +133 -0
  358. data/{my_help_nasu/latex_dir/jlisting.tex → docs/yagi/midterm_presentation/jlisting.sty} +0 -0
  359. data/docs/yagi/midterm_presentation/mid_keynote/mid_keynote.001.png +0 -0
  360. data/docs/yagi/midterm_presentation/mid_keynote/mid_keynote.002.png +0 -0
  361. data/docs/yagi/midterm_presentation/mid_keynote/mid_keynote.003.png +0 -0
  362. data/docs/yagi/midterm_presentation/mid_keynote/mid_keynote.004.png +0 -0
  363. data/docs/yagi/midterm_presentation/mid_keynote/mid_keynote.005.png +0 -0
  364. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/110809_FamilyChineseOahu_EN_00317_2040x1360-small-12.jpg +0 -0
  365. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/110809_FamilyChineseOahu_EN_02016_981x654-small-14.jpg +0 -0
  366. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/110809_FamilyChineseOahu_EN_02390_2880x1921-small-10.jpg +0 -0
  367. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt10@2x-92.jpg +0 -0
  368. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt1@2x-83.jpg +0 -0
  369. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt2@2x-84.jpg +0 -0
  370. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt3@2x-85.jpg +0 -0
  371. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt4@2x-86.jpg +0 -0
  372. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt5@2x-87.jpg +0 -0
  373. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt6@2x-88.jpg +0 -0
  374. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt7@2x-89.jpg +0 -0
  375. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt8@2x-90.jpg +0 -0
  376. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/mt9@2x-91.jpg +0 -0
  377. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/st0-438.jpg +0 -0
  378. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/st1-598.jpg +0 -0
  379. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/st2-648.jpg +0 -0
  380. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/st3-652.jpg +0 -0
  381. data/docs/yagi/midterm_presentation/mid_keynote.key/Data/st4-671.jpg +0 -0
  382. data/docs/yagi/midterm_presentation/mid_keynote.key/Index.zip +0 -0
  383. data/docs/yagi/midterm_presentation/mid_keynote.key/Metadata/BuildVersionHistory.plist +8 -0
  384. data/docs/yagi/midterm_presentation/mid_keynote.key/Metadata/DocumentIdentifier +1 -0
  385. data/docs/yagi/midterm_presentation/mid_keynote.key/Metadata/Properties.plist +0 -0
  386. data/docs/yagi/midterm_presentation/mid_keynote.key/preview-micro.jpg +0 -0
  387. data/docs/yagi/midterm_presentation/mid_keynote.key/preview-web.jpg +0 -0
  388. data/docs/yagi/midterm_presentation/mid_keynote.key/preview.jpg +0 -0
  389. data/docs/yagi/thor_spec.ipynb +192 -0
  390. data/docs/yagi/thor_task.ipynb +98 -0
  391. data/exe/my_help +3 -1
  392. data/lib/my_help/org2yml.rb +46 -0
  393. data/lib/my_help/version.rb +1 -1
  394. data/lib/my_help/yml2org.rb +36 -0
  395. data/lib/my_help.rb +76 -30
  396. data/lib/my_help_thor.rb +170 -0
  397. data/lib/my_todo/my_todo.rb +5 -2
  398. data/lib/specific_help.rb +52 -25
  399. data/lib/{specific_help.rb~ → specific_help_bu.rb} +129 -89
  400. data/lib/specific_help_opt.rb +71 -0
  401. data/lib/specific_help_thor.rb +172 -0
  402. data/lib/templates/emacs_help.org +47 -0
  403. data/lib/templates/emacs_help_e.org +49 -0
  404. data/lib/templates/my_todo.org +11 -0
  405. data/lib/templates/template_help.org +8 -0
  406. data/make_docker.sh +5 -0
  407. data/my_help.gemspec +3 -2
  408. metadata +406 -92
  409. data/.DS_Store +0 -0
  410. data/CODE_OF_CONDUCT.md +0 -49
  411. data/README_en.md +0 -132
  412. data/exe/e_h +0 -4
  413. data/exe/emacs_help +0 -4
  414. data/exe/my_todo +0 -4
  415. data/hikis/README_en.hiki +0 -130
  416. data/hikis/README_ja.hiki +0 -316
  417. data/hikis/diff_against_org-mode.hiki +0 -34
  418. data/hikis/emacs_help.hiki +0 -47
  419. data/hikis/template_help.hiki +0 -51
  420. data/latexes/handout_pre.tex +0 -11
  421. data/lib/.emacs_help.rb.swp +0 -0
  422. data/lib/daddygongon/emacs_help.yml +0 -89
  423. data/lib/daddygongon/my_todo.yml +0 -31
  424. data/lib/daddygongon/template_help.yml +0 -33
  425. data/lib/emacs_help.rb~ +0 -137
  426. data/lib/my_todo/my_todo.rb~ +0 -7
  427. data/lib/todo.rb~ +0 -1
  428. data/my_help.wiki/Home.md +0 -330
  429. data/my_help.wiki/README_en.md +0 -132
  430. data/my_help.wiki/README_ja.md +0 -330
  431. data/my_help.wiki/emacs_help.md +0 -46
  432. data/my_help.wiki/template_help.md +0 -51
  433. data/my_help_nasu/.DS_Store +0 -0
  434. data/my_help_nasu/consideration.hiki +0 -8
  435. data/my_help_nasu/figs/my_help_nasu.001.jpeg +0 -0
  436. data/my_help_nasu/figs/my_help_nasu.001.jpg +0 -0
  437. data/my_help_nasu/figs/my_help_nasu1.001.jpg +0 -0
  438. data/my_help_nasu/latex_dir/.gitignore +0 -1
  439. data/my_help_nasu/latex_dir/Rakefile +0 -420
  440. data/my_help_nasu/latex_dir/code.aux +0 -25
  441. data/my_help_nasu/latex_dir/consideration.tex +0 -9
  442. data/my_help_nasu/latex_dir/features.aux +0 -31
  443. data/my_help_nasu/latex_dir/features.tex +0 -173
  444. data/my_help_nasu/latex_dir/hiki_help.yml +0 -53
  445. data/my_help_nasu/latex_dir/latex_dir/head.tex +0 -9
  446. data/my_help_nasu/latex_dir/latex_dir/jlisting.tex +0 -216
  447. data/my_help_nasu/latex_dir/my_help_nasu.pdf +0 -0
  448. data/my_help_nasu/latex_dir/my_help_nasu.synctex.gz +0 -0
  449. data/my_help_nasu/latex_dir/my_help_nasu.toc +0 -32
  450. data/my_help_nasu/latex_dir/overview.tex +0 -12
  451. data/my_help_nasu/latex_dir/pre.tex +0 -36
  452. data/my_help_nasu/my_help_nasu/.DS_Store +0 -0
  453. data/my_help_nasu/my_help_nasu.hiki +0 -32
  454. data/my_help_nasu/my_help_nasu.key +0 -0
  455. data/my_help_nasu/overview.hiki +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 238646a581a8b9dde967b519cc3b427197360ef5
4
- data.tar.gz: b5b1e3c5928c522a3ffad3e2d552978fbf42bf45
3
+ metadata.gz: 59b95434de2a15095197ba51eafd6538ca6e41f8
4
+ data.tar.gz: c4da5518d6a3337802266dec0df2d308a9fddc3f
5
5
  SHA512:
6
- metadata.gz: 15b0dfcaa41f257f7c96e3b7d4a05a99947d65ac4af0836985aaf6543766be91110569f5fe6fd6947c00368298a685eb6e7423242ef3a49a2a2311fd6f9928c3
7
- data.tar.gz: 3c5cef68ab442b6dd8fe0398eda9ca33b229718a834d3e114d5bf89e80bcd1b16601558e68d0b25ee6b5dcc7497043e31230f5d525463800657334b70b06e25b
6
+ metadata.gz: b9a2619d61ed1e7304161ed761e995b04ac4c96c80cfc74ac7c241bccd50b33074a90100f6018a6f766eb9aeff3f1fca8daf627d421bc83534e7fd063b3d6233
7
+ data.tar.gz: 6eae68fb2fe5476197996e396dade0a74740070fe8b55a60d7b71624dbd7b3e8145df7e98dc381896218de00361e502edb87b9490df92dd370a5191b4e9710b4
data/.dockerignore ADDED
@@ -0,0 +1,2 @@
1
+ /tmp
2
+ .ipynb_checkpoints/
data/.gitignore CHANGED
@@ -1,10 +1,37 @@
1
- /.DS_Store/
1
+
2
+ # コメントは `#'
3
+
4
+ # .svn フォルダ
5
+ # ディレクトリは最後にスラッシュ
6
+ .svn/
7
+
8
+ # vim のバックアップファイル
9
+ # * は展開される
10
+ *.swp
11
+
12
+ # /tmp のように '/' から始めれば
13
+ # カレントディレクトリの tmp のみ無視
14
+ # /hoge/tmp などは無視されない
15
+ /tmp
16
+ .ipynb_checkpoints/
17
+ .DS_Store
2
18
  /.bundle/
3
- /.yardoc
19
+ .yardoc/
4
20
  /Gemfile.lock
5
21
  /_yardoc/
6
22
  /coverage/
7
23
  /doc/
24
+ /docs/
8
25
  /pkg/
9
26
  /spec/reports/
10
27
  /tmp/
28
+ *~
29
+ \#*
30
+
31
+ Dockerfile
32
+
33
+ # $ git rm -r --cached .
34
+ # $ git add .
35
+ # $ git commit -m ".gitignore is now working"
36
+ # $ git push origin master
37
+
@@ -0,0 +1,511 @@
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "metadata": {
6
+ "toc": "true"
7
+ },
8
+ "source": [
9
+ "# Table of Contents\n",
10
+ " <p><div class=\"lev1 toc-item\"><a href=\"#名前\" data-toc-modified-id=\"名前-1\"><span class=\"toc-item-num\">1&nbsp;&nbsp;</span>名前</a></div><div class=\"lev1 toc-item\"><a href=\"#概要\" data-toc-modified-id=\"概要-2\"><span class=\"toc-item-num\">2&nbsp;&nbsp;</span>概要</a></div><div class=\"lev1 toc-item\"><a href=\"#(my_helpで解決しようとする)問題点\" data-toc-modified-id=\"(my_helpで解決しようとする)問題点-3\"><span class=\"toc-item-num\">3&nbsp;&nbsp;</span>(my_helpで解決しようとする)問題点</a></div><div class=\"lev1 toc-item\"><a href=\"#特徴\" data-toc-modified-id=\"特徴-4\"><span class=\"toc-item-num\">4&nbsp;&nbsp;</span>特徴</a></div><div class=\"lev1 toc-item\"><a href=\"#使用法\" data-toc-modified-id=\"使用法-5\"><span class=\"toc-item-num\">5&nbsp;&nbsp;</span>使用法</a></div><div class=\"lev2 toc-item\"><a href=\"#簡単な使用法\" data-toc-modified-id=\"簡単な使用法-51\"><span class=\"toc-item-num\">5.1&nbsp;&nbsp;</span>簡単な使用法</a></div><div class=\"lev2 toc-item\"><a href=\"#インストール\" data-toc-modified-id=\"インストール-52\"><span class=\"toc-item-num\">5.2&nbsp;&nbsp;</span>インストール</a></div><div class=\"lev2 toc-item\"><a href=\"#alpine-linuxのためのDockerfile\" data-toc-modified-id=\"alpine-linuxのためのDockerfile-53\"><span class=\"toc-item-num\">5.3&nbsp;&nbsp;</span>alpine linuxのためのDockerfile</a></div><div class=\"lev1 toc-item\"><a href=\"#独自のhelpを作る方法\" data-toc-modified-id=\"独自のhelpを作る方法-6\"><span class=\"toc-item-num\">6&nbsp;&nbsp;</span>独自のhelpを作る方法</a></div><div class=\"lev2 toc-item\"><a href=\"#独自helpを使えるように\" data-toc-modified-id=\"独自helpを使えるように-61\"><span class=\"toc-item-num\">6.1&nbsp;&nbsp;</span>独自helpを使えるように</a></div><div class=\"lev2 toc-item\"><a href=\"#userの独自helpの達成方法\" data-toc-modified-id=\"userの独自helpの達成方法-62\"><span class=\"toc-item-num\">6.2&nbsp;&nbsp;</span>userの独自helpの達成方法</a></div><div class=\"lev2 toc-item\"><a href=\"#githubへpushする前に\" data-toc-modified-id=\"githubへpushする前に-63\"><span class=\"toc-item-num\">6.3&nbsp;&nbsp;</span>githubへpushする前に</a></div><div class=\"lev1 toc-item\"><a href=\"#どちらがいいか\" data-toc-modified-id=\"どちらがいいか-7\"><span class=\"toc-item-num\">7&nbsp;&nbsp;</span>どちらがいいか</a></div><div class=\"lev1 toc-item\"><a href=\"#uninstall\" data-toc-modified-id=\"uninstall-8\"><span class=\"toc-item-num\">8&nbsp;&nbsp;</span>uninstall</a></div><div class=\"lev1 toc-item\"><a href=\"#Rakefile\" data-toc-modified-id=\"Rakefile-9\"><span class=\"toc-item-num\">9&nbsp;&nbsp;</span>Rakefile</a></div>"
11
+ ]
12
+ },
13
+ {
14
+ "cell_type": "markdown",
15
+ "metadata": {},
16
+ "source": [
17
+ "# 名前\n",
18
+ "\n",
19
+ "my_help"
20
+ ]
21
+ },
22
+ {
23
+ "cell_type": "markdown",
24
+ "metadata": {},
25
+ "source": [
26
+ "# 概要\n",
27
+ "\n",
28
+ "CUI(CLI)ヘルプのUsage出力を真似て,user独自のhelpを作成・提供するgem."
29
+ ]
30
+ },
31
+ {
32
+ "cell_type": "markdown",
33
+ "metadata": {},
34
+ "source": [
35
+ "# (my_helpで解決しようとする)問題点\n",
36
+ "CUIやshell, 何かのプログラミング言語などを習得しようとする初心者は,\n",
37
+ "commandや文法を覚えるのに苦労します.少しのkey(とっかかり)があると\n",
38
+ "思い出すんですが,うろ覚えでは間違えて路頭に迷います.問題点は,\n",
39
+ "- manは基本的に英語\n",
40
+ "- manualでは重たい\n",
41
+ "- いつもおなじことをwebで検索して\n",
42
+ "- 同じとこ見ている\n",
43
+ "- memoしても,どこへ置いたか忘れる\n",
44
+ "\n",
45
+ "などです."
46
+ ]
47
+ },
48
+ {
49
+ "cell_type": "markdown",
50
+ "metadata": {},
51
+ "source": [
52
+ "# 特徴\n",
53
+ "これらをgem環境として提供しようというのが,このgemの目的です.\n",
54
+ "仕様としては,\n",
55
+ "- userが自分にあったmanを作成\n",
56
+ "- 雛形を提供\n",
57
+ " - おなじformat, looks, 操作, 階層構造\n",
58
+ "- すぐに手が届く\n",
59
+ "- それらを追加・修正・削除できる\n",
60
+ "\n",
61
+ "hikiでやろうとしていることの半分くらいはこのあたりのことなの\n",
62
+ "かもしれません.memoソフトでは,検索が必要となりますが,my_helpは\n",
63
+ "key(記憶のとっかかり)を提供することが目的です.\n",
64
+ "RPGでレベル上げとかアイテムを貯めるようにして,\n",
65
+ "プログラミングでスキルを発展させてください.\n",
66
+ "\n",
67
+ "物覚えの悪い作者は,人の名前をitem分けして,こそっと使っています."
68
+ ]
69
+ },
70
+ {
71
+ "cell_type": "markdown",
72
+ "metadata": {},
73
+ "source": [
74
+ "# 使用法\n",
75
+ "## 簡単な使用法\n",
76
+ "> gem install my_help\n",
77
+ "\n",
78
+ "でも\n",
79
+ "installがうまくいくと,defaultでmy_help, my_todo, emacs_helpが入ります.\n",
80
+ "\n",
81
+ "emacs_helpを動かしてみてください.\n",
82
+ "```\n",
83
+ "emacsのキーバインド\n",
84
+ "\n",
85
+ "特殊キー操作\n",
86
+ " c-f, controlキーを押しながら 'f'\n",
87
+ " M-f, escキーを押した後一度離して'f'\n",
88
+ " 操作の中断c-g, 操作の取り消し(Undo) c-x u\n",
89
+ " cc by Shigeto R. Nishitani, 2016\n",
90
+ "Usage: e_h [options]\n",
91
+ " -v, --version show program Version.\n",
92
+ " -c, --cursor Cursor移動\n",
93
+ " -e, --編集 Edit操作\n",
94
+ " -f, --ファイル File操作\n",
95
+ " -q, --終了 終了操作\n",
96
+ " -p, --ページ Page移動\n",
97
+ " -w, --ウィンドウ Window操作\n",
98
+ " -b, --バッファ Buffer操作\n",
99
+ " -m, --mode モード切り替え\n",
100
+ " --edit edit help contents\n",
101
+ " --to_hiki convert to hikidoc format\n",
102
+ " --all display all helps\n",
103
+ " --store [item] store [item] in back\n",
104
+ " --remove [item] remove [item] in back\n",
105
+ " --add [item] add new [item]\n",
106
+ "```\n",
107
+ "\n",
108
+ "\n",
109
+ "\n",
110
+ "\n",
111
+ "## インストール\n",
112
+ "インストールですが,gemの標準とは違ったやり方になります.GithubからForkしてcloneします.\n",
113
+ "```\n",
114
+ "git clone git@github.com:daddygongon/my_help.git\n",
115
+ "```\n",
116
+ "あとの作業はbundleを使って行います.\n",
117
+ "\n",
118
+ "これは,最後のrake install:localをコマンドから実行する方法がわからんかったからですが...\n",
119
+ "- helpファイルのpush共有とかも考えるとこれがいいのかも.\n",
120
+ "- home以下に置く方法と比較分析してください.\n",
121
+ " - lib/daddygongonにあたらしいhelpを置くようにしていましたが,helpに個人情報を入れるとgit pushでさらしてしまうので,やめました.\n",
122
+ "\n",
123
+ "まずは,\n",
124
+ "> bundle update\n",
125
+ "\n",
126
+ "でmy_help.gemspecに記述されている必要なgemsがbundleされます.\n",
127
+ "\n",
128
+ "Could not locate Gemfileとエラーが出た場合は、Gemfileのある場所を探し、その配下に移動してから再びコマンドを入力する.\n",
129
+ "\n",
130
+ "用意されているコマンドは,\n",
131
+ "\n",
132
+ "```\n",
133
+ "bob% bundle exec exe/my_help\n",
134
+ "Usage: my_help [options]\n",
135
+ " -v, --version show program Version.\n",
136
+ " -l, --list 個別(specific)ヘルプのList表示.\n",
137
+ " -e, --edit NAME NAME(例:test_help)をEdit編集.\n",
138
+ " -i, --init NAME NAME(例:test_help)のtemplateを作成.\n",
139
+ " -m, --make make executables for all helps.\n",
140
+ " -c, --clean clean up exe dir.\n",
141
+ " --install_local install local after edit helps\n",
142
+ " --delete NAME delete NAME help\n",
143
+ "```\n",
144
+ "です.ENV['LANG']='C'では英語でhelpが表示されます.\n",
145
+ "まず,-lでdefaultで入っているリストを見てください.\n",
146
+ "\n",
147
+ "```\n",
148
+ "bob% bundle exec exe/my_help -l\n",
149
+ "\"/usr/local/lib/ruby/gems/2.2.0/gems/my_help-0.2.1/lib/daddygongon\"\n",
150
+ "[\"-l\"]\n",
151
+ "Specific help file:\n",
152
+ " emacs_help\n",
153
+ "```\n",
154
+ "これで,CUIでemacs_help, e_hが用意されています.\n",
155
+ "これをいじって挙動に馴染んでください.\n",
156
+ "--addとか--editとかで,要素の追加や編集ができます."
157
+ ]
158
+ },
159
+ {
160
+ "cell_type": "markdown",
161
+ "metadata": {},
162
+ "source": [
163
+ "## alpine linuxのためのDockerfile\n",
164
+ "\n",
165
+ "my_helpをalpine linux上で動作させるため、Dockerfileのテンプレートを作成しました。\n",
166
+ "スクリプトでプロキシに応じたDockerfileを生成し、イメージを作成します。\n",
167
+ "```sh\n",
168
+ "# generate Dockerfile\n",
169
+ "$ ./make_docker.sh\n",
170
+ "\n",
171
+ "# build an image named 'my-help'\n",
172
+ "$ docker build -t my-help .\n",
173
+ "\n",
174
+ "# run a container\n",
175
+ "$ docker run -it --rm my-help:latest emacs_help\n",
176
+ "```"
177
+ ]
178
+ },
179
+ {
180
+ "cell_type": "markdown",
181
+ "metadata": {},
182
+ "source": [
183
+ "# 独自のhelpを作る方法\n",
184
+ "さて,独自のhelpを作る方法です.まずは,\n",
185
+ "\n",
186
+ "```\n",
187
+ "bob% bundle exec exe/my_help -i new_help\n",
188
+ "\"/Users/bob/.my_help/new_help\"\n",
189
+ "\"/Users/bob/Github/my_help/lib/daddygongon/template_help\"\n",
190
+ "cp /Users/bob/Github/my_help/lib/daddygongon/template_help /Users/bob/.my_help/new_help\n",
191
+ "```\n",
192
+ "で,new_helpというtemplateが用意されます.-e new_helpで編集してください.\n",
193
+ "YAML形式で,格納されています.サンプルが,\n",
194
+ "```\n",
195
+ "my_help/lib/daddygongon\n",
196
+ "```\n",
197
+ "にあります.このあと,-mすると自動でnew_helpがexeディレクトリーに追加されます.\n",
198
+ "\n",
199
+ "## 独自helpを使えるように\n",
200
+ "これは,\n",
201
+ "```\n",
202
+ " bob% bundle exec exe/my_help -m\n",
203
+ "```\n",
204
+ "で自動的に行われるように修正しましたが,gem環境によっては正常にinstallできません.その場合は,以下にしたがって,手動で/usr/local/binなどにinstallする必要があります.my_helpのdirectoryで\n",
205
+ "```\n",
206
+ " git add -A\n",
207
+ " git commit -m 'add new help'\n",
208
+ " rake install:local\n",
209
+ "```\n",
210
+ "してください.さらにlocalへのinstallにはsudoがいるかもしれません.\n",
211
+ "\n",
212
+ "これで終わり.new_helpや短縮形のn_hでhelpが使えます.\n",
213
+ "もし使えないときは,bin pathが通ってないので,terminalをnewしてください."
214
+ ]
215
+ },
216
+ {
217
+ "cell_type": "markdown",
218
+ "metadata": {},
219
+ "source": [
220
+ "## userの独自helpの達成方法\n",
221
+ "\n",
222
+ "- rake my_helpでやっていたが,今は,my_help -mに移行\n",
223
+ "- @target dirをmy_help/lib/daddygongonからENV['HOME']/.my_helpに変更\n",
224
+ "\n",
225
+ "* my_help -i [NAME_help]でNAME_helpを作成.\n",
226
+ "* @target_dirにそれらのdataを保存.\n",
227
+ "* my_help -mでその名前からexe中に実行ファイルを自動生成させている.\n",
228
+ "\n",
229
+ "```\n",
230
+ "lib/daddygongon/\n",
231
+ "└── emacs_help\n",
232
+ "\n",
233
+ "exe\n",
234
+ "├── e_h\n",
235
+ "└── emacs_help\n",
236
+ "```\n",
237
+ "ということ.これは,\n",
238
+ "```\n",
239
+ "my_help -m\n",
240
+ "```\n",
241
+ "で実行される.これを\n",
242
+ "```\n",
243
+ "rake install:local\n",
244
+ "```\n",
245
+ "すれば必要とするhelpがlocalな環境でbin dirに移され,CUI commandとして実行可能になる.\n",
246
+ "\n",
247
+ "たくさんの実行ファイルを/usr/local/binに置くことになるので,あらたなmy_helpを作成するときには\n",
248
+ "```\n",
249
+ "gem uninstall my_help\n",
250
+ "gem uninstall emacs_help\n",
251
+ "```\n",
252
+ "でそのdirをcleanにしておくことが望ましい.下のuninstallの項目を参照.\n",
253
+ "\n",
254
+ "-mでやっている中身は以下の通り.\n",
255
+ "```ruby\n",
256
+ " def make_help\n",
257
+ " Dir.entries(@target_dir)[2..-1].each{|file|\n",
258
+ " next if file[0]=='#' or file[-1]=='~'\n",
259
+ " exe_cont=\"#!/usr/bin/env ruby\\nrequire 'specific_help'\\n\"\n",
260
+ " exe_cont << \"help_file = File.join(ENV['HOME'],'.my_help','#{file}')\\n\"\n",
261
+ " exe_cont << \"SpecificHelp::Command.run(help_file, ARGV)\\n\"\n",
262
+ " [file, short_name(file)].each{|name|\n",
263
+ " p target=File.join('exe',name)\n",
264
+ " File.open(target,'w'){|file| file.print exe_cont}\n",
265
+ " FileUtils.chmod('a+x', target, :verbose => true)\n",
266
+ " }\n",
267
+ " }\n",
268
+ " install_local\n",
269
+ " end\n",
270
+ "\n",
271
+ " def install_local\n",
272
+ " #中略\n",
273
+ " system \"git add -A\"\n",
274
+ " system \"git commit -m 'update exe dirs'\"\n",
275
+ " system \"Rake install:local\"\n",
276
+ " end\n",
277
+ "\n",
278
+ "```\n",
279
+ "\n",
280
+ "実装方法は,emacs_helpに\n",
281
+ "\n",
282
+ "1. yaml形式でdataを入れ,command.runの入力ファイルとする\n",
283
+ "1. hush形式でdataをいれ,それをrequireして使う\n",
284
+ "\n",
285
+ "かのどちらかで実装.speedとかdebugを比較・検証する必要あり.\n",
286
+ "今の所,No.1の方を実装.No.2のためのhushデータは,\n",
287
+ "\n",
288
+ "```ruby\n",
289
+ "# -*- coding: utf-8 -*-\n",
290
+ "require 'yaml'\n",
291
+ "require 'pp'\n",
292
+ "yaml =<<EOF\n",
293
+ ":file:\n",
294
+ " :opts:\n",
295
+ " :short: \"-f\"\n",
296
+ " :cont:\n",
297
+ " - c-x c-f, Find file, ファイルを開く\n",
298
+ " - c-x c-s, Save file, ファイルを保存\n",
299
+ "EOF\n",
300
+ "pp data=YAML.load(yaml)\n",
301
+ "print YAML.dump(data)\n",
302
+ "\n",
303
+ "\n",
304
+ "data0={:file=>\n",
305
+ " {:opts=>{:short=>\"-f\", :long=>\"--ファイル\", :desc=>\"File操作\"},\n",
306
+ " :title=>\"ファイル操作file\",\n",
307
+ " :cont=>\n",
308
+ " [\"c-x c-f, Find file, ファイルを開く\n",
309
+ " c-x c-s, Save file, ファイルを保存\n",
310
+ " c-x c-w, Write file NAME, ファイルを別名で書き込む\"]}}\n",
311
+ "\n",
312
+ "print YAML.dump(data0)\n",
313
+ "```\n",
314
+ "\n",
315
+ "```\n",
316
+ "ruby test.rb lib/daddygongon/emacs_help\n",
317
+ "```\n",
318
+ "\n",
319
+ "で構築できる.実装してみて.\n",
320
+ "\n",
321
+ "## githubへpushする前に\n",
322
+ "\n",
323
+ "exeにたくさんのhelpsを置いたままpushすると\n",
324
+ "邪魔.なんで,あからじめ\n",
325
+ "> bundle exec exe/my_help -c\n",
326
+ "\n",
327
+ "でexeの中をソージしてから, git add -A, commitしてpushしてください."
328
+ ]
329
+ },
330
+ {
331
+ "cell_type": "markdown",
332
+ "metadata": {},
333
+ "source": [
334
+ "# どちらがいいか\n",
335
+ "Rubyで日本語が使えるから,optionsを日本語にしてみた.\n",
336
+ "```\n",
337
+ "Usage: eh [options]\n",
338
+ " -v, --version show program Version.\n",
339
+ " -c, --カーソル Cursor移動\n",
340
+ " -p, --ページ Page移動\n",
341
+ " -f, --ファイル File操作\n",
342
+ " -e, --編集 Edit操作\n",
343
+ " -w, --ウィンドウ Window操作\n",
344
+ " -b, --バッファ Buffer操作\n",
345
+ " -q, --終了 終了操作\n",
346
+ "```\n",
347
+ "半角,全角がoptparseでは適切に判断できない様で,表示があまり揃っていない.\n",
348
+ "しかし,初心者の振る舞いを見ているとわざわざ日本語に切り替えて打ち込むことは稀であり,\n",
349
+ "key wordをhelpで参照してshort optionで入力している.そこで,\n",
350
+ "```\n",
351
+ "Usage: eh [options]\n",
352
+ " -v, --version show program Version.\n",
353
+ " -c, --cursor カーソル移動\n",
354
+ " -p, --page ページ移動\n",
355
+ " -f, --file ファイル操作\n",
356
+ " -e, --edit 編集操作\n",
357
+ " -w, --window ウィンドウ操作\n",
358
+ " -b, --buffer バッファ操作\n",
359
+ " -q, --quit 終了操作\n",
360
+ "```\n",
361
+ "としたほうがいいと提案する.アンケートを実施してみてほしい."
362
+ ]
363
+ },
364
+ {
365
+ "cell_type": "markdown",
366
+ "metadata": {},
367
+ "source": [
368
+ "# uninstall\n",
369
+ "my_help -mでinstallするとEXECUTABLE DIRECTORYにhelpのexec filesが自動で追加される.\n",
370
+ "~/.my_helpを修正したときには,あらかじめ\n",
371
+ "```\n",
372
+ "gem unistall my_help\n",
373
+ "```\n",
374
+ "でそれらをuninstallしておくと良い.\n",
375
+ "\n",
376
+ "```\n",
377
+ "bob% gem uninstall my_help\n",
378
+ "\n",
379
+ "Select gem to uninstall:\n",
380
+ " 1. my_help-0.1.0\n",
381
+ " 2. my_help-0.2.0\n",
382
+ " 3. my_help-0.2.1\n",
383
+ " 4. my_help-0.2.2\n",
384
+ " 5. my_help-0.2.3\n",
385
+ " 6. my_help-0.3.0\n",
386
+ " 7. my_help-0.3.1\n",
387
+ " 8. my_help-0.3.2\n",
388
+ " 9. All versions\n",
389
+ "> 9\n",
390
+ "Successfully uninstalled my_help-0.1.0\n",
391
+ "Successfully uninstalled my_help-0.2.0\n",
392
+ "Remove executables:\n",
393
+ "\t#my_help#\n",
394
+ "\n",
395
+ "in addition to the gem? [Yn] Y\n",
396
+ "Removing #my_help#\n",
397
+ "Successfully uninstalled my_help-0.2.1\n",
398
+ "Successfully uninstalled my_help-0.2.2\n",
399
+ "Successfully uninstalled my_help-0.2.3\n",
400
+ "Successfully uninstalled my_help-0.3.0\n",
401
+ "Remove executables:\n",
402
+ "\ttest_help\n",
403
+ "\n",
404
+ "in addition to the gem? [Yn] Y\n",
405
+ "Removing test_help\n",
406
+ "Successfully uninstalled my_help-0.3.1\n",
407
+ "Remove executables:\n",
408
+ "\te_h, emacs_help, m_h, member_help, my_help, n_h, new_help, r_h, ruby_help, t_h, template_help\n",
409
+ "\n",
410
+ "in addition to the gem? [Yn] Y\n",
411
+ "Removing e_h\n",
412
+ "Removing emacs_help\n",
413
+ "Removing m_h\n",
414
+ "Removing member_help\n",
415
+ "Removing my_help\n",
416
+ "Removing n_h\n",
417
+ "Removing new_help\n",
418
+ "Removing r_h\n",
419
+ "Removing ruby_help\n",
420
+ "Removing t_h\n",
421
+ "Removing template_help\n",
422
+ "Successfully uninstalled my_help-0.3.2\n",
423
+ "```"
424
+ ]
425
+ },
426
+ {
427
+ "cell_type": "markdown",
428
+ "metadata": {},
429
+ "source": [
430
+ "# Rakefile\n",
431
+ "幾つかの環境設定用のtoolがRakefileに用意されている.\n",
432
+ "```\n",
433
+ "rake add_yml # add .yml mode on ~/.emacs.d/init.el\n",
434
+ "rake clean_exe # clean up exe dir\n",
435
+ "rake to_yml # add .yml on all help files\n",
436
+ "```\n",
437
+ "add_yml, to_ymlは3.6から4.0へ移行する時に行ったhelpファイルの拡張子変更,\n",
438
+ "3.6では拡張子なしで4.0では'.yml',に対する対応のために用意したツール.\n",
439
+ "add_ymlは~/.my_help/*_helpファイルを全て~/.my_help/*_help.ymlに変える.\n",
440
+ "to_ymlは~/.emacs.d/init.elに'.yml'の設定が書き込まれていない時,ruby-modeでemacsを起動するsciptを埋め込む.\n",
441
+ "\n",
442
+ "clean_exeは,githubへuploadする時に,開発者個人のexeファイルをrmして整頓する."
443
+ ]
444
+ },
445
+ {
446
+ "cell_type": "code",
447
+ "execution_count": null,
448
+ "metadata": {
449
+ "collapsed": true
450
+ },
451
+ "outputs": [],
452
+ "source": []
453
+ }
454
+ ],
455
+ "metadata": {
456
+ "kernelspec": {
457
+ "display_name": "Ruby 2.2.2",
458
+ "language": "ruby",
459
+ "name": "ruby"
460
+ },
461
+ "language_info": {
462
+ "file_extension": ".rb",
463
+ "mimetype": "application/x-ruby",
464
+ "name": "ruby",
465
+ "version": "2.2.2"
466
+ },
467
+ "latex_envs": {
468
+ "LaTeX_envs_menu_present": true,
469
+ "autocomplete": true,
470
+ "bibliofile": "biblio.bib",
471
+ "cite_by": "apalike",
472
+ "current_citInitial": 1,
473
+ "eqLabelWithNumbers": true,
474
+ "eqNumInitial": 1,
475
+ "hotkeys": {
476
+ "equation": "Ctrl-E",
477
+ "itemize": "Ctrl-I"
478
+ },
479
+ "labels_anchors": false,
480
+ "latex_user_defs": false,
481
+ "report_style_numbering": false,
482
+ "user_envs_cfg": false
483
+ },
484
+ "toc": {
485
+ "colors": {
486
+ "hover_highlight": "#DAA520",
487
+ "navigate_num": "#000000",
488
+ "navigate_text": "#333333",
489
+ "running_highlight": "#FF0000",
490
+ "selected_highlight": "#FFD700",
491
+ "sidebar_border": "#EEEEEE",
492
+ "wrapper_background": "#FFFFFF"
493
+ },
494
+ "moveMenuLeft": true,
495
+ "nav_menu": {
496
+ "height": "304px",
497
+ "width": "252px"
498
+ },
499
+ "navigate_menu": true,
500
+ "number_sections": true,
501
+ "sideBar": true,
502
+ "threshold": 4,
503
+ "toc_cell": true,
504
+ "toc_section_display": "block",
505
+ "toc_window_display": true,
506
+ "widenNotebook": false
507
+ }
508
+ },
509
+ "nbformat": 4,
510
+ "nbformat_minor": 2
511
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "cells": [],
3
+ "metadata": {},
4
+ "nbformat": 4,
5
+ "nbformat_minor": 2
6
+ }
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.4.3
@@ -0,0 +1,13 @@
1
+ FROM alpine:3.7
2
+
3
+ RUN apk update && apk upgrade
4
+ RUN apk --update add \
5
+ openssh git build-base libffi libffi-dev \
6
+ ruby ruby-dev ruby-rake ruby-bundler
7
+
8
+ # RUN git clone https://github.com/daddygongon/my_help.git
9
+ COPY . ~/my_help
10
+ WORKDIR ~/my_help
11
+
12
+ RUN bundle update
13
+ RUN bundle exec exe/my_help -m && rake install:local