githelp 0.1.4 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +5 -5
  2. data/.config/peco/config.json +6 -0
  3. data/00README +8 -0
  4. data/Gemfile +2 -4
  5. data/Makefile +10 -0
  6. data/README.md +9 -122
  7. data/bin/gh +2 -0
  8. data/exe/getghdata +100 -0
  9. data/exe/githelp +42 -67
  10. data/getdata +100 -0
  11. data/githelp +57 -0
  12. metadata +13 -52
  13. data/LICENSE.txt +0 -21
  14. data/Rakefile +0 -10
  15. data/bin/console +0 -14
  16. data/bin/setup +0 -7
  17. data/data.txt +0 -12
  18. data/data/adddelete.rb +0 -10
  19. data/data/afteradd.rb +0 -16
  20. data/data/appear.rb +0 -16
  21. data/data/branch.rb +0 -33
  22. data/data/cat-file.rb +0 -19
  23. data/data/change.rb +0 -95
  24. data/data/checkout.rb +0 -27
  25. data/data/commit.rb +0 -7
  26. data/data/freq.rb +0 -13
  27. data/data/fresh.rb +0 -7
  28. data/data/grep.rb +0 -8
  29. data/data/ignore.rb +0 -11
  30. data/data/log.rb +0 -8
  31. data/data/ls-files.rb +0 -15
  32. data/data/mv.rb +0 -7
  33. data/data/removed.rb +0 -17
  34. data/data/reset.rb +0 -11
  35. data/data/rm.rb +0 -8
  36. data/data/shortlog.rb +0 -13
  37. data/data/show.rb +0 -7
  38. data/data/status.rb +0 -11
  39. data/data/tag.rb +0 -27
  40. data/exe/githelp-changed +0 -9
  41. data/exe/githelp-fileadded +0 -25
  42. data/exe/githelp-unchanged +0 -9
  43. data/githelp.gemspec +0 -28
  44. data/lib/githelp.rb +0 -51
  45. data/lib/githelp/args.rb +0 -17
  46. data/lib/githelp/branches.rb +0 -40
  47. data/lib/githelp/changes.rb +0 -36
  48. data/lib/githelp/files.rb +0 -27
  49. data/lib/githelp/git_check.rb +0 -15
  50. data/lib/githelp/glossary.rb +0 -17
  51. data/lib/githelp/numbers.rb +0 -14
  52. data/lib/githelp/params.rb +0 -17
  53. data/lib/githelp/patterns.rb +0 -20
  54. data/lib/githelp/tags.rb +0 -29
  55. data/lib/githelp/version.rb +0 -3
@@ -1,15 +0,0 @@
1
- # coding: utf-8
2
-
3
- module Githelp
4
- def git_check
5
- res = nil
6
- begin
7
- res = `git log`
8
- rescue
9
- end
10
- res != ''
11
- end
12
- end
13
-
14
-
15
-
@@ -1,17 +0,0 @@
1
- # coding: utf-8
2
-
3
- module Githelp
4
- #def branch
5
- # "(ブランチ|branch)"
6
- #end
7
-
8
- # def mins
9
- # "(1|2|3|4|5|6|7|8|9|10|20|30|40|50)"
10
- # end
11
- # def hours
12
- # "(1|2|4|6|8|10|12|18)"
13
- # end
14
- # def days
15
- # "(1|2|3|4|5|6|7|8|9|10)"
16
- # end
17
- end
@@ -1,14 +0,0 @@
1
- # coding: utf-8
2
- #
3
-
4
- module Githelp
5
- def numbers(argv=ARGV)
6
- a = []
7
- argv.each { |arg|
8
- if arg =~ /^(\d+)[^\d]*$/ then
9
- a << $1
10
- end
11
- }
12
- a.length > 0 ? a : ['1']
13
- end
14
- end
@@ -1,17 +0,0 @@
1
- # coding: utf-8
2
- #
3
-
4
- module Githelp
5
- def params(argv=ARGV)
6
- a = []
7
- argv.each { |arg|
8
- if arg =~ /^(\d+)[^\d]*$/ then
9
- # a << $1
10
- elsif arg =~ /^'.*'$/ || arg =~ /^".*"$/ || arg =~ /^「.*」$/
11
- a << arg.sub(/^['"]/,'').sub(/['"]$/,'').sub('「','').sub('」','')
12
- end
13
- }
14
- a.length > 0 ? a : ['##DUMMYNAME##']
15
- end
16
- end
17
-
@@ -1,20 +0,0 @@
1
- # coding: utf-8
2
- #
3
-
4
- module Githelp
5
- def patterns(argv=ARGV)
6
- a = []
7
- argv.each { |arg|
8
- if arg =~ /^(\d+)[^\d]*$/ then
9
- # a << $1
10
- elsif arg =~ /^'.*'$/ || arg =~ /^".*"$/ || arg =~ /^「.*」$/
11
- # a << arg.sub(/^['"]/,'').sub(/['"]$/,'').sub('「','').sub('」','')
12
- else
13
- a << arg
14
- end
15
- }
16
- a.length > 0 ? a : ['##PATTERN##']
17
- end
18
- end
19
-
20
-
data/lib/githelp/tags.rb DELETED
@@ -1,29 +0,0 @@
1
- # coding: utf-8
2
- #
3
- # 存在するタグのリストを作る
4
- #
5
-
6
- module Githelp
7
- def tags(force=false,argv=ARGV)
8
- #
9
- # 引数の中にタグ名とマッチするものがあればタグリストを取得
10
- #
11
- list = begin
12
- `git tag`.split(/\n/)
13
- rescue
14
- []
15
- end
16
- matched = false
17
- list.each { |tag|
18
- args.each { |arg|
19
- matched = true if tag.match arg
20
- }
21
- }
22
- if (argv.length > 0 && matched) || force
23
- list
24
- else
25
- ['##DUMMYTAG##']
26
- end
27
- end
28
- end
29
-
@@ -1,3 +0,0 @@
1
- module Githelp
2
- VERSION = "0.1.4"
3
- end