my_help 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -2
  3. data/Gemfile.lock +1 -1
  4. data/README.org +3 -3
  5. data/lib/my_help/my_help_controll.rb +20 -15
  6. data/lib/my_help/version.rb +1 -1
  7. data/{before_gli/lib/templates/emacs_help.org → lib/templates/emacs.org} +0 -0
  8. data/{before_gli/lib/templates/template_help.org → lib/templates/help_template.org} +0 -0
  9. data/{before_gli/lib/templates/org_help.org → lib/templates/org.org} +0 -0
  10. data/{before_gli/lib/templates/my_todo.org → lib/templates/todo.org} +2 -2
  11. metadata +6 -38
  12. data/before_gli/Dockerfile.template +0 -13
  13. data/before_gli/Gemfile +0 -5
  14. data/before_gli/Gemfile.lock +0 -63
  15. data/before_gli/bin/console +0 -14
  16. data/before_gli/bin/setup +0 -8
  17. data/before_gli/exe/e_h +0 -4
  18. data/before_gli/exe/emacs_help +0 -4
  19. data/before_gli/exe/m_t +0 -4
  20. data/before_gli/exe/my_help +0 -6
  21. data/before_gli/exe/my_todo +0 -4
  22. data/before_gli/exe/o_h +0 -4
  23. data/before_gli/exe/org_help +0 -4
  24. data/before_gli/lib/emacs_help.rb +0 -137
  25. data/before_gli/lib/my_help/my_help_controll.rb +0 -134
  26. data/before_gli/lib/my_help/org2yml.rb +0 -47
  27. data/before_gli/lib/my_help/specific_help.rb +0 -2
  28. data/before_gli/lib/my_help/test.rb +0 -29
  29. data/before_gli/lib/my_help/version.rb +0 -3
  30. data/before_gli/lib/my_help/yml2org.rb +0 -34
  31. data/before_gli/lib/my_help.rb +0 -204
  32. data/before_gli/lib/my_help_new.rb +0 -54
  33. data/before_gli/lib/my_help_thor.rb +0 -170
  34. data/before_gli/lib/specific_help.rb +0 -172
  35. data/before_gli/lib/specific_help_bu.rb +0 -233
  36. data/before_gli/lib/specific_help_opt.rb +0 -71
  37. data/before_gli/lib/specific_help_thor.rb +0 -172
  38. data/before_gli/make_docker.sh +0 -5
  39. data/before_gli/my_help.gemspec +0 -34
  40. data/lib/templates/emacs_help.org +0 -50
  41. data/lib/templates/my_todo.org +0 -11
  42. data/lib/templates/org_help.org +0 -64
  43. data/lib/templates/template_help.org +0 -8
