From f527cfff6765f076b61faa4551754353e8aaeb4c Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Fri, 12 Jun 2015 09:16:23 +0300 Subject: [PATCH 1/2] fix: multiple printing of "Fetching closed dates for issues: Done!" string --- lib/github_changelog_generator/generator/generator_fetcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/generator/generator_fetcher.rb b/lib/github_changelog_generator/generator/generator_fetcher.rb index 16c5e5c..b166922 100644 --- a/lib/github_changelog_generator/generator/generator_fetcher.rb +++ b/lib/github_changelog_generator/generator/generator_fetcher.rb @@ -41,8 +41,8 @@ module GitHubChangelogGenerator threads << Thread.new { find_closed_date_by_commit(issue) } end threads.each(&:join) - puts "Fetching closed dates for issues: Done!" if @options[:verbose] end + puts "Fetching closed dates for issues: Done!" if @options[:verbose] end # Fill :actual_date parameter of specified issue by closed date of the commit, if it was closed by commit. From 6c6116381b390e6a2aa87e5c59d576170fd25e0b Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Fri, 12 Jun 2015 09:17:00 +0300 Subject: [PATCH 2/2] add < to encaprulated characters. fix #249 --- lib/github_changelog_generator/generator/generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/generator/generator.rb b/lib/github_changelog_generator/generator/generator.rb index e6b4e6f..61e6061 100644 --- a/lib/github_changelog_generator/generator/generator.rb +++ b/lib/github_changelog_generator/generator/generator.rb @@ -41,7 +41,7 @@ module GitHubChangelogGenerator def encapsulate_string(string) string.gsub! '\\', '\\\\' - encpas_chars = %w(> * _ \( \) [ ] #) + encpas_chars = %w(< > * _ \( \) [ ] #) encpas_chars.each do |char| string.gsub! char, "\\#{char}" end