From 0291a3f4089fafda89123192a7809669fb3d2363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20Kemal=20BAYG=C3=9CN?= Date: Tue, 3 Sep 2013 10:19:02 +0300 Subject: [PATCH] #17 improve gsub usage, fix double quotes --- CHANGELOG.md | 53 ++++++++++++++++++++++++++++------------------------ bin/katip | 2 +- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 194c312..0711719 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,43 +1,48 @@ #### [Current] - * [7b5c1e2](../../commit/7b5c1e2) [#1](../../issues/1) Add links to issues in comments __(Murat Kemal BAYGÜN)__ + * [3b25646](../../commit/3b25646) Merge pull request #18 from rderoldan1/develop __(Murat Kemal BAYGÜN)__ + * [081a185](../../commit/081a185) Update katip binary __(Ruben Espinosa)__ + +#### 1.1.0 + * [2a9b75b](../../commit/2a9b75b) Release 1.1.0 __(Murat Kemal BAYGÜN)__ + * [7b5c1e2](../../commit/7b5c1e2) #1 Add links to issues in comments __(Murat Kemal BAYGÜN)__ * [3780df9](../../commit/3780df9) typo fixed. __(Onur Özgür ÖZKAN)__ - * [2dbf361](../../commit/2dbf361) [#14](../../issues/14) fix video links image __(Murat Kemal BAYGÜN)__ - * [0a11741](../../commit/0a11741) [#14](../../issues/14) add video link and translation __(Murat Kemal BAYGÜN)__ - * [0d128bd](../../commit/0d128bd) [#16](../../issues/16) Add git repository check __(Murat Kemal BAYGÜN)__ + * [2dbf361](../../commit/2dbf361) #14 fix video links image __(Murat Kemal BAYGÜN)__ + * [0a11741](../../commit/0a11741) #14 add video link and translation __(Murat Kemal BAYGÜN)__ + * [0d128bd](../../commit/0d128bd) #16 Add git repository check __(Murat Kemal BAYGÜN)__ * [8b22c6f](../../commit/8b22c6f) Add latest change log __(Murat Kemal BAYGÜN)__ - * [5fc6991](../../commit/5fc6991) [#14](../../issues/14) Update readme, add sample output __(Murat Kemal BAYGÜN)__ - * [3f7788c](../../commit/3f7788c) [#14](../../issues/14) update README.md __(Onur Ozgur OZKAN)__ + * [5fc6991](../../commit/5fc6991) #14 Update readme, add sample output __(Murat Kemal BAYGÜN)__ + * [3f7788c](../../commit/3f7788c) #14 update README.md __(Onur Ozgur OZKAN)__ #### 1.0.2 - * [664e012](../../commit/664e012) [#15](../../issues/15) Set version 1.0.2 __(Murat Kemal BAYGÜN)__ + * [664e012](../../commit/664e012) #15 Set version 1.0.2 __(Murat Kemal BAYGÜN)__ #### 1.0.1 - * [35f0b39](../../commit/35f0b39) [#15](../../issues/15) Fixes broken commit URL In previous version commit URL was broken unexpectedly.Current commit fixes broken URL and replaces it with the correct one __(Murat Kemal BAYGÜN)__ + * [35f0b39](../../commit/35f0b39) #15 Fixes broken commit URL In previous version commit URL was broken unexpectedly.Current commit fixes broken URL and replaces it with the correct one __(Murat Kemal BAYGÜN)__ #### 1.0.0 * [cbec9c0](../../commit/cbec9c0) release version 1.0.0 __(Murat Kemal BAYGÜN)__ - * [6b8cfe7](../../commit/6b8cfe7) [#13](../../issues/13) Add custom file name support to rake __(Murat Kemal BAYGÜN)__ - * [7b5be3d](../../commit/7b5be3d) [#10](../../issues/10) add output file name as optional parameter __(Murat Kemal BAYGÜN)__ - * [695646c](../../commit/695646c) [#12](../../issues/12) Add and correct information on gemspec __(Murat Kemal BAYGÜN)__ - * [f30a3b2](../../commit/f30a3b2) [#9](../../issues/9) Update rake job to use installed executable __(Murat Kemal BAYGÜN)__ - * [a7200f0](../../commit/a7200f0) [#11](../../issues/11) Fix bug Current commits is not seen on log file __(Murat Kemal BAYGÜN)__ - * [6385fff](../../commit/6385fff) [#8](../../issues/8) Change executable file name to katip __(Murat Kemal BAYGÜN)__ + * [6b8cfe7](../../commit/6b8cfe7) #13 Add custom file name support to rake __(Murat Kemal BAYGÜN)__ + * [7b5be3d](../../commit/7b5be3d) #10 add output file name as optional parameter __(Murat Kemal BAYGÜN)__ + * [695646c](../../commit/695646c) #12 Add and correct information on gemspec __(Murat Kemal BAYGÜN)__ + * [f30a3b2](../../commit/f30a3b2) #9 Update rake job to use installed executable __(Murat Kemal BAYGÜN)__ + * [a7200f0](../../commit/a7200f0) #11 Fix bug Current commits is not seen on log file __(Murat Kemal BAYGÜN)__ + * [6385fff](../../commit/6385fff) #8 Change executable file name to katip __(Murat Kemal BAYGÜN)__ #### 0.2.0 * [61b2f06](../../commit/61b2f06) Version 0.2.0 __(Murat Kemal BAYGÜN)__ - * [9bd7659](../../commit/9bd7659) [#7](../../issues/7) Fix documentation __(Murat Kemal BAYGÜN)__ - * [2abca18](../../commit/2abca18) [#7](../../issues/7) Organize readme, add usage for daktilo __(Murat Kemal BAYGÜN)__ - * [b939475](../../commit/b939475) [#7](../../issues/7) Add output message to inform user __(Murat Kemal BAYGÜN)__ - * [99d3b3f](../../commit/99d3b3f) [#7](../../issues/7) Add executable ruby file to gem to generate default output CHANGELOG.md __(Murat Kemal BAYGÜN)__ - * [7265622](../../commit/7265622) [#4](../../issues/4) Add simple usage documentation on readme __(Murat Kemal BAYGÜN)__ + * [9bd7659](../../commit/9bd7659) #7 Fix documentation __(Murat Kemal BAYGÜN)__ + * [2abca18](../../commit/2abca18) #7 Organize readme, add usage for daktilo __(Murat Kemal BAYGÜN)__ + * [b939475](../../commit/b939475) #7 Add output message to inform user __(Murat Kemal BAYGÜN)__ + * [99d3b3f](../../commit/99d3b3f) #7 Add executable ruby file to gem to generate default output CHANGELOG.md __(Murat Kemal BAYGÜN)__ + * [7265622](../../commit/7265622) #4 Add simple usage documentation on readme __(Murat Kemal BAYGÜN)__ #### 0.1.0 - * [de3acfb](../../commit/de3acfb) [#6](../../issues/6) Update gemspec __(Onur Ozgur OZKAN)__ - * [498c3d6](../../commit/498c3d6) [#6](../../issues/6) Set gem __(Onur Ozgur OZKAN)__ - * [416e6c8](../../commit/416e6c8) [#6](../../issues/6) Set gem __(Onur Ozgur OZKAN)__ - * [c820767](../../commit/c820767) [#4](../../issues/4) Add CHANGELOG.md file __(Murat Kemal BAYGÜN)__ - * [18fba8f](../../commit/18fba8f) [#3](../../issues/3) Add logger file __(Murat Kemal BAYGÜN)__ + * [de3acfb](../../commit/de3acfb) #6 Update gemspec __(Onur Ozgur OZKAN)__ + * [498c3d6](../../commit/498c3d6) #6 Set gem __(Onur Ozgur OZKAN)__ + * [416e6c8](../../commit/416e6c8) #6 Set gem __(Onur Ozgur OZKAN)__ + * [c820767](../../commit/c820767) #4 Add CHANGELOG.md file __(Murat Kemal BAYGÜN)__ + * [18fba8f](../../commit/18fba8f) #3 Add logger file __(Murat Kemal BAYGÜN)__ * [105af37](../../commit/105af37) Update readme __(Murat Kemal BAYGÜN)__ * [bc56515](../../commit/bc56515) Initial commit __(Murat Kemal BAYGÜN)__ * [1b1d477](../../commit/1b1d477) Initial commit __(Murat Kemal BAYGÜN)__ diff --git a/bin/katip b/bin/katip index a8bb1e3..329f046 100755 --- a/bin/katip +++ b/bin/katip @@ -63,7 +63,7 @@ def parse_change_log output.each do |line| - line.encode("utf-8", invalid: :replace, undef: :replace, replace: '').gsub!(/#[1-9][0-9]*/) {|s| '[' + s + "](#{ISSUE_URL}" + s[-(s.length-1)..-1] + ')'} + line.encode('utf-8', invalid: :replace, undef: :replace, replace: '').gsub!(/#[1-9][0-9]*/) {|s| "[#{s}](#{ISSUE_URL}#{s[-(s.length-1)..-1]})"} end