git-chlog 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/git-chlog +279 -0
- data/git-chlog.gemspec +37 -0
- data/lib/git/chlog/version.rb +5 -0
- data/lib/git/chlog.rb +7 -0
- metadata +108 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0252df630af5256b8188c00be555ecd264e9fb07
|
4
|
+
data.tar.gz: 426a0cc5da377b2ec0d793a9cd7e7d50019a05a9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d645e2fed6de7f9eb9ef5d5b55476537b787d5c7b6c33837733a538eff54cd79469717516a7c3aa1491636fca36960ff6c9bbe650b0d90fea1bf4b108af8dd46
|
7
|
+
data.tar.gz: 5c3d28ec847c5667a765a5006b8b0141ac2e7695ef04b381c280990b12c2a40177045932746942b6a34cb3f77114b2020220e7025503405be0237fdf395572f9
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Change Log
|
2
|
+
## [v0.1.0](https://github.com/teohm/git-chlog/tree/v0.1.0)
|
3
|
+
Released on 2017-11-01
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/teohm/git-chlog/compare/6bcc2fb6e...v0.1.0)
|
6
|
+
* 2017-11-01 - fix :allowed_push_host metadata in gemspec [#3](https://github.com/teohm/git-chlog/pull/3)
|
7
|
+
* 2017-11-01 - Prepare release 0.1.0 [#2](https://github.com/teohm/git-chlog/pull/2)
|
8
|
+
* 2017-11-01 - Add git custom command: git-chlog [#1](https://github.com/teohm/git-chlog/pull/1)
|
9
|
+
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at teohuiming@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Huiming Teo
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Git::Chlog
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/git/chlog`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'git-chlog'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install git-chlog
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/git-chlog. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the Git::Chlog project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/git-chlog/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "git/chlog"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/git-chlog
ADDED
@@ -0,0 +1,279 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "time"
|
5
|
+
|
6
|
+
class MergeRequest
|
7
|
+
attr_reader :id, :title, :date
|
8
|
+
|
9
|
+
def initialize(id:, title:, date:)
|
10
|
+
@id = id
|
11
|
+
@title = title
|
12
|
+
@date = Time.parse(date)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module CodeHosting
|
17
|
+
def self.build(repo_url)
|
18
|
+
if GitHub.matching_repo_url?(repo_url)
|
19
|
+
GitHub.new(repo_url)
|
20
|
+
else
|
21
|
+
raise "unsupported repo url: #{repo_url}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class GitHub
|
26
|
+
attr_reader :repo_name
|
27
|
+
|
28
|
+
def self.matching_repo_url?(repo_url)
|
29
|
+
/github\.com/.match?(repo_url)
|
30
|
+
end
|
31
|
+
|
32
|
+
def initialize(github_repo_url)
|
33
|
+
@repo_name = extract_repo_name(github_repo_url)
|
34
|
+
end
|
35
|
+
|
36
|
+
def build_merge_request(raw_commit)
|
37
|
+
MergeRequest.new(
|
38
|
+
id: extract_pull_id(raw_commit[:subject]),
|
39
|
+
title: raw_commit[:body],
|
40
|
+
date: raw_commit[:date]
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
def is_merge_request?(raw_commit)
|
45
|
+
raw_commit[:subject].start_with?("Merge pull request")
|
46
|
+
end
|
47
|
+
|
48
|
+
def base_url
|
49
|
+
"https://github.com"
|
50
|
+
end
|
51
|
+
|
52
|
+
def merge_request_url(id)
|
53
|
+
[base_url, repo_name, "pull", id].join("/")
|
54
|
+
end
|
55
|
+
|
56
|
+
def diff_url(from:, to:)
|
57
|
+
[base_url, repo_name, "compare", "#{from}...#{to}"].join("/")
|
58
|
+
end
|
59
|
+
|
60
|
+
def tag_url(tag)
|
61
|
+
[base_url, repo_name, "tree", tag].join("/")
|
62
|
+
end
|
63
|
+
|
64
|
+
private
|
65
|
+
|
66
|
+
def extract_repo_name(repo_url)
|
67
|
+
/git@github.com:([^.]+).git/.match(repo_url)&.captures&.first
|
68
|
+
end
|
69
|
+
|
70
|
+
def extract_pull_id(commit_subject)
|
71
|
+
/#(\d+)/.match(commit_subject).captures.first
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
class Release
|
77
|
+
attr_reader :tag, :date
|
78
|
+
attr_accessor :prev_tag
|
79
|
+
|
80
|
+
def initialize(tag:, date:)
|
81
|
+
@tag = tag
|
82
|
+
@date = Time.parse(date)
|
83
|
+
end
|
84
|
+
|
85
|
+
def version_number
|
86
|
+
tag.sub("v", "")
|
87
|
+
end
|
88
|
+
|
89
|
+
def <=>(other)
|
90
|
+
date <=> other.date
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
module GitRepo
|
95
|
+
def self.origin_remote_url
|
96
|
+
`git remote get-url origin`.strip
|
97
|
+
end
|
98
|
+
|
99
|
+
def self.first_commit_sha
|
100
|
+
`git rev-list --max-parents=0 HEAD`.strip[0...9]
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.prev_tag(current_tag)
|
104
|
+
`git log --format="%D" #{current_tag}~1`
|
105
|
+
.split("\n")
|
106
|
+
.select { |line| line.start_with?("tag:") }
|
107
|
+
.first
|
108
|
+
&.match(/tag: ([^,]+)/)&.captures&.first
|
109
|
+
end
|
110
|
+
|
111
|
+
def self.load_releases
|
112
|
+
LoadReleases.new(git_repo: self).call
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.load_merged_requests(release, code_hosting)
|
116
|
+
LoadMergedRequests.new(
|
117
|
+
release: release, code_hosting: code_hosting
|
118
|
+
).call
|
119
|
+
end
|
120
|
+
|
121
|
+
class LoadReleases
|
122
|
+
attr_reader :git_repo
|
123
|
+
|
124
|
+
def initialize(git_repo:)
|
125
|
+
@git_repo = git_repo
|
126
|
+
end
|
127
|
+
|
128
|
+
def call
|
129
|
+
raw_git_tag_data
|
130
|
+
.map { |release_params| Release.new(release_params) }
|
131
|
+
.map { |release|
|
132
|
+
release.prev_tag = git_repo.prev_tag(release.tag)
|
133
|
+
release
|
134
|
+
}
|
135
|
+
.sort
|
136
|
+
.reverse
|
137
|
+
end
|
138
|
+
|
139
|
+
private
|
140
|
+
|
141
|
+
def raw_git_tag_data
|
142
|
+
`git tag --format='%(refname:short)|%(creatordate:iso8601)'`
|
143
|
+
.split("\n")
|
144
|
+
.map { |line| Hash[[:tag, :date].zip(line.split("|"))] }
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
class LoadMergedRequests
|
149
|
+
attr_reader :release, :code_hosting
|
150
|
+
|
151
|
+
def initialize(release:, code_hosting:)
|
152
|
+
@release = release
|
153
|
+
@code_hosting = code_hosting
|
154
|
+
end
|
155
|
+
|
156
|
+
def call
|
157
|
+
raw_git_merge_commits
|
158
|
+
.select { |raw_commit| is_merge_request?(raw_commit) }
|
159
|
+
.map { |raw_commit| build_merge_request(raw_commit) }
|
160
|
+
end
|
161
|
+
|
162
|
+
private
|
163
|
+
|
164
|
+
def raw_git_merge_commits
|
165
|
+
`git log --merges --pretty="%aI|%s|%b" #{tag_range}`
|
166
|
+
.split("\n")
|
167
|
+
.map { |line| Hash[[:date, :subject, :body].zip(line.split("|"))] }
|
168
|
+
.select { |m| !m[:subject].nil? }
|
169
|
+
end
|
170
|
+
|
171
|
+
def tag_range
|
172
|
+
[release.tag, release.prev_tag].compact.join("...")
|
173
|
+
end
|
174
|
+
|
175
|
+
def is_merge_request?(raw_commit)
|
176
|
+
code_hosting.is_merge_request?(raw_commit)
|
177
|
+
end
|
178
|
+
|
179
|
+
def build_merge_request(raw_commit)
|
180
|
+
code_hosting.build_merge_request(raw_commit)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
class IssueTracker
|
186
|
+
class PivotalTracker
|
187
|
+
def self.decorate_issue(text)
|
188
|
+
text.gsub(/#(\d+)/,
|
189
|
+
"[#\\1](https://www.pivotaltracker.com/story/show/\\1)")
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
class PrintChangeLog
|
195
|
+
attr_reader :code_hosting, :git_repo, :issue_tracker, :config
|
196
|
+
|
197
|
+
DEFAULT_CONFIG = {
|
198
|
+
title: "# Change Log",
|
199
|
+
diff_url_label: "Full Changelog"
|
200
|
+
}.freeze
|
201
|
+
|
202
|
+
def initialize(code_hosting:, git_repo:, issue_tracker:, config: {})
|
203
|
+
@code_hosting = code_hosting
|
204
|
+
@git_repo = git_repo
|
205
|
+
@issue_tracker = issue_tracker
|
206
|
+
@config = DEFAULT_CONFIG.merge(config)
|
207
|
+
end
|
208
|
+
|
209
|
+
def call
|
210
|
+
with_output do |out|
|
211
|
+
out.puts config[:title]
|
212
|
+
|
213
|
+
until releases.empty? do
|
214
|
+
release = releases.shift
|
215
|
+
|
216
|
+
print_release_heading(out, release)
|
217
|
+
out.puts
|
218
|
+
|
219
|
+
print_full_changelog_link(out, release)
|
220
|
+
|
221
|
+
merged_requests(release).each do |merge_request|
|
222
|
+
print_merged_request(out, merge_request)
|
223
|
+
end
|
224
|
+
out.puts
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
private
|
230
|
+
|
231
|
+
def print_release_heading(out, release)
|
232
|
+
out.puts("## [#{release.tag}](#{code_hosting.tag_url(release.tag)})")
|
233
|
+
out.puts("Released on #{format_date(release.date)}")
|
234
|
+
end
|
235
|
+
|
236
|
+
def print_full_changelog_link(out, release)
|
237
|
+
prev_tag = release.prev_tag || git_repo.first_commit_sha
|
238
|
+
out.puts(
|
239
|
+
"[#{config[:diff_url_label]}]"\
|
240
|
+
"(#{code_hosting.diff_url(from: prev_tag, to: release.tag)})"
|
241
|
+
)
|
242
|
+
end
|
243
|
+
|
244
|
+
def print_merged_request(out, merge_request)
|
245
|
+
out.puts(
|
246
|
+
"* " \
|
247
|
+
" #{format_date(merge_request.date)}" \
|
248
|
+
" - #{link_to_issue_tracker(merge_request.title)} " \
|
249
|
+
" [##{merge_request.id}]"\
|
250
|
+
"(#{code_hosting.merge_request_url(merge_request.id)})"
|
251
|
+
)
|
252
|
+
end
|
253
|
+
|
254
|
+
def format_date(date)
|
255
|
+
date.strftime("%F")
|
256
|
+
end
|
257
|
+
|
258
|
+
def link_to_issue_tracker(title)
|
259
|
+
issue_tracker.decorate_issue(title)
|
260
|
+
end
|
261
|
+
|
262
|
+
def releases
|
263
|
+
@_releases ||= git_repo.load_releases
|
264
|
+
end
|
265
|
+
|
266
|
+
def merged_requests(release)
|
267
|
+
git_repo.load_merged_requests(release, code_hosting)
|
268
|
+
end
|
269
|
+
|
270
|
+
def with_output
|
271
|
+
yield(STDOUT.to_io)
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
PrintChangeLog.new(
|
276
|
+
code_hosting: CodeHosting.build(GitRepo.origin_remote_url),
|
277
|
+
git_repo: GitRepo,
|
278
|
+
issue_tracker: IssueTracker::PivotalTracker
|
279
|
+
).call
|
data/git-chlog.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "git/chlog/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "git-chlog"
|
8
|
+
spec.version = Git::Chlog::VERSION
|
9
|
+
spec.authors = ["Huiming Teo"]
|
10
|
+
spec.email = ["teohuiming@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Print changelog for PR-based git repo.}
|
13
|
+
spec.description = %q{This gem provides a git custom command `git chlog` to print changelog with a list of merged pull-requests grouped by tags in a git repository.}
|
14
|
+
spec.homepage = "https://github.com/teohm/git-chlog"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
if spec.respond_to?(:metadata=)
|
18
|
+
spec.metadata = {
|
19
|
+
"allowed_push_host" => "https://rubygems.org",
|
20
|
+
"bug_tracker_uri" => "http://github.com/teohm/git-chlog/issues",
|
21
|
+
"changelog_uri" => "https://github.com/teohm/git-chlog/blob/master/CHANGELOG.md",
|
22
|
+
"homepage_uri" => "https://github.com/teohm/git-chlog",
|
23
|
+
"source_code_uri" => "https://github.com/teohm/git-chlog"
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
28
|
+
f.match(%r{^(test|spec|features)/})
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
35
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
37
|
+
end
|
data/lib/git/chlog.rb
ADDED
metadata
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: git-chlog
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Huiming Teo
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: This gem provides a git custom command `git chlog` to print changelog
|
56
|
+
with a list of merged pull-requests grouped by tags in a git repository.
|
57
|
+
email:
|
58
|
+
- teohuiming@gmail.com
|
59
|
+
executables:
|
60
|
+
- git-chlog
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- ".rspec"
|
66
|
+
- ".travis.yml"
|
67
|
+
- CHANGELOG.md
|
68
|
+
- CODE_OF_CONDUCT.md
|
69
|
+
- Gemfile
|
70
|
+
- LICENSE.txt
|
71
|
+
- README.md
|
72
|
+
- Rakefile
|
73
|
+
- bin/console
|
74
|
+
- bin/setup
|
75
|
+
- exe/git-chlog
|
76
|
+
- git-chlog.gemspec
|
77
|
+
- lib/git/chlog.rb
|
78
|
+
- lib/git/chlog/version.rb
|
79
|
+
homepage: https://github.com/teohm/git-chlog
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata:
|
83
|
+
allowed_push_host: https://rubygems.org
|
84
|
+
bug_tracker_uri: http://github.com/teohm/git-chlog/issues
|
85
|
+
changelog_uri: https://github.com/teohm/git-chlog/blob/master/CHANGELOG.md
|
86
|
+
homepage_uri: https://github.com/teohm/git-chlog
|
87
|
+
source_code_uri: https://github.com/teohm/git-chlog
|
88
|
+
post_install_message:
|
89
|
+
rdoc_options: []
|
90
|
+
require_paths:
|
91
|
+
- lib
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
requirements: []
|
103
|
+
rubyforge_project:
|
104
|
+
rubygems_version: 2.6.13
|
105
|
+
signing_key:
|
106
|
+
specification_version: 4
|
107
|
+
summary: Print changelog for PR-based git repo.
|
108
|
+
test_files: []
|