Git Subcommand

This commit is contained in:
Dlani Mendes 2015-09-30 16:52:13 -03:00
parent 4f43e86957
commit b4f6cc14d3
5 changed files with 47 additions and 1 deletions

View File

@ -14,3 +14,7 @@ Metrics/ClassLength:
# Configuration parameters: CountComments.
Metrics/MethodLength:
Enabled: false
Style/FileName:
Exclude:
- 'bin/git-generate-changelog'

4
bin/git-generate-changelog Executable file
View File

@ -0,0 +1,4 @@
#! /usr/bin/env ruby
require_relative "../lib/github_changelog_generator"
GitHubChangelogGenerator::ChangelogGenerator.new.run

10
ext/mkrf_conf.rb Normal file
View File

@ -0,0 +1,10 @@
PREFIX = "/usr/local"
MANPREFIX = "#{PREFIX}/share/man/man1"
MAN_PAGES = "man/git-*"
require "fileutils"
Dir.glob(MAN_PAGES).each do |f|
filename = File.basename(f)
FileUtils.cp(f, "#{MANPREFIX}/#{filename}")
end

View File

@ -16,7 +16,8 @@ Gem::Specification.new do |spec|
spec.summary = "Script, that automatically generate changelog from your tags, issues, labels and pull requests."
spec.description = "Changelog generation has never been so easy. Fully automate changelog generation - this gem generate change log file based on tags, issues and merged pull requests from Github issue tracker."
spec.homepage = "https://github.com/skywinder/Github-Changelog-Generator"
spec.license = "MIT"
spec.license = "MIT"
spec.extensions = "ext/mkrf_conf.rb"
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }

View File

@ -0,0 +1,27 @@
.\" Manpage for git-activity
.TH man 1 "Sep 2015" "1.0" "git genrate-changelog man page"
.SH NAME
git activity \- Generate changelog from github
.SH SYNOPSIS
git generate-changelog [-h|--help] [-u|--user] [-p|--project]
.SH DESCRIPTION
Automatically generate change log from your tags, issues, labels and pull requests on GitHub.
.SH OPTIONS
.TP
.I --h
Show helper provide from gem.
.TP
.I --help
Thos this man page.
.TP
.I -u | --user github_username
Username of the owner of target GitHub repo
.TP
.I -p | --project github_project
Name of project on GitHub Just convenience options to specify user/project:
.SH SEE ALSO
git-for-each-ref(1)
.SH BUGS
No known bugs.
.SH AUTHOR
Petr Korolev <sky4winder+github@gmail.com>