my_help 1.2.2 → 1.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/.yardoc/checksums +4 -4
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +20 -1
- data/lib/my_help/cli.rb +1 -0
- data/lib/my_help/config.rb +1 -1
- data/lib/my_help/list.rb +5 -3
- data/lib/my_help/version.rb +1 -1
- data/lib/templates/example.org +3 -5
- metadata +2 -30
- data/doc/MyHelp/CLI.html +0 -749
- data/doc/MyHelp/Config.html +0 -693
- data/doc/MyHelp/Control.html +0 -1127
- data/doc/MyHelp/Error.html +0 -124
- data/doc/MyHelp/GetConfig.html +0 -196
- data/doc/MyHelp/Git.html +0 -291
- data/doc/MyHelp/Init.html +0 -449
- data/doc/MyHelp/List.html +0 -577
- data/doc/MyHelp/Md2Hash.html +0 -632
- data/doc/MyHelp/Modify.html +0 -393
- data/doc/MyHelp/Org2Hash.html +0 -542
- data/doc/MyHelp.html +0 -135
- data/doc/Org2Yaml.html +0 -497
- data/doc/OrgToYaml.html +0 -497
- data/doc/_index.html +0 -230
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -497
- data/doc/file.README.html +0 -181
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -181
- data/doc/js/app.js +0 -314
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -451
- data/doc/top-level-namespace.html +0 -112
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a86f6d2f3dabef582a9c43dca24554b1dda2f5d773d0f7f8c9907c1dd205f8
|
4
|
+
data.tar.gz: 7010d97c58171b9606db261705a93deb7d6f23e546baeb32d25869e99ec1bfc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e0aaf779bb22e17ebd06d6d4277e323619b054120cb56ba8eab1e33c33d1ab2f8df9b71245f769276ce3c2de7d7c99804c5fd55710164cbef20eb063d8f235e
|
7
|
+
data.tar.gz: ec825103b28a678f0dcc7f2c94ec9afdfc836f69deae5b763279b61bb38ace3295a4be45f04956d87b118f95ce8af964cf89c629f5288ea9bc6cc42164228f90
|
data/.yardoc/checksums
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
lib/my_help.rb 7539f0f58056d44d38352f868bfea4d6fb63a9ee
|
2
|
-
lib/my_help/cli.rb
|
2
|
+
lib/my_help/cli.rb c2a482691a6e9183e393110da8a552d477cf856e
|
3
3
|
lib/my_help/init.rb ac83b0cbfd9394278da8e7bf83b089cb84e132e4
|
4
|
-
lib/my_help/list.rb
|
5
|
-
lib/my_help/config.rb
|
4
|
+
lib/my_help/list.rb a63c0f1366a7c162d2c5e16e70f37f7ebb32cf8e
|
5
|
+
lib/my_help/config.rb be52fb39c0656febb6d230aa50e7b7a6804c7cc4
|
6
6
|
lib/my_help/modify.rb 17a00a9f1b4126d9c067a320b47639e5a5fec845
|
7
7
|
lib/my_help/git_cli.rb bb04396f0b9d54ecb13100fe5cde029f7dbb0ea7
|
8
8
|
lib/my_help/md2hash.rb 35ebd32d3f545b40cd9ebb1972dc60d53b58b22a
|
9
9
|
lib/my_help/org2yml.rb 334d0a7b648dc75b1d9504ec6d68937c70e96343
|
10
|
-
lib/my_help/version.rb
|
10
|
+
lib/my_help/version.rb 618ac9ac5ac451afc28fc6bae7bd657fc71a915a
|
11
11
|
lib/my_help/org2hash.rb 939fea903abb5247959d74e18afc8db30fb5f6c8
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
require 'yard'
|
3
3
|
require 'bundler/gem_tasks'
|
4
4
|
require 'rake/testtask'
|
5
5
|
|
@@ -30,3 +30,22 @@ RuboCop::RakeTask.new
|
|
30
30
|
task :default do
|
31
31
|
system "rake -T"
|
32
32
|
end
|
33
|
+
|
34
|
+
require "colorize"
|
35
|
+
require 'command_line/global'
|
36
|
+
|
37
|
+
desc 'git auto'
|
38
|
+
task :git_auto do
|
39
|
+
print "Input comments: "
|
40
|
+
comment = STDIN.gets.chomp
|
41
|
+
comment = comment == "" ? "auto pull and push" : comment.gsub("\'", "\\'")
|
42
|
+
["git add -A",
|
43
|
+
"git commit -m '#{comment}'",
|
44
|
+
"git pull origin main",
|
45
|
+
"git push origin main"].each do |comm|
|
46
|
+
puts comm.cyan
|
47
|
+
res = command_line comm
|
48
|
+
puts res.stdout.green
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
data/lib/my_help/cli.rb
CHANGED
data/lib/my_help/config.rb
CHANGED
@@ -12,7 +12,7 @@ module MyHelp
|
|
12
12
|
@config = {
|
13
13
|
template_dir: File.expand_path("../templates", __dir__),
|
14
14
|
local_help_dir: local_help_dir,
|
15
|
-
conf_file: File.join(
|
15
|
+
conf_file: File.join(conf_path, ".my_help_conf.yml"),
|
16
16
|
editor: ENV["EDITOR"] || "emacs",
|
17
17
|
ext: ".org",
|
18
18
|
verbose: false,
|
data/lib/my_help/list.rb
CHANGED
@@ -8,7 +8,7 @@ module MyHelp
|
|
8
8
|
def initialize(path = "", ext = ".org", layer = 1)
|
9
9
|
@path = path
|
10
10
|
@ext = ext
|
11
|
-
|
11
|
+
@layer = layer
|
12
12
|
end
|
13
13
|
|
14
14
|
def list(help_options = "", level = 0)
|
@@ -34,8 +34,10 @@ module MyHelp
|
|
34
34
|
Dir.glob(files).inject("") do |out, file|
|
35
35
|
# p [out, file]
|
36
36
|
help_info = read_help(file)
|
37
|
-
|
38
|
-
|
37
|
+
head = help_info[:items]["head"] ?
|
38
|
+
help_info[:items]["head"].split("\n")[0] :
|
39
|
+
''
|
40
|
+
out << "%10s: %s\n" % [help_info[:name], head]
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
data/lib/my_help/version.rb
CHANGED
data/lib/templates/example.org
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
#+STARTUP: indent nolineimages overview
|
2
|
-
* head
|
3
|
-
|
4
|
-
* license
|
5
|
-
- cc by Shigeto R. Nishitani, 2016-22
|
2
|
+
* head: help_title example
|
3
|
+
* license: cc by Shigeto R. Nishitani, 2016-23
|
6
4
|
* a_item : item_short_description
|
7
5
|
- content_a
|
8
6
|
* b_item
|
9
|
-
- content_b
|
7
|
+
- content_b
|
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: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shigeto R. Nishiani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -107,34 +107,6 @@ files:
|
|
107
107
|
- README_j.org
|
108
108
|
- Rakefile
|
109
109
|
- development_memo.org
|
110
|
-
- doc/MyHelp.html
|
111
|
-
- doc/MyHelp/CLI.html
|
112
|
-
- doc/MyHelp/Config.html
|
113
|
-
- doc/MyHelp/Control.html
|
114
|
-
- doc/MyHelp/Error.html
|
115
|
-
- doc/MyHelp/GetConfig.html
|
116
|
-
- doc/MyHelp/Git.html
|
117
|
-
- doc/MyHelp/Init.html
|
118
|
-
- doc/MyHelp/List.html
|
119
|
-
- doc/MyHelp/Md2Hash.html
|
120
|
-
- doc/MyHelp/Modify.html
|
121
|
-
- doc/MyHelp/Org2Hash.html
|
122
|
-
- doc/Org2Yaml.html
|
123
|
-
- doc/OrgToYaml.html
|
124
|
-
- doc/_index.html
|
125
|
-
- doc/class_list.html
|
126
|
-
- doc/css/common.css
|
127
|
-
- doc/css/full_list.css
|
128
|
-
- doc/css/style.css
|
129
|
-
- doc/file.README.html
|
130
|
-
- doc/file_list.html
|
131
|
-
- doc/frames.html
|
132
|
-
- doc/index.html
|
133
|
-
- doc/js/app.js
|
134
|
-
- doc/js/full_list.js
|
135
|
-
- doc/js/jquery.js
|
136
|
-
- doc/method_list.html
|
137
|
-
- doc/top-level-namespace.html
|
138
110
|
- exe/my_help
|
139
111
|
- lib/my_help.rb
|
140
112
|
- lib/my_help/cli.rb
|