Changeset 4482
- Timestamp:
- 01/12/08 13:03:47 (5 years ago)
- Files:
-
- 1 modified
-
lang/ruby/misc/changelog-with-hatenastar.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/misc/changelog-with-hatenastar.rb
r4447 r4482 29 29 TRAC_BASE = URI("http://coderepos.org/share/") 30 30 URI_MAX = 1800 31 INCLUDE_TAGS = ["release", "new", "bug", "interface"] 31 32 32 33 def retrive_stars(entries, n=0) … … 72 73 tags = [] 73 74 tags << Regexp.last_match[1] while mesg.sub!(/\[([^\]]+)\]\s*$/, "") 74 unless tags.empty? 75 tags.reject! {|i| !INCLUDE_TAGS.include?(i) } 76 if !star && !tags.empty? 75 77 star = [] 76 78 end 77 79 if star 78 80 tags.concat star.map {|i| 79 _, tag, msg = */^\s*\[( interface|bug|release)\]\s*(.*)\s*$/.match(i["quote"])80 mesg << "\n(#{msg})" unlessmsg.empty?81 _, tag, msg = */^\s*\[(#{INCLUDE_TAGS.join("|")})\]\s*(.*)\s*$/.match(i["quote"]) 82 mesg << "\n(#{msg})" if msg && !msg.empty? 81 83 tag 82 84 }.compact
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)