Sha256: 813ce735717ebfea34c6bd41be47b9266f9dcfc47d306bdad30b081ee0fccd1c
Contents?: true
Size: 543 Bytes
Versions: 4
Compression:
Stored size: 543 Bytes
Contents
# coding: utf-8 # # 存在するタグのリストを作る # module Githelp def tags(force=false,argv=ARGV) # # 引数の中にタグ名とマッチするものがあればタグリストを取得 # list = begin `git tag`.split(/\n/) rescue [] end matched = false list.each { |tag| args.each { |arg| matched = true if tag.match arg } } if (argv.length > 0 && matched) || force list else ['##DUMMYTAG##'] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
githelp-0.1.4 | lib/githelp/tags.rb |
githelp-0.1.3 | lib/githelp/tags.rb |
githelp-0.1.2 | lib/githelp/tags.rb |
githelp-0.1.1 | lib/githelp/tags.rb |