githelp 0.3.2 → 0.3.3

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: 1865f038396b4a5c7feebef8182b88b141b138455fc5b1cad6f7fa92633f21e6
4
- data.tar.gz: a4c4df507a1145d696301ab0a76af4ff9d8e68424c71ee780f53955be9bced55
3
+ metadata.gz: a4fb22851a48f5fbc95d9531ea6a822357be8d444980f7b7f1da05b48ee46306
4
+ data.tar.gz: bf380bb86ada38cb295078a3cfccca9ea8d33eabed5f8195a9916d83d954fbe3
5
5
  SHA512:
6
- metadata.gz: ca1ca93ef1da538ba8de3098e2d716277db6cb53b87f76f64653ee7c4250dcba9dba6dd73fe4830d3ceb1280a07086a859b4234d4a61eec9c8b3b138ddb9d8c4
7
- data.tar.gz: 165fefcbf26201b25a4089eb4c5ed17638fa5652f9e9e05824112a99ca2a7c91884cafe0122a40be7957e3fc7f3f999df90272989c0b175a2b0393ec10b4da28
6
+ metadata.gz: 7f82b8e5ee5a9fc864ffa715c32042d1c9cfd45051aafbc3487ecd152544c8c47853a894b57b8c0ab49d7eaa85c0dfaa75bee3e578c60fb60b56beb220d63b84
7
+ data.tar.gz: 497b9fe81733d29d90afb6362a3d55cd8bcaeb0544a844b433503591f7886da20af3b95e06b6c3f904cbdc4bc8aaff87c6623a9e1b7692ab78db5ab93f11bab2
data/exe/githelp CHANGED
@@ -143,8 +143,11 @@ class GitHelp
143
143
  else
144
144
  cmd = res.sub(/^\s*/,'')
145
145
  end
146
- puts cmd
147
- system cmd
146
+ print "「#{cmd.chomp}」 を実行しますか? "
147
+ ans = gets
148
+ if ans =~ /^y/i || ans == "\n"
149
+ system cmd
150
+ end
148
151
  end
149
152
  else
150
153
  res = IO.popen(pager, "w") {|io|
data/index.html CHANGED
@@ -214,7 +214,7 @@
214
214
  <li>対話的処理のために<a href="https://github.com/peco/peco">peco</a>が必要</li>
215
215
  <ul>
216
216
  <li>Macだと<code>% brew install peco</code>でインストール可能</li>
217
- <li>Linuxなどの場合<a href="https://github.com/peco/peco/releases">こちら</a>のファイルからインストール (yumでは入らない)</li>
217
+ <li>Linuxなどの場合<a href="https://github.com/peco/peco/releases">こちら</a>のファイルからインストール (yumなどでは入らない)</li>
218
218
  </ul>
219
219
  </ul>
220
220
 
@@ -1,3 +1,3 @@
1
1
  module GitHelp
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githelp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiyuki Masui