helpline 0.1.9 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2b4bd43a7abba5efc9ba94b4147be41d7106bf6bbf3832587601bc4a4421084
4
- data.tar.gz: a4e5db23fc30f5009bf22e2ac24ad07da6ebda7690f0fb6140268c07e612765b
3
+ metadata.gz: 02f41d7b1a047c1c1a30dc83ac12164a61d36647c679cccb8060e118d9c99e36
4
+ data.tar.gz: be8a74829437318b7aad7fcef431c027821ce2fab8cbd52f8da4e6ad7711d054
5
5
  SHA512:
6
- metadata.gz: 9d7f707aa3220a134a403f62ca0ee212caa944668ccb6e97799d4aa2d5eb1f66f7725c6d6491c2662506fd074435b14eb007c2b64e00c9e9e66e7baa2e8a01ee
7
- data.tar.gz: 29aa3951271e1a640e3cee3727d85df7baa7269abb9e73caa865d41eb186eb5600d4ff86fbc6f568e4f7b750dc97b38294e1d8dbe215692bd85665d9f037191e
6
+ metadata.gz: 9564dbd8ea2d3a4b7fff1a4a4e8da0f2ed4e75e9632d13a0acf2dec7e843f9a13a263b0b90416f7b6f48e3627a1102e371d16eaf51505de299571333fe0babdd
7
+ data.tar.gz: b2e914d31e8bffcaa1458831e13ef0d533fd9354602f6ae0e912e82763a387ebd59727326ee2a665ec38f3effdfcb5e460e6d4072ca336f9a72d04387eaab65b
data/Makefile CHANGED
@@ -42,3 +42,12 @@ clean:
42
42
 
43
43
  all: update build-mac
44
44
 
45
+
46
+ #
47
+ # gem
48
+ #
49
+ release:
50
+ rake release
51
+
52
+
53
+
@@ -144,32 +144,36 @@ class HelpLine
144
144
  end
145
145
  }
146
146
 
147
- # puts "GENERATE #{params.split('|').join(' ')} "
148
-
149
147
  res = g.generate " #{ARGV.join(' ').sub(/\[/,'').sub(/\]/,'')} "
150
148
 
149
+ File.open("/tmp/helpline.cmd","w"){ |f|
150
+ f.puts ARGV.join(' ')
151
+ }
151
152
  if res[0].length == 0
152
153
  puts "ヘルプがみつかりません"
153
- File.open("/tmp/helpline.cmd","w"){ |f|
154
- f.puts ARGV.join(' ')
155
- }
156
154
  exit
157
155
  end
158
156
 
157
+ git_repository = File.exist?(".git")
159
158
  listed = {}
160
159
  list = res[0].find_all { |a| # 0 ambig
161
160
  # a = ["現在の状況を表示する {56}", "git status {56}"], etc.
162
- if listed[a[1]]
161
+ if a[0] =~ /voidvoidvoid/
162
+ false
163
+ elsif a[0] =~ /^git:/ && !git_repository
163
164
  false
164
165
  else
165
- listed[a[1]] = true
166
+ if listed[a[1]]
167
+ false
168
+ else
169
+ listed[a[1]] = true
170
+ end
166
171
  end
167
172
  }
168
173
 
169
174
  #
170
175
  # HelpLineメニュー表示し、カーソル移動で選択
171
176
  #
172
-
173
177
  help_number = {}
174
178
  list.each_with_index { |entry,ind|
175
179
  entry[0].sub!(/\s*{(\d*)}$/,'')
@@ -223,9 +227,10 @@ class HelpLine
223
227
  cmd = list[sel][1]
224
228
 
225
229
  Curses.move(lines,0)
230
+ Curses.tol
231
+
226
232
  #Curses.move(0,0)
227
233
  ##Curses.down
228
- ##Curses.tol
229
234
  Curses.print_inverse("「#{desc}」を実行")
230
235
  puts " (ソース: http://scrapbox.io/HelpLine/#{data['pages'][help_number[desc]]})"
231
236
  File.open("/tmp/helpline.cmd","w"){ |f|
@@ -1,3 +1,3 @@
1
1
  module Helpline
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helpline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiyuki Masui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-03 00:00:00.000000000 Z
11
+ date: 2020-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler