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
data/lib/my_help.rb CHANGED
@@ -1,7 +1,23 @@
1
- require 'my_help/version.rb'
2
- require 'my_help/my_help_controll'
3
- require 'my_help/tomo_help_controll'
4
- require 'my_help/org2yml'
5
- require 'colorize'
6
- # Add requires for other files you add to your project here, so
7
- # you just need to require this one file in your bin file
1
+ # frozen_string_literal: true
2
+ require "thor"
3
+ require "fileutils"
4
+ require "pp"
5
+ require "yaml"
6
+ require "command_line/global"
7
+
8
+ require_relative "my_help/version"
9
+ require_relative "my_help/list"
10
+ require_relative "my_help/config"
11
+ require_relative "my_help/modify"
12
+ require_relative "my_help/init"
13
+ require_relative "my_help/git_cli"
14
+ require_relative "my_help/cli"
15
+ require_relative "my_help/org2hash"
16
+ require_relative "my_help/md2hash"
17
+
18
+ module MyHelp
19
+ class Error < StandardError; end
20
+
21
+ # Your code goes here...
22
+
23
+ end
@@ -1,33 +1,32 @@
1
- #+STARTUP: indent nolineimages
1
+ #+STARTUP: indent nolineimages overview
2
2
  * head
3
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)
4
+ - special key command
5
+ - c-f, While pressing the control key, press 'f'
6
+ - M-f, After pressing Esc key, press 'f'
7
+ - c-g, Operation interruption
8
+ - c-x u, Undo operation(Undo)
10
9
  * license
11
10
  - cc by Natsuko Kawabata, 2017
12
11
 
13
- * move cursor
12
+ * cursor_move
14
13
  - c-f, move Forward, Move to forward or right
15
14
  - c-b, move Backward, Move to back or left
16
15
  - c-a, go Ahead of line, Move to the beginning of the line
17
16
  - c-e, go End of line, Move to the end of the line
18
17
  - c-n, move Next line, Move to next line
19
18
  - c-p, move Previous line, Move to previous line
20
- * move page
19
+ * page_move
21
20
  - c-v, move Vertical, Move to next page
22
21
  - M-v, move reversive Vertical,Move to previous page
23
22
  - c-l, centerise Line, Move to center on current line
24
23
  - M-<, move Top of file, Move to the top of the file
25
24
  - M->, move Bottom of file, Move to the end of the file
26
- * file operation file
25
+ * file_operation
27
26
  - c-x c-f, Find file, Find file
28
27
  - c-x c-s, Save file, Save file
29
28
  - c-x c-w, Write file NAME, Write a file with another name
30
- * edit operation
29
+ * edit_operation
31
30
  - c-d, Delete char, Delete a letter
32
31
  - c-k, Kill line, Delete a line,cut
33
32
  - c-y, Yank, Paste
@@ -36,15 +35,15 @@ special key command
36
35
  - c-s, forward incremental Search WORD, 前へ WORD を検索
37
36
  - c-r, Reverse incremental search WORD, 後へ WORD を検索
38
37
  - M-x query-replace WORD1 <ret> WORD2:対話的置換(y or n で可否選択)
39
- * window operation
38
+ * window_operation
40
39
  - c-x 2, 2 windows, Split into two windows 二つに分割
41
40
  - c-x 1, 1 windows, Integrate in a window
42
41
  - c-x 3, 3rd window sep, Split vertically
43
42
  - c-x o, Other windows, Move to the next window
44
- * buffer operation
43
+ * buffer_operation
45
44
  - すでに open して Emacs にバッファーされた file
46
45
  - c-x b, show Buffer, Buffer list
47
46
  - c-x c-b, next Buffer, Move to next buffer
48
- * quit operation
47
+ * quit_operation
49
48
  - c-x c-c, Quit Emacs, Save file and quit
50
49
  - c-z, suspend Emacs, Pause,restart with fg
@@ -0,0 +1,17 @@
1
+ # head
2
+
3
+ - help_title example
4
+
5
+ # license
6
+
7
+ - cc by Shigeto R. Nishitani, 2016-22
8
+
9
+ # a_item
10
+
11
+ - item_short_description
12
+ - content_a
13
+
14
+ # b_item
15
+
16
+ - b_item
17
+ - content_b
@@ -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/my_help.gemspec CHANGED
@@ -1,24 +1,28 @@
1
- # Ensure we require the local version and not one we might have installed already
2
- require File.join([File.dirname(__FILE__),'lib','my_help','version.rb'])
3
- spec = Gem::Specification.new do |s|
4
- s.name = 'my_help'
5
- s.version = MyHelp::VERSION
6
- s.author = 'Shigeot R. Nishitani'
7
- s.email = ''
8
- s.homepage = 'https://github.com/daddygongon/my_help'
9
- s.platform = Gem::Platform::RUBY
10
- s.license = "MIT"
11
- s.summary = %q{user building help}
12
- s.description = %q{user building help}
13
- s.files = `git ls-files -z`.split("\x0").reject do |f|
14
- f.match(%r{^(test|spec|features)/})
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/my_help/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "my_help"
7
+ spec.version = MyHelp::VERSION
8
+ spec.authors = ["Shigeto R. Nishiani"]
9
+ spec.email = ["daddygongon@users.noreply.github.com"]
10
+ spec.license = "MIT"
11
+ spec.summary = %q{user building help}
12
+ spec.description = %q{user building help}
13
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
14
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
15
15
  end
