keepachangelog 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac102da84255c733478723635d73a3de6e43d9c9
4
- data.tar.gz: a2c7235b802c24dffb6b0126af91081368e88c0b
3
+ metadata.gz: 2fa28be029b7aab7210ca1bbc30e7054d3c393df
4
+ data.tar.gz: cfca6b5097cc2ac1bb0850d4a0d03af62ce12b81
5
5
  SHA512:
6
- metadata.gz: 335a86c0ee5e3e93c81819748a24dacf869e9a5a07b6abe1d934335b26bef9e5fb70b171cc3e5b84869a440cc1a7150b9adb71d4db86f85c061bded854083291
7
- data.tar.gz: 7722088c0273a5f23254a13aaf5bba366666ea3c8d85e11bd32fa86e2de1487aa874bc9c2bb702f8f7b36a13c6c912ee5098af96623569ec2af7da6b903c5684
6
+ metadata.gz: 7144064b05003e9328583cfe534ef5e7b88b93e18bc6bc7bda9123c828df749d22000a32c1331e152678d04adaa2ad6be7fdc3fbcc35f60eb825677c12461865
7
+ data.tar.gz: 8d06b83e3cfba336b0c46704618eeaa6f3eb7b31821dba21995e1f4bba0ab896b0f010b7da3d4c4b153b6a37bebb29964e27ec7c74516802b95b3b75da59971b
data/CHANGELOG.md CHANGED
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
- ## [undefined]
7
+ ## [0.5.2] - 2017-04-05
8
+ ### Fixed
9
+ - Fix incorrect previous version in URL in Markdown output. (#15)
10
+
11
+ ## [0.5.1] - 2017-04-04
8
12
  ### Fixed
9
13
  - Handle arbitrary name for unreleased version when creating URL in Markdown.
10
14
 
@@ -60,7 +64,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
60
64
  - Tool for reading Changelog in Markdown format.
61
65
  - Ability to convert Changelog to YAML.
62
66
 
63
- [undefined]: https://gitlab.com/ephracis/keepachangelog/compare/0.5.0...HEAD
67
+ [0.5.2]: https://gitlab.com/ephracis/keepachangelog/compare/0.5.1...0.5.2
68
+ [0.5.1]: https://gitlab.com/ephracis/keepachangelog/compare/0.5.0...0.5.1
64
69
  [0.5.0]: https://gitlab.com/ephracis/keepachangelog/compare/0.4.1...0.5.0
65
70
  [0.4.1]: https://gitlab.com/ephracis/keepachangelog/compare/0.4.0...0.4.1
66
71
  [0.4.0]: https://gitlab.com/ephracis/keepachangelog/compare/0.3.1...0.4.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- keepachangelog (0.5.1)
4
+ keepachangelog (0.5.2)
5
5
  json (~> 2.0)
6
6
  thor (~> 0.19)
7
7
 
File without changes
@@ -0,0 +1,4 @@
1
+ ---
2
+ title: Fix incorrect previous version in URL in Markdown output
3
+ issue: 15
4
+ type: Fixed
@@ -59,7 +59,7 @@ module Keepachangelog
59
59
 
60
60
  def anchors
61
61
  return nil unless options[:url]
62
- v = versions.keys.sort.reverse
62
+ v = versions.keys.sort { |a, b| compare_versions(a, b) }.reverse
63
63
  (0..v.length - 1).map { |i| anchor(v, i) }
64
64
  end
65
65
 
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keepachangelog",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Parser for changelogs based on keepachangelog.com",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,9 +30,12 @@ module Keepachangelog
30
30
  'changes' => { 'New' => ['Feature C'] }
31
31
  }
32
32
  }
33
- p = MarkdownPrinter.new(versions)
33
+ p = MarkdownPrinter.new(versions, url: 'test.io')
34
34
  md = p.to_s.delete("\n")
35
- expect(md).to match(/.*0\.10\.0.*0\.2\.0.*0\.1\.0.*/)
35
+ expect(md).to match(/0\.10\.0.*0\.2\.0.*0\.1\.0/)
36
+ expect(md).to match('test.io/compare/0.1.0...0.2.0')
37
+ expect(md).to match('test.io/compare/0.2.0...0.10.0')
38
+ expect(md).to match('test.io/compare/0.10.0...HEAD')
36
39
  end
37
40
  end
38
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keepachangelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Basalt AB
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -159,9 +159,10 @@ files:
159
159
  - changelog/0.5.0/10-yaml-add-period.yaml
160
160
  - changelog/0.5.0/11-default-date.yaml
161
161
  - changelog/0.5.0/9-allow-any-name-for-unreleased.yaml
162
+ - changelog/0.5.1/13-compare-non-proper-version.yaml
163
+ - changelog/0.5.1/14-json-dates.yaml
164
+ - changelog/0.5.2/15-incorrect-previous-version.yaml
162
165
  - changelog/meta.yaml
163
- - changelog/undefined/13-compare-non-proper-version.yaml
164
- - changelog/undefined/14-json-dates.yaml
165
166
  - exe/keepachangelog
166
167
  - features/help.feature
167
168
  - features/parser.feature