From bf57de39ee39393c581daaf7211e75d4c56fb81b Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Thu, 18 Jul 2013 08:04:57 -0400 Subject: [PATCH 1/2] Dynamically create authors lists in the gemspec to give everyone credit --- linux_admin.gemspec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linux_admin.gemspec b/linux_admin.gemspec index 0e305f9..8d1ffdd 100644 --- a/linux_admin.gemspec +++ b/linux_admin.gemspec @@ -3,11 +3,14 @@ lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'linux_admin/version' +# Dynamically create the authors information {name => e-mail} +authors_hash = Hash[`git log --no-merges --reverse --format='%an,%ae'`.split("\n").uniq.collect {|i| i.split(",")}] + Gem::Specification.new do |spec| spec.name = "linux_admin" spec.version = LinuxAdmin::VERSION - spec.authors = ["Brandon Dunne"] - spec.email = ["brandondunne@hotmail.com"] + spec.authors = authors_hash.keys + spec.email = authors_hash.values spec.description = %q{ LinuxAdmin is a module to simplify management of linux systems. It should be a single place to manage various system level configurations, From 5718cfcc71f28c996d269e1263975b34d603d4ed Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Thu, 18 Jul 2013 19:24:23 -0400 Subject: [PATCH 2/2] Moving inside the block to live with the rest of the qit commands. --- linux_admin.gemspec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linux_admin.gemspec b/linux_admin.gemspec index 8d1ffdd..1940e54 100644 --- a/linux_admin.gemspec +++ b/linux_admin.gemspec @@ -3,10 +3,11 @@ lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'linux_admin/version' -# Dynamically create the authors information {name => e-mail} -authors_hash = Hash[`git log --no-merges --reverse --format='%an,%ae'`.split("\n").uniq.collect {|i| i.split(",")}] - Gem::Specification.new do |spec| + + # Dynamically create the authors information {name => e-mail} + authors_hash = Hash[`git log --no-merges --reverse --format='%an,%ae'`.split("\n").uniq.collect {|i| i.split(",")}] + spec.name = "linux_admin" spec.version = LinuxAdmin::VERSION spec.authors = authors_hash.keys