helpline 0.1.11 → 0.1.12

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: 68594071f2e4aa5818d9ae6de52c5ee62639d1f515ff57ac2e99651db55c9926
4
- data.tar.gz: 795c0e29cec0c2f64f322dba73489e8be0886e9fb2f37c6ec8a844ab66fa6f3f
3
+ metadata.gz: bf6546d695b0f5183a37b1bd3f03b92badd158baf1b41de47710cd5620d1fe25
4
+ data.tar.gz: 8c66e7379d9cb8e2d02925fb80a33e44d9772fb6d40bcb41e0ec681e6c92092c
5
5
  SHA512:
6
- metadata.gz: 337bdaff283898d910d81beadd934816f3402151b894c61e5e4c862f60b44a0731b81411ae9312354b29fbe752b0836356e1accbef1c9e4c25067574d16eed1b
7
- data.tar.gz: e6fc6bfee04155eed4cdfa9e17ca61757a1a63a9ec94b6af78afea0409ee21d119d3d0223cbfcd8e7136e7f2ce8bc397784fc60a6ad5afdadb9802f4bc5906bf
6
+ metadata.gz: 289c5a0bc28dd19cbfe0f25bcfc3d32776c7b4e9dcba21b763d6cd72dfa0425f09efc2de9758dd57025338e90e6115f336562700d4117adae27d44d27d109fa8
7
+ data.tar.gz: e9455987872ac5e3765703bf7f13cc204a22b1d5c237970943ff99c3d2bffe53a7e3b815cbf7df222bee1fad1e1fee45c21dfcb6276a917439ba672b4c5e842c
@@ -144,8 +144,6 @@ 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
 
151
149
  if res[0].length == 0
@@ -156,13 +154,18 @@ class HelpLine
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] =~ /^git:/ && !git_repository
163
162
  false
164
163
  else
165
- listed[a[1]] = true
164
+ if listed[a[1]]
165
+ false
166
+ else
167
+ listed[a[1]] = true
168
+ end
166
169
  end
167
170
  }
168
171
 
@@ -1,3 +1,3 @@
1
1
  module Helpline
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
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.11
4
+ version: 0.1.12
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