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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzY0MTg0ODhiZjMwMmQ1YWE3MmI1OTBmYjhmZWJiZmFiZGJlNGM5Ng==
4
+ NzAyYjMxZjNlNDYxYzI2NjZlNTViNjcxY2Q5N2RkMTI1NjNkYzMxMA==
5
5
  data.tar.gz: !binary |-
6
- M2I2ODI2OTJlMDY2YzQwOTgzOGE1NzRlMWIwY2I5ZTYzNzQyNjNkZQ==
6
+ ZmMwOGQ4OWMxNDAzNGVhYTQ2MjYwNTRiODQ0NTg1Mzg1YWIyNzk3NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWU4NGIyNjVhZDdkNmJhYjkyYmU0ODM0N2RiODg0MWVlNGZmYjllNzdhMzgz
10
- MTQ1MmE1Njk0NTBhMjViNWQ1M2NkZjhkN2FjYWViMDgwZTJiNGFhZGI3YmUy
11
- NzVlNDliNmQwZjk3MWQwNTI3MDU3NGIxYTU4OGY2NDc0Mzc5NTc=
9
+ ZGU4ZjhiMzNiODVkNjNkNzM2YmI3ZDQ2ZDk2YjY1NjZlMGQzY2I1NzUzNWYy
10
+ NTczYzY1ZTNkMTkyOWNkMWE1ZTBlOTcyNWVlMGRhZTcyMzI1NTc3NzNlMDBj
11
+ YjhiMDgwNzE2MWZiMWIxMGRjMGRmNzMxNzYwNWEzZmY4OWY3YjI=
12
12
  data.tar.gz: !binary |-
13
- Mzg3MGJjODI5MDIxYzEwMzY2MGQ4ODI0ZGUzNmI4MWQ1NWQ1Zjc1Y2Q4MDYx
14
- NTllMzU3YzgwODIwYjBiNzIwYmIxZGY0NDBhZDNjMzUwZTQ3YzBmNTA3NjEx
15
- OTEzMGFkYjk0NmVhMDc2ZTc0Njg2ZDEyMWFkNmRhNWEzOTA5OWE=
13
+ N2ZiZTQwZWRhM2Y1NjFmZWFiZTgwNGVjZDA3NjFlZGRlOTY2ZDk2ZTg0MmVh
14
+ ODA1YjExYTg5YzlmNDAxNDQzNDJkZmU0MDIwM2Y4ZjU4ZWM2ZWQ2ZTVhNThk
15
+ NGZlYzhkMWUyNDNmMTllNDFmMmRhMDIwNjk2MzhmNjUyMGIzODc=
data/HISTORY.md CHANGED
@@ -1,8 +1,49 @@
1
- # gitlog-md - History
1
+ # default - History
2
2
  ## Tags
3
- * [LATEST - 26 Mar, 2015 (683ca8a0)](#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 - 26 Mar, 2015 (683ca8a0)
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.
@@ -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
- tags = repo.tags + [head]
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"
@@ -1,5 +1,5 @@
1
1
  module GitlogMD
2
2
  module Version
3
- STRING = '0.0.2'
3
+ STRING = '0.0.3'
4
4
  end
5
5
  end
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.2
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-03-30 00:00:00.000000000 Z
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.5
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: