summaryrefslogtreecommitdiff
blob: f868688eb53794be958f93933a40755cfd0c5b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/ruby -w

require 'developer.rb'
require 'herds.rb'
require 'userinfo.rb'
require 'docparser.rb'
require 'planetiniparser.rb'

include Herds
include UserInfo
include PlanetIniParser

dev = Developer.new
dev.handle = ARGV[0]
#dev.handle = 'nichoj'

UserInfo.updateDev(dev)
Herds.updateDev(dev)
PlanetIniParser.updateDev(dev)
dev.documentation = findDocumentation(dev.email)


puts "Name: #{dev.name}"
puts "Username: #{dev.handle}"
puts "Email: #{dev.email}"
puts "PGP Key: #{dev.pgpkey}"
puts "Roles: #{dev.roles}"
unless dev.herds.nil?
    puts "Herds: "
    dev.herds.each { |herd| puts "\t#{herd}"}
end
puts "Joined: #{dev.joined}"
puts "Birthday: #{dev.birthday}" unless dev.birthday.nil?
puts "Location: #{dev.location}"
unless dev.blogRss.nil?
    puts "Blog RSS: #{dev.blogRss}"
    puts "Blog Posts: "
    dev.blogItems.each { |item| puts "\t#{item.title}" }
    puts "Hackergotchi: #{dev.hackergotchi}" unless dev.hackergotchi.nil?
end
puts "Commits RSS: #{dev.ciaRss}"
puts "Commits: "
dev.commitItems.each { |item| puts "\t#{item.title}" }
puts "Bugs RSS: #{dev.myBugsRss}"
puts "Forums Profile: #{dev.forumsProfile}"

unless dev.documentation.nil?
    puts "Documentation:"
    dev.documentation.each do |doc|
        puts "\t#{doc.title} : #{doc.role}"
    end
end