gitlog-md 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/HISTORY.md +44 -3
- data/lib/gitlog-md/parser.rb +6 -1
- data/lib/gitlog-md/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzAyYjMxZjNlNDYxYzI2NjZlNTViNjcxY2Q5N2RkMTI1NjNkYzMxMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmMwOGQ4OWMxNDAzNGVhYTQ2MjYwNTRiODQ0NTg1Mzg1YWIyNzk3NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGU4ZjhiMzNiODVkNjNkNzM2YmI3ZDQ2ZDk2YjY1NjZlMGQzY2I1NzUzNWYy
|
10
|
+
NTczYzY1ZTNkMTkyOWNkMWE1ZTBlOTcyNWVlMGRhZTcyMzI1NTc3NzNlMDBj
|
11
|
+
YjhiMDgwNzE2MWZiMWIxMGRjMGRmNzMxNzYwNWEzZmY4OWY3YjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2ZiZTQwZWRhM2Y1NjFmZWFiZTgwNGVjZDA3NjFlZGRlOTY2ZDk2ZTg0MmVh
|
14
|
+
ODA1YjExYTg5YzlmNDAxNDQzNDJkZmU0MDIwM2Y4ZjU4ZWM2ZWQ2ZTVhNThk
|
15
|
+
NGZlYzhkMWUyNDNmMTllNDFmMmRhMDIwNjk2MzhmNjUyMGIzODc=
|
data/HISTORY.md
CHANGED
@@ -1,8 +1,49 @@
|
|
1
|
-
#
|
1
|
+
# default - History
|
2
2
|
## Tags
|
3
|
-
* [LATEST -
|
3
|
+
* [LATEST - 9 Jun, 2015 (e1e00126)](#LATEST)
|
4
|
+
* [0.0.2 - 30 Mar, 2015 (4a489b6f)](#0.0.2)
|
5
|
+
* [0.0.1 - 30 Mar, 2015 (46fa1859)](#0.0.1)
|
4
6
|
|
5
7
|
## Details
|
6
|
-
### <a name = "LATEST">LATEST -
|
8
|
+
### <a name = "LATEST">LATEST - 9 Jun, 2015 (e1e00126)
|
9
|
+
|
10
|
+
* (GEM) update gitlog-md version to 0.0.3 (e1e00126)
|
11
|
+
|
12
|
+
* Merge pull request #2 from anodelman/master (33c1d135)
|
13
|
+
|
14
|
+
|
15
|
+
```
|
16
|
+
Merge pull request #2 from anodelman/master
|
17
|
+
|
18
|
+
(QENG-2387) gitlog-md doesn't generate correct history for a branch
|
19
|
+
```
|
20
|
+
* (QENG-2387) gitlog-md doesn't generate correct history for a branch (23f63bef)
|
21
|
+
|
22
|
+
|
23
|
+
```
|
24
|
+
(QENG-2387) gitlog-md doesn't generate correct history for a branch
|
25
|
+
|
26
|
+
- only process tags associated with the branch that you are generating
|
27
|
+
history for
|
28
|
+
```
|
29
|
+
### <a name = "0.0.2">0.0.2 - 30 Mar, 2015 (4a489b6f)
|
30
|
+
|
31
|
+
* Merge pull request #1 from anodelman/master (4a489b6f)
|
32
|
+
|
33
|
+
|
34
|
+
```
|
35
|
+
Merge pull request #1 from anodelman/master
|
36
|
+
|
37
|
+
incorrect gemspec
|
38
|
+
```
|
39
|
+
* incorrect gemspec (14e8e9d3)
|
40
|
+
|
41
|
+
|
42
|
+
```
|
43
|
+
incorrect gemspec
|
44
|
+
|
45
|
+
- grit is a runtime dependency, not a development dependency
|
46
|
+
```
|
47
|
+
### <a name = "0.0.1">0.0.1 - 30 Mar, 2015 (46fa1859)
|
7
48
|
|
8
49
|
* Initial release.
|
data/lib/gitlog-md/parser.rb
CHANGED
@@ -14,7 +14,12 @@ module GitlogMD
|
|
14
14
|
|
15
15
|
repo = Grit::Repo.new(repo_dir)
|
16
16
|
head = Grit::Tag.new(repo.commits(branch).first.sha, repo, repo.commits(branch).first.id)
|
17
|
-
|
17
|
+
# commits for this branch
|
18
|
+
commits = repo.commits(branch, repo.commit_count).map{ |commit| commit.sha }
|
19
|
+
# remove tags not associated with this branch
|
20
|
+
tags = repo.tags.delete_if{ |t| not commits.include?(t.commit.sha) }
|
21
|
+
|
22
|
+
tags = tags + [head]
|
18
23
|
tags.sort! {|x,y| y.commit.authored_date <=> x.commit.authored_date}
|
19
24
|
|
20
25
|
output << "## Tags\n"
|
data/lib/gitlog-md/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlog-md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -148,8 +148,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.4.
|
151
|
+
rubygems_version: 2.4.6
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Let's generate a HISTORY.md file!
|
155
155
|
test_files: []
|
156
|
+
has_rdoc:
|