@@ -1,172 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require "optparse"
3
- require "yaml"
4
- require "my_help/version"
5
- require "my_help/specific_help"
6
- require 'fileutils'
7
- require 'colorize'
8
- require 'my_help/org2yml'
9
- require 'my_help/yml2org'
10
-
11
- module SpecificHelp
12
- class Command
13
-
14
- def self.run(file,argv=[])
15
- new(file, argv).execute
16
- end
17
-
18
- def initialize(file,argv=[])
19
- @source_file = file
20
- @help_cont = OrgToYaml.new(file).help_cont
21
- [:head,:license].each do |sym|
22
- target = @help_cont[sym]
23
- print target[:cont] if target != nil
24
- end
25
- @argv = argv
26
- end
27
-
28
- def execute
29
- if @argv.size==0
30
- if @source_file.include?('todo')
31
- @argv << '--all'
32
- else
33
- @argv << '--help'
34
- end
35
- end
36
- command_parser = OptionParser.new do |opt|
37
- opt.on('-v', '--version','show program Version.') { |v|
38
- opt.version = MyHelp::VERSION
39
- puts opt.ver
40
- }
41
- @help_cont.each_pair{|key,val|
42
- next if key==:head or key==:license
43
- opts = val[:opts]
44
- opt.on(opts[:short],opts[:long],opts[:desc]) {disp_help(key)}
45
- }
46
- opt.on('--edit','edit help contents'){edit_help}
47
- opt.on('--all','display all helps'){all_help}
48
- opt.on('--store [item]','store [item] in backfile'){|item| store(item)}
49
- opt.on('--remove [item]','remove [item] and store in backfile'){|item| remove(item) }
50
- opt.on('--add [item]','add new [item]'){|item| add(item) }
51
- opt.on('--backup_list [val]','show last [val] backup list'){|val| backup_list(val)}
52
- end
53
- begin
54
- command_parser.parse!(@argv)
55
- rescue=> eval
56
- p eval
57
- end
58
- exit
59
- end
60
-
61
- def backup_list(val)
62
- val = val || 10
63
- print "\n ...showing last #{val} stored items in backup.\n"
64
- backup=mk_backup_file(@source_file)
65
- File.open(backup,'r'){|file|
66
- backup_cont = YAML.load(File.read(backup))
67
- backup_size = backup_cont.size
68
- backup_size = backup_size>val.to_i ? val.to_i : backup_size
69
- backup_keys = backup_cont.keys
70
- backup_keys.reverse.each_with_index{|item,i|
71
- break if i>=backup_size
72
- line = item.to_s.split('_')
73
- printf("%10s : %8s%8s\n",line[0],line[1],line[2])
74
- }
75
- }
76
- end
77
-
78
- def mk_backup_file(file)
79
- path = File.dirname(file)
80
- base = File.basename(file)
81
- backup= File.join(path,"."+base)
82
- FileUtils.touch(backup) unless File.exists?(backup)
83
- return backup
84
- end
85
-
86
- def store(item)
87
- if item==nil
88
- print "spcify --store [item].\n"
89
- exit
90
- else
91
- print "Trying to store #{item}\n"
92
- end
93
- backup=mk_backup_file(@source_file)
94
- unless store_item = @help_cont[item.to_sym] then
95
- print "No #{item} in this help. The items are following...\n"
96
- keys = @help_cont.keys
97
- keys.each{|key|
98
- p key
99
- }
100
- exit
101
- end
102
- p store_name = item+"_"+Time.now.strftime("%Y%m%d_%H%M%S")
103
- cont = {store_name.to_sym => store_item}
104
- backup_cont=YAML.load(File.read(backup)) || {}
105
- backup_cont[store_name.to_sym]=store_item
106
- File.open(backup,'w'){|file| file.print(YAML.dump(backup_cont))}
107
- end
108
-
109
- def add(item='new_item')
110
- print "Trying to add #{item}\n"
111
- new_item={:opts=>{:short=>'-'+item[0], :long=>'--'+item, :desc=>item},
112
- :title=>item, :cont=> item}
113
- @help_cont[item.to_sym]=new_item
114
- File.open(@source_file,'w'){|f| f.print YmlToOrg.new(@help_cont).contents}
115
- end
116
-
117
- def remove(item)
118
- print "Trying to remove #{item}\n"
119
- store(item)
120
- @help_cont.delete(item.to_sym)
121
- File.open(@source_file,'w'){|file| file.print YAML.dump(@help_cont)}
122
- end
123
-
124
- def edit_help
125
- help_file =@source_file
126
- begin
127
- p command= "emacs #{help_file}"
128
- exec command
129
- rescue => e
130
- print "\nOption edit is not executable on windows. \n"
131
- print "Type the following shell command;\n\n"
132
- print "emacs /home/#{ENV['USER']}/.my_help/#{File.basename(@source_file)}\n\n"
133
- end
134
- end
135
-
136
- def all_help
137
- @help_cont.each_pair{|key,val|
138
- if key==:head or key==:license
139
- if val.kind_of?(Hash)
140
- disp(val[:cont][0]+=":")
141
- else
142
- val[0]+=":"
143
- disp(val)
144
- end
145
- else
146
- disp_help(key)
147
- end
148
- }
149
- end
150
-
151
- def disp_help(key_word)
152
- print_separater
153
- items =@help_cont[key_word]
154
- puts items[:title].magenta
155
- disp(items[:cont])
156
- print_separater
157
- end
158
-
159
- def disp(lines)
160
- if lines.kind_of?(Array)
161
- lines.each{|line| puts "* #{line}".blue}
162
- else
163
- print lines
164
- end
165
- end
166
-
167
- def print_separater
168
- print "---\n"
169
- end
170
-
171
- end
172
- end
@@ -1,233 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require "optparse"
3
- require "yaml"
4
- require "my_help/version"
5
- require 'fileutils'
6
- require "coderay"
7
- require 'colorize'
8
- require "thor"
9
-
10
- module SpecificHelp
11
- class Command < Thor
12
- =begin
13
- def self.start(file,*args)
14
- new(file, *args).execute
15
- end
16
- =end
17
-
18
- def initialize(*args)
19
- super
20
- puts "@initialize\n"
21
- # file = File.join(ENV['HOME'],'.my_help','test_help.yml'
22
- # @source_file = file
23
- @source_file = File.join(ENV['HOME'],'.my_help','test_help.yml')
24
- # file = "/Users/OyagiToshiharu/.my_help/test_help.yml"
25
- # @source_file = file
26
-
27
- @help_cont = YAML.load(File.read(@source_file))
28
- @help_cont[:head].each{|line| print line.chomp+"\n" } if @help_cont[:head] != nil
29
- @help_cont[:license].each{|line| print "#{line.chomp}\n" } if @help_cont[:license] != nil
30
- @argv = *args
31
- end
32
-
33
- desc 'backup NAME, --backup NAME','backup NAME help'
34
- map "--backup" => "backup"
35
- def backup(val)
36
- val = val || 10
37
- print "\n ...showing last #{val} stored items in backup.\n"
38
- backup=mk_backup_file(@source_file)
39
- File.open(backup,'r'){|file|
40
- backup_cont = YAML.load(File.read(backup))
41
- backup_size = backup_cont.size
42
- backup_size = backup_size>val.to_i ? val.to_i : backup_size
43
- backup_keys = backup_cont.keys
44
- backup_keys.reverse.each_with_index{|item,i|
45
- break if i>=backup_size
46
- line = item.to_s.split('_')
47
- printf("%10s : %8s%8s\n",line[0],line[1],line[2])
48
- }
49
- }
50
- end
51
-
52
- desc 'store NAME, --store','store NAME help'
53
- map "--store" => "store"
54
- def store(item)
55
- if item==nil
56
- print "spcify --store [item].\n"
57
- exit
58
- else
59
- print "Trying to store #{item}\n"
60
- end
61
- backup=mk_backup_file(@source_file)
62
- unless store_item = @help_cont[item.to_sym] then
63
- print "No #{item} in this help. The items are following...\n"
64
- keys = @help_cont.keys
65
- keys.each{|key|
66
- p key
67
- }
68
- exit
69
- end
70
- p store_name = item+"_"+Time.now.strftime("%Y%m%d_%H%M%S")
71
- cont = {store_name.to_sym => store_item}
72
- backup_cont=YAML.load(File.read(backup)) || {}
73
- backup_cont[store_name.to_sym]=store_item
74
- File.open(backup,'w'){|file| file.print(YAML.dump(backup_cont))}
75
- end
76
-
77
- desc 'add NAME, --add NAME','add NAME help'
78
- map "--add" => "add"
79
- def add(item='new_item')
80
- print "Trying to add #{item}\n"
81
- new_item={:opts=>{:short=>'-'+item[0], :long=>'--'+item, :desc=>item},
82
- :title=>item, :cont=> [item]}
83
- @help_cont[item.to_sym]=new_item
84
- File.open(@source_file,'w'){|file| file.print YAML.dump(@help_cont)}
85
- end
86
-
87
- desc 'remove NAME, --remove NAME','remove NAME help'
88
- map "--remove" => "remove"
89
- def remove(item)
90
- print "Trying to remove #{item}\n"
91
- store(item)
92
- @help_cont.delete(item.to_sym)
93
- File.open(@source_file,'w'){|file| file.print YAML.dump(@help_cont)}
94
- end
95
-
96
- desc 'edit, --edit','edit help'
97
- map "--edit" => "edit"
98
- def edit
99
- puts "@edit\n"
100
- p help_file =@source_file
101
- begin
102
- p command= "emacs #{help_file}"
103
- exec command
104
- rescue => e
105
- print "\nOption edit is not executable on windows. \n"
106
- print "Type the following shell command;\n\n"
107
- print "emacs /home/#{ENV['USER']}/.my_help/#{File.basename(@source_file)}\n\n"
108
- print "M-x ruby-mode should be good for edit.\n"
109
- end
110
- end
111
-
112
- desc 'hiki, --hiki','hiki help'
113
- map "--hiki" => "hiki"
114
- def hiki
115
- @help_cont.each_pair{|key,val|
116
- if key==:head or key==:license
117
- hiki_disp(val)
118
- else
119
- hiki_help(key)
120
- end
121
- }
122
- end
123
-
124
- desc 'all, --all','all help'
125
- map "--all" => "all"
126
- def all
127
- @help_cont.each_pair{|key,val|
128
- if key==:head or key==:license
129
- val[0]+=":"
130
- disp(val)
131
- else
132
- disp_help(key)
133
- end
134
- }
135
- end
136
-
137
- no_commands do
138
-
139
- def mk_backup_file(file)
140
- path = File.dirname(file)
141
- base = File.basename(file)
142
- backup= File.join(path,"."+base)
143
- FileUtils.touch(backup) unless File.exists?(backup)
144
- return backup
145
- end
146
-
147
- def hiki_help(key_word)
148
- items =@help_cont[key_word]
149
- puts "\n!!"+items[:title]+"\n"
150
- hiki_disp(items[:cont])
151
- end
152
-
153
- def hiki_disp(lines)
154
- lines.each{|line| puts "*#{line}"} if lines != nil
155
- end
156
-
157
- def disp_help(key_word)
158
- print_separater
159
- items =@help_cont[key_word]
160
- puts items[:title].magenta
161
- # puts CodeRay.scan("-#{items[:title]}:", :Taskpaper).term
162
- disp(items[:cont])
163
- print_separater
164
- end
165
-
166
- def disp(lines)
167
- # lines.each{|line| puts " +#{line}"} if lines != nil
168
- lines.each{|line| puts "*#{line}".blue}
169
- # lines.each{|line| puts CodeRay.scan("+#{line}", :Taskpaper).term}
170
- end
171
-
172
- def print_separater
173
- print "---\n"
174
- end
175
-
176
- =begin
177
- def execute
178
- puts "@execute\n"
179
- if @argv.size==0
180
- if @source_file.include?('todo')
181
- @argv << '--all'
182
- else
183
- @argv << '--help'
184
- end
185
- end
186
- =end
187
- =begin
188
- command_parser = OptionParser.new do |opt|
189
- opt.on('-v', '--version','show program Version.') { |v|
190
- opt.version = MyHelp::VERSION
191
- puts opt.ver
192
- }
193
-
194
-
195
- @help_cont.each_pair{|key,val|
196
- next if key==:head or key==:license
197
- opts = val[:opts]
198
- opt.on(opts[:short],opts[:long],opts[:desc]) {disp_help(key)}
199
- }
200
- =end
201
- =begin
202
- if ENV['LANG']=='C'
203
- opt.on('--edit','edit help contents'){edit_help}
204
- opt.on('--to_hiki','convert to hikidoc format'){to_hiki}
205
- opt.on('--all','display all helps'){all_help}
206
- opt.on('--store [item]','store [item] in backfile'){|item| store(item)}
207
- opt.on('--remove [item]','remove [item] and store in backfile'){|item| remove(item) }
208
- opt.on('--add [item]','add new [item]'){|item| add(item) }
209
- opt.on('--backup_list [val]','show last [val] backup list'){|val| backup_list(val)}
210
- else
211
- opt.on('--edit','edit help contentsを開く'){edit_help}
212
- opt.on('--to_hiki','hikiのformatに変更する'){to_hiki}
213
- opt.on('--all','すべてのhelp画面を表示させる'){all_help}
214
- opt.on('--store [item]','store [item] でback upをとる'){|item| store(item)}
215
- opt.on('--remove [item]','remove [item] back upしてるlistを消去する'){|item| remove(item) }
216
- opt.on('--add [item]','add new [item]で新しいhelpを作る'){|item| add(item) }
217
- opt.on('--backup_list [val]','back upしているlistを表示させる'){|val| backup_list(val)}
218
- end
219
- =end
220
- =begin
221
- end
222
- begin
223
- command_parser.parse!(@argv)
224
- rescue=> eval
225
- p eval
226
- end
227
- =end
228
- # exit
229
- # end
230
- end
231
- end
232
- end
233
-
@@ -1,71 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require "optparse"
3
- require "yaml"
4
- require "my_help/version"
5
- require 'fileutils'
6
- require "coderay"
7
- require 'colorize'
8
-
9
- module SpecificHelpOpt
10
- class Command
11
- def self.run(file,argv=[])
12
- new(file, argv).execute
13
- end
14
-
15
- def initialize(file,argv=[])
16
- @source_file = file
17
- @help_cont = YAML.load(File.read(file))
18
- # @help_cont[:head].each{|line| print line.chomp+"\n" } if @help_cont[:head] != nil
19
- # @help_cont[:license].each{|line| print "#{line.chomp}\n" } if @help_cont[:license] != nil
20
- @argv = argv
21
- end
22
-
23
- def execute
24
- if @argv.size==0
25
- if @source_file.include?('todo')
26
- @argv << '--all'
27
- else
28
- @argv << '--help'
29
- end
30
- end
31
-
32
- command_parser = OptionParser.new do |opt|
33
- opt.on('-v', '--version','show program Version.') { |v|
34
- opt.version = MyHelp::VERSION
35
- puts opt.ver
36
- }
37
- @help_cont.each_pair{|key,val|
38
- next if key==:head or key==:license
39
- opts = val[:opts]
40
- opt.on(opts[:short],opts[:long],opts[:desc]) {disp_help(key)}
41
- }
42
- end
43
- begin
44
- command_parser.parse!(@argv)
45
- rescue=> eval
46
- p eval
47
- end
48
-
49
- end
50
-
51
- def disp_help(key_word)
52
- print_separater
53
- items =@help_cont[key_word]
54
- puts items[:title].magenta
55
- # puts CodeRay.scan("-#{items[:title]}:", :Taskpaper).term
56
- disp(items[:cont])
57
- print_separater
58
- end
59
-
60
- def disp(lines)
61
- # lines.each{|line| puts " +#{line}"} if lines != nil
62
- lines.each{|line| puts "*#{line}".blue}
63
- # lines.each{|line| puts CodeRay.scan("+#{line}", :Taskpaper).term}
64
- end
65
-
66
- def print_separater
67
- print "---\n"
68
- end
69
- end
70
- end
71
-
@@ -1,172 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require "optparse"
3
- require "yaml"
4
- require "my_help/version"
5
- require 'fileutils'
6
- require "coderay"
7
- require 'colorize'
8
- require "thor"
9
-
10
- module SpecificHelp
11
- class Command < Thor
12
- # def self.start(file,*args)
13
- # new(file,*args).execute
14
- # end
15
- def initialize(*args)
16
- super
17
- # p ENV['HELP_NAME']
18
- file=File.join(ENV['HOME'],'.my_help',"#{ENV['HELP_NAME']}.yml")
19
- puts "@initialize\n"
20
-
21
- @source_file = file
22
- @help_cont = YAML.load(File.read(@source_file))
23
- @help_cont[:head].each{|line| print line.chomp+"\n" } if @help_cont[:head] != nil
24
- @help_cont[:license].each{|line| print "#{line.chomp}\n" } if @help_cont[:license] != nil
25
- @argv = *args
26
- end
27
-
28
- desc 'backup NAME, --backup NAME','backup NAME help'
29
- map "--backup" => "backup"
30
- def backup(val)
31
- val = val || 10
32
- print "\n ...showing last #{val} stored items in backup.\n"
33
- backup=mk_backup_file(@source_file)
34
- File.open(backup,'r'){|file|
35
- backup_cont = YAML.load(File.read(backup))
36
- backup_size = backup_cont.size
37
- backup_size = backup_size>val.to_i ? val.to_i : backup_size
38
- backup_keys = backup_cont.keys
39
- backup_keys.reverse.each_with_index{|item,i|
40
- break if i>=backup_size
41
- line = item.to_s.split('_')
42
- printf("%10s : %8s%8s\n",line[0],line[1],line[2])
43
- }
44
- }
45
- end
46
-
47
- desc 'store NAME, --store','store NAME help'
48
- map "--store" => "store"
49
- def store(item)
50
- if item==nil
51
- print "spcify --store [item].\n"
52
- exit
53
- else
54
- print "Trying to store #{item}\n"
55
- end
56
- backup=mk_backup_file(@source_file)
57
- unless store_item = @help_cont[item.to_sym] then
58
- print "No #{item} in this help. The items are following...\n"
59
- keys = @help_cont.keys
60
- keys.each{|key|
61
- p key
62
- }
63
- exit
64
- end
65
- p store_name = item+"_"+Time.now.strftime("%Y%m%d_%H%M%S")
66
- cont = {store_name.to_sym => store_item}
67
- backup_cont=YAML.load(File.read(backup)) || {}
68
- backup_cont[store_name.to_sym]=store_item
69
- File.open(backup,'w'){|file| file.print(YAML.dump(backup_cont))}
70
- end
71
-
72
- desc 'add NAME, --add NAME','add NAME help'
73
- map "--add" => "add"
74
- def add(item='new_item')
75
- print "Trying to add #{item}\n"
76
- new_item={:opts=>{:short=>'-'+item[0], :long=>'--'+item, :desc=>item},
77
- :title=>item, :cont=> [item]}
78
- @help_cont[item.to_sym]=new_item
79
- File.open(@source_file,'w'){|file| file.print YAML.dump(@help_cont)}
80
- end
81
-
82
- desc 'remove NAME, --remove NAME','remove NAME help'
83
- map "--remove" => "remove"
84
- def remove(item)
85
- print "Trying to remove #{item}\n"
86
- store(item)
87
- @help_cont.delete(item.to_sym)
88
- File.open(@source_file,'w'){|file| file.print YAML.dump(@help_cont)}
89
- end
90
-
91
- desc 'edit, --edit','edit help'
92
- map "--edit" => "edit"
93
- def edit
94
- puts "@edit\n"
95
- p help_file =@source_file
96
- begin
97
- p command= "emacs #{help_file}"
98
- exec command
99
- rescue => e
100
- print "\nOption edit is not executable on windows. \n"
101
- print "Type the following shell command;\n\n"
102
- print "emacs /home/#{ENV['USER']}/.my_help/#{File.basename(@source_file)}\n\n"
103
- print "M-x ruby-mode should be good for edit.\n"
104
- end
105
- end
106
-
107
- desc 'hiki, --hiki','hiki help'
108
- map "--hiki" => "hiki"
109
- def hiki
110
- @help_cont.each_pair{|key,val|
111
- if key==:head or key==:license
112
- hiki_disp(val)
113
- else
114
- hiki_help(key)
115
- end
116
- }
117
- end
118
-
119
- desc 'all, --all','all help'
120
- map "--all" => "all"
121
- def all
122
- @help_cont.each_pair{|key,val|
123
- if key==:head or key==:license
124
- val[0]+=":"
125
- disp(val)
126
- else
127
- disp_help(key)
128
- end
129
- }
130
- end
131
-
132
- no_commands do
133
-
134
- def mk_backup_file(file)
135
- path = File.dirname(file)
136
- base = File.basename(file)
137
- backup= File.join(path,"."+base)
138
- FileUtils.touch(backup) unless File.exists?(backup)
139
- return backup
140
- end
141
-
142
- def hiki_help(key_word)
143
- items =@help_cont[key_word]
144
- puts "\n!!"+items[:title]+"\n"
145
- hiki_disp(items[:cont])
146
- end
147
-
148
- def hiki_disp(lines)
149
- lines.each{|line| puts "*#{line}"} if lines != nil
150
- end
151
-
152
- def disp_help(key_word)
153
- print_separater
154
- items =@help_cont[key_word]
155
- puts items[:title].magenta
156
- # puts CodeRay.scan("-#{items[:title]}:", :Taskpaper).term
157
- disp(items[:cont])
158
- print_separater
159
- end
160
-
161
- def disp(lines)
162
- # lines.each{|line| puts " +#{line}"} if lines != nil
163
- lines.each{|line| puts "*#{line}".blue}
164
- # lines.each{|line| puts CodeRay.scan("+#{line}", :Taskpaper).term}
165
- end
166
-
167
- def print_separater
168
- print "---\n"
169
- end
170
- end
171
- end
172
- end
@@ -1,5 +0,0 @@
1
- #!/bin/sh
2
-
3
- sed "/FROM alpine:3.7/a\\
4
- \nENV http_proxy '$http_proxy'\\
5
- ENV https_proxy '$https_proxy'" Dockerfile.template > Dockerfile
@@ -1,34 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'my_help/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "my_help"
8
- spec.version = MyHelp::VERSION
9
- spec.authors = ["Shigeto R. Nishitani"]
10
- spec.email = ["shigeto_nishitani@me.com"]
11
-
12
- spec.summary = %q{make own help and list.}
13
- spec.description = %q{Emulating CUI(CLI) help, an user makes and displays his own helps.}
14
- spec.homepage = "https://github.com/daddygongon/my_help"
15
- spec.license = "MIT"
16
- spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.
17
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
- # delete this section to allow pushing this gem to any host.
19
- # if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = 'http://rubygems.org'
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
- # end
24
-
25
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- spec.add_development_dependency "bundler", "~> 1.11"
31
- spec.add_development_dependency "rake", "~> 10.0"
32
- spec.add_dependency "systemu"
33
- spec.add_dependency "colorize"
34
- end