16
- s.require_paths = ["lib"]
17
- s.bindir = "exe"
18
- s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- s.add_development_dependency('rake')
20
- s.add_development_dependency('rspec')
21
- s.add_runtime_dependency('thor')
22
- s.add_runtime_dependency "colorize"
23
- s.add_runtime_dependency "command_line"
16
+ spec.bindir = "exe"
17
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ # Uncomment to register a new dependency of your gem
21
+ spec.add_development_dependency "rspec"
22
+ spec.add_runtime_dependency "thor"
23
+ spec.add_runtime_dependency "command_line"
24
+ spec.add_runtime_dependency "colorize"
25
+ spec.add_development_dependency "aruba"
26
+ # For more information and examples about making a new gem, checkout our
27
+ # guide at: https://bundler.io/guides/creating_gem.html
24
28
  end
data/tmp.txt ADDED
@@ -0,0 +1,14 @@
1
+ Commands:
2
+ my_help delete HELP # delete HELP
3
+ my_help edit HELP # edit HELP
4
+ my_help git [push|pull] # git push or pull
5
+ my_help help [COMMAND] # Describe available commands or one specific command
6
+ my_help list [HELP] [ITEM] # list all helps, specific HELP, or ITEM
7
+ my_help new HELP # make new HELP
8
+ my_help set_editor EDITOR_NAME # set editor to EDITOR_NAME
9
+ my_help setup # set up the test database
10
+ my_help version # show version
11
+
12
+ Options:
13
+ d, [--dir=DIR]
14
+
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
- - Shigeot R. Nishitani
8
- autorequire:
7
+ - Shigeto R. Nishiani
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,13 +25,13 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec
28
+ name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: thor
42
+ name: command_line
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -67,13 +67,13 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: command_line
70
+ name: aruba
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
- type: :runtime
76
+ type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
@@ -81,16 +81,22 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: user building help
84
- email: ''
84
+ email:
85
+ - daddygongon@users.noreply.github.com
85
86
  executables:
86
87
  - my_help
87
- - my_help_gli
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
+ - "'../test'/.my_help/.my_help_conf.yml"
92
+ - "'../test'/.my_help/emacs.org"
93
+ - "'../test'/.my_help/org.org"
94
+ - "'../test'/.my_help/todo.org"
91
95
  - ".dockerignore"
92
96
  - ".gitignore"
97
+ - ".my_help/example2.org"
93
98
  - ".rspec"
99
+ - ".rspec_status"
94
100
  - ".travis.yml"
95
101
  - ".yardoc/checksums"
96
102
  - ".yardoc/complete"
@@ -100,12 +106,9 @@ files:
100
106
  - Gemfile
101
107
  - Gemfile.lock
102
108
  - LICENSE.txt
103
- - README.html
104
109
  - README.org
105
- - README.rdoc
106
110
  - README_en.org
107
111
  - Rakefile
108
- - bin/my_help_thor
109
112
  - doc/MyHelp.html
110
113
  - doc/MyHelp/Control.html
111
114
  - doc/OrgToYaml.html
@@ -123,23 +126,46 @@ files:
123
126
  - doc/js/jquery.js
124
127
  - doc/method_list.html
125
128
  - doc/top-level-namespace.html
129
+ - docs/README.html
130
+ - docs/README.org
131
+ - docs/old_docs/16b_nasu.pdf
132
+ - docs/old_docs/17b_oyagi.pdf
133
+ - docs/old_docs/19b_okabata.pdf
134
+ - docs/old_docs/19b_yamaguchi.pdf
135
+ - docs/old_docs/features/delete.feature
136
+ - docs/old_docs/features/edit.feature
137
+ - docs/old_docs/features/list.feature
138
+ - docs/old_docs/features/new.feature
139
+ - docs/old_docs/features/step_definitions/delete_spec.rb
140
+ - docs/old_docs/features/step_definitions/edit_spec.rb
141
+ - docs/old_docs/features/step_definitions/list_spec.rb
142
+ - docs/old_docs/features/step_definitions/new_spec.rb
143
+ - docs/old_docs/features/support/env.rb
144
+ - docs/old_docs/fukumori_symp/18_human_interface_fukumori_workshop.pdf
145
+ - docs/old_docs/fukumori_symp/memo_perp_magician.pdf
146
+ - docs/old_docs/fukumori_symp/知識の直交補空間.png
126
147
  - exe/my_help
127
- - exe/my_help_gli
128
148
  - lib/my_help.rb
129
- - lib/my_help/my_help_controll.rb
149
+ - lib/my_help/cli.rb
150
+ - lib/my_help/config.rb
151
+ - lib/my_help/git_cli.rb
152
+ - lib/my_help/init.rb
153
+ - lib/my_help/list.rb
154
+ - lib/my_help/md2hash.rb
155
+ - lib/my_help/modify.rb
156
+ - lib/my_help/org2hash.rb
130
157
  - lib/my_help/org2yml.rb
131
- - lib/my_help/tomo_help_controll.rb
132
158
  - lib/my_help/version.rb
133
159
  - lib/templates/emacs.org
134
- - lib/templates/help_template.org
135
- - lib/templates/org.org
136
- - lib/templates/todo.org
160
+ - lib/templates/example.md
161
+ - lib/templates/example.org
137
162
  - my_help.gemspec
138
- homepage: https://github.com/daddygongon/my_help
163
+ - tmp.txt
164
+ homepage:
139
165
  licenses:
140
166
  - MIT
141
167
  metadata: {}
142
- post_install_message:
168
+ post_install_message:
143
169
  rdoc_options: []
144
170
  require_paths:
145
171
  - lib
@@ -154,8 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
180
  - !ruby/object:Gem::Version
155
181
  version: '0'
156
182
  requirements: []
157
- rubygems_version: 3.1.2
158
- signing_key:
183
+ rubygems_version: 3.2.22
184
+ signing_key:
159
185
  specification_version: 4
160
186
  summary: user building help
161
187
  test_files: []