Project

General

Profile

Revision 7ff105d1

Added by David Davis almost 7 years ago

Fixes #12681 - Support rubocop 0.35.1 by fixing broken rules

View differences:

release/changelog
3 3
# changelog generates two files, Contributors and CHANGELOG with all changes
4 4
# from git. These should be included in every foreman-docker release.
5 5

  
6

  
7
cmd=`git log --pretty='format:%ci::%an <%ae>::%s'`
6
cmd = `git log --pretty='format:%ci::%an <%ae>::%s'`
8 7

  
9 8
list = {}
10 9
list_order = []
......
17 16
  date, _time, _zone = date.split(" ")
18 17

  
19 18
  id = "#{date}\t#{author}"
20
  if not list[id]
19
  unless list[id]
21 20
    list[id] = []
22
    list_order << {:id => id, :value => list[id]}
21
    list_order << { :id => id, :value => list[id] }
23 22
  end
24 23
  list[id] << subject
25 24
  contributors << author
26 25
end
27 26

  
28 27
# list.each do |id, value|
29
file = File.new(changelog_file,"w")
28
file = File.new(changelog_file, "w")
30 29
list_order.each do |i|
31 30
  id = i[:id]
32 31
  value = i[:value]
......
36 35
  file.puts "\n"
37 36
end
38 37
file.close
39
file = File.new(contributors_file,"w")
38
file = File.new(contributors_file, "w")
40 39
file.puts "Contributors (sorted alphabetically)"
41 40
file.puts "\n"
42 41
file.puts contributors.sort.uniq.join("\n")

Also available in: Unified diff