githelp 0.1.4 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.config/peco/config.json +6 -0
- data/00README +8 -0
- data/Gemfile +2 -4
- data/Makefile +10 -0
- data/README.md +9 -122
- data/bin/gh +2 -0
- data/exe/getghdata +100 -0
- data/exe/githelp +42 -67
- data/getdata +100 -0
- data/githelp +57 -0
- metadata +13 -52
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -10
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/data.txt +0 -12
- data/data/adddelete.rb +0 -10
- data/data/afteradd.rb +0 -16
- data/data/appear.rb +0 -16
- data/data/branch.rb +0 -33
- data/data/cat-file.rb +0 -19
- data/data/change.rb +0 -95
- data/data/checkout.rb +0 -27
- data/data/commit.rb +0 -7
- data/data/freq.rb +0 -13
- data/data/fresh.rb +0 -7
- data/data/grep.rb +0 -8
- data/data/ignore.rb +0 -11
- data/data/log.rb +0 -8
- data/data/ls-files.rb +0 -15
- data/data/mv.rb +0 -7
- data/data/removed.rb +0 -17
- data/data/reset.rb +0 -11
- data/data/rm.rb +0 -8
- data/data/shortlog.rb +0 -13
- data/data/show.rb +0 -7
- data/data/status.rb +0 -11
- data/data/tag.rb +0 -27
- data/exe/githelp-changed +0 -9
- data/exe/githelp-fileadded +0 -25
- data/exe/githelp-unchanged +0 -9
- data/githelp.gemspec +0 -28
- data/lib/githelp.rb +0 -51
- data/lib/githelp/args.rb +0 -17
- data/lib/githelp/branches.rb +0 -40
- data/lib/githelp/changes.rb +0 -36
- data/lib/githelp/files.rb +0 -27
- data/lib/githelp/git_check.rb +0 -15
- data/lib/githelp/glossary.rb +0 -17
- data/lib/githelp/numbers.rb +0 -14
- data/lib/githelp/params.rb +0 -17
- data/lib/githelp/patterns.rb +0 -20
- data/lib/githelp/tags.rb +0 -29
- data/lib/githelp/version.rb +0 -3
data/lib/githelp/git_check.rb
DELETED
data/lib/githelp/glossary.rb
DELETED
@@ -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
|
data/lib/githelp/numbers.rb
DELETED
data/lib/githelp/params.rb
DELETED
@@ -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
|
-
|
data/lib/githelp/patterns.rb
DELETED
@@ -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
|
-
|
data/lib/githelp/version.rb
DELETED