releasecop 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acbb3de308ca2133630425cc039aa7dde8115aa91b89b2c299bd8f8cc12b018b
4
- data.tar.gz: 179650ad314f35f899824cecd2a6c4f77650dc012717336722bac0675f0acc0c
3
+ metadata.gz: 8ae20cd71aa1981895c61d7f9e3890c5eb1281b9b2481eeca4503e54e8fd397e
4
+ data.tar.gz: d7ebfe94b23fb0d0a4c6d9aa3deea35939c6340737328759c466a4d90b6a894f
5
5
  SHA512:
6
- metadata.gz: 86c215ffcf3846120061fb3698f46e314ab4cdd1f8beaf25a2e75c7f45e34597bdc51aadc4ccb9afd394168d66960fd86cc296227d31f2b09d3ea4365aacf385
7
- data.tar.gz: afa204f77d712debbe88ddc59335d6bd5eb9fd401abacc57071a0b024a8b3174de854d5602bab031b427f12fee5756bb06a07abab04c166fdfd743ffe4d8830d
6
+ metadata.gz: a6ea618fe766b8bfcc28ba92d35bba5608c431d3fd7832f160ee9d35d71b4f6a187a32a9060d30804b928ad8b3867af565753896d46e0336a87d1776d2832388
7
+ data.tar.gz: e7939962e5d4c288fdbe2ee1de6f113d4e05fdc8783977c9cab5816fdb7f56fc3bf4ca873d7301c80c62383fccecbe26075f374302e81cbd0a516ca62b5d41b5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
  ------------
3
3
  * Your contribution here...
4
4
 
5
+ 0.0.14 (2019-01-07)
6
+ ---
7
+ * Fix `tag_pattern`-matching to respect annotated tags (c7eda3599)
8
+
5
9
  0.0.13 (2018-11-15)
6
10
  ---
7
11
  * Add email to diff output (081d270)
@@ -2,6 +2,8 @@ module Releasecop
2
2
  class Comparison
3
3
  attr_accessor :lines, :behind, :ahead
4
4
 
5
+ PRETTY_FORMAT = '%h %ad %s (%an, %ae)'
6
+
5
7
  def initialize(ahead, behind)
6
8
  @ahead = ahead
7
9
  @behind = behind
@@ -18,7 +20,7 @@ module Releasecop
18
20
  private
19
21
 
20
22
  def log
21
- `git log #{@behind.for_rev_range}..#{@ahead.for_rev_range} --pretty=format:"%h %ad %s (%an, %ae)" --date=short --no-merges`
23
+ `git log #{@behind.for_rev_range}..#{@ahead.for_rev_range} --pretty=format:"#{PRETTY_FORMAT}" --date=short --no-merges`
22
24
  end
23
25
  end
24
26
  end
@@ -30,7 +30,7 @@ module Releasecop
30
30
  end
31
31
 
32
32
  def find_tag_pattern_sha
33
- `git for-each-ref --format='%(objectname)' --count=1 --sort=-authordate --sort=-committerdate 'refs/tags/#{@options['tag_pattern']}'`.strip
33
+ `git for-each-ref --format='%(objectname)' --count=1 --sort=-authordate --sort=-committerdate --sort=-creatordate 'refs/tags/#{@options['tag_pattern']}'`.strip
34
34
  end
35
35
 
36
36
  # not thread-safe
@@ -1,3 +1,3 @@
1
1
  module Releasecop
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: releasecop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Aghion
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-15 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor