diff --git a/lib/github_changelog_generator.rb b/lib/github_changelog_generator.rb index f48c889..09247ff 100755 --- a/lib/github_changelog_generator.rb +++ b/lib/github_changelog_generator.rb @@ -60,7 +60,7 @@ class ChangelogGenerator tag1 = @options[:tag1] tag2 = @options[:tag2] tags_strings = [] - self.all_tags.each { |x| tags_strings.push(x['name'])} + self.all_tags.each { |x| tags_strings.push(x['name']) } if tags_strings.include?(tag1) if tags_strings.include?(tag2) @@ -165,7 +165,7 @@ class ChangelogGenerator issues = Array.new(@issues) - issues.delete_if{ |issue| + issues.delete_if { |issue| if issue[:closed_at] t = Time.parse(issue[:closed_at]).utc tag_is_later_since = t > since_tag_time @@ -201,7 +201,7 @@ class ChangelogGenerator issues = Array.new(@issues) - issues.delete_if{ |issue| + issues.delete_if { |issue| if issue[:closed_at] t = Time.parse(issue[:closed_at]).utc t > tag_time @@ -239,19 +239,19 @@ class ChangelogGenerator if issues issues.each { |dict| is_bug = false - is_enhancement = false + is_enhancement = false dict.labels.each { |label| if label.name == 'bug' is_bug = true end if label.name == 'enhancement' - is_enhancement = true + is_enhancement = true end } intro = 'Closed issue' if is_bug - intro = 'Fixed bug' + intro = 'Fixed bug' end if is_enhancement