Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
improving undies rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
mcansky committed Feb 16, 2011
1 parent d734920 commit 77def9b
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions lib/tasks/undies.rake
@@ -1,6 +1,20 @@
# because they come in handy
#
# you need a dev config file edit the DEVS path if needed
# this has to be a yml file using syntax :
#
# <github_username>:
# emails:
# <first@email.co>
# <second@email.co>
#
# change <github_username> by the github username (so it can be linked properly with some stuff check markdown task)
# put your emails instead of <first@email.co> .. etc
# this will allow the tasks to find the proper users and link them properly
#
require "net/http"
require "uri"
DEVS = Rails.root.to_s + "/config/devs.yml"

namespace :undies do
desc "generate changelog with nice clean output"
Expand All @@ -9,7 +23,7 @@ namespace :undies do
until_c = args[:until_c]
cmd=`git log --pretty='format:%ci::%an <%ae>::%s::%H' #{since_c}..#{until_c}`

github_authors = YAML::load(File.open(Rails.root.to_s + "/config/devs.yml"))
github_authors = YAML::load(File.open(DEVS))

entries = Hash.new
changelog_content = String.new
Expand Down Expand Up @@ -77,7 +91,7 @@ namespace :undies do
printf("Handling commits for current :") unless tag
# setting up the consts
changelog_content += "\n" unless changelog_content.size == 0
github_authors = YAML::load(File.open(Rails.root.to_s + "/config/devs.yml"))
github_authors = YAML::load(File.open(DEVS))
entries = Hash.new
changelog_content += "# #{tag}\n" if tag
changelog_content += "# current\n" unless tag
Expand Down Expand Up @@ -139,7 +153,7 @@ namespace :undies do
until_c = args[:until_c]
cmd=`git log --pretty='format:%ci::%an <%ae>::%s::%H' #{since_c}..#{until_c}`

github_authors = YAML::load(File.open(Rails.root.to_s + "/config/devs.yml"))
github_authors = YAML::load(File.open(DEVS))

entries = Hash.new
changelog_content = String.new
Expand Down

0 comments on commit 77def9b

Please sign in to comment.